@oneuptime/common 14.0.109 → 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 (578) hide show
  1. package/Models/AnalyticsModels/SecurityEvent.js +1 -1
  2. package/Models/DatabaseModels/AIInsight.js +2 -2
  3. package/Models/DatabaseModels/AIRunRecording.d.mts +12 -0
  4. package/Models/DatabaseModels/AIRunRecording.d.ts +12 -0
  5. package/Models/DatabaseModels/AIRunRecording.js +181 -0
  6. package/Models/DatabaseModels/AIRunRecording.mjs +2 -0
  7. package/Models/DatabaseModels/Alert.js +20 -4
  8. package/Models/DatabaseModels/AlertEpisode.js +2 -2
  9. package/Models/DatabaseModels/AlertEpisodeOnCallRule.js +3 -3
  10. package/Models/DatabaseModels/AlertGroupingRule.d.mts +1 -0
  11. package/Models/DatabaseModels/AlertGroupingRule.d.ts +1 -0
  12. package/Models/DatabaseModels/AlertGroupingRule.js +48 -2
  13. package/Models/DatabaseModels/AlertOnCallRule.js +3 -3
  14. package/Models/DatabaseModels/AlertSeverity.js +13 -4
  15. package/Models/DatabaseModels/AlertState.js +1 -1
  16. package/Models/DatabaseModels/CallLog.js +12 -12
  17. package/Models/DatabaseModels/DataStore.js +9 -0
  18. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
  19. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
  20. package/Models/DatabaseModels/EmailLog.js +14 -14
  21. package/Models/DatabaseModels/Form.js +3 -3
  22. package/Models/DatabaseModels/FormSubmission.js +6 -6
  23. package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
  24. package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
  25. package/Models/DatabaseModels/GlobalConfig.js +74 -45
  26. package/Models/DatabaseModels/Incident.js +20 -4
  27. package/Models/DatabaseModels/IncidentEpisode.js +2 -2
  28. package/Models/DatabaseModels/IncidentEpisodeOnCallRule.js +3 -3
  29. package/Models/DatabaseModels/IncidentGroupingRule.d.mts +1 -0
  30. package/Models/DatabaseModels/IncidentGroupingRule.d.ts +1 -0
  31. package/Models/DatabaseModels/IncidentGroupingRule.js +48 -2
  32. package/Models/DatabaseModels/IncidentOnCallRule.js +3 -3
  33. package/Models/DatabaseModels/IncidentSeverity.js +13 -4
  34. package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
  35. package/Models/DatabaseModels/IncidentState.js +1 -1
  36. package/Models/DatabaseModels/IncidentTemplate.js +2 -2
  37. package/Models/DatabaseModels/Index.js +4 -0
  38. package/Models/DatabaseModels/InventoryItem.js +11 -0
  39. package/Models/DatabaseModels/Monitor.js +54 -20
  40. package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
  41. package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
  42. package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
  43. package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
  44. package/Models/DatabaseModels/MonitorProbe.js +22 -5
  45. package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
  46. package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
  47. package/Models/DatabaseModels/NetworkDevice.js +64 -7
  48. package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
  49. package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
  50. package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
  51. package/Models/DatabaseModels/NetworkInterface.js +5 -5
  52. package/Models/DatabaseModels/OnCallDutyPolicy.js +4 -2
  53. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
  54. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +8 -5
  55. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +5 -2
  56. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +5 -2
  57. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +28 -11
  58. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
  59. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
  60. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
  61. package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +16 -11
  62. package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +7 -4
  63. package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +7 -4
  64. package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +6 -3
  65. package/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js +4 -4
  66. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +3 -3
  67. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +6 -6
  68. package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +9 -6
  69. package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
  70. package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
  71. package/Models/DatabaseModels/Project.d.mts +3 -0
  72. package/Models/DatabaseModels/Project.d.ts +3 -0
  73. package/Models/DatabaseModels/Project.js +142 -5
  74. package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
  75. package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
  76. package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
  77. package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
  78. package/Models/DatabaseModels/ProxmoxCluster.js +52 -3
  79. package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
  80. package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
  81. package/Models/DatabaseModels/PushNotificationLog.js +12 -12
  82. package/Models/DatabaseModels/Reseller.js +8 -2
  83. package/Models/DatabaseModels/ResellerPlan.js +8 -2
  84. package/Models/DatabaseModels/RunbookExecution.js +2 -2
  85. package/Models/DatabaseModels/RunbookRule.js +6 -6
  86. package/Models/DatabaseModels/ScheduledMaintenance.js +9 -6
  87. package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
  88. package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
  89. package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
  90. package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
  91. package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +3 -3
  92. package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
  93. package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
  94. package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
  95. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +10 -7
  96. package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
  97. package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +4 -4
  98. package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
  99. package/Models/DatabaseModels/Service.js +1 -1
  100. package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +4 -4
  101. package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +4 -4
  102. package/Models/DatabaseModels/SmsLog.js +12 -12
  103. package/Models/DatabaseModels/StatusPage.js +5 -5
  104. package/Models/DatabaseModels/StatusPageSubscriber.js +2 -2
  105. package/Models/DatabaseModels/TeamMember.js +10 -1
  106. package/Models/DatabaseModels/TelegramLog.js +12 -12
  107. package/Models/DatabaseModels/TelemetryIngestionKey.js +8 -5
  108. package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +7 -4
  109. package/Models/DatabaseModels/User.d.mts +4 -0
  110. package/Models/DatabaseModels/User.d.ts +4 -0
  111. package/Models/DatabaseModels/User.js +100 -0
  112. package/Models/DatabaseModels/UserOnCallLog.js +6 -6
  113. package/Models/DatabaseModels/UserOnCallLogTimeline.js +3 -3
  114. package/Models/DatabaseModels/UserOnCallShiftReminderLog.js +2 -2
  115. package/Models/DatabaseModels/WebhookLog.js +12 -12
  116. package/Models/DatabaseModels/WhatsAppLog.js +12 -12
  117. package/Models/DatabaseModels/WorkspaceNotificationLog.js +12 -12
  118. package/Models/DatabaseModels/WorkspaceNotificationRule.js +36 -1
  119. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  120. package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
  121. package/Server/Services/DatabaseService.d.mts +4 -1
  122. package/Server/Services/DatabaseService.d.ts +4 -1
  123. package/Server/Types/Database/CountBy.d.mts +1 -0
  124. package/Server/Types/Database/CountBy.d.ts +1 -0
  125. package/Server/Types/Database/UpdateLimit.d.mts +6 -0
  126. package/Server/Types/Database/UpdateLimit.d.ts +6 -0
  127. package/Types/AI/AIActionWords.d.mts +25 -1
  128. package/Types/AI/AIActionWords.d.ts +25 -1
  129. package/Types/AI/AIActionWords.js +166 -3
  130. package/Types/AI/AIActionWords.mjs +6 -0
  131. package/Types/AI/AIChatTypes.d.mts +4 -2
  132. package/Types/AI/AIChatTypes.d.ts +4 -2
  133. package/Types/AI/AIChatTypes.js +5 -0
  134. package/Types/AI/AiOutcomes.d.mts +57 -0
  135. package/Types/AI/AiOutcomes.d.ts +57 -0
  136. package/Types/AI/AiOutcomes.js +67 -0
  137. package/Types/AI/AiOutcomes.mjs +10 -0
  138. package/Types/AI/AiRunRefusal.d.mts +45 -0
  139. package/Types/AI/AiRunRefusal.d.ts +45 -0
  140. package/Types/AI/AiRunRefusal.js +187 -0
  141. package/Types/AI/AiRunRefusal.mjs +12 -0
  142. package/Types/AI/InvestigationRecording.d.mts +46 -0
  143. package/Types/AI/InvestigationRecording.d.ts +46 -0
  144. package/Types/AI/InvestigationRecording.js +42 -0
  145. package/Types/AI/InvestigationRecording.mjs +7 -0
  146. package/Types/API/HTTPResponse.d.mts +3 -0
  147. package/Types/API/HTTPResponse.d.ts +3 -0
  148. package/Types/API/HTTPResponse.js +15 -0
  149. package/Types/Analytics/ProductEvent.d.mts +6 -1
  150. package/Types/Analytics/ProductEvent.d.ts +6 -1
  151. package/Types/Analytics/ProductEvent.js +41 -0
  152. package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
  153. package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
  154. package/Types/AuditLog/AuditLogCoverage.js +4 -2
  155. package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
  156. package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
  157. package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -1
  158. package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -1
  159. package/Types/BaseDatabase/AggregationIntervalUtil.js +92 -2
  160. package/Types/BaseDatabase/ListResult.d.mts +1 -0
  161. package/Types/BaseDatabase/ListResult.d.ts +1 -0
  162. package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
  163. package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
  164. package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
  165. package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
  166. package/Types/Cloud/CloudResourceCatalog.d.mts +2 -0
  167. package/Types/Cloud/CloudResourceCatalog.d.ts +2 -0
  168. package/Types/Cloud/CloudResourceCatalog.js +33 -3
  169. package/Types/Cloud/CloudResourceCatalog.mjs +1 -0
  170. package/Types/Dashboard/DashboardAutoRefresh.d.mts +1 -0
  171. package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
  172. package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
  173. package/Types/Dashboard/DashboardAutoRefresh.mjs +1 -0
  174. package/Types/DataObservability/DataCheckSuggestions.d.mts +25 -0
  175. package/Types/DataObservability/DataCheckSuggestions.d.ts +25 -0
  176. package/Types/DataObservability/DataCheckSuggestions.js +102 -65
  177. package/Types/DataObservability/DataCheckSuggestions.mjs +1 -0
  178. package/Types/Database/TableMetadata.d.mts +2 -0
  179. package/Types/Database/TableMetadata.d.ts +2 -0
  180. package/Types/Database/TableMetadata.js +6 -0
  181. package/Types/Date.d.mts +26 -2
  182. package/Types/Date.d.ts +26 -2
  183. package/Types/Date.js +81 -9
  184. package/Types/Date.mjs +1 -0
  185. package/Types/DateLanguage.d.mts +2 -0
  186. package/Types/DateLanguage.d.ts +2 -0
  187. package/Types/DateLanguage.js +44 -2
  188. package/Types/DateLanguage.mjs +2 -0
  189. package/Types/DirectionArrow.d.mts +7 -0
  190. package/Types/DirectionArrow.d.ts +7 -0
  191. package/Types/DirectionArrow.js +88 -0
  192. package/Types/DirectionArrow.mjs +7 -0
  193. package/Types/Docs/GlossaryTerm.d.mts +1 -0
  194. package/Types/Docs/GlossaryTerm.d.ts +1 -0
  195. package/Types/Docs/GlossaryTerm.js +2 -0
  196. package/Types/Docs/RetiredNames.d.mts +11 -0
  197. package/Types/Docs/RetiredNames.d.ts +11 -0
  198. package/Types/Docs/RetiredNames.js +139 -0
  199. package/Types/Docs/RetiredNames.mjs +3 -0
  200. package/Types/Email/ServerEmailEnvironment.d.mts +85 -0
  201. package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
  202. package/Types/Email/ServerEmailEnvironment.js +793 -0
  203. package/Types/Email/ServerEmailEnvironment.mjs +14 -0
  204. package/Types/Exception/AiRunRefusalException.d.mts +6 -0
  205. package/Types/Exception/AiRunRefusalException.d.ts +6 -0
  206. package/Types/Exception/AiRunRefusalException.js +23 -0
  207. package/Types/Exception/AiRunRefusalException.mjs +2 -0
  208. package/Types/Exception/RefusalWithValues.d.mts +7 -0
  209. package/Types/Exception/RefusalWithValues.d.ts +7 -0
  210. package/Types/Exception/RefusalWithValues.js +76 -0
  211. package/Types/Exception/RefusalWithValues.mjs +3 -0
  212. package/Types/Exception/UnexplainedError.d.mts +13 -0
  213. package/Types/Exception/UnexplainedError.d.ts +13 -0
  214. package/Types/Exception/UnexplainedError.js +53 -1
  215. package/Types/Exception/UnexplainedError.mjs +1 -0
  216. package/Types/File/FileSize.d.mts +4 -1
  217. package/Types/File/FileSize.d.ts +4 -1
  218. package/Types/File/FileSize.js +18 -17
  219. package/Types/Form/FormTargetCatalog.js +2 -2
  220. package/Types/Form/FormTargetType.js +2 -2
  221. package/Types/HostCollector/HostCollector.d.mts +1 -0
  222. package/Types/HostCollector/HostCollector.d.ts +1 -0
  223. package/Types/HostCollector/HostCollector.js +26 -10
  224. package/Types/HostCollector/HostCollector.mjs +1 -0
  225. package/Types/ListData.d.mts +2 -0
  226. package/Types/ListData.d.ts +2 -0
  227. package/Types/ListData.js +4 -0
  228. package/Types/Monitor/MonitorCriteria.js +2 -2
  229. package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
  230. package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
  231. package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
  232. package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
  233. package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
  234. package/Types/Monitor/MonitorStep.js +1 -1
  235. package/Types/Monitor/MonitorTemplateSyncField.d.mts +6 -0
  236. package/Types/Monitor/MonitorTemplateSyncField.d.ts +6 -0
  237. package/Types/Monitor/MonitorTemplateSyncField.js +106 -64
  238. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.mts +1 -0
  239. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.ts +1 -0
  240. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.js +11 -3
  241. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +6 -0
  242. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
  243. package/Types/Monitor/UptimeHistoryLabels.js +2 -2
  244. package/Types/Monitor/WhoIsTold.d.mts +3 -1
  245. package/Types/Monitor/WhoIsTold.d.ts +3 -1
  246. package/Types/Monitor/WhoIsTold.js +2 -1
  247. package/Types/NotificationRule/PagingLadder.d.mts +137 -0
  248. package/Types/NotificationRule/PagingLadder.d.ts +137 -0
  249. package/Types/NotificationRule/PagingLadder.js +682 -0
  250. package/Types/NotificationRule/PagingLadder.mjs +28 -0
  251. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +1 -1
  252. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.mts +1 -0
  253. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
  254. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
  255. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
  256. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
  257. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
  258. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
  259. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -0
  260. package/Types/OnCallDutyPolicy/OnCallPageLine.d.mts +26 -0
  261. package/Types/OnCallDutyPolicy/OnCallPageLine.d.ts +26 -0
  262. package/Types/OnCallDutyPolicy/OnCallPageLine.js +136 -0
  263. package/Types/OnCallDutyPolicy/OnCallPageLine.mjs +18 -0
  264. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
  265. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
  266. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
  267. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
  268. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
  269. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
  270. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +44 -0
  271. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +44 -0
  272. package/Types/OnCallDutyPolicy/OnCallTestPage.js +96 -5
  273. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
  274. package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.mts +19 -0
  275. package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.ts +19 -0
  276. package/Types/OnCallDutyPolicy/OnCallTestPageLine.js +222 -0
  277. package/Types/OnCallDutyPolicy/OnCallTestPageLine.mjs +6 -0
  278. package/Types/OnCallDutyPolicy/ScheduleLayerDefaults.js +5 -2
  279. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
  280. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
  281. package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
  282. package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
  283. package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
  284. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
  285. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
  286. package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
  287. package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
  288. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
  289. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
  290. package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
  291. package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
  292. package/Types/Permission.d.mts +2 -2
  293. package/Types/Permission.d.ts +2 -2
  294. package/Types/Permission.js +196 -195
  295. package/Types/Probe/ProbeCapability.d.mts +2 -1
  296. package/Types/Probe/ProbeCapability.d.ts +2 -1
  297. package/Types/Probe/ProbeCapability.js +10 -0
  298. package/Types/Product/ProductCatalog.d.mts +10 -0
  299. package/Types/Product/ProductCatalog.d.ts +10 -0
  300. package/Types/Product/ProductCatalog.js +208 -0
  301. package/Types/Product/ProductCatalog.mjs +6 -0
  302. package/Types/Product/ProductOfTable.d.mts +3 -0
  303. package/Types/Product/ProductOfTable.d.ts +3 -0
  304. package/Types/Product/ProductOfTable.js +68 -0
  305. package/Types/Product/ProductOfTable.mjs +3 -0
  306. package/Types/Product/ProjectProductsAnswer.d.mts +3 -0
  307. package/Types/Product/ProjectProductsAnswer.d.ts +3 -0
  308. package/Types/Product/ProjectProductsAnswer.js +35 -2
  309. package/Types/Product/ProjectProductsAnswer.mjs +1 -0
  310. package/Types/Product/ServerProducts.d.mts +65 -0
  311. package/Types/Product/ServerProducts.d.ts +65 -0
  312. package/Types/Product/ServerProducts.js +383 -0
  313. package/Types/Product/ServerProducts.mjs +26 -0
  314. package/Types/Product/ServerProductsAnswer.d.mts +21 -0
  315. package/Types/Product/ServerProductsAnswer.d.ts +21 -0
  316. package/Types/Product/ServerProductsAnswer.js +78 -0
  317. package/Types/Product/ServerProductsAnswer.mjs +5 -0
  318. package/Types/ProductFeedback/ProductFeedback.d.mts +3 -1
  319. package/Types/ProductFeedback/ProductFeedback.d.ts +3 -1
  320. package/Types/ProductFeedback/ProductFeedback.js +8 -0
  321. package/Types/ReaderLanguage.d.mts +1 -0
  322. package/Types/ReaderLanguage.d.ts +1 -0
  323. package/Types/ReaderLanguage.js +13 -1
  324. package/Types/ReaderLanguage.mjs +1 -0
  325. package/Types/Rules/RuleRun.js +2 -2
  326. package/Types/Rum/SessionReplayCustomEvents.d.mts +1 -0
  327. package/Types/Rum/SessionReplayCustomEvents.d.ts +1 -0
  328. package/Types/SampleProject/SampleProject.d.mts +54 -0
  329. package/Types/SampleProject/SampleProject.d.ts +54 -0
  330. package/Types/SampleProject/SampleProject.js +177 -0
  331. package/Types/SampleProject/SampleProject.mjs +22 -0
  332. package/Types/SampleProject/SampleProjectContent.d.mts +127 -0
  333. package/Types/SampleProject/SampleProjectContent.d.ts +127 -0
  334. package/Types/SampleProject/SampleProjectContent.js +397 -0
  335. package/Types/SampleProject/SampleProjectContent.mjs +18 -0
  336. package/Types/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
  337. package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
  338. package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
  339. package/Types/ServerSending/ServerSendingStatus.js +49 -2
  340. package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
  341. package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
  342. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
  343. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
  344. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
  345. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
  346. package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
  347. package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
  348. package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
  349. package/Types/Telemetry/CompatibleIngest.js +123 -0
  350. package/Types/Telemetry/CompatibleIngest.mjs +21 -0
  351. package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
  352. package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
  353. package/Types/Telemetry/TelemetryIngestSurface.js +54 -12
  354. package/Types/TimezoneAlias.d.mts +1 -0
  355. package/Types/TimezoneAlias.d.ts +1 -0
  356. package/Types/TimezoneAlias.js +13 -0
  357. package/Types/Translator.d.mts +1 -0
  358. package/Types/Translator.d.ts +1 -0
  359. package/Types/Translator.js +414 -50
  360. package/Types/Translator.mjs +1 -0
  361. package/Types/UsedBy/UsedBy.d.mts +103 -0
  362. package/Types/UsedBy/UsedBy.d.ts +103 -0
  363. package/Types/UsedBy/UsedBy.js +389 -0
  364. package/Types/UsedBy/UsedBy.mjs +20 -0
  365. package/Types/UsedBy/UsedByServerProducts.d.mts +4 -0
  366. package/Types/UsedBy/UsedByServerProducts.d.ts +4 -0
  367. package/Types/UsedBy/UsedByServerProducts.js +48 -0
  368. package/Types/UsedBy/UsedByServerProducts.mjs +3 -0
  369. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +6 -0
  370. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +6 -0
  371. package/Types/WelcomeChecklist/WelcomeChecklist.js +54 -2
  372. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
  373. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +1 -0
  374. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +1 -0
  375. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +3 -0
  376. package/Types/Workflow/PassedOnFields.js +2 -1
  377. package/Types/Workflow/RunRecord.js +1 -1
  378. package/Types/Workflow/Templates.js +3 -3
  379. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
  380. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
  381. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +28 -1
  382. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +28 -1
  383. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
  384. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
  385. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
  386. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -0
  387. package/Utils/AI/MeaningMatch.d.mts +36 -0
  388. package/Utils/AI/MeaningMatch.d.ts +36 -0
  389. package/Utils/AI/MeaningMatch.js +535 -0
  390. package/Utils/AI/MeaningMatch.mjs +7 -0
  391. package/Utils/ArchivableValues.js +1 -1
  392. package/Utils/AuditLog/AuditLogValues.js +2 -2
  393. package/Utils/Dashboard/ClockWidgetFormat.d.mts +14 -2
  394. package/Utils/Dashboard/ClockWidgetFormat.d.ts +14 -2
  395. package/Utils/Dashboard/ClockWidgetFormat.js +105 -2
  396. package/Utils/Dashboard/DashboardViewConfigSignature.d.mts +3 -0
  397. package/Utils/Dashboard/DashboardViewConfigSignature.d.ts +3 -0
  398. package/Utils/Dashboard/DashboardViewConfigSignature.js +45 -0
  399. package/Utils/Dashboard/DashboardViewConfigSignature.mjs +3 -0
  400. package/Utils/Dashboard/ValueWidgetSeries.d.mts +2 -0
  401. package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
  402. package/Utils/Dashboard/ValueWidgetSeries.js +75 -0
  403. package/Utils/DataSecurity/TextScanner.js +2 -2
  404. package/Utils/DeveloperDocs/AiAssistantExamples.js +4 -4
  405. package/Utils/DeveloperDocs/CliCommands.d.mts +1 -0
  406. package/Utils/DeveloperDocs/CliCommands.d.ts +1 -0
  407. package/Utils/DeveloperDocs/CliCommands.js +2 -1
  408. package/Utils/DeveloperDocs/CliResources.js +2 -1
  409. package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
  410. package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
  411. package/Utils/DeveloperDocs/TerraformSchema.js +3 -1
  412. package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
  413. package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
  414. package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
  415. package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
  416. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
  417. package/Utils/HostAddressUtil.d.mts +1 -0
  418. package/Utils/HostAddressUtil.d.ts +1 -0
  419. package/Utils/HostAddressUtil.js +30 -0
  420. package/Utils/LinearRegExp/LinearRegExp.js +5 -1
  421. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +8 -0
  422. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +8 -0
  423. package/Utils/Markdown/LinkReferenceDefinitions.js +1493 -131
  424. package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
  425. package/Utils/Markdown/MarkdownTableCell.js +2 -1
  426. package/Utils/Markdown/OverLongText.js +523 -5
  427. package/Utils/Markdown/SlowMarkdown.d.mts +14 -0
  428. package/Utils/Markdown/SlowMarkdown.d.ts +14 -0
  429. package/Utils/Markdown/SlowMarkdown.js +595 -11
  430. package/Utils/Markdown/SlowMarkdown.mjs +6 -0
  431. package/Utils/Milliseconds.d.mts +7 -0
  432. package/Utils/Milliseconds.d.ts +7 -0
  433. package/Utils/Milliseconds.js +60 -0
  434. package/Utils/Milliseconds.mjs +4 -0
  435. package/Utils/ModelApiName.d.mts +11 -0
  436. package/Utils/ModelApiName.d.ts +11 -0
  437. package/Utils/ModelApiName.js +72 -0
  438. package/Utils/ModelApiName.mjs +5 -0
  439. package/Utils/Monitor/DeviceMacLearningUtil.d.mts +2 -1
  440. package/Utils/Monitor/DeviceMacLearningUtil.d.ts +2 -1
  441. package/Utils/Monitor/DeviceMacLearningUtil.js +26 -0
  442. package/Utils/Monitor/EndpointAttachmentUtil.d.mts +8 -0
  443. package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
  444. package/Utils/Monitor/EndpointAttachmentUtil.js +97 -22
  445. package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
  446. package/Utils/Monitor/ExternalStatusPageReading.d.mts +3 -0
  447. package/Utils/Monitor/ExternalStatusPageReading.d.ts +3 -0
  448. package/Utils/Monitor/ExternalStatusPageReading.js +35 -1
  449. package/Utils/Monitor/ExternalStatusPageReading.mjs +2 -0
  450. package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
  451. package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
  452. package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
  453. package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
  454. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
  455. package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
  456. package/Utils/Monitor/MonitorRootCauseWording.d.mts +2 -0
  457. package/Utils/Monitor/MonitorRootCauseWording.d.ts +2 -0
  458. package/Utils/Monitor/MonitorRootCauseWording.js +58 -4
  459. package/Utils/Monitor/MonitorTemplateLinkRefusal.d.mts +9 -0
  460. package/Utils/Monitor/MonitorTemplateLinkRefusal.d.ts +9 -0
  461. package/Utils/Monitor/MonitorTemplateLinkRefusal.js +45 -0
  462. package/Utils/Monitor/MonitorTemplateLinkRefusal.mjs +6 -0
  463. package/Utils/Monitor/MonitoringOff.d.mts +2 -0
  464. package/Utils/Monitor/MonitoringOff.d.ts +2 -0
  465. package/Utils/Monitor/MonitoringOff.js +21 -0
  466. package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
  467. package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
  468. package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
  469. package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
  470. package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
  471. package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
  472. package/Utils/Monitor/ProbeFailureReading.d.mts +14 -0
  473. package/Utils/Monitor/ProbeFailureReading.d.ts +14 -0
  474. package/Utils/Monitor/ProbeFailureReading.js +137 -0
  475. package/Utils/Monitor/ProbeFailureReading.mjs +7 -0
  476. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
  477. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
  478. package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
  479. package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -0
  480. package/Utils/OpenStack/OpenStackCheckName.js +2 -1
  481. package/Utils/OpenStack/OpenStackLogScrub.js +1 -1
  482. package/Utils/OpenStack/OpenStackLogs.js +3 -2
  483. package/Utils/OpenStack/OpenStackTraces.js +2 -1
  484. package/Utils/Project/NextNumber.js +1 -1
  485. package/Utils/Project/NotificationChannels.js +5 -5
  486. package/Utils/Project/ProjectBalance.js +2 -2
  487. package/Utils/Project/TwilioAccount.js +2 -2
  488. package/Utils/PromQL/PromQLAst.d.mts +159 -0
  489. package/Utils/PromQL/PromQLAst.d.ts +159 -0
  490. package/Utils/PromQL/PromQLAst.js +118 -0
  491. package/Utils/PromQL/PromQLAst.mjs +12 -0
  492. package/Utils/PromQL/PromQLDuration.d.mts +2 -0
  493. package/Utils/PromQL/PromQLDuration.d.ts +2 -0
  494. package/Utils/PromQL/PromQLDuration.js +78 -0
  495. package/Utils/PromQL/PromQLDuration.mjs +3 -0
  496. package/Utils/PromQL/PromQLEngine.d.mts +15 -0
  497. package/Utils/PromQL/PromQLEngine.d.ts +15 -0
  498. package/Utils/PromQL/PromQLEngine.js +965 -0
  499. package/Utils/PromQL/PromQLEngine.mjs +7 -0
  500. package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
  501. package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
  502. package/Utils/PromQL/PromQLEngineTypes.js +10 -0
  503. package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
  504. package/Utils/PromQL/PromQLError.d.mts +11 -0
  505. package/Utils/PromQL/PromQLError.d.ts +11 -0
  506. package/Utils/PromQL/PromQLError.js +27 -0
  507. package/Utils/PromQL/PromQLError.mjs +3 -0
  508. package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
  509. package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
  510. package/Utils/PromQL/PromQLFunctionEvaluators.js +773 -0
  511. package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
  512. package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
  513. package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
  514. package/Utils/PromQL/PromQLFunctions.js +127 -0
  515. package/Utils/PromQL/PromQLFunctions.mjs +4 -0
  516. package/Utils/PromQL/PromQLLabels.d.mts +11 -0
  517. package/Utils/PromQL/PromQLLabels.d.ts +11 -0
  518. package/Utils/PromQL/PromQLLabels.js +218 -0
  519. package/Utils/PromQL/PromQLLabels.mjs +9 -0
  520. package/Utils/PromQL/PromQLLexer.d.mts +39 -0
  521. package/Utils/PromQL/PromQLLexer.d.ts +39 -0
  522. package/Utils/PromQL/PromQLLexer.js +391 -0
  523. package/Utils/PromQL/PromQLLexer.mjs +3 -0
  524. package/Utils/PromQL/PromQLMath.d.mts +19 -0
  525. package/Utils/PromQL/PromQLMath.d.ts +19 -0
  526. package/Utils/PromQL/PromQLMath.js +200 -0
  527. package/Utils/PromQL/PromQLMath.mjs +9 -0
  528. package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
  529. package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
  530. package/Utils/PromQL/PromQLMetricNames.js +199 -0
  531. package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
  532. package/Utils/PromQL/PromQLParser.d.mts +4 -0
  533. package/Utils/PromQL/PromQLParser.d.ts +4 -0
  534. package/Utils/PromQL/PromQLParser.js +831 -0
  535. package/Utils/PromQL/PromQLParser.mjs +4 -0
  536. package/Utils/PromQL/PromQLRegex.d.mts +9 -0
  537. package/Utils/PromQL/PromQLRegex.d.ts +9 -0
  538. package/Utils/PromQL/PromQLRegex.js +74 -0
  539. package/Utils/PromQL/PromQLRegex.mjs +2 -0
  540. package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
  541. package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
  542. package/Utils/PromQL/PrometheusResponse.js +90 -0
  543. package/Utils/PromQL/PrometheusResponse.mjs +3 -0
  544. package/Utils/Rum/PathInSentence.d.mts +5 -0
  545. package/Utils/Rum/PathInSentence.d.ts +5 -0
  546. package/Utils/Rum/PathInSentence.js +46 -0
  547. package/Utils/Rum/PathInSentence.mjs +6 -0
  548. package/Utils/Rum/UrlScrubber.d.mts +4 -0
  549. package/Utils/Rum/UrlScrubber.d.ts +4 -0
  550. package/Utils/Rum/UrlScrubber.js +143 -3
  551. package/Utils/Rum/UserFlow.d.mts +1 -1
  552. package/Utils/Rum/UserFlow.d.ts +1 -1
  553. package/Utils/Rum/UserFlow.js +180 -25
  554. package/Utils/Rum/UserFlow.mjs +1 -1
  555. package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
  556. package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
  557. package/Utils/Runbook/RunbookStepsSignature.js +30 -0
  558. package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
  559. package/Utils/ScheduledMaintenanceStart.d.mts +3 -0
  560. package/Utils/ScheduledMaintenanceStart.d.ts +3 -0
  561. package/Utils/ScheduledMaintenanceStart.js +9 -0
  562. package/Utils/Schema/ModelSchema.js +10 -1
  563. package/Utils/Schema/TypeSchemas.js +6 -0
  564. package/Utils/Slo/SloDuration.d.mts +5 -2
  565. package/Utils/Slo/SloDuration.d.ts +5 -2
  566. package/Utils/Slo/SloDuration.js +11 -6
  567. package/Utils/Slo/SloHealth.js +1 -1
  568. package/Utils/StateOrder.js +1 -4
  569. package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
  570. package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
  571. package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
  572. package/Utils/Telemetry/HeartbeatAvailability.js +118 -26
  573. package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
  574. package/Utils/Uptime/UptimeMaintenanceUtil.js +2 -1
  575. package/Utils/ValueFormatter.d.mts +8 -6
  576. package/Utils/ValueFormatter.d.ts +8 -6
  577. package/Utils/ValueFormatter.js +145 -0
  578. package/package.json +1 -1
@@ -0,0 +1,397 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SAMPLE_DASHBOARD = exports.SAMPLE_SLO = exports.SAMPLE_SERVICE = exports.SAMPLE_MAINTENANCE = exports.SAMPLE_ON_CALL = exports.SAMPLE_ALERTS = exports.SampleAlertSeverity = exports.SampleAlertState = exports.SAMPLE_INCIDENTS = exports.SampleIncidentSeverity = exports.SampleIncidentState = exports.SAMPLE_STATUS_PAGE = exports.SAMPLE_STATUS_PAGE_GROUPS = exports.SAMPLE_MONITORS = exports.SampleMonitorStatus = exports.SAMPLE_MONITOR_HISTORY_DAYS = exports.MINUTES_IN_A_DAY = void 0;
7
+ const MonitorType_1 = __importDefault(require("../Monitor/MonitorType"));
8
+ /*
9
+ * WHAT A SAMPLE PROJECT HOLDS (issue #6808): "Acme Shop", a small online
10
+ * shop, with one story told through every Essentials product and the
11
+ * telemetry of one service.
12
+ *
13
+ * Ten minutes ago its checkout got slow. A monitor went Degraded, an
14
+ * incident was declared, the on-call policy paged the engineer on call,
15
+ * Maya, who acknowledged it four minutes later and is looking into it;
16
+ * the status page says so to customers. The service behind checkout shows
17
+ * it too: its latency and errors climb in its metrics, its traces and its
18
+ * logs. Two earlier incidents were resolved, one with a postmortem; a few
19
+ * alerts fired; a database upgrade is scheduled; an SLO counts what the
20
+ * slow checkout costs.
21
+ *
22
+ * Every moment is a number of minutes before the sample is made, so it
23
+ * always reads as now, whenever it is made (SampleProjectSeeder adds them
24
+ * to the moment it runs). Pure: the server and the tests read it.
25
+ */
26
+ exports.MINUTES_IN_A_DAY = 24 * 60;
27
+ // How far back the monitors' history reaches.
28
+ exports.SAMPLE_MONITOR_HISTORY_DAYS = 30;
29
+ var SampleMonitorStatus;
30
+ (function (SampleMonitorStatus) {
31
+ SampleMonitorStatus["Operational"] = "Operational";
32
+ SampleMonitorStatus["Degraded"] = "Degraded";
33
+ SampleMonitorStatus["Offline"] = "Offline";
34
+ })(SampleMonitorStatus || (exports.SampleMonitorStatus = SampleMonitorStatus = {}));
35
+ exports.SAMPLE_MONITORS = [
36
+ {
37
+ key: "storefront",
38
+ name: "Storefront",
39
+ description: "The shop's home page.",
40
+ monitorType: MonitorType_1.default.Website,
41
+ destination: "https://shop.example.com",
42
+ port: null,
43
+ outages: [],
44
+ statusPageGroup: "Website",
45
+ },
46
+ {
47
+ key: "checkout",
48
+ name: "Checkout",
49
+ description: "The page customers pay on.",
50
+ monitorType: MonitorType_1.default.Website,
51
+ destination: "https://shop.example.com/checkout",
52
+ port: null,
53
+ outages: [
54
+ {
55
+ status: SampleMonitorStatus.Offline,
56
+ startsMinutesAgo: 3 * exports.MINUTES_IN_A_DAY + 2,
57
+ endsMinutesAgo: 3 * exports.MINUTES_IN_A_DAY - 40,
58
+ rootCause: "Checkout answered 502 Bad Gateway after release 2.14 went out.",
59
+ },
60
+ {
61
+ status: SampleMonitorStatus.Degraded,
62
+ startsMinutesAgo: 27,
63
+ endsMinutesAgo: null,
64
+ rootCause: "Checkout took longer than 2 seconds to answer.",
65
+ },
66
+ ],
67
+ statusPageGroup: "Website",
68
+ },
69
+ {
70
+ key: "product-images",
71
+ name: "Product Images",
72
+ description: "The CDN that serves product photos.",
73
+ monitorType: MonitorType_1.default.Website,
74
+ destination: "https://images.shop.example.com",
75
+ port: null,
76
+ outages: [],
77
+ statusPageGroup: "Website",
78
+ },
79
+ {
80
+ key: "payments-api",
81
+ name: "Payments API",
82
+ description: "Takes card payments for checkout.",
83
+ monitorType: MonitorType_1.default.API,
84
+ destination: "https://api.shop.example.com/payments/health",
85
+ port: null,
86
+ outages: [
87
+ {
88
+ status: SampleMonitorStatus.Degraded,
89
+ startsMinutesAgo: 9 * exports.MINUTES_IN_A_DAY + 4,
90
+ endsMinutesAgo: 9 * exports.MINUTES_IN_A_DAY - 56,
91
+ rootCause: "The card processor took more than 5 seconds to answer.",
92
+ },
93
+ ],
94
+ statusPageGroup: "API",
95
+ },
96
+ {
97
+ key: "search-api",
98
+ name: "Search API",
99
+ description: "Answers product searches.",
100
+ monitorType: MonitorType_1.default.API,
101
+ destination: "https://api.shop.example.com/search/health",
102
+ port: null,
103
+ outages: [],
104
+ statusPageGroup: "API",
105
+ },
106
+ {
107
+ key: "database",
108
+ name: "Database Host",
109
+ description: "The primary PostgreSQL server.",
110
+ monitorType: MonitorType_1.default.Ping,
111
+ destination: "db-1.shop.example.com",
112
+ port: null,
113
+ outages: [],
114
+ statusPageGroup: null,
115
+ },
116
+ {
117
+ key: "cache",
118
+ name: "Redis Cache",
119
+ description: "Sessions and carts.",
120
+ monitorType: MonitorType_1.default.Port,
121
+ destination: "cache-1.shop.example.com",
122
+ port: 6379,
123
+ outages: [],
124
+ statusPageGroup: null,
125
+ },
126
+ {
127
+ key: "certificate",
128
+ name: "Shop Certificate",
129
+ description: "The TLS certificate of shop.example.com.",
130
+ monitorType: MonitorType_1.default.SSLCertificate,
131
+ destination: "https://shop.example.com",
132
+ port: null,
133
+ outages: [],
134
+ statusPageGroup: null,
135
+ },
136
+ {
137
+ key: "dns",
138
+ name: "Shop DNS",
139
+ description: "Resolves shop.example.com.",
140
+ monitorType: MonitorType_1.default.DNS,
141
+ destination: "shop.example.com",
142
+ port: null,
143
+ outages: [],
144
+ statusPageGroup: null,
145
+ },
146
+ {
147
+ key: "nightly-backup",
148
+ name: "Nightly Backup",
149
+ description: "The backup job reports here when it finishes.",
150
+ monitorType: MonitorType_1.default.IncomingRequest,
151
+ destination: null,
152
+ port: null,
153
+ outages: [],
154
+ statusPageGroup: null,
155
+ },
156
+ ];
157
+ // The groups of the sample's status page, in order.
158
+ exports.SAMPLE_STATUS_PAGE_GROUPS = [
159
+ "Website",
160
+ "API",
161
+ ];
162
+ exports.SAMPLE_STATUS_PAGE = {
163
+ name: "Acme Shop Status",
164
+ description: "What customers see: the shop, its checkout and its APIs.",
165
+ pageTitle: "Acme Shop Status",
166
+ pageDescription: "Live status of the Acme Shop website and APIs.",
167
+ };
168
+ var SampleIncidentState;
169
+ (function (SampleIncidentState) {
170
+ SampleIncidentState["Identified"] = "Identified";
171
+ SampleIncidentState["Acknowledged"] = "Acknowledged";
172
+ SampleIncidentState["Resolved"] = "Resolved";
173
+ })(SampleIncidentState || (exports.SampleIncidentState = SampleIncidentState = {}));
174
+ var SampleIncidentSeverity;
175
+ (function (SampleIncidentSeverity) {
176
+ SampleIncidentSeverity["Critical"] = "Critical Incident";
177
+ SampleIncidentSeverity["Major"] = "Major Incident";
178
+ SampleIncidentSeverity["Minor"] = "Minor Incident";
179
+ })(SampleIncidentSeverity || (exports.SampleIncidentSeverity = SampleIncidentSeverity = {}));
180
+ exports.SAMPLE_INCIDENTS = [
181
+ {
182
+ key: "payments-timeouts",
183
+ title: "Payments API timing out",
184
+ description: "Card payments took more than 5 seconds, and some checkouts failed.",
185
+ severity: SampleIncidentSeverity.Major,
186
+ monitorKeys: ["payments-api"],
187
+ declaredMinutesAgo: 9 * exports.MINUTES_IN_A_DAY + 2,
188
+ states: [
189
+ {
190
+ state: SampleIncidentState.Identified,
191
+ minutesAgo: 9 * exports.MINUTES_IN_A_DAY + 2,
192
+ },
193
+ {
194
+ state: SampleIncidentState.Acknowledged,
195
+ minutesAgo: 9 * exports.MINUTES_IN_A_DAY - 4,
196
+ },
197
+ {
198
+ state: SampleIncidentState.Resolved,
199
+ minutesAgo: 9 * exports.MINUTES_IN_A_DAY - 56,
200
+ },
201
+ ],
202
+ internalNotes: [
203
+ {
204
+ minutesAgo: 9 * exports.MINUTES_IN_A_DAY - 10,
205
+ authorHandle: "sam.okafor",
206
+ note: "The card processor's status page shows degraded performance in our region. Raising our timeout will not help; switching traffic to the backup processor.",
207
+ },
208
+ ],
209
+ publicNotes: [
210
+ {
211
+ minutesAgo: 9 * exports.MINUTES_IN_A_DAY - 8,
212
+ authorHandle: "sam.okafor",
213
+ note: "Some card payments are slow or failing. We are moving payments to our backup processor.",
214
+ },
215
+ {
216
+ minutesAgo: 9 * exports.MINUTES_IN_A_DAY - 56,
217
+ authorHandle: "sam.okafor",
218
+ note: "Payments are working normally again.",
219
+ },
220
+ ],
221
+ rootCause: "The card processor was slow in our region, and checkout waited for it with no fallback.",
222
+ postmortemNote: [
223
+ "## Summary",
224
+ "",
225
+ "For 58 minutes, card payments took more than 5 seconds and about 4% of checkouts failed.",
226
+ "",
227
+ "## What happened",
228
+ "",
229
+ "- The card processor slowed down in our region.",
230
+ "- The Payments API monitor went Degraded and paged the on-call engineer.",
231
+ "- We switched payments to the backup processor, and they recovered.",
232
+ "",
233
+ "## What we will change",
234
+ "",
235
+ "- Fall back to the backup processor automatically after 2 seconds.",
236
+ "- Alert on payment latency, not only on the health check.",
237
+ ].join("\n"),
238
+ isPagedByOnCall: false,
239
+ },
240
+ {
241
+ key: "checkout-release-errors",
242
+ title: "Checkout errors after release 2.14",
243
+ description: "Checkout answered 502 Bad Gateway for every customer after release 2.14.",
244
+ severity: SampleIncidentSeverity.Critical,
245
+ monitorKeys: ["checkout"],
246
+ declaredMinutesAgo: 3 * exports.MINUTES_IN_A_DAY + 1,
247
+ states: [
248
+ {
249
+ state: SampleIncidentState.Identified,
250
+ minutesAgo: 3 * exports.MINUTES_IN_A_DAY + 1,
251
+ },
252
+ {
253
+ state: SampleIncidentState.Acknowledged,
254
+ minutesAgo: 3 * exports.MINUTES_IN_A_DAY - 2,
255
+ },
256
+ {
257
+ state: SampleIncidentState.Resolved,
258
+ minutesAgo: 3 * exports.MINUTES_IN_A_DAY - 40,
259
+ },
260
+ ],
261
+ internalNotes: [
262
+ {
263
+ minutesAgo: 3 * exports.MINUTES_IN_A_DAY - 12,
264
+ authorHandle: "lena.fischer",
265
+ note: "Release 2.14 changed the checkout service's port. Rolling back.",
266
+ },
267
+ ],
268
+ publicNotes: [
269
+ {
270
+ minutesAgo: 3 * exports.MINUTES_IN_A_DAY - 5,
271
+ authorHandle: "lena.fischer",
272
+ note: "Checkout is failing for every customer. We have found the cause and are rolling back.",
273
+ },
274
+ ],
275
+ rootCause: "Release 2.14 moved checkout to a port the load balancer did not know.",
276
+ postmortemNote: null,
277
+ isPagedByOnCall: false,
278
+ },
279
+ {
280
+ key: "checkout-slow",
281
+ title: "Checkout is slow for some customers",
282
+ description: "Checkout takes more than 2 seconds for about one customer in five. Payments still go through.",
283
+ severity: SampleIncidentSeverity.Major,
284
+ monitorKeys: ["checkout"],
285
+ declaredMinutesAgo: 25,
286
+ states: [
287
+ { state: SampleIncidentState.Identified, minutesAgo: 25 },
288
+ { state: SampleIncidentState.Acknowledged, minutesAgo: 21 },
289
+ ],
290
+ internalNotes: [
291
+ {
292
+ minutesAgo: 18,
293
+ authorHandle: "maya.chen",
294
+ note: "checkout-api's p95 latency went from 300 ms to 1.8 s at the same time as a spike in database connections. Looking at the slow query log.",
295
+ },
296
+ {
297
+ minutesAgo: 9,
298
+ authorHandle: "maya.chen",
299
+ note: "Found it: the new discount query scans the whole orders table. Adding an index now.",
300
+ },
301
+ ],
302
+ publicNotes: [
303
+ {
304
+ minutesAgo: 15,
305
+ authorHandle: "maya.chen",
306
+ note: "Checkout is slow for some customers. Payments still go through, and we are working on a fix.",
307
+ },
308
+ ],
309
+ rootCause: null,
310
+ postmortemNote: null,
311
+ isPagedByOnCall: true,
312
+ },
313
+ ];
314
+ var SampleAlertState;
315
+ (function (SampleAlertState) {
316
+ SampleAlertState["Identified"] = "Identified";
317
+ SampleAlertState["Acknowledged"] = "Acknowledged";
318
+ SampleAlertState["Resolved"] = "Resolved";
319
+ })(SampleAlertState || (exports.SampleAlertState = SampleAlertState = {}));
320
+ var SampleAlertSeverity;
321
+ (function (SampleAlertSeverity) {
322
+ SampleAlertSeverity["High"] = "High";
323
+ SampleAlertSeverity["Low"] = "Low";
324
+ })(SampleAlertSeverity || (exports.SampleAlertSeverity = SampleAlertSeverity = {}));
325
+ exports.SAMPLE_ALERTS = [
326
+ {
327
+ key: "checkout-error-rate",
328
+ title: "Error rate above 2% on checkout-api",
329
+ description: "checkout-api answered 5xx to more than 2% of requests for 5 minutes.",
330
+ severity: SampleAlertSeverity.High,
331
+ monitorKey: "checkout",
332
+ states: [
333
+ { state: SampleAlertState.Identified, minutesAgo: 28 },
334
+ { state: SampleAlertState.Acknowledged, minutesAgo: 22 },
335
+ ],
336
+ },
337
+ {
338
+ key: "checkout-latency",
339
+ title: "p95 latency above 800 ms on checkout-api",
340
+ description: "checkout-api's p95 latency stayed above 800 ms for 5 minutes.",
341
+ severity: SampleAlertSeverity.High,
342
+ monitorKey: "checkout",
343
+ states: [{ state: SampleAlertState.Identified, minutesAgo: 26 }],
344
+ },
345
+ {
346
+ key: "database-disk",
347
+ title: "Disk space below 15% on db-1",
348
+ description: "The database host's data disk had less than 15% free.",
349
+ severity: SampleAlertSeverity.Low,
350
+ monitorKey: "database",
351
+ states: [
352
+ { state: SampleAlertState.Identified, minutesAgo: 2 * exports.MINUTES_IN_A_DAY },
353
+ {
354
+ state: SampleAlertState.Resolved,
355
+ minutesAgo: 2 * exports.MINUTES_IN_A_DAY - 35,
356
+ },
357
+ ],
358
+ },
359
+ ];
360
+ exports.SAMPLE_ON_CALL = {
361
+ policyName: "Acme Shop Production",
362
+ policyDescription: "Pages whoever is on call for the shop, then the engineering manager.",
363
+ scheduleName: "Shop Engineers",
364
+ scheduleDescription: "A weekly rotation of the shop's engineers.",
365
+ layerName: "Weekly Rotation",
366
+ // The engineers of the rotation, in turn: the first is on call this week.
367
+ rotationHandles: ["maya.chen", "sam.okafor", "lena.fischer"],
368
+ firstLevelName: "Engineer on call",
369
+ secondLevelName: "Engineering manager",
370
+ secondLevelHandle: "diego.alvarez",
371
+ escalateAfterInMinutes: 10,
372
+ // How long the engineer on call took to acknowledge the open incident.
373
+ acknowledgedAfterMinutes: 4,
374
+ };
375
+ exports.SAMPLE_MAINTENANCE = {
376
+ title: "Database upgrade to PostgreSQL 17",
377
+ description: "Checkout may be slow for up to 15 minutes while the database fails over.",
378
+ // From 3 days after the sample is made, for an hour.
379
+ startsInMinutes: 3 * exports.MINUTES_IN_A_DAY,
380
+ durationInMinutes: 60,
381
+ monitorKeys: ["checkout", "database"],
382
+ };
383
+ exports.SAMPLE_SERVICE = {
384
+ name: "checkout-api",
385
+ description: "Takes the cart, prices it and asks the Payments API to charge it.",
386
+ };
387
+ exports.SAMPLE_SLO = {
388
+ name: "Checkout availability",
389
+ description: "Checkout is up 99.9% of the time, over 30 days.",
390
+ monitorKey: "checkout",
391
+ targetPercentage: 99.9,
392
+ windowDays: 30,
393
+ };
394
+ exports.SAMPLE_DASHBOARD = {
395
+ name: "Checkout Service",
396
+ description: "Request rate, latency, errors and resources of checkout-api.",
397
+ };
@@ -0,0 +1,18 @@
1
+ import commonJsModule from "./SampleProjectContent.js";
2
+ export const MINUTES_IN_A_DAY = commonJsModule.MINUTES_IN_A_DAY;
3
+ export const SAMPLE_ALERTS = commonJsModule.SAMPLE_ALERTS;
4
+ export const SAMPLE_DASHBOARD = commonJsModule.SAMPLE_DASHBOARD;
5
+ export const SAMPLE_INCIDENTS = commonJsModule.SAMPLE_INCIDENTS;
6
+ export const SAMPLE_MAINTENANCE = commonJsModule.SAMPLE_MAINTENANCE;
7
+ export const SAMPLE_MONITORS = commonJsModule.SAMPLE_MONITORS;
8
+ export const SAMPLE_MONITOR_HISTORY_DAYS = commonJsModule.SAMPLE_MONITOR_HISTORY_DAYS;
9
+ export const SAMPLE_ON_CALL = commonJsModule.SAMPLE_ON_CALL;
10
+ export const SAMPLE_SERVICE = commonJsModule.SAMPLE_SERVICE;
11
+ export const SAMPLE_SLO = commonJsModule.SAMPLE_SLO;
12
+ export const SAMPLE_STATUS_PAGE = commonJsModule.SAMPLE_STATUS_PAGE;
13
+ export const SAMPLE_STATUS_PAGE_GROUPS = commonJsModule.SAMPLE_STATUS_PAGE_GROUPS;
14
+ export const SampleAlertSeverity = commonJsModule.SampleAlertSeverity;
15
+ export const SampleAlertState = commonJsModule.SampleAlertState;
16
+ export const SampleIncidentSeverity = commonJsModule.SampleIncidentSeverity;
17
+ export const SampleIncidentState = commonJsModule.SampleIncidentState;
18
+ export const SampleMonitorStatus = commonJsModule.SampleMonitorStatus;
@@ -145,7 +145,7 @@ class MaintenanceCalendar {
145
145
  static getCalendarDescription(data) {
146
146
  const name = MaintenanceCalendar.cleanLine(data.name);
147
147
  const intro = data.audience === MaintenanceCalendarAudience.Team
148
- ? `Every scheduled maintenance event in ${name || "this project"}.`
148
+ ? `Every maintenance event in ${name || "this project"}.`
149
149
  : `Scheduled maintenance on ${name || "this status page"}.`;
150
150
  const notes = (data.notes || [])
151
151
  .map((note) => {
@@ -16,8 +16,13 @@ export interface ServerSendingHealthEntry {
16
16
  lastFailedAt: string | null;
17
17
  failingSince: string | null;
18
18
  lastFailure: string | null;
19
+ settingsFingerprint?: string | undefined;
19
20
  }
20
21
  export type ServerSendingHealth = Partial<Record<ServerSendingChannel, ServerSendingHealthEntry>>;
22
+ export interface ServerSendingSettingsFingerprints {
23
+ current: string;
24
+ unmarked: string;
25
+ }
21
26
  export interface ServerChannelStatus {
22
27
  channel: ServerSendingChannel;
23
28
  state: ServerSendingState;
@@ -41,6 +46,8 @@ export default class ServerSendingStatusUtil {
41
46
  static readEntry(value: unknown): ServerSendingHealthEntry;
42
47
  static readHealth(value: unknown): ServerSendingHealth;
43
48
  static getEntry(health: ServerSendingHealth, channel: ServerSendingChannel): ServerSendingHealthEntry;
49
+ static getCurrentEntry(health: ServerSendingHealth, channel: ServerSendingChannel, fingerprints: ServerSendingSettingsFingerprints | null): ServerSendingHealthEntry;
50
+ static withSettingsFingerprint(entry: ServerSendingHealthEntry, fingerprints: ServerSendingSettingsFingerprints | null): ServerSendingHealthEntry;
44
51
  static getState(data: {
45
52
  isSetUp: boolean;
46
53
  entry: ServerSendingHealthEntry;
@@ -16,8 +16,13 @@ export interface ServerSendingHealthEntry {
16
16
  lastFailedAt: string | null;
17
17
  failingSince: string | null;
18
18
  lastFailure: string | null;
19
+ settingsFingerprint?: string | undefined;
19
20
  }
20
21
  export type ServerSendingHealth = Partial<Record<ServerSendingChannel, ServerSendingHealthEntry>>;
22
+ export interface ServerSendingSettingsFingerprints {
23
+ current: string;
24
+ unmarked: string;
25
+ }
21
26
  export interface ServerChannelStatus {
22
27
  channel: ServerSendingChannel;
23
28
  state: ServerSendingState;
@@ -41,6 +46,8 @@ export default class ServerSendingStatusUtil {
41
46
  static readEntry(value: unknown): ServerSendingHealthEntry;
42
47
  static readHealth(value: unknown): ServerSendingHealth;
43
48
  static getEntry(health: ServerSendingHealth, channel: ServerSendingChannel): ServerSendingHealthEntry;
49
+ static getCurrentEntry(health: ServerSendingHealth, channel: ServerSendingChannel, fingerprints: ServerSendingSettingsFingerprints | null): ServerSendingHealthEntry;
50
+ static withSettingsFingerprint(entry: ServerSendingHealthEntry, fingerprints: ServerSendingSettingsFingerprints | null): ServerSendingHealthEntry;
44
51
  static getState(data: {
45
52
  isSetUp: boolean;
46
53
  entry: ServerSendingHealthEntry;
@@ -22,7 +22,10 @@
22
22
  * from its settings - the same rules the Notification service sends by - and
23
23
  * from what the server remembers of its own last sends (GlobalConfig.
24
24
  * serverSendingHealth, written by the senders). Saving a channel's settings
25
- * starts it again at untested.
25
+ * starts it again at untested, and so do the settings of SMS, calls or
26
+ * email changing without a save, when the GLOBAL_TWILIO_ or GLOBAL_EMAIL_
27
+ * environment variables set them: what was learned with the settings
28
+ * before is not read as these ones' (settingsFingerprint).
26
29
  *
27
30
  * Who reads what:
28
31
  *
@@ -95,6 +98,17 @@ const readText = (value) => {
95
98
  const text = value.trim();
96
99
  return text ? text.slice(0, exports.MAX_SERVER_SENDING_FAILURE_LENGTH) : null;
97
100
  };
101
+ // The longest fingerprint kept: the server writes 64 hex characters.
102
+ const MAX_SETTINGS_FINGERPRINT_LENGTH = 128;
103
+ const readFingerprint = (value) => {
104
+ if (typeof value !== "string") {
105
+ return undefined;
106
+ }
107
+ const fingerprint = value.trim();
108
+ return fingerprint && fingerprint.length <= MAX_SETTINGS_FINGERPRINT_LENGTH
109
+ ? fingerprint
110
+ : undefined;
111
+ };
98
112
  const readCount = (value) => {
99
113
  return typeof value === "number" && Number.isFinite(value) && value > 0
100
114
  ? Math.floor(value)
@@ -109,12 +123,17 @@ class ServerSendingStatusUtil {
109
123
  if (!isObject(value)) {
110
124
  return Object.assign({}, EMPTY_ENTRY);
111
125
  }
112
- return {
126
+ const entry = {
113
127
  lastSucceededAt: readDate(value["lastSucceededAt"]),
114
128
  lastFailedAt: readDate(value["lastFailedAt"]),
115
129
  failingSince: readDate(value["failingSince"]),
116
130
  lastFailure: readText(value["lastFailure"]),
117
131
  };
132
+ const settingsFingerprint = readFingerprint(value["settingsFingerprint"]);
133
+ if (settingsFingerprint) {
134
+ entry.settingsFingerprint = settingsFingerprint;
135
+ }
136
+ return entry;
118
137
  }
119
138
  /*
120
139
  * What the server remembers of every channel, read from the stored
@@ -135,6 +154,34 @@ class ServerSendingStatusUtil {
135
154
  static getEntry(health, channel) {
136
155
  return health[channel] ? Object.assign({}, health[channel]) : Object.assign({}, EMPTY_ENTRY);
137
156
  }
157
+ /*
158
+ * A channel's entry as it describes the settings the channel sends with
159
+ * now: one learned with other settings says nothing about these, and is
160
+ * read as nothing remembered (untested). An entry without a fingerprint
161
+ * counts as learned with `unmarked`. With no fingerprints - a channel
162
+ * whose settings change only when they are saved, which forgets the
163
+ * entry - every entry is current.
164
+ */
165
+ static getCurrentEntry(health, channel, fingerprints) {
166
+ const entry = ServerSendingStatusUtil.getEntry(health, channel);
167
+ if (!fingerprints) {
168
+ return entry;
169
+ }
170
+ const learnedWith = entry.settingsFingerprint || fingerprints.unmarked;
171
+ return learnedWith === fingerprints.current ? entry : Object.assign({}, EMPTY_ENTRY);
172
+ }
173
+ /*
174
+ * The entry, marked with the settings it is learned with now: left
175
+ * unmarked for a channel with no fingerprints.
176
+ */
177
+ static withSettingsFingerprint(entry, fingerprints) {
178
+ const marked = Object.assign({}, entry);
179
+ delete marked.settingsFingerprint;
180
+ if (fingerprints) {
181
+ marked.settingsFingerprint = fingerprints.current;
182
+ }
183
+ return marked;
184
+ }
138
185
  /*
139
186
  * Where a channel stands: not set up whatever it remembers, then failing
140
187
  * while its sends fail, working once one went out, and untested before.
@@ -48,7 +48,7 @@ const ServerSendingStatus_1 = __importStar(require("../ServerSending/ServerSendi
48
48
  * - required: email, HTTPS, who can sign up;
49
49
  * - recommended: SMS and calls, a probe that reports, backups, update
50
50
  * checks;
51
- * - optional: browser push, an AI provider, single sign-on.
51
+ * - optional: browser push, an LLM provider, single sign-on.
52
52
  *
53
53
  * Whether each is done is worked out from the server's real state on every
54
54
  * read (Server/Utils/ServerSetup/ServerSetupChecklist reads the facts and
@@ -207,7 +207,7 @@ exports.SERVER_SETUP_CHECKS = [
207
207
  {
208
208
  id: ServerSetupCheckId.AiProvider,
209
209
  tier: ServerSetupCheckTier.Optional,
210
- title: (0, Translator_1.translationKey)("AI provider"),
210
+ title: (0, Translator_1.translationKey)("LLM provider"),
211
211
  adminPath: exports.SERVER_SETUP_ADMIN_PATHS.llmProviders,
212
212
  choice: null,
213
213
  tests: [],
@@ -270,7 +270,7 @@ exports.SERVER_SETUP_STATUS_WORDS = {
270
270
  [ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Set up: people can get alerts as browser notifications."),
271
271
  },
272
272
  [ServerSetupCheckId.AiProvider]: {
273
- [ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up: add an AI provider so projects can use OneUptime AI."),
273
+ [ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up: add an LLM provider so projects can use OneUptime AI."),
274
274
  [ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Set up: projects can use OneUptime AI."),
275
275
  },
276
276
  [ServerSetupCheckId.SingleSignOn]: {
@@ -80,7 +80,7 @@ exports.ROWS_KEPT_ON_DELETE_BY_QUERY = {
80
80
  ScheduledMaintenanceStateTimeline: {
81
81
  parentColumn: "scheduledMaintenanceId",
82
82
  keepsHistoryInEffect: false,
83
- whatStays: "each scheduled maintenance event's current state",
83
+ whatStays: "each maintenance event's current state",
84
84
  why: "so status pages always show it",
85
85
  oneRowByIdCanGo: true,
86
86
  },
@@ -0,0 +1,8 @@
1
+ export type NewIncidentNotifyDefaultColumn = "notifyStatusPageSubscribersOfNewIncidentsByDefault";
2
+ export declare const NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN: NewIncidentNotifyDefaultColumn;
3
+ export interface NewIncidentNotifyDefaultSetting {
4
+ notifyStatusPageSubscribersOfNewIncidentsByDefault?: boolean | null | undefined;
5
+ }
6
+ export default class NewIncidentSubscriberNotificationDefault {
7
+ static isTickedByDefault(project: NewIncidentNotifyDefaultSetting | null | undefined): boolean;
8
+ }
@@ -0,0 +1,8 @@
1
+ export type NewIncidentNotifyDefaultColumn = "notifyStatusPageSubscribersOfNewIncidentsByDefault";
2
+ export declare const NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN: NewIncidentNotifyDefaultColumn;
3
+ export interface NewIncidentNotifyDefaultSetting {
4
+ notifyStatusPageSubscribersOfNewIncidentsByDefault?: boolean | null | undefined;
5
+ }
6
+ export default class NewIncidentSubscriberNotificationDefault {
7
+ static isTickedByDefault(project: NewIncidentNotifyDefaultSetting | null | undefined): boolean;
8
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /*
3
+ * WHETHER "NOTIFY STATUS PAGE SUBSCRIBERS" STARTS TICKED WHEN SOMEONE
4
+ * DECLARES AN INCIDENT (#7606).
5
+ *
6
+ * Declare New Incident asks whether status page subscribers are told about
7
+ * the new incident (the incident's
8
+ * shouldStatusPageSubscribersBeNotifiedOnIncidentCreated). The box started
9
+ * ticked in every project, so a team that works on an incident before anyone
10
+ * outside hears of it had to remember to untick it every time - and one
11
+ * forgotten box emailed every subscriber.
12
+ *
13
+ * Each project now says how the box starts:
14
+ * Project.notifyStatusPageSubscribersOfNewIncidentsByDefault, the switch
15
+ * "Notify status page subscribers by default" on Incidents -> Settings ->
16
+ * Subscriber Notifications. It is on for every project, existing and new, so
17
+ * nothing changes until a project owner or admin turns it off. Off, the box
18
+ * starts unticked, and subscribers hear about a new incident only when the
19
+ * person declaring it ticks the box.
20
+ *
21
+ * Only where the box starts moves. What the person declaring leaves it at is
22
+ * what the incident records, and everything after reads that: an incident
23
+ * declared without notifying stays quiet
24
+ * (PublicNoteSubscriberNotificationDefault).
25
+ *
26
+ * People also declare incidents where no box asks: Slack's and Microsoft
27
+ * Teams' Declare Incident forms, and OneUptime AI when someone asks it to.
28
+ * Those follow the switch too, as the box would have started
29
+ * (Server/Utils/StatusPage/NewIncidentSubscriberNotificationDefaultReader):
30
+ * off, they are declared without notifying. Incidents nobody declares by
31
+ * hand - by monitors, the API, Terraform, workflows or a public form - keep
32
+ * their own value, which notifies unless they say otherwise.
33
+ *
34
+ * Shared by the dashboard, which starts the box from it, the server, which
35
+ * declares the chat and AI incidents by it, and their tests.
36
+ */
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN = void 0;
39
+ exports.NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN = "notifyStatusPageSubscribersOfNewIncidentsByDefault";
40
+ class NewIncidentSubscriberNotificationDefault {
41
+ /*
42
+ * Only an explicit "off" starts the box unticked. A project that could not
43
+ * be read, or that holds no value, starts it ticked, as it always started:
44
+ * when the form cannot tell, it keeps what every project has always had.
45
+ */
46
+ static isTickedByDefault(project) {
47
+ return (project === null || project === void 0 ? void 0 : project[exports.NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN]) !== false;
48
+ }
49
+ }
50
+ exports.default = NewIncidentSubscriberNotificationDefault;
@@ -0,0 +1,3 @@
1
+ import commonJsModule from "./NewIncidentSubscriberNotificationDefault.js";
2
+ export default commonJsModule.default;
3
+ export const NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN = commonJsModule.NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN;