@oneuptime/common 14.0.110 → 14.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/Models/DatabaseModels/AIRunRecording.d.mts +12 -0
  2. package/Models/DatabaseModels/AIRunRecording.d.ts +12 -0
  3. package/Models/DatabaseModels/AIRunRecording.js +181 -0
  4. package/Models/DatabaseModels/AIRunRecording.mjs +2 -0
  5. package/Models/DatabaseModels/Alert.js +18 -2
  6. package/Models/DatabaseModels/DataStore.js +9 -0
  7. package/Models/DatabaseModels/EmailLog.js +2 -2
  8. package/Models/DatabaseModels/Form.js +3 -3
  9. package/Models/DatabaseModels/FormSubmission.js +4 -4
  10. package/Models/DatabaseModels/GlobalConfig.js +46 -45
  11. package/Models/DatabaseModels/Incident.js +18 -2
  12. package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
  13. package/Models/DatabaseModels/Index.js +4 -0
  14. package/Models/DatabaseModels/InventoryItem.js +11 -0
  15. package/Models/DatabaseModels/Monitor.js +51 -17
  16. package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
  17. package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
  18. package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
  19. package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
  20. package/Models/DatabaseModels/MonitorProbe.js +22 -5
  21. package/Models/DatabaseModels/NetworkDevice.js +23 -7
  22. package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
  23. package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
  24. package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
  25. package/Models/DatabaseModels/NetworkInterface.js +5 -5
  26. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +19 -5
  27. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
  28. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
  29. package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +2 -0
  30. package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
  31. package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
  32. package/Models/DatabaseModels/Project.d.mts +1 -0
  33. package/Models/DatabaseModels/Project.d.ts +1 -0
  34. package/Models/DatabaseModels/Project.js +46 -3
  35. package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
  36. package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
  37. package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
  38. package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
  39. package/Models/DatabaseModels/RunbookExecution.js +2 -2
  40. package/Models/DatabaseModels/RunbookRule.js +6 -6
  41. package/Models/DatabaseModels/ScheduledMaintenance.js +3 -3
  42. package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
  43. package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
  44. package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
  45. package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +1 -1
  46. package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
  47. package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
  48. package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
  49. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +3 -3
  50. package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
  51. package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +3 -3
  52. package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
  53. package/Models/DatabaseModels/TeamMember.js +10 -1
  54. package/Models/DatabaseModels/WorkspaceNotificationRule.js +36 -1
  55. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  56. package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
  57. package/Server/Services/DatabaseService.d.mts +4 -1
  58. package/Server/Services/DatabaseService.d.ts +4 -1
  59. package/Server/Types/Database/CountBy.d.mts +1 -0
  60. package/Server/Types/Database/CountBy.d.ts +1 -0
  61. package/Server/Types/Database/UpdateLimit.d.mts +6 -0
  62. package/Server/Types/Database/UpdateLimit.d.ts +6 -0
  63. package/Types/AI/AIActionWords.d.mts +25 -1
  64. package/Types/AI/AIActionWords.d.ts +25 -1
  65. package/Types/AI/AIActionWords.js +166 -3
  66. package/Types/AI/AIActionWords.mjs +6 -0
  67. package/Types/AI/AIChatTypes.d.mts +2 -1
  68. package/Types/AI/AIChatTypes.d.ts +2 -1
  69. package/Types/AI/AiOutcomes.d.mts +57 -0
  70. package/Types/AI/AiOutcomes.d.ts +57 -0
  71. package/Types/AI/AiOutcomes.js +67 -0
  72. package/Types/AI/AiOutcomes.mjs +10 -0
  73. package/Types/AI/AiRunRefusal.d.mts +45 -0
  74. package/Types/AI/AiRunRefusal.d.ts +45 -0
  75. package/Types/AI/AiRunRefusal.js +187 -0
  76. package/Types/AI/AiRunRefusal.mjs +12 -0
  77. package/Types/AI/InvestigationRecording.d.mts +46 -0
  78. package/Types/AI/InvestigationRecording.d.ts +46 -0
  79. package/Types/AI/InvestigationRecording.js +42 -0
  80. package/Types/AI/InvestigationRecording.mjs +7 -0
  81. package/Types/API/HTTPResponse.d.mts +3 -0
  82. package/Types/API/HTTPResponse.d.ts +3 -0
  83. package/Types/API/HTTPResponse.js +15 -0
  84. package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
  85. package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
  86. package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -1
  87. package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -1
  88. package/Types/BaseDatabase/AggregationIntervalUtil.js +92 -2
  89. package/Types/BaseDatabase/ListResult.d.mts +1 -0
  90. package/Types/BaseDatabase/ListResult.d.ts +1 -0
  91. package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
  92. package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
  93. package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
  94. package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
  95. package/Types/Dashboard/DashboardAutoRefresh.d.mts +1 -0
  96. package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
  97. package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
  98. package/Types/Dashboard/DashboardAutoRefresh.mjs +1 -0
  99. package/Types/Date.d.mts +6 -1
  100. package/Types/Date.d.ts +6 -1
  101. package/Types/Date.js +39 -7
  102. package/Types/Date.mjs +1 -0
  103. package/Types/Email/ServerEmailEnvironment.d.mts +85 -0
  104. package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
  105. package/Types/Email/ServerEmailEnvironment.js +793 -0
  106. package/Types/Email/ServerEmailEnvironment.mjs +14 -0
  107. package/Types/Exception/AiRunRefusalException.d.mts +6 -0
  108. package/Types/Exception/AiRunRefusalException.d.ts +6 -0
  109. package/Types/Exception/AiRunRefusalException.js +23 -0
  110. package/Types/Exception/AiRunRefusalException.mjs +2 -0
  111. package/Types/Form/FormTargetCatalog.js +2 -2
  112. package/Types/Form/FormTargetType.js +2 -2
  113. package/Types/ListData.d.mts +2 -0
  114. package/Types/ListData.d.ts +2 -0
  115. package/Types/ListData.js +4 -0
  116. package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
  117. package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
  118. package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
  119. package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
  120. package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
  121. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +6 -0
  122. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
  123. package/Types/Monitor/UptimeHistoryLabels.js +2 -2
  124. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.mts +1 -0
  125. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
  126. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
  127. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
  128. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
  129. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
  130. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
  131. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -0
  132. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
  133. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
  134. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
  135. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
  136. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
  137. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
  138. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
  139. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
  140. package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
  141. package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
  142. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
  143. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
  144. package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
  145. package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
  146. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
  147. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
  148. package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
  149. package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
  150. package/Types/Permission.js +2 -2
  151. package/Types/Probe/ProbeCapability.d.mts +2 -1
  152. package/Types/Probe/ProbeCapability.d.ts +2 -1
  153. package/Types/Probe/ProbeCapability.js +10 -0
  154. package/Types/ReaderLanguage.d.mts +1 -0
  155. package/Types/ReaderLanguage.d.ts +1 -0
  156. package/Types/ReaderLanguage.js +13 -1
  157. package/Types/ReaderLanguage.mjs +1 -0
  158. package/Types/Rules/RuleRun.js +2 -2
  159. package/Types/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
  160. package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
  161. package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
  162. package/Types/ServerSending/ServerSendingStatus.js +49 -2
  163. package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
  164. package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
  165. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
  166. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
  167. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
  168. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
  169. package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
  170. package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
  171. package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
  172. package/Types/Telemetry/CompatibleIngest.js +123 -0
  173. package/Types/Telemetry/CompatibleIngest.mjs +21 -0
  174. package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
  175. package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
  176. package/Types/Telemetry/TelemetryIngestSurface.js +48 -7
  177. package/Types/TimezoneAlias.d.mts +1 -0
  178. package/Types/TimezoneAlias.d.ts +1 -0
  179. package/Types/TimezoneAlias.js +13 -0
  180. package/Types/Translator.js +374 -48
  181. package/Types/Workflow/RunRecord.js +1 -1
  182. package/Types/Workflow/Templates.js +2 -2
  183. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
  184. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
  185. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +26 -1
  186. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +26 -1
  187. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
  188. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
  189. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
  190. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -0
  191. package/Utils/Dashboard/ValueWidgetSeries.d.mts +2 -0
  192. package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
  193. package/Utils/Dashboard/ValueWidgetSeries.js +75 -0
  194. package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
  195. package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
  196. package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
  197. package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
  198. package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
  199. package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
  200. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
  201. package/Utils/HostAddressUtil.d.mts +1 -0
  202. package/Utils/HostAddressUtil.d.ts +1 -0
  203. package/Utils/HostAddressUtil.js +30 -0
  204. package/Utils/LinearRegExp/LinearRegExp.js +5 -1
  205. package/Utils/Milliseconds.d.mts +7 -0
  206. package/Utils/Milliseconds.d.ts +7 -0
  207. package/Utils/Milliseconds.js +60 -0
  208. package/Utils/Milliseconds.mjs +4 -0
  209. package/Utils/Monitor/EndpointAttachmentUtil.d.mts +8 -0
  210. package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
  211. package/Utils/Monitor/EndpointAttachmentUtil.js +91 -21
  212. package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
  213. package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
  214. package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
  215. package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
  216. package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
  217. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
  218. package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
  219. package/Utils/Monitor/MonitorRootCauseWording.d.mts +2 -0
  220. package/Utils/Monitor/MonitorRootCauseWording.d.ts +2 -0
  221. package/Utils/Monitor/MonitorRootCauseWording.js +58 -4
  222. package/Utils/Monitor/MonitoringOff.d.mts +2 -0
  223. package/Utils/Monitor/MonitoringOff.d.ts +2 -0
  224. package/Utils/Monitor/MonitoringOff.js +21 -0
  225. package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
  226. package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
  227. package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
  228. package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
  229. package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
  230. package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
  231. package/Utils/Monitor/ProbeFailureReading.d.mts +14 -0
  232. package/Utils/Monitor/ProbeFailureReading.d.ts +14 -0
  233. package/Utils/Monitor/ProbeFailureReading.js +137 -0
  234. package/Utils/Monitor/ProbeFailureReading.mjs +7 -0
  235. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
  236. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
  237. package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
  238. package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -0
  239. package/Utils/Project/NextNumber.js +1 -1
  240. package/Utils/PromQL/PromQLAst.d.mts +159 -0
  241. package/Utils/PromQL/PromQLAst.d.ts +159 -0
  242. package/Utils/PromQL/PromQLAst.js +118 -0
  243. package/Utils/PromQL/PromQLAst.mjs +12 -0
  244. package/Utils/PromQL/PromQLDuration.d.mts +2 -0
  245. package/Utils/PromQL/PromQLDuration.d.ts +2 -0
  246. package/Utils/PromQL/PromQLDuration.js +78 -0
  247. package/Utils/PromQL/PromQLDuration.mjs +3 -0
  248. package/Utils/PromQL/PromQLEngine.d.mts +15 -0
  249. package/Utils/PromQL/PromQLEngine.d.ts +15 -0
  250. package/Utils/PromQL/PromQLEngine.js +965 -0
  251. package/Utils/PromQL/PromQLEngine.mjs +7 -0
  252. package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
  253. package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
  254. package/Utils/PromQL/PromQLEngineTypes.js +10 -0
  255. package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
  256. package/Utils/PromQL/PromQLError.d.mts +11 -0
  257. package/Utils/PromQL/PromQLError.d.ts +11 -0
  258. package/Utils/PromQL/PromQLError.js +27 -0
  259. package/Utils/PromQL/PromQLError.mjs +3 -0
  260. package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
  261. package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
  262. package/Utils/PromQL/PromQLFunctionEvaluators.js +773 -0
  263. package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
  264. package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
  265. package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
  266. package/Utils/PromQL/PromQLFunctions.js +127 -0
  267. package/Utils/PromQL/PromQLFunctions.mjs +4 -0
  268. package/Utils/PromQL/PromQLLabels.d.mts +11 -0
  269. package/Utils/PromQL/PromQLLabels.d.ts +11 -0
  270. package/Utils/PromQL/PromQLLabels.js +218 -0
  271. package/Utils/PromQL/PromQLLabels.mjs +9 -0
  272. package/Utils/PromQL/PromQLLexer.d.mts +39 -0
  273. package/Utils/PromQL/PromQLLexer.d.ts +39 -0
  274. package/Utils/PromQL/PromQLLexer.js +391 -0
  275. package/Utils/PromQL/PromQLLexer.mjs +3 -0
  276. package/Utils/PromQL/PromQLMath.d.mts +19 -0
  277. package/Utils/PromQL/PromQLMath.d.ts +19 -0
  278. package/Utils/PromQL/PromQLMath.js +200 -0
  279. package/Utils/PromQL/PromQLMath.mjs +9 -0
  280. package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
  281. package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
  282. package/Utils/PromQL/PromQLMetricNames.js +199 -0
  283. package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
  284. package/Utils/PromQL/PromQLParser.d.mts +4 -0
  285. package/Utils/PromQL/PromQLParser.d.ts +4 -0
  286. package/Utils/PromQL/PromQLParser.js +831 -0
  287. package/Utils/PromQL/PromQLParser.mjs +4 -0
  288. package/Utils/PromQL/PromQLRegex.d.mts +9 -0
  289. package/Utils/PromQL/PromQLRegex.d.ts +9 -0
  290. package/Utils/PromQL/PromQLRegex.js +74 -0
  291. package/Utils/PromQL/PromQLRegex.mjs +2 -0
  292. package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
  293. package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
  294. package/Utils/PromQL/PrometheusResponse.js +90 -0
  295. package/Utils/PromQL/PrometheusResponse.mjs +3 -0
  296. package/Utils/Rum/PathInSentence.d.mts +5 -0
  297. package/Utils/Rum/PathInSentence.d.ts +5 -0
  298. package/Utils/Rum/PathInSentence.js +46 -0
  299. package/Utils/Rum/PathInSentence.mjs +6 -0
  300. package/Utils/Rum/UrlScrubber.d.mts +4 -0
  301. package/Utils/Rum/UrlScrubber.d.ts +4 -0
  302. package/Utils/Rum/UrlScrubber.js +143 -3
  303. package/Utils/Rum/UserFlow.d.mts +1 -1
  304. package/Utils/Rum/UserFlow.d.ts +1 -1
  305. package/Utils/Rum/UserFlow.js +180 -25
  306. package/Utils/Rum/UserFlow.mjs +1 -1
  307. package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
  308. package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
  309. package/Utils/Runbook/RunbookStepsSignature.js +30 -0
  310. package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
  311. package/Utils/Schema/TypeSchemas.js +6 -0
  312. package/Utils/Slo/SloDuration.d.mts +5 -2
  313. package/Utils/Slo/SloDuration.d.ts +5 -2
  314. package/Utils/Slo/SloDuration.js +11 -6
  315. package/Utils/Slo/SloHealth.js +1 -1
  316. package/Utils/StateOrder.js +1 -4
  317. package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
  318. package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
  319. package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
  320. package/Utils/Telemetry/HeartbeatAvailability.js +118 -26
  321. package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
  322. package/package.json +1 -1
@@ -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;
@@ -127,5 +127,5 @@ class PublicNoteSubscriberNotificationDefault {
127
127
  // Shown under the checkbox when it starts unticked for this reason.
128
128
  PublicNoteSubscriberNotificationDefault.quietIncidentDescription = "Unticked by default because status page subscribers were not notified when this incident was declared.";
129
129
  PublicNoteSubscriberNotificationDefault.quietIncidentEpisodeDescription = "Unticked by default because status page subscribers were not notified when this episode was created.";
130
- PublicNoteSubscriberNotificationDefault.quietScheduledMaintenanceDescription = "Unticked by default because status page subscribers were not notified when this scheduled maintenance event was created.";
130
+ PublicNoteSubscriberNotificationDefault.quietScheduledMaintenanceDescription = "Unticked by default because status page subscribers were not notified when this maintenance event was created.";
131
131
  exports.default = PublicNoteSubscriberNotificationDefault;
@@ -0,0 +1,20 @@
1
+ export declare const COMPATIBLE_INGEST_URL_PREFIX: string;
2
+ export declare const PROMETHEUS_REMOTE_WRITE_PATH: string;
3
+ export declare const LOKI_PUSH_PATH: string;
4
+ export declare const SPLUNK_HEC_BASE_PATH: string;
5
+ export declare const SPLUNK_HEC_EVENT_PATHS: ReadonlyArray<string>;
6
+ export declare const SPLUNK_HEC_RAW_PATHS: ReadonlyArray<string>;
7
+ export declare const SPLUNK_HEC_HEALTH_PATHS: ReadonlyArray<string>;
8
+ export declare const DATADOG_BASE_PATH: string;
9
+ export declare const DATADOG_LOGS_PATH: string;
10
+ export declare const DATADOG_SERIES_V1_PATH: string;
11
+ export declare const DATADOG_SERIES_V2_PATH: string;
12
+ export declare const DATADOG_SKETCHES_PATH: string;
13
+ export declare const DATADOG_CHECK_RUN_PATH: string;
14
+ export declare const DATADOG_VALIDATE_PATH: string;
15
+ export declare const DATADOG_METADATA_PATHS: ReadonlyArray<string>;
16
+ export declare const DATADOG_PATHS: ReadonlyArray<string>;
17
+ export declare const DATADOG_ROOT_PATHS: ReadonlyArray<string>;
18
+ export declare const SENTRY_BASE_PATH: string;
19
+ export declare const SENTRY_DSN_PROJECT_NUMBER: string;
20
+ export declare function isCompatibleIngestPath(path: string): boolean;
@@ -0,0 +1,20 @@
1
+ export declare const COMPATIBLE_INGEST_URL_PREFIX: string;
2
+ export declare const PROMETHEUS_REMOTE_WRITE_PATH: string;
3
+ export declare const LOKI_PUSH_PATH: string;
4
+ export declare const SPLUNK_HEC_BASE_PATH: string;
5
+ export declare const SPLUNK_HEC_EVENT_PATHS: ReadonlyArray<string>;
6
+ export declare const SPLUNK_HEC_RAW_PATHS: ReadonlyArray<string>;
7
+ export declare const SPLUNK_HEC_HEALTH_PATHS: ReadonlyArray<string>;
8
+ export declare const DATADOG_BASE_PATH: string;
9
+ export declare const DATADOG_LOGS_PATH: string;
10
+ export declare const DATADOG_SERIES_V1_PATH: string;
11
+ export declare const DATADOG_SERIES_V2_PATH: string;
12
+ export declare const DATADOG_SKETCHES_PATH: string;
13
+ export declare const DATADOG_CHECK_RUN_PATH: string;
14
+ export declare const DATADOG_VALIDATE_PATH: string;
15
+ export declare const DATADOG_METADATA_PATHS: ReadonlyArray<string>;
16
+ export declare const DATADOG_PATHS: ReadonlyArray<string>;
17
+ export declare const DATADOG_ROOT_PATHS: ReadonlyArray<string>;
18
+ export declare const SENTRY_BASE_PATH: string;
19
+ export declare const SENTRY_DSN_PROJECT_NUMBER: string;
20
+ export declare function isCompatibleIngestPath(path: string): boolean;
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ /*
3
+ * THE COMPATIBLE INGEST ENDPOINTS: OTHER TOOLS' PROTOCOLS, ACCEPTED AS THEY
4
+ * ARE.
5
+ *
6
+ * A team moving to OneUptime should not have to re-instrument anything to
7
+ * try it. These endpoints accept what the agents and SDKs they already run
8
+ * send - Prometheus remote write, Loki's push API, Splunk's HTTP Event
9
+ * Collector, the Datadog Agent and Datadog's HTTP intake, and Sentry SDKs -
10
+ * so moving is a change of URL and key. What arrives is turned into OTLP
11
+ * and stored like any OpenTelemetry data.
12
+ *
13
+ * Each path is given without the /telemetry prefix: the App serves every
14
+ * telemetry route under both "/telemetry" and "/" (FeatureSet/Telemetry),
15
+ * and the shipped ingress sends /telemetry to the App on every install.
16
+ *
17
+ * Shared by the server (the routes, and StartServer, which leaves these
18
+ * paths' bodies to them), the dashboard's setup guide and the docs tests.
19
+ * React-free and Node-free.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.SENTRY_DSN_PROJECT_NUMBER = exports.SENTRY_BASE_PATH = exports.DATADOG_ROOT_PATHS = exports.DATADOG_PATHS = exports.DATADOG_METADATA_PATHS = exports.DATADOG_VALIDATE_PATH = exports.DATADOG_CHECK_RUN_PATH = exports.DATADOG_SKETCHES_PATH = exports.DATADOG_SERIES_V2_PATH = exports.DATADOG_SERIES_V1_PATH = exports.DATADOG_LOGS_PATH = exports.DATADOG_BASE_PATH = exports.SPLUNK_HEC_HEALTH_PATHS = exports.SPLUNK_HEC_RAW_PATHS = exports.SPLUNK_HEC_EVENT_PATHS = exports.SPLUNK_HEC_BASE_PATH = exports.LOKI_PUSH_PATH = exports.PROMETHEUS_REMOTE_WRITE_PATH = exports.COMPATIBLE_INGEST_URL_PREFIX = void 0;
23
+ exports.isCompatibleIngestPath = isCompatibleIngestPath;
24
+ exports.COMPATIBLE_INGEST_URL_PREFIX = "/telemetry";
25
+ // Prometheus remote write (1.0 and 2.0): a Prometheus server, Grafana Alloy, an agent.
26
+ exports.PROMETHEUS_REMOTE_WRITE_PATH = "/prometheus/api/v1/write";
27
+ // Loki's push API, at Loki's own path: Promtail, Grafana Alloy, Fluent Bit, Vector.
28
+ exports.LOKI_PUSH_PATH = "/loki/api/v1/push";
29
+ /*
30
+ * Splunk's HTTP Event Collector, at Splunk's own paths. Some clients
31
+ * (Splunk's Docker logging driver, Fluent Bit's splunk output) post to
32
+ * these paths at the root of the host they are given, so the shipped
33
+ * ingress sends /services/collector to the App too.
34
+ */
35
+ exports.SPLUNK_HEC_BASE_PATH = "/services/collector";
36
+ exports.SPLUNK_HEC_EVENT_PATHS = [
37
+ "/services/collector",
38
+ "/services/collector/event",
39
+ "/services/collector/event/1.0",
40
+ ];
41
+ exports.SPLUNK_HEC_RAW_PATHS = [
42
+ "/services/collector/raw",
43
+ ];
44
+ exports.SPLUNK_HEC_HEALTH_PATHS = [
45
+ "/services/collector/health",
46
+ ];
47
+ /*
48
+ * Datadog's intake, under /datadog: the Datadog Agent's `dd_url` is
49
+ * <host>/telemetry/datadog, and the routes below it are Datadog's own.
50
+ */
51
+ exports.DATADOG_BASE_PATH = "/datadog";
52
+ exports.DATADOG_LOGS_PATH = "/api/v2/logs";
53
+ exports.DATADOG_SERIES_V1_PATH = "/api/v1/series";
54
+ exports.DATADOG_SERIES_V2_PATH = "/api/v2/series";
55
+ exports.DATADOG_SKETCHES_PATH = "/api/beta/sketches";
56
+ exports.DATADOG_CHECK_RUN_PATH = "/api/v1/check_run";
57
+ exports.DATADOG_VALIDATE_PATH = "/api/v1/validate";
58
+ /*
59
+ * What the Agent reports about itself and its host (host tags, inventory).
60
+ * Not telemetry: accepted so the Agent reports no error, and not kept.
61
+ */
62
+ exports.DATADOG_METADATA_PATHS = [
63
+ "/intake",
64
+ "/api/v1/metadata",
65
+ ];
66
+ // Every intake path, as served under /datadog.
67
+ exports.DATADOG_PATHS = [
68
+ exports.DATADOG_LOGS_PATH,
69
+ exports.DATADOG_SERIES_V1_PATH,
70
+ exports.DATADOG_SERIES_V2_PATH,
71
+ exports.DATADOG_SKETCHES_PATH,
72
+ exports.DATADOG_CHECK_RUN_PATH,
73
+ exports.DATADOG_VALIDATE_PATH,
74
+ ...exports.DATADOG_METADATA_PATHS,
75
+ ];
76
+ /*
77
+ * The Datadog Agent posts logs to /api/v2/logs on the host it is given
78
+ * (logs_config.logs_dd_url is a host and port, never a path), so that one
79
+ * route is served at the root too - only to a request that carries a
80
+ * DD-API-KEY header, so nothing else under /api is ever answered by it.
81
+ * Everything else the Agent sends goes to dd_url, which takes a path.
82
+ */
83
+ exports.DATADOG_ROOT_PATHS = [exports.DATADOG_LOGS_PATH];
84
+ /*
85
+ * Sentry's ingest API under /sentry: a DSN of
86
+ * https://<key>@<host>/telemetry/sentry/<number> makes an SDK post to
87
+ * <host>/telemetry/sentry/api/<number>/envelope/. The number is any number
88
+ * (SDKs refuse a DSN without one); it is not read.
89
+ */
90
+ exports.SENTRY_BASE_PATH = "/sentry";
91
+ exports.SENTRY_DSN_PROJECT_NUMBER = "1";
92
+ // /sentry/api/<n>/envelope or /store, without /telemetry or a trailing slash.
93
+ const SENTRY_INGEST_PATH = /^\/sentry\/api\/[^/]+\/(envelope|store)$/;
94
+ /*
95
+ * Whether StartServer's body parsers must leave a request's body to the
96
+ * compatible endpoint it is for: matched as the routers match, in any
97
+ * case, with or without the /telemetry prefix and a trailing slash.
98
+ */
99
+ function isCompatibleIngestPath(path) {
100
+ let normalized = (path || "").toLowerCase();
101
+ while (normalized.length > 1 && normalized.endsWith("/")) {
102
+ normalized = normalized.slice(0, -1);
103
+ }
104
+ if (normalized.startsWith(`${exports.COMPATIBLE_INGEST_URL_PREFIX}/`)) {
105
+ normalized = normalized.slice(exports.COMPATIBLE_INGEST_URL_PREFIX.length);
106
+ }
107
+ if (normalized === exports.PROMETHEUS_REMOTE_WRITE_PATH ||
108
+ normalized === exports.LOKI_PUSH_PATH) {
109
+ return true;
110
+ }
111
+ if (normalized === exports.SPLUNK_HEC_BASE_PATH ||
112
+ normalized.startsWith(`${exports.SPLUNK_HEC_BASE_PATH}/`)) {
113
+ return true;
114
+ }
115
+ if (normalized.startsWith(`${exports.DATADOG_BASE_PATH}/`) &&
116
+ exports.DATADOG_PATHS.includes(normalized.slice(exports.DATADOG_BASE_PATH.length))) {
117
+ return true;
118
+ }
119
+ if (exports.DATADOG_ROOT_PATHS.includes(normalized)) {
120
+ return true;
121
+ }
122
+ return SENTRY_INGEST_PATH.test(normalized);
123
+ }
@@ -0,0 +1,21 @@
1
+ import commonJsModule from "./CompatibleIngest.js";
2
+ export const COMPATIBLE_INGEST_URL_PREFIX = commonJsModule.COMPATIBLE_INGEST_URL_PREFIX;
3
+ export const DATADOG_BASE_PATH = commonJsModule.DATADOG_BASE_PATH;
4
+ export const DATADOG_CHECK_RUN_PATH = commonJsModule.DATADOG_CHECK_RUN_PATH;
5
+ export const DATADOG_LOGS_PATH = commonJsModule.DATADOG_LOGS_PATH;
6
+ export const DATADOG_METADATA_PATHS = commonJsModule.DATADOG_METADATA_PATHS;
7
+ export const DATADOG_PATHS = commonJsModule.DATADOG_PATHS;
8
+ export const DATADOG_ROOT_PATHS = commonJsModule.DATADOG_ROOT_PATHS;
9
+ export const DATADOG_SERIES_V1_PATH = commonJsModule.DATADOG_SERIES_V1_PATH;
10
+ export const DATADOG_SERIES_V2_PATH = commonJsModule.DATADOG_SERIES_V2_PATH;
11
+ export const DATADOG_SKETCHES_PATH = commonJsModule.DATADOG_SKETCHES_PATH;
12
+ export const DATADOG_VALIDATE_PATH = commonJsModule.DATADOG_VALIDATE_PATH;
13
+ export const LOKI_PUSH_PATH = commonJsModule.LOKI_PUSH_PATH;
14
+ export const PROMETHEUS_REMOTE_WRITE_PATH = commonJsModule.PROMETHEUS_REMOTE_WRITE_PATH;
15
+ export const SENTRY_BASE_PATH = commonJsModule.SENTRY_BASE_PATH;
16
+ export const SENTRY_DSN_PROJECT_NUMBER = commonJsModule.SENTRY_DSN_PROJECT_NUMBER;
17
+ export const SPLUNK_HEC_BASE_PATH = commonJsModule.SPLUNK_HEC_BASE_PATH;
18
+ export const SPLUNK_HEC_EVENT_PATHS = commonJsModule.SPLUNK_HEC_EVENT_PATHS;
19
+ export const SPLUNK_HEC_HEALTH_PATHS = commonJsModule.SPLUNK_HEC_HEALTH_PATHS;
20
+ export const SPLUNK_HEC_RAW_PATHS = commonJsModule.SPLUNK_HEC_RAW_PATHS;
21
+ export const isCompatibleIngestPath = commonJsModule.isCompatibleIngestPath;
@@ -15,6 +15,11 @@ declare enum TelemetryIngestSurface {
15
15
  DbtArtifacts = "dbt-artifacts",
16
16
  SyncWebhooks = "sync-webhooks",
17
17
  SecurityEvents = "security-events",
18
+ PrometheusRemoteWrite = "prometheus-remote-write",
19
+ Loki = "loki",
20
+ SplunkHec = "splunk-hec",
21
+ Datadog = "datadog",
22
+ Sentry = "sentry",
18
23
  Grpc = "grpc",
19
24
  Mqtt = "mqtt",
20
25
  KubernetesAgentRunner = "kubernetes-agent-runner",
@@ -15,6 +15,11 @@ declare enum TelemetryIngestSurface {
15
15
  DbtArtifacts = "dbt-artifacts",
16
16
  SyncWebhooks = "sync-webhooks",
17
17
  SecurityEvents = "security-events",
18
+ PrometheusRemoteWrite = "prometheus-remote-write",
19
+ Loki = "loki",
20
+ SplunkHec = "splunk-hec",
21
+ Datadog = "datadog",
22
+ Sentry = "sentry",
18
23
  Grpc = "grpc",
19
24
  Mqtt = "mqtt",
20
25
  KubernetesAgentRunner = "kubernetes-agent-runner",
@@ -48,6 +48,32 @@ var TelemetryIngestSurface;
48
48
  */
49
49
  TelemetryIngestSurface["SyncWebhooks"] = "sync-webhooks";
50
50
  TelemetryIngestSurface["SecurityEvents"] = "security-events";
51
+ /*
52
+ * The compatible endpoints (Types/Telemetry/CompatibleIngest): other
53
+ * tools' protocols, turned into OTLP. Prometheus remote write
54
+ * (POST /prometheus/api/v1/write): a Prometheus server's or an agent's
55
+ * metrics. Server keys only.
56
+ */
57
+ TelemetryIngestSurface["PrometheusRemoteWrite"] = "prometheus-remote-write";
58
+ // Loki's push API (POST /loki/api/v1/push): log shippers. Server keys only.
59
+ TelemetryIngestSurface["Loki"] = "loki";
60
+ /*
61
+ * Splunk's HTTP Event Collector (POST /services/collector/...): log
62
+ * shippers and Splunk forwarders, logs and metric events. Server keys
63
+ * only.
64
+ */
65
+ TelemetryIngestSurface["SplunkHec"] = "splunk-hec";
66
+ /*
67
+ * The Datadog Agent's and Datadog HTTP API's intake (/datadog/api/...):
68
+ * logs and metrics from hosts. Server keys only.
69
+ */
70
+ TelemetryIngestSurface["Datadog"] = "datadog";
71
+ /*
72
+ * Sentry SDKs' envelopes and events (/sentry/api/<n>/envelope/): errors,
73
+ * transactions and logs. A browser key may write here - see the
74
+ * allowlist below.
75
+ */
76
+ TelemetryIngestSurface["Sentry"] = "sentry";
51
77
  TelemetryIngestSurface["Grpc"] = "grpc";
52
78
  TelemetryIngestSurface["Mqtt"] = "mqtt";
53
79
  /*
@@ -111,19 +137,29 @@ exports.IDENTITY_REGISTRATION_SURFACES = new Set([
111
137
  * "browser keys cannot reach a new endpoint" rather than "a key scraped off a
112
138
  * public page can reach it".
113
139
  *
114
- * The four members are exactly what a real browser agent emits: OTLP traces,
115
- * logs and metrics from the web SDKs, plus session replay chunks. Everything
116
- * else is a server-side or infrastructure pipe that no page has any business
117
- * calling - profiles, syslog, Fluent, Pyroscope, Kubernetes cost, gRPC, MQTT -
118
- * or is a build-time artifact upload (source maps) that belongs in CI with a
119
- * server key, not in the browser bundle, which would otherwise be able to
120
- * overwrite the maps used to de-obfuscate everyone else's stack traces.
140
+ * The members are exactly what a real browser agent emits: OTLP traces,
141
+ * logs and metrics from the web SDKs, session replay chunks, and Sentry's
142
+ * browser SDK's envelopes. Everything else is a server-side or
143
+ * infrastructure pipe that no page has any business calling - profiles,
144
+ * syslog, Fluent, Pyroscope, Kubernetes cost, gRPC, MQTT, remote write,
145
+ * Loki, HEC, Datadog - or is a build-time artifact upload (source maps)
146
+ * that belongs in CI with a server key, not in the browser bundle, which
147
+ * would otherwise be able to overwrite the maps used to de-obfuscate
148
+ * everyone else's stack traces.
149
+ *
150
+ * Sentry is here because a Sentry DSN is published by design: @sentry/browser
151
+ * and @sentry/react are given one in page JavaScript, exactly as the web
152
+ * OTLP SDKs are given a browser key. Refusing browser keys there would push
153
+ * teams to paste a SERVER key into their bundle instead. What an envelope
154
+ * can write is what a browser OTLP exporter can - errors and transactions as
155
+ * traces, and logs - with the key's origin allowlist and rate limit.
121
156
  */
122
157
  exports.BROWSER_ALLOWED_INGEST_SURFACES = new Set([
123
158
  TelemetryIngestSurface.OtelTraces,
124
159
  TelemetryIngestSurface.OtelLogs,
125
160
  TelemetryIngestSurface.OtelMetrics,
126
161
  TelemetryIngestSurface.SessionReplay,
162
+ TelemetryIngestSurface.Sentry,
127
163
  ]);
128
164
  /*
129
165
  * Typed as a total Record rather than a partial lookup so that adding a member
@@ -147,6 +183,11 @@ const INGEST_SURFACE_READABLE_NAMES = {
147
183
  [TelemetryIngestSurface.DbtArtifacts]: "dbt artifacts upload",
148
184
  [TelemetryIngestSurface.SyncWebhooks]: "Fivetran and Airbyte sync webhooks",
149
185
  [TelemetryIngestSurface.SecurityEvents]: "security event ingest",
186
+ [TelemetryIngestSurface.PrometheusRemoteWrite]: "Prometheus remote write",
187
+ [TelemetryIngestSurface.Loki]: "Loki push",
188
+ [TelemetryIngestSurface.SplunkHec]: "Splunk HTTP Event Collector",
189
+ [TelemetryIngestSurface.Datadog]: "Datadog intake",
190
+ [TelemetryIngestSurface.Sentry]: "Sentry ingest",
150
191
  [TelemetryIngestSurface.Grpc]: "gRPC ingest",
151
192
  [TelemetryIngestSurface.Mqtt]: "MQTT ingest",
152
193
  [TelemetryIngestSurface.KubernetesAgentRunner]: "Kubernetes agent Runner registration",
@@ -1,6 +1,7 @@
1
1
  import Timezone from "./Timezone.mjs";
2
2
  export declare const LEGACY_TIMEZONE_NAMES: Readonly<Partial<Record<Timezone, Timezone>>>;
3
3
  export default class TimezoneAlias {
4
+ static isListedName(value: unknown): value is Timezone;
4
5
  static isLegacyName(timezone: string | null | undefined): boolean;
5
6
  static getCanonicalTimezone(timezone: Timezone | string): Timezone;
6
7
  static getLegacyNamesOf(timezone: Timezone): Array<Timezone>;
@@ -1,6 +1,7 @@
1
1
  import Timezone from "./Timezone";
2
2
  export declare const LEGACY_TIMEZONE_NAMES: Readonly<Partial<Record<Timezone, Timezone>>>;
3
3
  export default class TimezoneAlias {
4
+ static isListedName(value: unknown): value is Timezone;
4
5
  static isLegacyName(timezone: string | null | undefined): boolean;
5
6
  static getCanonicalTimezone(timezone: Timezone | string): Timezone;
6
7
  static getLegacyNamesOf(timezone: Timezone): Array<Timezone>;
@@ -264,6 +264,8 @@ const buildCanonicalIndex = () => {
264
264
  return index;
265
265
  };
266
266
  const CANONICAL_BY_LOWERCASE_NAME = buildCanonicalIndex();
267
+ // Every name in the enum, spelled exactly as the enum spells it.
268
+ const LISTED_NAMES = new Set(Object.values(Timezone_1.default));
267
269
  const LEGACY_LOWERCASE_NAMES = new Set(Object.keys(exports.LEGACY_TIMEZONE_NAMES).map((timezone) => {
268
270
  return timezone.toLowerCase();
269
271
  }));
@@ -281,6 +283,17 @@ const buildLegacyNamesByCurrentName = () => {
281
283
  };
282
284
  const LEGACY_NAMES_BY_CURRENT_NAME = buildLegacyNamesByCurrentName();
283
285
  class TimezoneAlias {
286
+ /*
287
+ * True for a name exactly as the Timezone list spells it - "Asia/Kolkata",
288
+ * and the legacy "Asia/Calcutta" too, which stays accepted everywhere - and
289
+ * for nothing else: not another spelling of one ("asia/kolkata"), not a
290
+ * zone newer than the list, not a value that is not text. Where a request
291
+ * names a zone that reaches the database (an aggregate's timezone, issue
292
+ * #7277), this is the whole of what it may be.
293
+ */
294
+ static isListedName(value) {
295
+ return typeof value === "string" && LISTED_NAMES.has(value);
296
+ }
284
297
  /*
285
298
  * True for a name kept only for backward compatibility — one the picker
286
299
  * does not offer because it offers the same clock under its current name.