@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
@@ -0,0 +1,12 @@
1
+ import AIRun from "./AIRun.mjs";
2
+ import Project from "./Project.mjs";
3
+ import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel.mjs";
4
+ import ObjectID from "../../Types/ObjectID.mjs";
5
+ import { InvestigationRecording } from "../../Types/AI/InvestigationRecording.mjs";
6
+ export default class AIRunRecording extends BaseModel {
7
+ project?: Project;
8
+ projectId?: ObjectID;
9
+ aiRun?: AIRun;
10
+ aiRunId?: ObjectID;
11
+ recording?: InvestigationRecording;
12
+ }
@@ -0,0 +1,12 @@
1
+ import AIRun from "./AIRun";
2
+ import Project from "./Project";
3
+ import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel";
4
+ import ObjectID from "../../Types/ObjectID";
5
+ import { InvestigationRecording } from "../../Types/AI/InvestigationRecording";
6
+ export default class AIRunRecording extends BaseModel {
7
+ project?: Project;
8
+ projectId?: ObjectID;
9
+ aiRun?: AIRun;
10
+ aiRunId?: ObjectID;
11
+ recording?: InvestigationRecording;
12
+ }
@@ -0,0 +1,181 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const AIRun_1 = __importDefault(require("./AIRun"));
16
+ const Project_1 = __importDefault(require("./Project"));
17
+ const DatabaseBaseModel_1 = __importDefault(require("./DatabaseBaseModel/DatabaseBaseModel"));
18
+ const ColumnAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/ColumnAccessControl"));
19
+ const TableAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableAccessControl"));
20
+ const ColumnType_1 = __importDefault(require("../../Types/Database/ColumnType"));
21
+ const TableColumn_1 = __importDefault(require("../../Types/Database/TableColumn"));
22
+ const TableColumnType_1 = __importDefault(require("../../Types/Database/TableColumnType"));
23
+ const TableMetadata_1 = __importDefault(require("../../Types/Database/TableMetadata"));
24
+ const TenantColumn_1 = __importDefault(require("../../Types/Database/TenantColumn"));
25
+ const IconProp_1 = __importDefault(require("../../Types/Icon/IconProp"));
26
+ const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
27
+ const typeorm_1 = require("typeorm");
28
+ /*
29
+ * What an AI investigation saw (issue #6800): the context it started from
30
+ * and every tool call it made with the text it was handed back
31
+ * (Types/AI/InvestigationRecording), so the run can be replayed on the same
32
+ * data after a prompt or model change (Server/Utils/AI/Eval/
33
+ * ReplayInvestigation). One row per completed investigation run that kept
34
+ * one; deleted with its run, and after
35
+ * INVESTIGATION_RECORDING_RETENTION_IN_DAYS (AIRunRecordingService).
36
+ *
37
+ * The text holds telemetry the tools read as the system - more than a
38
+ * project member may read through the run's activity - so the table is
39
+ * written and read only by the server: no client can read or write a row,
40
+ * and it has no CRUD API.
41
+ */
42
+ let AIRunRecording = class AIRunRecording extends DatabaseBaseModel_1.default {
43
+ constructor() {
44
+ super(...arguments);
45
+ this.project = undefined;
46
+ this.projectId = undefined;
47
+ this.aiRun = undefined;
48
+ this.aiRunId = undefined;
49
+ this.recording = undefined;
50
+ }
51
+ };
52
+ __decorate([
53
+ (0, ColumnAccessControl_1.default)({
54
+ create: [],
55
+ read: [],
56
+ update: [],
57
+ }),
58
+ (0, TableColumn_1.default)({
59
+ manyToOneRelationColumn: "projectId",
60
+ type: TableColumnType_1.default.Entity,
61
+ modelType: Project_1.default,
62
+ title: "Project",
63
+ description: "Relation to Project Resource in which this object belongs",
64
+ }),
65
+ (0, typeorm_1.ManyToOne)(() => {
66
+ return Project_1.default;
67
+ }, {
68
+ eager: false,
69
+ nullable: true,
70
+ onDelete: "CASCADE",
71
+ orphanedRowAction: "nullify",
72
+ }),
73
+ (0, typeorm_1.JoinColumn)({ name: "projectId" }),
74
+ __metadata("design:type", Project_1.default)
75
+ ], AIRunRecording.prototype, "project", void 0);
76
+ __decorate([
77
+ (0, ColumnAccessControl_1.default)({
78
+ create: [],
79
+ read: [],
80
+ update: [],
81
+ }),
82
+ (0, typeorm_1.Index)(),
83
+ (0, TableColumn_1.default)({
84
+ type: TableColumnType_1.default.ObjectID,
85
+ required: true,
86
+ canReadOnRelationQuery: true,
87
+ title: "Project ID",
88
+ description: "ID of your OneUptime Project in which this object belongs",
89
+ }),
90
+ (0, typeorm_1.Column)({
91
+ type: ColumnType_1.default.ObjectID,
92
+ nullable: false,
93
+ transformer: ObjectID_1.default.getDatabaseTransformer(),
94
+ }),
95
+ __metadata("design:type", ObjectID_1.default)
96
+ ], AIRunRecording.prototype, "projectId", void 0);
97
+ __decorate([
98
+ (0, ColumnAccessControl_1.default)({
99
+ create: [],
100
+ read: [],
101
+ update: [],
102
+ }),
103
+ (0, TableColumn_1.default)({
104
+ type: TableColumnType_1.default.Entity,
105
+ required: true,
106
+ modelType: AIRun_1.default,
107
+ manyToOneRelationColumn: "aiRunId",
108
+ title: "AI Run",
109
+ description: "The investigation run this recording belongs to.",
110
+ }),
111
+ (0, typeorm_1.ManyToOne)(() => {
112
+ return AIRun_1.default;
113
+ }, {
114
+ cascade: false,
115
+ eager: false,
116
+ nullable: false,
117
+ onDelete: "CASCADE",
118
+ orphanedRowAction: "nullify",
119
+ }),
120
+ (0, typeorm_1.JoinColumn)({ name: "aiRunId" }),
121
+ __metadata("design:type", AIRun_1.default)
122
+ ], AIRunRecording.prototype, "aiRun", void 0);
123
+ __decorate([
124
+ (0, ColumnAccessControl_1.default)({
125
+ create: [],
126
+ read: [],
127
+ update: [],
128
+ }),
129
+ (0, typeorm_1.Index)(),
130
+ (0, TableColumn_1.default)({
131
+ type: TableColumnType_1.default.ObjectID,
132
+ required: true,
133
+ canReadOnRelationQuery: true,
134
+ title: "AI Run ID",
135
+ description: "ID of the investigation run this recording belongs to.",
136
+ }),
137
+ (0, typeorm_1.Column)({
138
+ type: ColumnType_1.default.ObjectID,
139
+ nullable: false,
140
+ transformer: ObjectID_1.default.getDatabaseTransformer(),
141
+ }),
142
+ __metadata("design:type", ObjectID_1.default)
143
+ ], AIRunRecording.prototype, "aiRunId", void 0);
144
+ __decorate([
145
+ (0, ColumnAccessControl_1.default)({
146
+ create: [],
147
+ read: [],
148
+ update: [],
149
+ }),
150
+ (0, TableColumn_1.default)({
151
+ required: true,
152
+ type: TableColumnType_1.default.JSON,
153
+ title: "Recording",
154
+ description: "The context the investigation started from, and every tool call it made with what it was handed back.",
155
+ }),
156
+ (0, typeorm_1.Column)({
157
+ nullable: false,
158
+ type: ColumnType_1.default.JSON,
159
+ }),
160
+ __metadata("design:type", Object)
161
+ ], AIRunRecording.prototype, "recording", void 0);
162
+ AIRunRecording = __decorate([
163
+ (0, TenantColumn_1.default)("projectId"),
164
+ (0, TableAccessControl_1.default)({
165
+ create: [],
166
+ read: [],
167
+ delete: [],
168
+ update: [],
169
+ }),
170
+ (0, typeorm_1.Entity)({
171
+ name: "AIRunRecording",
172
+ }),
173
+ (0, TableMetadata_1.default)({
174
+ tableName: "AIRunRecording",
175
+ singularName: "AI Run Recording",
176
+ pluralName: "AI Run Recordings",
177
+ icon: IconProp_1.default.Bolt,
178
+ tableDescription: "Internal record of what an AI investigation saw, kept for a limited time so it can be run again on the same data after a prompt or model change.",
179
+ })
180
+ ], AIRunRecording);
181
+ exports.default = AIRunRecording;
@@ -0,0 +1,2 @@
1
+ import commonJsModule from "./AIRunRecording.js";
2
+ export default commonJsModule.default;
@@ -259,8 +259,14 @@ __decorate([
259
259
  Permission_1.default.ReadAlert,
260
260
  ],
261
261
  update: [],
262
- }),
263
- (0, typeorm_1.Index)(),
262
+ })
263
+ /*
264
+ * No bare @Index() here on purpose: the composites on the class lead with
265
+ * this column ("projectId", "createdAt" first), and serve every read by it
266
+ * and the ON DELETE CASCADE of a project. Another would cost every insert
267
+ * and every state change one more index write for nothing.
268
+ */
269
+ ,
264
270
  (0, TableColumn_1.default)({
265
271
  type: TableColumnType_1.default.ObjectID,
266
272
  required: true,
@@ -2943,6 +2949,16 @@ Alert = __decorate([
2943
2949
  },
2944
2950
  }),
2945
2951
  (0, typeorm_1.Index)(["projectId", "currentAlertStateId"]) // Active-alert counters on dashboard
2952
+ /*
2953
+ * The Alerts list, newest first - the order every read of alerts takes
2954
+ * when it asks for none (DatabaseService.getReadSort): the page's ids are
2955
+ * read in this index's order, ten at a time, instead of sorting every
2956
+ * alert of the project. It also serves every read by project and
2957
+ * the ON DELETE CASCADE of a project, which is why the column has no bare
2958
+ * index of its own.
2959
+ */
2960
+ ,
2961
+ (0, typeorm_1.Index)(["projectId", "createdAt"])
2946
2962
  /*
2947
2963
  * The alerts an investigation rule makes OneUptime AI wait on: a handful at
2948
2964
  * any moment, so the index holds only them, and the rule-wait job's "wait
@@ -1519,5 +1519,14 @@ DataStore = __decorate([
1519
1519
  (0, typeorm_1.Index)(["projectId", "sensitivity"]),
1520
1520
  (0, typeorm_1.Index)(["projectId", "kind"]),
1521
1521
  (0, typeorm_1.Index)(["projectId", "isArchived"])
1522
+ /*
1523
+ * A probe asks for the stores whose tables it collects and whose content it
1524
+ * scans every five minutes (DataObservabilityProbeClaim,
1525
+ * DataSecurityProbeClaim): each a range of one of these, oldest first, that
1526
+ * stops at the claim's limit.
1527
+ */
1528
+ ,
1529
+ (0, typeorm_1.Index)(["scanProbeId", "nextTableHealthCollectionAt"]),
1530
+ (0, typeorm_1.Index)(["scanProbeId", "nextContentScanAt"])
1522
1531
  ], DataStore);
1523
1532
  exports.default = DataStore;
@@ -270,8 +270,8 @@ __decorate([
270
270
  required: true,
271
271
  type: TableColumnType_1.default.ShortText,
272
272
  allowedValues: Object.values(MailStatus_1.default),
273
- title: "Status of the SMS",
274
- description: "Status of the SMS sent",
273
+ title: "Status of the Email",
274
+ description: "Status of the email sent",
275
275
  canReadOnRelationQuery: false,
276
276
  example: "Success",
277
277
  }),
@@ -335,7 +335,7 @@ __decorate([
335
335
  type: TableColumnType_1.default.ShortText,
336
336
  allowedValues: Object.values(FormTargetType_1.default),
337
337
  title: "Creates",
338
- description: "What each submission creates: Incident, or ScheduledMaintenance (a scheduled maintenance event).",
338
+ description: "What each submission creates: Incident, or ScheduledMaintenance (a maintenance event).",
339
339
  defaultValue: FormTargetType_1.DEFAULT_FORM_TARGET_TYPE,
340
340
  example: FormTargetType_1.default.Incident,
341
341
  }),
@@ -425,7 +425,7 @@ __decorate([
425
425
  required: false,
426
426
  type: TableColumnType_1.default.JSON,
427
427
  title: "On Submit Settings",
428
- description: "What every submission starts with besides the answers. For incidents: defaultTitle, incidentSeverityId, incidentTemplateId, monitorIds, labelIds, onCallDutyPolicyIds, ownerUserIds and ownerTeamIds. For scheduled maintenance events: defaultTitle, monitorIds, statusPageIds, labelIds, ownerUserIds, ownerTeamIds, showOnStatusPages and notifySubscribers.",
428
+ description: "What every submission starts with besides the answers. For incidents: defaultTitle, incidentSeverityId, incidentTemplateId, monitorIds, labelIds, onCallDutyPolicyIds, ownerUserIds and ownerTeamIds. For maintenance events: defaultTitle, monitorIds, statusPageIds, labelIds, ownerUserIds, ownerTeamIds, showOnStatusPages and notifySubscribers.",
429
429
  example: {
430
430
  incidentSeverityId: "c3d4e5f6-a7b8-4c9d-8e1f-2a3b4c5d6e7f",
431
431
  ownerTeamIds: ["e5f6a7b8-c9d0-4e1f-8a3b-4c5d6e7f8a9b"],
@@ -702,7 +702,7 @@ Form = __decorate([
702
702
  singularName: "Form",
703
703
  pluralName: "Forms",
704
704
  icon: IconProp_1.default.ClipboardDocumentList,
705
- tableDescription: "Forms anyone with the link can fill in, without a OneUptime account. Each submission creates an incident or a scheduled maintenance event in this project.",
705
+ tableDescription: "Forms anyone with the link can fill in, without a OneUptime account. Each submission creates an incident or a maintenance event in this project.",
706
706
  })
707
707
  ], Form);
708
708
  exports.default = Form;
@@ -253,7 +253,7 @@ __decorate([
253
253
  type: TableColumnType_1.default.ShortText,
254
254
  allowedValues: Object.values(FormTargetType_1.default),
255
255
  title: "Created",
256
- description: "What the submission created: Incident, or ScheduledMaintenance (a scheduled maintenance event).",
256
+ description: "What the submission created: Incident, or ScheduledMaintenance (a maintenance event).",
257
257
  example: FormTargetType_1.default.Incident,
258
258
  }),
259
259
  (0, typeorm_1.Column)({
@@ -320,7 +320,7 @@ __decorate([
320
320
  type: TableColumnType_1.default.Entity,
321
321
  modelType: ScheduledMaintenance_1.default,
322
322
  title: "Maintenance Event",
323
- description: "The scheduled maintenance event this submission created. Empty for a form that creates incidents, and once that event is deleted.",
323
+ description: "The maintenance event this submission created. Empty for a form that creates incidents, and once that event is deleted.",
324
324
  }),
325
325
  (0, typeorm_1.ManyToOne)(() => {
326
326
  return ScheduledMaintenance_1.default;
@@ -345,7 +345,7 @@ __decorate([
345
345
  required: false,
346
346
  canReadOnRelationQuery: true,
347
347
  title: "Maintenance Event ID",
348
- description: "ID of the scheduled maintenance event this submission created. Empty for a form that creates incidents, and once that event is deleted.",
348
+ description: "ID of the maintenance event this submission created. Empty for a form that creates incidents, and once that event is deleted.",
349
349
  example: "b8c9d0e1-f2a3-4b4c-9d5e-6f7a8b9c0d1e",
350
350
  }),
351
351
  (0, typeorm_1.Column)({
@@ -379,7 +379,7 @@ FormSubmission = __decorate([
379
379
  singularName: "Form Submission",
380
380
  pluralName: "Form Submissions",
381
381
  icon: IconProp_1.default.ClipboardDocumentCheck,
382
- tableDescription: "The submissions made through this project's forms: every answer, the name and email the submitter gave, and the incident or scheduled maintenance event each one created.",
382
+ tableDescription: "The submissions made through this project's forms: every answer, the name and email the submitter gave, and the incident or maintenance event each one created.",
383
383
  })
384
384
  ], FormSubmission);
385
385
  exports.default = FormSubmission;
@@ -624,18 +624,26 @@ __decorate([
624
624
  create: [],
625
625
  read: [],
626
626
  update: [],
627
- }),
627
+ })
628
+ /*
629
+ * Stored encrypted, as every credential column of this row is (#7739):
630
+ * DatabaseService encrypts it on write and decrypts it on read, so every
631
+ * reader gets the password as it was written. Not unique, as none of
632
+ * them is: each write stores a different ciphertext, and the
633
+ * EncryptGlobalConfigCredentials data migration encrypts a value stored
634
+ * before. Tests/Models/DatabaseModels/GlobalConfigCredentialColumns
635
+ * holds the full list, and the columns left as they are with why.
636
+ */
637
+ ,
628
638
  (0, TableColumn_1.default)({
629
- secret: true,
630
- type: TableColumnType_1.default.ShortText,
639
+ type: TableColumnType_1.default.VeryLongText,
640
+ encrypted: true,
631
641
  title: "SMTP Password",
632
642
  description: "Password for your SMTP Server",
633
643
  }),
634
644
  (0, typeorm_1.Column)({
635
- type: ColumnType_1.default.ShortText,
636
- length: ColumnLength_1.default.ShortText,
645
+ type: ColumnType_1.default.VeryLongText,
637
646
  nullable: true,
638
- unique: true,
639
647
  }),
640
648
  __metadata("design:type", String)
641
649
  ], GlobalConfig.prototype, "smtpPassword", void 0);
@@ -784,8 +792,8 @@ __decorate([
784
792
  update: [],
785
793
  }),
786
794
  (0, TableColumn_1.default)({
787
- secret: true,
788
795
  type: TableColumnType_1.default.VeryLongText,
796
+ encrypted: true,
789
797
  title: "SMTP OAuth Client Secret",
790
798
  description: "The Client Secret from your OAuth application registration. Required for OAuth authentication. For Google service accounts, this is the private key from the JSON key file.",
791
799
  }),
@@ -875,16 +883,14 @@ __decorate([
875
883
  update: [],
876
884
  }),
877
885
  (0, TableColumn_1.default)({
878
- secret: true,
879
- type: TableColumnType_1.default.ShortText,
886
+ type: TableColumnType_1.default.VeryLongText,
887
+ encrypted: true,
880
888
  title: "Twilio Auth Token",
881
889
  description: "Auth Token for your Twilio Account",
882
890
  }),
883
891
  (0, typeorm_1.Column)({
884
- type: ColumnType_1.default.ShortText,
885
- length: ColumnLength_1.default.ShortText,
892
+ type: ColumnType_1.default.VeryLongText,
886
893
  nullable: true,
887
- unique: true,
888
894
  }),
889
895
  __metadata("design:type", String)
890
896
  ], GlobalConfig.prototype, "twilioAuthToken", void 0);
@@ -1020,16 +1026,14 @@ __decorate([
1020
1026
  update: [],
1021
1027
  }),
1022
1028
  (0, TableColumn_1.default)({
1023
- secret: true,
1024
- type: TableColumnType_1.default.ShortText,
1029
+ type: TableColumnType_1.default.VeryLongText,
1030
+ encrypted: true,
1025
1031
  title: "Gateway Signing Secret",
1026
1032
  description: "The secret each request to your gateway is signed with, in the X-OneUptime-Signature header.",
1027
1033
  }),
1028
1034
  (0, typeorm_1.Column)({
1029
- type: ColumnType_1.default.ShortText,
1030
- length: ColumnLength_1.default.ShortText,
1035
+ type: ColumnType_1.default.VeryLongText,
1031
1036
  nullable: true,
1032
- unique: false,
1033
1037
  }),
1034
1038
  __metadata("design:type", String)
1035
1039
  ], GlobalConfig.prototype, "callAndSmsGatewaySecret", void 0);
@@ -1040,15 +1044,14 @@ __decorate([
1040
1044
  update: [],
1041
1045
  }),
1042
1046
  (0, TableColumn_1.default)({
1043
- secret: true,
1044
1047
  type: TableColumnType_1.default.VeryLongText,
1048
+ encrypted: true,
1045
1049
  title: "Meta WhatsApp Access Token",
1046
1050
  description: "Access token generated from Meta for sending WhatsApp messages.",
1047
1051
  }),
1048
1052
  (0, typeorm_1.Column)({
1049
1053
  type: ColumnType_1.default.VeryLongText,
1050
1054
  nullable: true,
1051
- unique: true,
1052
1055
  }),
1053
1056
  __metadata("design:type", String)
1054
1057
  ], GlobalConfig.prototype, "metaWhatsAppAccessToken", void 0);
@@ -1116,15 +1119,14 @@ __decorate([
1116
1119
  update: [],
1117
1120
  }),
1118
1121
  (0, TableColumn_1.default)({
1119
- secret: true,
1120
1122
  type: TableColumnType_1.default.VeryLongText,
1123
+ encrypted: true,
1121
1124
  title: "Meta WhatsApp App Secret",
1122
1125
  description: "Facebook App Secret for the WhatsApp Business Platform.",
1123
1126
  }),
1124
1127
  (0, typeorm_1.Column)({
1125
1128
  type: ColumnType_1.default.VeryLongText,
1126
1129
  nullable: true,
1127
- unique: true,
1128
1130
  }),
1129
1131
  __metadata("design:type", String)
1130
1132
  ], GlobalConfig.prototype, "metaWhatsAppAppSecret", void 0);
@@ -1135,16 +1137,14 @@ __decorate([
1135
1137
  update: [],
1136
1138
  }),
1137
1139
  (0, TableColumn_1.default)({
1138
- secret: true,
1139
- type: TableColumnType_1.default.ShortText,
1140
+ type: TableColumnType_1.default.VeryLongText,
1141
+ encrypted: true,
1140
1142
  title: "Meta WhatsApp Webhook Verify Token",
1141
1143
  description: "Verify token configured in Meta to validate webhook subscriptions.",
1142
1144
  }),
1143
1145
  (0, typeorm_1.Column)({
1144
- type: ColumnType_1.default.ShortText,
1145
- length: ColumnLength_1.default.ShortText,
1146
+ type: ColumnType_1.default.VeryLongText,
1146
1147
  nullable: true,
1147
- unique: true,
1148
1148
  }),
1149
1149
  __metadata("design:type", String)
1150
1150
  ], GlobalConfig.prototype, "metaWhatsAppWebhookVerifyToken", void 0);
@@ -1155,15 +1155,14 @@ __decorate([
1155
1155
  update: [],
1156
1156
  }),
1157
1157
  (0, TableColumn_1.default)({
1158
- secret: true,
1159
1158
  type: TableColumnType_1.default.VeryLongText,
1159
+ encrypted: true,
1160
1160
  title: "Telegram Bot Token",
1161
1161
  description: "Bot token issued by @BotFather for sending Telegram messages.",
1162
1162
  }),
1163
1163
  (0, typeorm_1.Column)({
1164
1164
  type: ColumnType_1.default.VeryLongText,
1165
1165
  nullable: true,
1166
- unique: true,
1167
1166
  }),
1168
1167
  __metadata("design:type", String)
1169
1168
  ], GlobalConfig.prototype, "telegramBotToken", void 0);
@@ -1193,16 +1192,14 @@ __decorate([
1193
1192
  update: [],
1194
1193
  }),
1195
1194
  (0, TableColumn_1.default)({
1196
- secret: true,
1197
- type: TableColumnType_1.default.ShortText,
1195
+ type: TableColumnType_1.default.VeryLongText,
1196
+ encrypted: true,
1198
1197
  title: "Telegram Webhook Secret Token",
1199
1198
  description: "Secret token passed to Telegram setWebhook. Telegram sends it back in the X-Telegram-Bot-Api-Secret-Token header.",
1200
1199
  }),
1201
1200
  (0, typeorm_1.Column)({
1202
- type: ColumnType_1.default.ShortText,
1203
- length: ColumnLength_1.default.ShortText,
1201
+ type: ColumnType_1.default.VeryLongText,
1204
1202
  nullable: true,
1205
- unique: true,
1206
1203
  }),
1207
1204
  __metadata("design:type", String)
1208
1205
  ], GlobalConfig.prototype, "telegramWebhookSecretToken", void 0);
@@ -1251,15 +1248,14 @@ __decorate([
1251
1248
  update: [],
1252
1249
  }),
1253
1250
  (0, TableColumn_1.default)({
1254
- secret: true,
1255
- type: TableColumnType_1.default.ShortText,
1251
+ type: TableColumnType_1.default.VeryLongText,
1252
+ encrypted: true,
1256
1253
  title: "Sendgrid API Key",
1257
1254
  description: "Sendgrid API Key",
1258
1255
  }),
1259
1256
  (0, typeorm_1.Column)({
1260
- type: ColumnType_1.default.ShortText,
1257
+ type: ColumnType_1.default.VeryLongText,
1261
1258
  nullable: true,
1262
- unique: true,
1263
1259
  }),
1264
1260
  __metadata("design:type", String)
1265
1261
  ], GlobalConfig.prototype, "sendgridApiKey", void 0);
@@ -1636,7 +1632,15 @@ __decorate([
1636
1632
  create: [],
1637
1633
  read: [],
1638
1634
  update: [],
1639
- }),
1635
+ })
1636
+ /*
1637
+ * Stored as it is, not encrypted as the credentials above are: a request
1638
+ * names the key, and ProjectAuthorization.isMasterApiKey finds the row
1639
+ * by it (WHERE "masterApiKey" = the key). An encrypted value differs on
1640
+ * every write, so no lookup by value could match it. It is a uuid
1641
+ * column, too, which holds no ciphertext.
1642
+ */
1643
+ ,
1640
1644
  (0, TableColumn_1.default)({
1641
1645
  secret: true,
1642
1646
  type: TableColumnType_1.default.ObjectID,
@@ -1698,16 +1702,14 @@ __decorate([
1698
1702
  update: [],
1699
1703
  }),
1700
1704
  (0, TableColumn_1.default)({
1701
- secret: true,
1702
- type: TableColumnType_1.default.ShortText,
1705
+ type: TableColumnType_1.default.VeryLongText,
1706
+ encrypted: true,
1703
1707
  title: "Enterprise License Key",
1704
1708
  description: "Enterprise license key stored after successful validation.",
1705
1709
  }),
1706
1710
  (0, typeorm_1.Column)({
1707
- type: ColumnType_1.default.ShortText,
1708
- length: ColumnLength_1.default.ShortText,
1711
+ type: ColumnType_1.default.VeryLongText,
1709
1712
  nullable: true,
1710
- unique: true,
1711
1713
  }),
1712
1714
  __metadata("design:type", String)
1713
1715
  ], GlobalConfig.prototype, "enterpriseLicenseKey", void 0);
@@ -1736,15 +1738,14 @@ __decorate([
1736
1738
  update: [],
1737
1739
  }),
1738
1740
  (0, TableColumn_1.default)({
1739
- secret: true,
1740
1741
  type: TableColumnType_1.default.VeryLongText,
1742
+ encrypted: true,
1741
1743
  title: "Enterprise License Token",
1742
1744
  description: "Signed JWT returned from license validation.",
1743
1745
  }),
1744
1746
  (0, typeorm_1.Column)({
1745
1747
  type: ColumnType_1.default.VeryLongText,
1746
1748
  nullable: true,
1747
- unique: true,
1748
1749
  }),
1749
1750
  __metadata("design:type", String)
1750
1751
  ], GlobalConfig.prototype, "enterpriseLicenseToken", void 0);
@@ -393,8 +393,14 @@ __decorate([
393
393
  Permission_1.default.ReadProjectIncident,
394
394
  ],
395
395
  update: [],
396
- }),
397
- (0, typeorm_1.Index)(),
396
+ })
397
+ /*
398
+ * No bare @Index() here on purpose: the composites on the class lead with
399
+ * this column ("projectId", "createdAt" first), and serve every read by it
400
+ * and the ON DELETE CASCADE of a project. Another would cost every insert
401
+ * and every state change one more index write for nothing.
402
+ */
403
+ ,
398
404
  (0, TableColumn_1.default)({
399
405
  type: TableColumnType_1.default.ObjectID,
400
406
  required: true,
@@ -3917,6 +3923,16 @@ Incident = __decorate([
3917
3923
  },
3918
3924
  }),
3919
3925
  (0, typeorm_1.Index)(["projectId", "currentIncidentStateId"]) // Active-incident counters on dashboard
3926
+ /*
3927
+ * The Incidents list, newest first - the order every read of incidents takes
3928
+ * when it asks for none (DatabaseService.getReadSort): the page's ids are
3929
+ * read in this index's order, ten at a time, instead of sorting every
3930
+ * incident of the project. It also serves every read by project and
3931
+ * the ON DELETE CASCADE of a project, which is why the column has no bare
3932
+ * index of its own.
3933
+ */
3934
+ ,
3935
+ (0, typeorm_1.Index)(["projectId", "createdAt"])
3920
3936
  // The Postmortems list: its status chips and the count of each status.
3921
3937
  ,
3922
3938
  (0, typeorm_1.Index)(["projectId", "postmortemStatusId"])
@@ -432,7 +432,7 @@ __decorate([
432
432
  required: false,
433
433
  type: TableColumnType_1.default.Number,
434
434
  title: "Internal Note Reminder Interval (Minutes)",
435
- description: "How often (in minutes) to automatically post internal notes to unresolved incidents. Internal notes are only visible to your team. For example, set to 30 to remind your team every 30 minutes to provide an update. Leave empty to disable.",
435
+ description: "How often (in minutes) to automatically post internal notes to unresolved incidents. Only the people who can see an incident can read its internal notes. For example, set to 30 to remind your team every 30 minutes to provide an update. Leave empty to disable.",
436
436
  canReadOnRelationQuery: true,
437
437
  }),
438
438
  (0, typeorm_1.Column)({
@@ -504,7 +504,7 @@ __decorate([
504
504
  required: false,
505
505
  type: TableColumnType_1.default.Markdown,
506
506
  title: "Internal Note Reminder Template",
507
- description: "The content of the automatic internal note posted to your team. Use variables like {{incidentTitle}}, {{elapsedTime}}, {{slaStatus}}, {{timeToResolutionDeadline}} to include dynamic incident data. If left empty, a default template will be used.",
507
+ description: "The content of the automatic internal note posted on the incident. Use variables like {{incidentTitle}}, {{elapsedTime}}, {{slaStatus}}, {{timeToResolutionDeadline}} to include dynamic incident data. If left empty, a default template will be used.",
508
508
  }),
509
509
  (0, typeorm_1.Column)({
510
510
  type: ColumnType_1.default.Markdown,
@@ -279,6 +279,7 @@ const MonitorGroupResource_1 = __importDefault(require("./MonitorGroupResource")
279
279
  const MonitorOwnerTeam_1 = __importDefault(require("./MonitorOwnerTeam"));
280
280
  const MonitorOwnerUser_1 = __importDefault(require("./MonitorOwnerUser"));
281
281
  const MonitorProbe_1 = __importDefault(require("./MonitorProbe"));
282
+ const MonitorNetworkDevice_1 = __importDefault(require("./MonitorNetworkDevice"));
282
283
  const MonitorSecret_1 = __importDefault(require("./MonitorSecret"));
283
284
  const MonitorStatus_1 = __importDefault(require("./MonitorStatus"));
284
285
  const MonitorStatusTimeline_1 = __importDefault(require("./MonitorStatusTimeline"));
@@ -341,6 +342,7 @@ const AIConversation_1 = __importDefault(require("./AIConversation"));
341
342
  const AIConversationMessage_1 = __importDefault(require("./AIConversationMessage"));
342
343
  const AIRun_1 = __importDefault(require("./AIRun"));
343
344
  const AIRunEvent_1 = __importDefault(require("./AIRunEvent"));
345
+ const AIRunRecording_1 = __importDefault(require("./AIRunRecording"));
344
346
  const AIInsight_1 = __importDefault(require("./AIInsight"));
345
347
  const LlmProvider_1 = __importDefault(require("./LlmProvider"));
346
348
  const LlmLog_1 = __importDefault(require("./LlmLog"));
@@ -964,6 +966,7 @@ const AllModelTypes = [
964
966
  StatusPageOidc_1.default,
965
967
  StatusPageSCIM_1.default,
966
968
  MonitorProbe_1.default,
969
+ MonitorNetworkDevice_1.default,
967
970
  MonitorOwnerTeam_1.default,
968
971
  MonitorOwnerUser_1.default,
969
972
  ScheduledMaintenanceOwnerTeam_1.default,
@@ -1066,6 +1069,7 @@ const AllModelTypes = [
1066
1069
  AIConversationMessage_1.default,
1067
1070
  AIRun_1.default,
1068
1071
  AIRunEvent_1.default,
1072
+ AIRunRecording_1.default,
1069
1073
  AIInsight_1.default,
1070
1074
  LlmProvider_1.default,
1071
1075
  LlmLog_1.default,