@oneuptime/common 14.3.0 → 16.0.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 (690) hide show
  1. package/Models/DatabaseModels/AIAgent.js +7 -1
  2. package/Models/DatabaseModels/AIAgentTaskPullRequest.d.mts +2 -0
  3. package/Models/DatabaseModels/AIAgentTaskPullRequest.d.ts +2 -0
  4. package/Models/DatabaseModels/AIAgentTaskPullRequest.js +62 -0
  5. package/Models/DatabaseModels/AIRun.d.mts +2 -0
  6. package/Models/DatabaseModels/AIRun.d.ts +2 -0
  7. package/Models/DatabaseModels/AIRun.js +63 -0
  8. package/Models/DatabaseModels/AcmeCertificate.js +14 -0
  9. package/Models/DatabaseModels/Alert.js +6 -8
  10. package/Models/DatabaseModels/AlertEpisodeStateTimeline.js +3 -2
  11. package/Models/DatabaseModels/AlertSeverity.js +3 -12
  12. package/Models/DatabaseModels/ApiKey.d.mts +3 -1
  13. package/Models/DatabaseModels/ApiKey.d.ts +3 -1
  14. package/Models/DatabaseModels/ApiKey.js +67 -14
  15. package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +1 -0
  16. package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +1 -0
  17. package/Models/DatabaseModels/AutoRemediationSuggestion.js +37 -4
  18. package/Models/DatabaseModels/CallLog.js +15 -3
  19. package/Models/DatabaseModels/CodeRepository.d.mts +1 -0
  20. package/Models/DatabaseModels/CodeRepository.d.ts +1 -0
  21. package/Models/DatabaseModels/CodeRepository.js +45 -2
  22. package/Models/DatabaseModels/CodeRepositoryMintedToken.d.mts +25 -0
  23. package/Models/DatabaseModels/CodeRepositoryMintedToken.d.ts +25 -0
  24. package/Models/DatabaseModels/CodeRepositoryMintedToken.js +436 -0
  25. package/Models/DatabaseModels/CodeRepositoryMintedToken.mjs +2 -0
  26. package/Models/DatabaseModels/CustomNotificationChannel.js +17 -9
  27. package/Models/DatabaseModels/Dashboard.js +10 -2
  28. package/Models/DatabaseModels/DashboardDomain.js +22 -27
  29. package/Models/DatabaseModels/DataProduct.js +3 -2
  30. package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.mts +2 -0
  31. package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.ts +2 -0
  32. package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.js +30 -0
  33. package/Models/DatabaseModels/EmailLog.js +15 -3
  34. package/Models/DatabaseModels/File.js +4 -2
  35. package/Models/DatabaseModels/FormDomain.js +10 -2
  36. package/Models/DatabaseModels/GlobalConfig.d.mts +9 -1
  37. package/Models/DatabaseModels/GlobalConfig.d.ts +9 -1
  38. package/Models/DatabaseModels/GlobalConfig.js +187 -11
  39. package/Models/DatabaseModels/Incident.js +38 -44
  40. package/Models/DatabaseModels/IncidentEpisodePublicNote.js +11 -16
  41. package/Models/DatabaseModels/IncidentEpisodeStateTimeline.js +3 -2
  42. package/Models/DatabaseModels/IncidentPublicNote.js +11 -16
  43. package/Models/DatabaseModels/IncidentSeverity.js +3 -12
  44. package/Models/DatabaseModels/IncidentStateTimeline.js +12 -16
  45. package/Models/DatabaseModels/IncidentTemplate.js +6 -11
  46. package/Models/DatabaseModels/IncomingRequestSecret.d.mts +6 -0
  47. package/Models/DatabaseModels/IncomingRequestSecret.d.ts +6 -0
  48. package/Models/DatabaseModels/IncomingRequestSecret.js +156 -29
  49. package/Models/DatabaseModels/Index.js +2 -5
  50. package/Models/DatabaseModels/IoTDeviceCredential.js +3 -1
  51. package/Models/DatabaseModels/Monitor.d.mts +5 -0
  52. package/Models/DatabaseModels/Monitor.d.ts +5 -0
  53. package/Models/DatabaseModels/Monitor.js +204 -26
  54. package/Models/DatabaseModels/MonitorNetworkDevice.js +4 -1
  55. package/Models/DatabaseModels/MonitorTemplate.js +3 -1
  56. package/Models/DatabaseModels/MonitorTest.js +3 -1
  57. package/Models/DatabaseModels/NetworkDevice.js +59 -20
  58. package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js +38 -15
  59. package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
  60. package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
  61. package/Models/DatabaseModels/NetworkEndpoint.js +39 -0
  62. package/Models/DatabaseModels/NetworkSnmpCredentialProfile.js +4 -4
  63. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +45 -12
  64. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.mts +2 -0
  65. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.ts +2 -0
  66. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +93 -5
  67. package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.mts +1 -0
  68. package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.ts +1 -0
  69. package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +43 -0
  70. package/Models/DatabaseModels/OpenStackProjectNotice.js +29 -10
  71. package/Models/DatabaseModels/Probe.js +7 -1
  72. package/Models/DatabaseModels/Project.d.mts +1 -1
  73. package/Models/DatabaseModels/Project.d.ts +1 -1
  74. package/Models/DatabaseModels/Project.js +59 -64
  75. package/Models/DatabaseModels/ProjectSCIM.d.mts +2 -1
  76. package/Models/DatabaseModels/ProjectSCIM.d.ts +2 -1
  77. package/Models/DatabaseModels/ProjectSCIM.js +21 -9
  78. package/Models/DatabaseModels/ProjectSmtpConfig.js +44 -49
  79. package/Models/DatabaseModels/PushNotificationLog.js +15 -3
  80. package/Models/DatabaseModels/Reseller.js +2 -8
  81. package/Models/DatabaseModels/ResellerPlan.js +2 -8
  82. package/Models/DatabaseModels/Runbook.js +3 -2
  83. package/Models/DatabaseModels/RunbookExecution.js +4 -4
  84. package/Models/DatabaseModels/Runner.d.mts +1 -0
  85. package/Models/DatabaseModels/Runner.d.ts +1 -0
  86. package/Models/DatabaseModels/Runner.js +52 -0
  87. package/Models/DatabaseModels/ScheduledMaintenance.js +32 -24
  88. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +11 -16
  89. package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +12 -16
  90. package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +9 -8
  91. package/Models/DatabaseModels/ServiceLevelObjective.js +7 -0
  92. package/Models/DatabaseModels/SmsLog.js +15 -3
  93. package/Models/DatabaseModels/StatusPage.js +33 -13
  94. package/Models/DatabaseModels/StatusPageAnnouncement.js +19 -24
  95. package/Models/DatabaseModels/StatusPageDomain.js +24 -27
  96. package/Models/DatabaseModels/StatusPageSCIM.d.mts +2 -1
  97. package/Models/DatabaseModels/StatusPageSCIM.d.ts +2 -1
  98. package/Models/DatabaseModels/StatusPageSCIM.js +17 -8
  99. package/Models/DatabaseModels/StatusPageSubscriber.js +40 -19
  100. package/Models/DatabaseModels/TelegramLog.js +15 -3
  101. package/Models/DatabaseModels/TelemetryIngestionKey.d.mts +2 -0
  102. package/Models/DatabaseModels/TelemetryIngestionKey.d.ts +2 -0
  103. package/Models/DatabaseModels/TelemetryIngestionKey.js +36 -1
  104. package/Models/DatabaseModels/User.d.mts +0 -3
  105. package/Models/DatabaseModels/User.d.ts +0 -3
  106. package/Models/DatabaseModels/User.js +5 -73
  107. package/Models/DatabaseModels/UserOnCallLog.d.mts +1 -0
  108. package/Models/DatabaseModels/UserOnCallLog.d.ts +1 -0
  109. package/Models/DatabaseModels/UserOnCallLog.js +52 -5
  110. package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -2
  111. package/Models/DatabaseModels/UserWebhook.js +39 -22
  112. package/Models/DatabaseModels/WebhookLog.js +27 -5
  113. package/Models/DatabaseModels/WhatsAppLog.js +15 -3
  114. package/Models/DatabaseModels/Workflow.d.mts +3 -0
  115. package/Models/DatabaseModels/Workflow.d.ts +3 -0
  116. package/Models/DatabaseModels/Workflow.js +70 -1
  117. package/Models/DatabaseModels/WorkspaceNotificationLog.js +15 -3
  118. package/Models/DatabaseModels/WorkspaceNotificationRule.js +10 -7
  119. package/Models/DatabaseModels/WorkspaceProjectAuthToken.js +16 -2
  120. package/Models/DatabaseModels/WorkspaceUserAuthToken.js +13 -2
  121. package/Server/Services/DatabaseService.d.mts +78 -39
  122. package/Server/Services/DatabaseService.d.ts +78 -39
  123. package/Server/Types/Database/Permissions/PrivateRecordPermission.d.mts +123 -0
  124. package/Server/Types/Database/Permissions/PrivateRecordPermission.d.ts +123 -0
  125. package/Types/AI/AIActionWords.d.mts +14 -1
  126. package/Types/AI/AIActionWords.d.ts +14 -1
  127. package/Types/AI/AIActionWords.js +85 -1
  128. package/Types/AI/AIActionWords.mjs +4 -0
  129. package/Types/AI/AIAgentRunLimits.js +5 -4
  130. package/Types/AI/AIChatTypes.js +8 -3
  131. package/Types/AI/AIReadTableWords.js +7 -2
  132. package/Types/AI/AiActivityInsights.d.mts +1 -0
  133. package/Types/AI/AiActivityInsights.d.ts +1 -0
  134. package/Types/AI/CarriedRecords.d.mts +35 -0
  135. package/Types/AI/CarriedRecords.d.ts +35 -0
  136. package/Types/AI/CarriedRecords.js +211 -0
  137. package/Types/AI/CarriedRecords.mjs +3 -0
  138. package/Types/AI/CodeTask.d.mts +1 -0
  139. package/Types/AI/CodeTask.d.ts +1 -0
  140. package/Types/AI/CodeTask.js +7 -0
  141. package/Types/AI/ResourceAiAccessApi.d.mts +4 -0
  142. package/Types/AI/ResourceAiAccessApi.d.ts +4 -0
  143. package/Types/Accounts/MoreWaysToSignIn.d.mts +1 -0
  144. package/Types/Accounts/MoreWaysToSignIn.d.ts +1 -0
  145. package/Types/Accounts/MoreWaysToSignIn.js +11 -0
  146. package/Types/Accounts/MoreWaysToSignIn.mjs +2 -0
  147. package/Types/Accounts/SetPasswordLink.d.mts +6 -0
  148. package/Types/Accounts/SetPasswordLink.d.ts +6 -0
  149. package/Types/Accounts/SetPasswordLink.js +47 -0
  150. package/Types/Accounts/SetPasswordLink.mjs +7 -0
  151. package/Types/Accounts/SignInMessages.d.mts +5 -0
  152. package/Types/Accounts/SignInMessages.d.ts +5 -0
  153. package/Types/Accounts/SignInMessages.js +19 -1
  154. package/Types/Accounts/SignInMessages.mjs +2 -0
  155. package/Types/Analytics/ProductEvent.d.mts +7 -2
  156. package/Types/Analytics/ProductEvent.d.ts +7 -2
  157. package/Types/Analytics/ProductEvent.js +62 -12
  158. package/Types/ApiKey/ApiKeyShownOnce.d.mts +11 -0
  159. package/Types/ApiKey/ApiKeyShownOnce.d.ts +11 -0
  160. package/Types/ApiKey/ApiKeyShownOnce.js +78 -0
  161. package/Types/ApiKey/ApiKeyShownOnce.mjs +6 -0
  162. package/Types/AuditLog/AuditLogAction.d.mts +1 -0
  163. package/Types/AuditLog/AuditLogAction.d.ts +1 -0
  164. package/Types/AuditLog/AuditLogAction.js +11 -1
  165. package/Types/AuditLog/AuditLogActionLabel.js +1 -0
  166. package/Types/AuditLog/AuditLogCoverage.js +1 -0
  167. package/Types/AuditLog/AuditLogSessionEvent.d.mts +15 -3
  168. package/Types/AuditLog/AuditLogSessionEvent.d.ts +15 -3
  169. package/Types/AuditLog/AuditLogSessionEvent.js +107 -12
  170. package/Types/AuditLog/AuditLogSessionEvent.mjs +6 -0
  171. package/Types/AuditLog/AuditLogSignInFailure.d.mts +30 -0
  172. package/Types/AuditLog/AuditLogSignInFailure.d.ts +30 -0
  173. package/Types/AuditLog/AuditLogSignInFailure.js +109 -0
  174. package/Types/AuditLog/AuditLogSignInFailure.mjs +8 -0
  175. package/Types/AuditLog/AuditLogStatusPageSession.d.mts +29 -0
  176. package/Types/AuditLog/AuditLogStatusPageSession.d.ts +29 -0
  177. package/Types/AuditLog/AuditLogStatusPageSession.js +106 -0
  178. package/Types/AuditLog/AuditLogStatusPageSession.mjs +9 -0
  179. package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.mts +11 -0
  180. package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.ts +11 -0
  181. package/Types/AuditLog/Export/AuditLogExportEntriesLost.js +57 -0
  182. package/Types/AuditLog/Export/AuditLogExportEntriesLost.mjs +5 -0
  183. package/Types/AutoRemediation/RemediationApprovals.d.mts +39 -0
  184. package/Types/AutoRemediation/RemediationApprovals.d.ts +39 -0
  185. package/Types/AutoRemediation/RemediationApprovals.js +174 -8
  186. package/Types/AutoRemediation/RemediationApprovals.mjs +9 -0
  187. package/Types/AutoRemediation/RemediationPlanFingerprint.d.mts +15 -0
  188. package/Types/AutoRemediation/RemediationPlanFingerprint.d.ts +15 -0
  189. package/Types/AutoRemediation/RemediationPlanFingerprint.js +131 -0
  190. package/Types/AutoRemediation/RemediationPlanFingerprint.mjs +6 -0
  191. package/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.js +1 -1
  192. package/Types/BaseDatabase/SortNulls.d.mts +5 -0
  193. package/Types/BaseDatabase/SortNulls.d.ts +5 -0
  194. package/Types/BaseDatabase/SortNulls.js +14 -0
  195. package/Types/BaseDatabase/SortNulls.mjs +2 -0
  196. package/Types/Billing/AdminProjectInvoice.d.mts +20 -0
  197. package/Types/Billing/AdminProjectInvoice.d.ts +20 -0
  198. package/Types/Billing/AdminProjectInvoice.js +85 -0
  199. package/Types/Billing/AdminProjectInvoice.mjs +6 -0
  200. package/Types/CloudConnection/CloudAiAgentCost.d.mts +6 -2
  201. package/Types/CloudConnection/CloudAiAgentCost.d.ts +6 -2
  202. package/Types/CloudConnection/CloudAiAgentCost.js +28 -2
  203. package/Types/CloudConnection/CloudAiAgentCost.mjs +4 -0
  204. package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +19 -1
  205. package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +19 -1
  206. package/Types/CloudConnection/CloudAiAgentSetupCommands.js +354 -16
  207. package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +17 -0
  208. package/Types/CodeRepository/ProductionReview.d.mts +5 -0
  209. package/Types/CodeRepository/ProductionReview.d.ts +5 -0
  210. package/Types/CodeRepository/ProductionReview.js +108 -0
  211. package/Types/CustomDomain/UploadedCertificateRefusals.d.mts +10 -0
  212. package/Types/CustomDomain/UploadedCertificateRefusals.d.ts +10 -0
  213. package/Types/CustomDomain/UploadedCertificateRefusals.js +69 -0
  214. package/Types/CustomDomain/UploadedCertificateRefusals.mjs +11 -0
  215. package/Types/DataObservability/DataLineageMap.d.mts +147 -0
  216. package/Types/DataObservability/DataLineageMap.d.ts +147 -0
  217. package/Types/DataObservability/DataLineageMap.js +503 -0
  218. package/Types/DataObservability/DataLineageMap.mjs +20 -0
  219. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +1 -0
  220. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +1 -0
  221. package/Types/DataObservability/DataObservabilityApiTypes.js +2 -0
  222. package/Types/Database/DatabaseProperty.d.mts +1 -0
  223. package/Types/Database/DatabaseProperty.d.ts +1 -0
  224. package/Types/Database/DatabaseProperty.js +27 -0
  225. package/Types/Database/EncryptedValue.d.mts +2 -0
  226. package/Types/Database/EncryptedValue.d.ts +2 -0
  227. package/Types/Database/EncryptedValue.js +27 -0
  228. package/Types/Database/EncryptedValue.mjs +3 -0
  229. package/Types/Database/TableColumn.d.mts +4 -0
  230. package/Types/Database/TableColumn.d.ts +4 -0
  231. package/Types/Database/UserAttribution.js +7 -3
  232. package/Types/Date.d.mts +0 -2
  233. package/Types/Date.d.ts +0 -2
  234. package/Types/Date.js +12 -19
  235. package/Types/Docs/GlossaryTerm.d.mts +1 -0
  236. package/Types/Docs/GlossaryTerm.d.ts +1 -0
  237. package/Types/Docs/GlossaryTerm.js +2 -0
  238. package/Types/Email/EmailMessage.d.mts +2 -0
  239. package/Types/Email/EmailMessage.d.ts +2 -0
  240. package/Types/Email/EmailRecipients.d.mts +11 -0
  241. package/Types/Email/EmailRecipients.d.ts +11 -0
  242. package/Types/Email/EmailRecipients.js +84 -0
  243. package/Types/Email/EmailRecipients.mjs +6 -0
  244. package/Types/Email/EmailSendFailure.d.mts +20 -0
  245. package/Types/Email/EmailSendFailure.d.ts +20 -0
  246. package/Types/Email/EmailSendFailure.js +244 -0
  247. package/Types/Email/EmailSendFailure.mjs +3 -0
  248. package/Types/Email/EmailTemplateType.d.mts +3 -1
  249. package/Types/Email/EmailTemplateType.d.ts +3 -1
  250. package/Types/Email/EmailTemplateType.js +10 -0
  251. package/Types/IP/IP.js +27 -1
  252. package/Types/JoinedSerializableObjects.d.mts +6 -0
  253. package/Types/JoinedSerializableObjects.d.ts +6 -0
  254. package/Types/JoinedSerializableObjects.js +14 -0
  255. package/Types/JoinedSerializableObjects.mjs +3 -0
  256. package/Types/Kubernetes/KubernetesClusterAiLogs.d.mts +2 -0
  257. package/Types/Kubernetes/KubernetesClusterAiLogs.d.ts +2 -0
  258. package/Types/MasterApiKey/MasterApiKeyAnswer.d.mts +15 -0
  259. package/Types/MasterApiKey/MasterApiKeyAnswer.d.ts +15 -0
  260. package/Types/MasterApiKey/MasterApiKeyAnswer.js +81 -0
  261. package/Types/MasterApiKey/MasterApiKeyAnswer.mjs +5 -0
  262. package/Types/MeaningKeys.js +19 -0
  263. package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.mts +2 -0
  264. package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.ts +2 -0
  265. package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.mts +23 -1
  266. package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.ts +23 -1
  267. package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.js +105 -4
  268. package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.mjs +7 -0
  269. package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.mts +11 -0
  270. package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.ts +11 -0
  271. package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.js +28 -0
  272. package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.mjs +3 -0
  273. package/Types/Monitor/MonitorCriteria.js +8 -0
  274. package/Types/Monitor/MonitorCriteriaInstance.js +8 -0
  275. package/Types/Monitor/MonitorGroupUptimeSummary.d.mts +12 -0
  276. package/Types/Monitor/MonitorGroupUptimeSummary.d.ts +12 -0
  277. package/Types/Monitor/MonitorGroupUptimeSummary.js +2 -0
  278. package/Types/Monitor/MonitorGroupUptimeSummary.mjs +1 -0
  279. package/Types/Monitor/MonitorJsonTypes.d.mts +4 -0
  280. package/Types/Monitor/MonitorJsonTypes.d.ts +4 -0
  281. package/Types/Monitor/MonitorJsonTypes.js +31 -0
  282. package/Types/Monitor/MonitorJsonTypes.mjs +2 -0
  283. package/Types/Monitor/MonitorStep.js +8 -0
  284. package/Types/Monitor/MonitorSteps.js +8 -0
  285. package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.mts +3 -0
  286. package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.ts +3 -0
  287. package/Types/Monitor/MonitorStepsColumnTransformer.browser.js +21 -0
  288. package/Types/Monitor/MonitorStepsColumnTransformer.browser.mjs +2 -0
  289. package/Types/Monitor/MonitorStepsColumnTransformer.d.mts +3 -0
  290. package/Types/Monitor/MonitorStepsColumnTransformer.d.ts +3 -0
  291. package/Types/Monitor/MonitorStepsColumnTransformer.js +24 -0
  292. package/Types/Monitor/MonitorStepsColumnTransformer.mjs +2 -0
  293. package/Types/Monitor/UptimeHistoryLabels.d.mts +4 -0
  294. package/Types/Monitor/UptimeHistoryLabels.d.ts +4 -0
  295. package/Types/Monitor/UptimeHistoryLabels.js +4 -0
  296. package/Types/Monitor/WhoIsTold.d.mts +25 -0
  297. package/Types/Monitor/WhoIsTold.d.ts +25 -0
  298. package/Types/Monitor/WhoIsTold.js +171 -19
  299. package/Types/Monitor/WhoIsTold.mjs +3 -0
  300. package/Types/NoBreakSpaces.d.mts +5 -1
  301. package/Types/NoBreakSpaces.d.ts +5 -1
  302. package/Types/NoBreakSpaces.js +107 -52
  303. package/Types/NoBreakSpaces.mjs +1 -0
  304. package/Types/NotificationRule/PagingLadder.d.mts +2 -0
  305. package/Types/NotificationRule/PagingLadder.d.ts +2 -0
  306. package/Types/NotificationRule/PagingLadder.js +47 -1
  307. package/Types/NotificationRule/PagingLadder.mjs +1 -0
  308. package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.mts +2 -1
  309. package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.ts +2 -1
  310. package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.js +6 -0
  311. package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.mts +5 -0
  312. package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.ts +5 -0
  313. package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.js +41 -0
  314. package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.mjs +1 -0
  315. package/Types/OnCallDutyPolicy/OnCallLogLine.d.mts +6 -1
  316. package/Types/OnCallDutyPolicy/OnCallLogLine.d.ts +6 -1
  317. package/Types/OnCallDutyPolicy/OnCallLogLine.js +60 -0
  318. package/Types/OnCallDutyPolicy/OnCallPageMerge.d.mts +32 -0
  319. package/Types/OnCallDutyPolicy/OnCallPageMerge.d.ts +32 -0
  320. package/Types/OnCallDutyPolicy/OnCallPageMerge.js +192 -0
  321. package/Types/OnCallDutyPolicy/OnCallPageMerge.mjs +14 -0
  322. package/Types/OnCallDutyPolicy/OnCallRunLevel.d.mts +40 -0
  323. package/Types/OnCallDutyPolicy/OnCallRunLevel.d.ts +40 -0
  324. package/Types/OnCallDutyPolicy/OnCallRunLevel.js +142 -0
  325. package/Types/OnCallDutyPolicy/OnCallRunLevel.mjs +13 -0
  326. package/Types/Password.d.mts +18 -12
  327. package/Types/Password.d.ts +18 -12
  328. package/Types/Password.js +63 -58
  329. package/Types/Password.mjs +3 -3
  330. package/Types/Permission.d.mts +4 -0
  331. package/Types/Permission.d.ts +4 -0
  332. package/Types/Permission.js +48 -0
  333. package/Types/PrivateRecord/PrivateRecordParts.js +50 -0
  334. package/Types/Probe/ProbeCapability.d.mts +2 -1
  335. package/Types/Probe/ProbeCapability.d.ts +2 -1
  336. package/Types/Probe/ProbeCapability.js +11 -0
  337. package/Types/Product/ProjectProducts.d.mts +1 -15
  338. package/Types/Product/ProjectProducts.d.ts +1 -15
  339. package/Types/Product/ProjectProducts.js +38 -129
  340. package/Types/Product/ProjectProducts.mjs +1 -5
  341. package/Types/Product/ProjectProductsAnswer.js +5 -6
  342. package/Types/ProductFeedback/ProductFeedback.d.mts +29 -4
  343. package/Types/ProductFeedback/ProductFeedback.d.ts +29 -4
  344. package/Types/ProductFeedback/ProductFeedback.js +176 -28
  345. package/Types/ProductFeedback/ProductFeedback.mjs +11 -1
  346. package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +6 -0
  347. package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +6 -0
  348. package/Types/ResourceAiAgent/CloudAiAgentNames.js +20 -1
  349. package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +5 -0
  350. package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +3 -1
  351. package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +3 -1
  352. package/Types/ResourceAiAgent/ResourceAiAccess.js +18 -1
  353. package/Types/ResourceAiAgent/ResourceAiAccess.mjs +2 -0
  354. package/Types/Retention/ResolvedRecordRetention.d.mts +33 -0
  355. package/Types/Retention/ResolvedRecordRetention.d.ts +33 -0
  356. package/Types/Retention/ResolvedRecordRetention.js +211 -1
  357. package/Types/Retention/ResolvedRecordRetention.mjs +13 -0
  358. package/Types/Retention/ResolvedRecordRetentionAnswers.d.mts +28 -0
  359. package/Types/Retention/ResolvedRecordRetentionAnswers.d.ts +28 -0
  360. package/Types/Retention/ResolvedRecordRetentionAnswers.js +134 -0
  361. package/Types/Retention/ResolvedRecordRetentionAnswers.mjs +5 -0
  362. package/Types/Rules/RuleEmptiedLimit.d.mts +20 -0
  363. package/Types/Rules/RuleEmptiedLimit.d.ts +20 -0
  364. package/Types/Rules/RuleEmptiedLimit.js +131 -0
  365. package/Types/Rules/RuleEmptiedLimit.mjs +9 -0
  366. package/Types/Runbook/RunbookStepTimeout.js +11 -10
  367. package/Types/Runner/GlobalRunnerRepositoryTokens.d.mts +18 -0
  368. package/Types/Runner/GlobalRunnerRepositoryTokens.d.ts +18 -0
  369. package/Types/Runner/GlobalRunnerRepositoryTokens.js +97 -0
  370. package/Types/Runner/GlobalRunnerRepositoryTokens.mjs +8 -0
  371. package/Types/Runner/GlobalRunnerSandbox.d.mts +38 -0
  372. package/Types/Runner/GlobalRunnerSandbox.d.ts +38 -0
  373. package/Types/Runner/GlobalRunnerSandbox.js +178 -0
  374. package/Types/Runner/GlobalRunnerSandbox.mjs +9 -0
  375. package/Types/Runner/GlobalRunnerWork.js +9 -4
  376. package/Types/Runner/RunnerCodeFixCapability.d.mts +16 -0
  377. package/Types/Runner/RunnerCodeFixCapability.d.ts +16 -0
  378. package/Types/Runner/RunnerCodeFixCapability.js +121 -0
  379. package/Types/Runner/RunnerCodeFixCapability.mjs +8 -0
  380. package/Types/Runner/RunnerCodeFixes.d.mts +3 -0
  381. package/Types/Runner/RunnerCodeFixes.d.ts +3 -0
  382. package/Types/Runner/RunnerCodeFixes.js +27 -4
  383. package/Types/Runner/RunnerCodeFixes.mjs +1 -0
  384. package/Types/SSO/SessionsWithoutSso.d.mts +10 -0
  385. package/Types/SSO/SessionsWithoutSso.d.ts +10 -0
  386. package/Types/SSO/SessionsWithoutSso.js +39 -0
  387. package/Types/SSO/SessionsWithoutSso.mjs +5 -0
  388. package/Types/SerializableObjectDictionary.js +11 -8
  389. package/Types/ServerSending/ServerSendingStatus.d.mts +23 -2
  390. package/Types/ServerSending/ServerSendingStatus.d.ts +23 -2
  391. package/Types/ServerSending/ServerSendingStatus.js +208 -10
  392. package/Types/ServerSending/ServerSendingStatus.mjs +3 -0
  393. package/Types/ServerSetup/ServerSetupChecklist.js +5 -0
  394. package/Types/SetupHealth/SetupHealth.d.mts +47 -2
  395. package/Types/SetupHealth/SetupHealth.d.ts +47 -2
  396. package/Types/SetupHealth/SetupHealth.js +228 -1
  397. package/Types/SetupHealth/SetupHealth.mjs +12 -0
  398. package/Types/StatusPage/StatusPageMagicLink.js +1 -1
  399. package/Types/StatusPage/StatusPageReport.d.mts +5 -2
  400. package/Types/StatusPage/StatusPageReport.d.ts +5 -2
  401. package/Types/StatusPage/StatusPageSignInMessages.d.mts +3 -0
  402. package/Types/StatusPage/StatusPageSignInMessages.d.ts +3 -0
  403. package/Types/StatusPage/StatusPageSignInMessages.js +16 -0
  404. package/Types/StatusPage/StatusPageSignInMessages.mjs +4 -0
  405. package/Types/StatusPage/StatusPageSingleSignOnProtocol.d.mts +12 -0
  406. package/Types/StatusPage/StatusPageSingleSignOnProtocol.d.ts +12 -0
  407. package/Types/StatusPage/StatusPageSingleSignOnProtocol.js +63 -0
  408. package/Types/StatusPage/StatusPageSingleSignOnProtocol.mjs +8 -0
  409. package/Types/StatusPage/StatusPageSubscriberChannel.d.mts +18 -0
  410. package/Types/StatusPage/StatusPageSubscriberChannel.d.ts +18 -0
  411. package/Types/StatusPage/StatusPageSubscriberChannel.js +91 -0
  412. package/Types/StatusPage/StatusPageSubscriberChannel.mjs +10 -0
  413. package/Types/StatusPage/SubscriberNotificationTemplateVariables.js +2 -2
  414. package/Types/StatusPage/UptimeDailyAggregate.d.mts +1 -0
  415. package/Types/StatusPage/UptimeDailyAggregate.d.ts +1 -0
  416. package/Types/Telemetry/LlmConventions.d.mts +1 -1
  417. package/Types/Telemetry/LlmConventions.d.ts +1 -1
  418. package/Types/Telemetry/LlmConventions.js +1 -1
  419. package/Types/Telemetry/ScrubRule.d.mts +1 -0
  420. package/Types/Telemetry/ScrubRule.d.ts +1 -0
  421. package/Types/Telemetry/ScrubRule.js +47 -0
  422. package/Types/Translator.d.mts +5 -2
  423. package/Types/Translator.d.ts +5 -2
  424. package/Types/Translator.js +43 -19
  425. package/Types/UsedBy/UsedBy.d.mts +107 -4
  426. package/Types/UsedBy/UsedBy.d.ts +107 -4
  427. package/Types/UsedBy/UsedBy.js +339 -6
  428. package/Types/UsedBy/UsedBy.mjs +12 -0
  429. package/Types/UsedBy/UsedByServerProducts.d.mts +5 -2
  430. package/Types/UsedBy/UsedByServerProducts.d.ts +5 -2
  431. package/Types/UsedBy/UsedByServerProducts.js +115 -6
  432. package/Types/UsedBy/UsedByServerProducts.mjs +1 -0
  433. package/Types/UserNotification/UserNotificationExecutionStatus.d.mts +2 -1
  434. package/Types/UserNotification/UserNotificationExecutionStatus.d.ts +2 -1
  435. package/Types/UserNotification/UserNotificationExecutionStatus.js +7 -0
  436. package/Types/UserSession/SessionEndCause.d.mts +1 -0
  437. package/Types/UserSession/SessionEndCause.d.ts +1 -0
  438. package/Types/UserSession/SessionEndCause.js +8 -1
  439. package/Types/WelcomeChecklist/ProjectGoal.js +5 -5
  440. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +4 -0
  441. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +4 -0
  442. package/Types/WelcomeChecklist/WelcomeChecklist.js +63 -1
  443. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
  444. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +0 -1
  445. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +0 -1
  446. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +0 -3
  447. package/Types/Workflow/WatchedFields.d.mts +1 -0
  448. package/Types/Workflow/WatchedFields.d.ts +1 -0
  449. package/Types/Workflow/WatchedFields.js +10 -1
  450. package/Types/Workflow/WatchedFields.mjs +1 -0
  451. package/Types/Workflow/WorkflowPrivateRecords.d.mts +2 -0
  452. package/Types/Workflow/WorkflowPrivateRecords.d.ts +2 -0
  453. package/Types/Workflow/WorkflowPrivateRecords.js +33 -0
  454. package/Types/Workflow/WorkflowPrivateRecords.mjs +3 -0
  455. package/Types/Workspace/ConnectCallback.d.mts +2 -1
  456. package/Types/Workspace/ConnectCallback.d.ts +2 -1
  457. package/Types/Workspace/ConnectCallback.js +8 -0
  458. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +1 -0
  459. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +1 -0
  460. package/Types/Workspace/NotificationRules/EventType.js +4 -3
  461. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +19 -2
  462. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +19 -2
  463. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +127 -8
  464. package/Types/Workspace/WorkspaceLiveMessageKey.d.mts +5 -1
  465. package/Types/Workspace/WorkspaceLiveMessageKey.d.ts +5 -1
  466. package/Types/Workspace/WorkspaceLiveMessageKey.js +12 -0
  467. package/Types/Workspace/WorkspaceMessagePayload.d.mts +6 -0
  468. package/Types/Workspace/WorkspaceMessagePayload.d.ts +6 -0
  469. package/Utils/API.d.mts +6 -7
  470. package/Utils/API.d.ts +6 -7
  471. package/Utils/API.js +57 -35
  472. package/Utils/AiRemediation/DeclaredCodeChange.d.mts +4 -1
  473. package/Utils/AiRemediation/DeclaredCodeChange.d.ts +4 -1
  474. package/Utils/AiRemediation/DeclaredCodeChange.js +6 -0
  475. package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +10 -0
  476. package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +10 -0
  477. package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +89 -1
  478. package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +4 -0
  479. package/Utils/Billing/InvoiceAmount.d.mts +4 -0
  480. package/Utils/Billing/InvoiceAmount.d.ts +4 -0
  481. package/Utils/Billing/InvoiceAmount.js +35 -0
  482. package/Utils/Billing/InvoiceAmount.mjs +2 -0
  483. package/Utils/CertificateReissue.js +4 -3
  484. package/Utils/CronScheduleText.js +10 -3
  485. package/Utils/CronTab.js +6 -33
  486. package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +5 -18
  487. package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +5 -18
  488. package/Utils/Dashboard/MonitorListWidgetFormat.js +54 -18
  489. package/Utils/DeveloperDocs/ResourceProfiles.js +2 -1
  490. package/Utils/DeveloperDocs/TerraformSchema.js +3 -2
  491. package/Utils/Incident/PostmortemActionItemCodeTask.d.mts +2 -0
  492. package/Utils/Incident/PostmortemActionItemCodeTask.d.ts +2 -0
  493. package/Utils/Incident/PostmortemActionItemCodeTask.js +22 -5
  494. package/Utils/Incident/PostmortemActionItemCodeTask.mjs +1 -0
  495. package/Utils/LinearRegExp/LinearRegExp.d.mts +1 -0
  496. package/Utils/LinearRegExp/LinearRegExp.d.ts +1 -0
  497. package/Utils/LinearRegExp/LinearRegExp.js +17 -0
  498. package/Utils/LookupTable.d.mts +1 -0
  499. package/Utils/LookupTable.d.ts +1 -0
  500. package/Utils/LookupTable.js +19 -0
  501. package/Utils/LookupTable.mjs +1 -0
  502. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +6 -0
  503. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +6 -0
  504. package/Utils/Markdown/LinkReferenceDefinitions.js +477 -152
  505. package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
  506. package/Utils/Markdown/SlowMarkdown.js +168 -33
  507. package/Utils/Metrics/MetricFormulaEvaluator.d.mts +20 -4
  508. package/Utils/Metrics/MetricFormulaEvaluator.d.ts +20 -4
  509. package/Utils/Metrics/MetricFormulaEvaluator.js +233 -29
  510. package/Utils/Metrics/MetricResultUnitConverter.js +7 -1
  511. package/Utils/Metrics/MetricSeriesArrivalUtil.d.mts +4 -0
  512. package/Utils/Metrics/MetricSeriesArrivalUtil.d.ts +4 -0
  513. package/Utils/Metrics/MetricSeriesArrivalUtil.js +27 -0
  514. package/Utils/Metrics/MetricZeroFill.d.mts +45 -0
  515. package/Utils/Metrics/MetricZeroFill.d.ts +45 -0
  516. package/Utils/Metrics/MetricZeroFill.js +145 -0
  517. package/Utils/Metrics/MetricZeroFill.mjs +2 -0
  518. package/Utils/ModelImportExport.js +4 -1
  519. package/Utils/Monitor/EndpointAttachmentUtil.d.mts +3 -0
  520. package/Utils/Monitor/EndpointAttachmentUtil.d.ts +3 -0
  521. package/Utils/Monitor/EndpointAttachmentUtil.js +57 -0
  522. package/Utils/Monitor/HeartbeatSweepSchedule.d.mts +9 -0
  523. package/Utils/Monitor/HeartbeatSweepSchedule.d.ts +9 -0
  524. package/Utils/Monitor/HeartbeatSweepSchedule.js +52 -0
  525. package/Utils/Monitor/HeartbeatSweepSchedule.mjs +5 -0
  526. package/Utils/Monitor/MonitorFirstCheck.d.mts +32 -0
  527. package/Utils/Monitor/MonitorFirstCheck.d.ts +32 -0
  528. package/Utils/Monitor/MonitorFirstCheck.js +128 -0
  529. package/Utils/Monitor/MonitorFirstCheck.mjs +4 -0
  530. package/Utils/Monitor/MonitorFirstCheckOverdue.d.mts +12 -0
  531. package/Utils/Monitor/MonitorFirstCheckOverdue.d.ts +12 -0
  532. package/Utils/Monitor/MonitorFirstCheckOverdue.js +87 -0
  533. package/Utils/Monitor/MonitorFirstCheckOverdue.mjs +2 -0
  534. package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.mts +11 -0
  535. package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.ts +11 -0
  536. package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.js +86 -0
  537. package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.mjs +2 -0
  538. package/Utils/Monitor/MonitorOverviewFamily.d.mts +2 -10
  539. package/Utils/Monitor/MonitorOverviewFamily.d.ts +2 -10
  540. package/Utils/Monitor/MonitorOverviewFamily.js +19 -99
  541. package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +5 -1
  542. package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +5 -1
  543. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +128 -10
  544. package/Utils/Monitor/MonitorRowStatus.d.mts +56 -0
  545. package/Utils/Monitor/MonitorRowStatus.d.ts +56 -0
  546. package/Utils/Monitor/MonitorRowStatus.js +189 -0
  547. package/Utils/Monitor/MonitorRowStatus.mjs +6 -0
  548. package/Utils/Monitor/MonitorSummarySnapshotUtil.js +3 -2
  549. package/Utils/Monitor/MonitorTypeFamily.d.mts +14 -0
  550. package/Utils/Monitor/MonitorTypeFamily.d.ts +14 -0
  551. package/Utils/Monitor/MonitorTypeFamily.js +105 -0
  552. package/Utils/Monitor/MonitorTypeFamily.mjs +3 -0
  553. package/Utils/Monitor/MonitorUptimeSummaryUtil.js +14 -3
  554. package/Utils/Monitor/StoredCheckEvidence.d.mts +10 -0
  555. package/Utils/Monitor/StoredCheckEvidence.d.ts +10 -0
  556. package/Utils/Monitor/StoredCheckEvidence.js +53 -0
  557. package/Utils/Monitor/StoredCheckEvidence.mjs +5 -0
  558. package/Utils/NetworkDevice/TransceiverHealthUtil.js +2 -2
  559. package/Utils/NetworkDiscovery/SnmpScanConfigUtil.js +11 -4
  560. package/Utils/Profiles/ProfileFrames.js +11 -4
  561. package/Utils/Profiles/ProfileFunctionNames.d.mts +2 -0
  562. package/Utils/Profiles/ProfileFunctionNames.d.ts +2 -0
  563. package/Utils/Profiles/ProfileFunctionNames.js +104 -0
  564. package/Utils/Profiles/ProfileFunctionNames.mjs +3 -0
  565. package/Utils/Project/ProjectBalance.js +2 -2
  566. package/Utils/Project/ProjectBilling.d.mts +1 -0
  567. package/Utils/Project/ProjectBilling.d.ts +1 -0
  568. package/Utils/Project/ProjectBilling.js +9 -1
  569. package/Utils/Project/ProjectBilling.mjs +1 -0
  570. package/Utils/Project/TwilioAccount.d.mts +3 -0
  571. package/Utils/Project/TwilioAccount.d.ts +3 -0
  572. package/Utils/Project/TwilioAccount.js +58 -18
  573. package/Utils/Project/TwilioAccount.mjs +2 -0
  574. package/Utils/ResponseTooLarge.d.mts +5 -0
  575. package/Utils/ResponseTooLarge.d.ts +5 -0
  576. package/Utils/ResponseTooLarge.js +69 -0
  577. package/Utils/ResponseTooLarge.mjs +2 -0
  578. package/Utils/RetryAfter.d.mts +17 -0
  579. package/Utils/RetryAfter.d.ts +17 -0
  580. package/Utils/RetryAfter.js +251 -0
  581. package/Utils/RetryAfter.mjs +5 -0
  582. package/Utils/ScheduledMaintenanceStart.js +2 -3
  583. package/Utils/Schema/BaseSchema.d.mts +12 -5
  584. package/Utils/Schema/BaseSchema.d.ts +12 -5
  585. package/Utils/Schema/BaseSchema.js +43 -4
  586. package/Utils/Schema/BaseSchema.mjs +1 -0
  587. package/Utils/Schema/ModelSchema.d.mts +10 -0
  588. package/Utils/Schema/ModelSchema.d.ts +10 -0
  589. package/Utils/Schema/ModelSchema.js +251 -22
  590. package/Utils/Slo/SloMonthlyReport.d.mts +187 -0
  591. package/Utils/Slo/SloMonthlyReport.d.ts +187 -0
  592. package/Utils/Slo/SloMonthlyReport.js +945 -0
  593. package/Utils/Slo/SloMonthlyReport.mjs +35 -0
  594. package/Utils/Slo/SloOverviewText.js +7 -2
  595. package/Utils/Slo/SloProjection.js +2 -1
  596. package/Utils/Slo/SloUtil.d.mts +5 -0
  597. package/Utils/Slo/SloUtil.d.ts +5 -0
  598. package/Utils/Slo/SloUtil.js +5 -0
  599. package/Utils/Slo/SloWidgetFormat.js +3 -1
  600. package/Utils/StatusPage/FrozenMonitorResources.d.mts +30 -0
  601. package/Utils/StatusPage/FrozenMonitorResources.d.ts +30 -0
  602. package/Utils/StatusPage/FrozenMonitorResources.js +147 -12
  603. package/Utils/StatusPage/FrozenMonitorResources.mjs +2 -0
  604. package/Utils/StatusPage/GroupNestingLayout.js +3 -2
  605. package/Utils/StatusPage/HistoryChartBarColors.d.mts +2 -0
  606. package/Utils/StatusPage/HistoryChartBarColors.d.ts +2 -0
  607. package/Utils/StatusPage/HistoryChartBarColors.js +15 -1
  608. package/Utils/StatusPage/HistoryChartBarColors.mjs +2 -0
  609. package/Utils/StatusPage/HistoryWindow.d.mts +3 -0
  610. package/Utils/StatusPage/HistoryWindow.d.ts +3 -0
  611. package/Utils/StatusPage/HistoryWindow.js +24 -0
  612. package/Utils/StatusPage/HistoryWindow.mjs +4 -0
  613. package/Utils/StatusPage/Report.js +12 -4
  614. package/Utils/StatusPage/ReportText.d.mts +4 -0
  615. package/Utils/StatusPage/ReportText.d.ts +4 -0
  616. package/Utils/StatusPage/ReportText.js +22 -2
  617. package/Utils/StatusPage/ReportText.mjs +1 -0
  618. package/Utils/StatusPage/ResourceUptime.js +32 -25
  619. package/Utils/StatusPage/UptimeDailyAggregateUtil.js +17 -3
  620. package/Utils/Suggestions/CodeFixSuggestion.d.mts +2 -1
  621. package/Utils/Suggestions/CodeFixSuggestion.d.ts +2 -1
  622. package/Utils/Suggestions/CodeFixSuggestion.js +9 -0
  623. package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.mts +1 -0
  624. package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.ts +1 -0
  625. package/Utils/Suggestions/InvestigationCodeFixSuggestion.js +24 -3
  626. package/Utils/Suggestions/InvestigationCodeFixSuggestion.mjs +1 -0
  627. package/Utils/Suggestions/ProfileFixSuggestion.d.mts +1 -0
  628. package/Utils/Suggestions/ProfileFixSuggestion.d.ts +1 -0
  629. package/Utils/Suggestions/ProfileFixSuggestion.js +16 -4
  630. package/Utils/Suggestions/TelemetryAiFixSuggestion.d.mts +2 -0
  631. package/Utils/Suggestions/TelemetryAiFixSuggestion.d.ts +2 -0
  632. package/Utils/Suggestions/TelemetryAiFixSuggestion.js +17 -5
  633. package/Utils/Suggestions/TelemetryAiFixSuggestion.mjs +1 -0
  634. package/Utils/Suggestions/TracePerformanceFixSuggestion.js +16 -7
  635. package/Utils/Syslog/SyslogMessageParser.d.mts +25 -0
  636. package/Utils/Syslog/SyslogMessageParser.d.ts +25 -0
  637. package/Utils/Syslog/SyslogMessageParser.js +428 -100
  638. package/Utils/Syslog/SyslogMessageParser.mjs +3 -0
  639. package/Utils/Syslog/SyslogRawCopies.d.mts +20 -0
  640. package/Utils/Syslog/SyslogRawCopies.d.ts +20 -0
  641. package/Utils/Syslog/SyslogRawCopies.js +283 -0
  642. package/Utils/Syslog/SyslogRawCopies.mjs +2 -0
  643. package/Utils/Telemetry/CorrelationIdAttributes.d.mts +8 -0
  644. package/Utils/Telemetry/CorrelationIdAttributes.d.ts +8 -0
  645. package/Utils/Telemetry/CorrelationIdAttributes.js +118 -0
  646. package/Utils/Telemetry/CorrelationIdAttributes.mjs +5 -0
  647. package/Utils/Telemetry/ScrubJsonKeys.d.mts +11 -0
  648. package/Utils/Telemetry/ScrubJsonKeys.d.ts +11 -0
  649. package/Utils/Telemetry/ScrubJsonKeys.js +505 -0
  650. package/Utils/Telemetry/ScrubJsonKeys.mjs +2 -0
  651. package/Utils/Telemetry/ScrubJsonText.d.mts +25 -0
  652. package/Utils/Telemetry/ScrubJsonText.d.ts +25 -0
  653. package/Utils/Telemetry/ScrubJsonText.js +568 -0
  654. package/Utils/Telemetry/ScrubJsonText.mjs +4 -0
  655. package/Utils/Telemetry/ScrubMask.d.mts +1 -0
  656. package/Utils/Telemetry/ScrubMask.d.ts +1 -0
  657. package/Utils/Telemetry/ScrubMask.js +54 -0
  658. package/Utils/Telemetry/ScrubMask.mjs +2 -0
  659. package/Utils/Telemetry/ScrubNestedValues.d.mts +5 -2
  660. package/Utils/Telemetry/ScrubNestedValues.d.ts +5 -2
  661. package/Utils/Telemetry/ScrubNestedValues.js +56 -9
  662. package/Utils/Uptime/DayUptimeGraphUtil.d.mts +17 -0
  663. package/Utils/Uptime/DayUptimeGraphUtil.d.ts +17 -0
  664. package/Utils/Uptime/DayUptimeGraphUtil.js +91 -3
  665. package/Utils/Uptime/DayUptimeGraphUtil.mjs +1 -0
  666. package/Utils/Uptime/TimeBeforeFirstCheck.d.mts +11 -0
  667. package/Utils/Uptime/TimeBeforeFirstCheck.d.ts +11 -0
  668. package/Utils/Uptime/TimeBeforeFirstCheck.js +188 -0
  669. package/Utils/Uptime/TimeBeforeFirstCheck.mjs +2 -0
  670. package/Utils/WebhookAddressMask.d.mts +9 -0
  671. package/Utils/WebhookAddressMask.d.ts +9 -0
  672. package/Utils/WebhookAddressMask.js +66 -0
  673. package/Utils/WebhookAddressMask.mjs +2 -0
  674. package/package.json +1 -1
  675. package/Models/DatabaseModels/GreenlockCertificate.d.mts +0 -10
  676. package/Models/DatabaseModels/GreenlockCertificate.d.ts +0 -10
  677. package/Models/DatabaseModels/GreenlockCertificate.js +0 -143
  678. package/Models/DatabaseModels/GreenlockCertificate.mjs +0 -2
  679. package/Models/DatabaseModels/GreenlockChallenge.d.mts +0 -10
  680. package/Models/DatabaseModels/GreenlockChallenge.d.ts +0 -10
  681. package/Models/DatabaseModels/GreenlockChallenge.js +0 -144
  682. package/Models/DatabaseModels/GreenlockChallenge.mjs +0 -2
  683. package/Types/SampleProject/SampleProject.d.mts +0 -54
  684. package/Types/SampleProject/SampleProject.d.ts +0 -54
  685. package/Types/SampleProject/SampleProject.js +0 -177
  686. package/Types/SampleProject/SampleProject.mjs +0 -22
  687. package/Types/SampleProject/SampleProjectContent.d.mts +0 -127
  688. package/Types/SampleProject/SampleProjectContent.d.ts +0 -127
  689. package/Types/SampleProject/SampleProjectContent.js +0 -397
  690. package/Types/SampleProject/SampleProjectContent.mjs +0 -18
@@ -1,11 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * Timeouts are configured per step and stored on the step config in
4
- * milliseconds. Both the dashboard (which edits them) and the Worker (which
5
- * enforces them) resolve values through this module so a step never runs with
6
- * a bound the author could not see, and never with one that would pin a
7
- * Worker slot open indefinitely.
8
- */
9
2
  Object.defineProperty(exports, "__esModule", { value: true });
10
3
  exports.NON_NUMERIC_TIMEOUT_MESSAGE = exports.AGENT_CLAIM_TIMEOUT_BOUNDS = exports.STEP_EXECUTION_TIMEOUT_BOUNDS = exports.MAX_AGENT_CLAIM_TIMEOUT_IN_MS = exports.MIN_AGENT_CLAIM_TIMEOUT_IN_MS = exports.DEFAULT_AGENT_CLAIM_TIMEOUT_IN_MS = exports.MAX_STEP_EXECUTION_TIMEOUT_IN_MS = exports.MIN_STEP_EXECUTION_TIMEOUT_IN_MS = exports.DEFAULT_STEP_EXECUTION_TIMEOUT_IN_MS = void 0;
11
4
  exports.resolveTimeoutInMs = resolveTimeoutInMs;
@@ -15,6 +8,14 @@ exports.timeoutInMsToSecondsInputValue = timeoutInMsToSecondsInputValue;
15
8
  exports.secondsInputValueToTimeoutInMs = secondsInputValueToTimeoutInMs;
16
9
  exports.getTimeoutValidationError = getTimeoutValidationError;
17
10
  exports.willTimeoutBeClamped = willTimeoutBeClamped;
11
+ const NoBreakSpaces_1 = require("../NoBreakSpaces");
12
+ /*
13
+ * Timeouts are configured per step and stored on the step config in
14
+ * milliseconds. Both the dashboard (which edits them) and the Worker (which
15
+ * enforces them) resolve values through this module so a step never runs with
16
+ * a bound the author could not see, and never with one that would pin a
17
+ * Worker slot open indefinitely.
18
+ */
18
19
  // How long the step itself may run before it is killed.
19
20
  exports.DEFAULT_STEP_EXECUTION_TIMEOUT_IN_MS = 30 * 1000;
20
21
  exports.MIN_STEP_EXECUTION_TIMEOUT_IN_MS = 1000;
@@ -126,13 +127,13 @@ function getTimeoutValidationError(value, bounds) {
126
127
  * so they get the same message.
127
128
  */
128
129
  if (seconds <= 0 || inMs <= 0) {
129
- return "Timeout must be greater than 0 seconds.";
130
+ return `Timeout must be greater than 0${NoBreakSpaces_1.NO_BREAK_SPACE}seconds.`;
130
131
  }
131
132
  if (inMs < bounds.minInMs) {
132
- return `Minimum is ${bounds.minInMs / 1000} second${bounds.minInMs === 1000 ? "" : "s"}.`;
133
+ return `Minimum is ${bounds.minInMs / 1000}${NoBreakSpaces_1.NO_BREAK_SPACE}second${bounds.minInMs === 1000 ? "" : "s"}.`;
133
134
  }
134
135
  if (inMs > bounds.maxInMs) {
135
- return `Maximum is ${bounds.maxInMs / 1000} seconds (${bounds.maxInMs / 60000} minutes).`;
136
+ return `Maximum is ${bounds.maxInMs / 1000}${NoBreakSpaces_1.NO_BREAK_SPACE}seconds (${bounds.maxInMs / 60000}${NoBreakSpaces_1.NO_BREAK_SPACE}minutes).`;
136
137
  }
137
138
  return null;
138
139
  }
@@ -0,0 +1,18 @@
1
+ export declare enum GlobalRunnerKeptOffReason {
2
+ ConnectionToken = "ConnectionToken",
3
+ TokenNotMinted = "TokenNotMinted"
4
+ }
5
+ export declare const GLOBAL_RUNNER_REPOSITORY_TOKEN_REFUSAL: string;
6
+ export declare const GLOBAL_RUNNER_GITLAB_TOKEN_NOT_MINTED_REFUSAL: string;
7
+ export declare const GLOBAL_RUNNER_TOO_OLD_FOR_GITLAB_REFUSAL: string;
8
+ export declare function getGlobalRunnerKeptOffReason(data: {
9
+ repositoryHostedAt: string | null | undefined;
10
+ keepConnectionTokensOffGlobalRunners: boolean;
11
+ mintedTokenRefusedAt?: Date | string | null | undefined;
12
+ }): GlobalRunnerKeptOffReason | null;
13
+ export declare function isRepositoryKeptOffGlobalRunners(data: {
14
+ repositoryHostedAt: string | null | undefined;
15
+ keepConnectionTokensOffGlobalRunners: boolean;
16
+ mintedTokenRefusedAt?: Date | string | null | undefined;
17
+ }): boolean;
18
+ export declare function getGlobalRunnerKeptOffRefusal(reason: GlobalRunnerKeptOffReason): string;
@@ -0,0 +1,18 @@
1
+ export declare enum GlobalRunnerKeptOffReason {
2
+ ConnectionToken = "ConnectionToken",
3
+ TokenNotMinted = "TokenNotMinted"
4
+ }
5
+ export declare const GLOBAL_RUNNER_REPOSITORY_TOKEN_REFUSAL: string;
6
+ export declare const GLOBAL_RUNNER_GITLAB_TOKEN_NOT_MINTED_REFUSAL: string;
7
+ export declare const GLOBAL_RUNNER_TOO_OLD_FOR_GITLAB_REFUSAL: string;
8
+ export declare function getGlobalRunnerKeptOffReason(data: {
9
+ repositoryHostedAt: string | null | undefined;
10
+ keepConnectionTokensOffGlobalRunners: boolean;
11
+ mintedTokenRefusedAt?: Date | string | null | undefined;
12
+ }): GlobalRunnerKeptOffReason | null;
13
+ export declare function isRepositoryKeptOffGlobalRunners(data: {
14
+ repositoryHostedAt: string | null | undefined;
15
+ keepConnectionTokensOffGlobalRunners: boolean;
16
+ mintedTokenRefusedAt?: Date | string | null | undefined;
17
+ }): boolean;
18
+ export declare function getGlobalRunnerKeptOffRefusal(reason: GlobalRunnerKeptOffReason): string;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GLOBAL_RUNNER_TOO_OLD_FOR_GITLAB_REFUSAL = exports.GLOBAL_RUNNER_GITLAB_TOKEN_NOT_MINTED_REFUSAL = exports.GLOBAL_RUNNER_REPOSITORY_TOKEN_REFUSAL = exports.GlobalRunnerKeptOffReason = void 0;
7
+ exports.getGlobalRunnerKeptOffReason = getGlobalRunnerKeptOffReason;
8
+ exports.isRepositoryKeptOffGlobalRunners = isRepositoryKeptOffGlobalRunners;
9
+ exports.getGlobalRunnerKeptOffRefusal = getGlobalRunnerKeptOffRefusal;
10
+ const CodeRepositoryType_1 = __importDefault(require("../CodeRepository/CodeRepositoryType"));
11
+ const CodeHost_1 = require("../CodeRepository/CodeHost");
12
+ /*
13
+ * WHICH REPOSITORIES GLOBAL RUNNERS STAY OUT OF.
14
+ *
15
+ * A Runner works in a repository with a token the server hands it for the
16
+ * run. A GitHub repository's is minted for that one repository from the
17
+ * GitHub App and revoked when the run ends. A GitLab repository's is, where
18
+ * GitLab lets OneUptime make one (issue #8912), a project access token made
19
+ * for the run alone: on that one project, able to push and nothing else,
20
+ * ending on its own by the end of the next day in UTC and revoked when the
21
+ * run ends - GitLab makes one only for a Maintainer's or Owner's token with
22
+ * the api scope, and on GitLab.com only on Premium and Ultimate. A Forgejo, Gitea or Git
23
+ * repository's is the token its connection holds (CodeRepositoryConnection):
24
+ * long-lived, and as wide as the account it was made with, because neither
25
+ * host lets OneUptime make a narrower one with the token it holds - Gitea
26
+ * and Forgejo make tokens only for a user's password, never for another
27
+ * token, and a plain Git server has no API at all.
28
+ *
29
+ * Where every customer's JavaScript steps run on the same global Runners -
30
+ * OneUptime Cloud, or a self-hosted install that serves several tenants and
31
+ * turns the rule on (GLOBAL_RUNNERS_CODE_FIX_GITHUB_ONLY) - a connection's
32
+ * own token never goes to one: a Forgejo, Gitea or Git repository's AI work
33
+ * runs on a Runner of the project's own (the one it picks in Code, or the
34
+ * project's default Runner), or on an AI agent of the project's own; so does
35
+ * a GitLab repository's once GitLab refused to make it a token
36
+ * (CodeRepository.mintedTokenRefusedAt). The server holds the rule where the
37
+ * work is claimed (CodeFixClaimQuery), where the token is handed
38
+ * (CodeHostRunnerToken) and where Code says what the repository runs on
39
+ * (CodeRepositoryRunnerChoice); the dashboard says it where the
40
+ * repository's Runner is picked. A single-tenant self-hosted OneUptime runs
41
+ * its global Runners for its own projects, and is left as it was.
42
+ *
43
+ * Pure, so the server and the dashboard answer the same way.
44
+ */
45
+ // Why global Runners stay out of a repository.
46
+ var GlobalRunnerKeptOffReason;
47
+ (function (GlobalRunnerKeptOffReason) {
48
+ /*
49
+ * Forgejo, Gitea or Git: the repository is reached with its connection's
50
+ * own token, which OneUptime cannot narrow: Forgejo and Gitea make a
51
+ * token only for a user's password, and a Git server has no API.
52
+ */
53
+ GlobalRunnerKeptOffReason["ConnectionToken"] = "ConnectionToken";
54
+ // GitLab: GitLab refused to make the short-lived token a fix pushes with.
55
+ GlobalRunnerKeptOffReason["TokenNotMinted"] = "TokenNotMinted";
56
+ })(GlobalRunnerKeptOffReason || (exports.GlobalRunnerKeptOffReason = GlobalRunnerKeptOffReason = {}));
57
+ exports.GLOBAL_RUNNER_REPOSITORY_TOKEN_REFUSAL = "AI works in a Forgejo, Gitea or Git repository on one of your own Runners, never a global one: the repository's access token is its connection's own. Pick one of your Runners in the repository's settings in Code.";
58
+ exports.GLOBAL_RUNNER_GITLAB_TOKEN_NOT_MINTED_REFUSAL = "GitLab did not let OneUptime make a short-lived token for this repository, so AI works in it on one of your own Runners. Give its connection a token of someone with the Maintainer role and the api scope (GitLab self-managed, or GitLab.com Premium or Ultimate), or pick one of your Runners in the repository's settings in Code.";
59
+ /*
60
+ * What a global Runner too old to push with a short-lived GitLab token is
61
+ * told for a GitLab repository: one of this release or later, or one of the
62
+ * project's own Runners, does the work.
63
+ */
64
+ exports.GLOBAL_RUNNER_TOO_OLD_FOR_GITLAB_REFUSAL = "This global Runner is older than the short-lived tokens AI pushes to GitLab with. AI works in this repository on a global Runner of the latest version, or on one of your own Runners.";
65
+ /*
66
+ * Why global Runners stay out of this repository, or null while they may
67
+ * work in it: where they keep connection tokens off (OneUptime Cloud, or a
68
+ * self-hosted multi-tenant install with the setting on), every Forgejo,
69
+ * Gitea and Git repository, and a GitLab repository GitLab refused to make a
70
+ * token for. A stored host that cannot be read is GitHub, as every
71
+ * repository was before the others (CodeHost.readType).
72
+ */
73
+ function getGlobalRunnerKeptOffReason(data) {
74
+ if (!data.keepConnectionTokensOffGlobalRunners) {
75
+ return null;
76
+ }
77
+ switch (CodeHost_1.CodeHost.readType(data.repositoryHostedAt)) {
78
+ case CodeRepositoryType_1.default.GitHub:
79
+ return null;
80
+ case CodeRepositoryType_1.default.GitLab:
81
+ return data.mintedTokenRefusedAt
82
+ ? GlobalRunnerKeptOffReason.TokenNotMinted
83
+ : null;
84
+ default:
85
+ return GlobalRunnerKeptOffReason.ConnectionToken;
86
+ }
87
+ }
88
+ // Whether global Runners stay out of this repository (getGlobalRunnerKeptOffReason).
89
+ function isRepositoryKeptOffGlobalRunners(data) {
90
+ return getGlobalRunnerKeptOffReason(data) !== null;
91
+ }
92
+ // What a global Runner is told for a repository it stays out of, and why.
93
+ function getGlobalRunnerKeptOffRefusal(reason) {
94
+ return reason === GlobalRunnerKeptOffReason.TokenNotMinted
95
+ ? exports.GLOBAL_RUNNER_GITLAB_TOKEN_NOT_MINTED_REFUSAL
96
+ : exports.GLOBAL_RUNNER_REPOSITORY_TOKEN_REFUSAL;
97
+ }
@@ -0,0 +1,8 @@
1
+ import commonJsModule from "./GlobalRunnerRepositoryTokens.js";
2
+ export const GLOBAL_RUNNER_GITLAB_TOKEN_NOT_MINTED_REFUSAL = commonJsModule.GLOBAL_RUNNER_GITLAB_TOKEN_NOT_MINTED_REFUSAL;
3
+ export const GLOBAL_RUNNER_REPOSITORY_TOKEN_REFUSAL = commonJsModule.GLOBAL_RUNNER_REPOSITORY_TOKEN_REFUSAL;
4
+ export const GLOBAL_RUNNER_TOO_OLD_FOR_GITLAB_REFUSAL = commonJsModule.GLOBAL_RUNNER_TOO_OLD_FOR_GITLAB_REFUSAL;
5
+ export const GlobalRunnerKeptOffReason = commonJsModule.GlobalRunnerKeptOffReason;
6
+ export const getGlobalRunnerKeptOffReason = commonJsModule.getGlobalRunnerKeptOffReason;
7
+ export const getGlobalRunnerKeptOffRefusal = commonJsModule.getGlobalRunnerKeptOffRefusal;
8
+ export const isRepositoryKeptOffGlobalRunners = commonJsModule.isRepositoryKeptOffGlobalRunners;
@@ -0,0 +1,38 @@
1
+ export declare const GLOBAL_RUNNER_SANDBOX_HOST_INFO_KEY: string;
2
+ export declare enum GlobalRunnerStepUser {
3
+ OwnUser = "own-user",
4
+ RunnerUser = "runner-user"
5
+ }
6
+ export declare enum GlobalRunnerStepUserReason {
7
+ NoPrivilege = "no-privilege",
8
+ NotInNodeGroup = "not-in-node-group",
9
+ NotInstalled = "not-installed",
10
+ CheckFailed = "check-failed"
11
+ }
12
+ export declare enum GlobalRunnerStepNetwork {
13
+ None = "none",
14
+ Shared = "shared"
15
+ }
16
+ export declare enum GlobalRunnerStepNetworkReason {
17
+ NoSeccomp = "no-seccomp",
18
+ NotInstalled = "not-installed",
19
+ CheckFailed = "check-failed"
20
+ }
21
+ export interface GlobalRunnerSandboxReport {
22
+ user: GlobalRunnerStepUser;
23
+ userReason?: GlobalRunnerStepUserReason | undefined;
24
+ network: GlobalRunnerStepNetwork;
25
+ networkReason?: GlobalRunnerStepNetworkReason | undefined;
26
+ }
27
+ export declare function parseGlobalRunnerSandboxReport(hostInfo: unknown): GlobalRunnerSandboxReport | null;
28
+ export declare enum GlobalRunnerSandboxShortfall {
29
+ OwnUserNoPrivilege = "own-user-no-privilege",
30
+ OwnUserNotInNodeGroup = "own-user-not-in-node-group",
31
+ OwnUserNotInstalled = "own-user-not-installed",
32
+ OwnUserCheckFailed = "own-user-check-failed",
33
+ SharedNetworkNoSeccomp = "shared-network-no-seccomp",
34
+ SharedNetworkNotInstalled = "shared-network-not-installed",
35
+ SharedNetworkCheckFailed = "shared-network-check-failed",
36
+ NotInstalled = "not-installed"
37
+ }
38
+ export declare function getGlobalRunnerSandboxShortfalls(report: GlobalRunnerSandboxReport | null): Array<GlobalRunnerSandboxShortfall>;
@@ -0,0 +1,38 @@
1
+ export declare const GLOBAL_RUNNER_SANDBOX_HOST_INFO_KEY: string;
2
+ export declare enum GlobalRunnerStepUser {
3
+ OwnUser = "own-user",
4
+ RunnerUser = "runner-user"
5
+ }
6
+ export declare enum GlobalRunnerStepUserReason {
7
+ NoPrivilege = "no-privilege",
8
+ NotInNodeGroup = "not-in-node-group",
9
+ NotInstalled = "not-installed",
10
+ CheckFailed = "check-failed"
11
+ }
12
+ export declare enum GlobalRunnerStepNetwork {
13
+ None = "none",
14
+ Shared = "shared"
15
+ }
16
+ export declare enum GlobalRunnerStepNetworkReason {
17
+ NoSeccomp = "no-seccomp",
18
+ NotInstalled = "not-installed",
19
+ CheckFailed = "check-failed"
20
+ }
21
+ export interface GlobalRunnerSandboxReport {
22
+ user: GlobalRunnerStepUser;
23
+ userReason?: GlobalRunnerStepUserReason | undefined;
24
+ network: GlobalRunnerStepNetwork;
25
+ networkReason?: GlobalRunnerStepNetworkReason | undefined;
26
+ }
27
+ export declare function parseGlobalRunnerSandboxReport(hostInfo: unknown): GlobalRunnerSandboxReport | null;
28
+ export declare enum GlobalRunnerSandboxShortfall {
29
+ OwnUserNoPrivilege = "own-user-no-privilege",
30
+ OwnUserNotInNodeGroup = "own-user-not-in-node-group",
31
+ OwnUserNotInstalled = "own-user-not-installed",
32
+ OwnUserCheckFailed = "own-user-check-failed",
33
+ SharedNetworkNoSeccomp = "shared-network-no-seccomp",
34
+ SharedNetworkNotInstalled = "shared-network-not-installed",
35
+ SharedNetworkCheckFailed = "shared-network-check-failed",
36
+ NotInstalled = "not-installed"
37
+ }
38
+ export declare function getGlobalRunnerSandboxShortfalls(report: GlobalRunnerSandboxReport | null): Array<GlobalRunnerSandboxShortfall>;
@@ -0,0 +1,178 @@
1
+ "use strict";
2
+ /*
3
+ * HOW A GLOBAL RUNNER KEEPS ONE PROJECT'S JAVASCRIPT STEP FROM ANOTHER, AS IT
4
+ * SAYS ON ITS HEARTBEAT.
5
+ *
6
+ * A global Runner runs every project's JavaScript steps, each in a process of
7
+ * its own (packages/Runner/Utils/JavaScriptSandbox). Two things keep code
8
+ * that got out of a step's isolate from the Runner and from every other
9
+ * project, and each depends on the container the Runner runs in:
10
+ *
11
+ * - a user of its own for the step's process: the image's launcher switches
12
+ * to one, where the container lets it (not with no-new-privileges,
13
+ * Kubernetes' allowPrivilegeEscalation: false, or SETUID and SETGID
14
+ * dropped). Without it, the step runs as the Runner's own user.
15
+ * - no network for the step's process: the image's no-network filter (a
16
+ * seccomp filter) lets it open no socket, where the kernel lets a
17
+ * process filter its system calls. Without it, the step's process
18
+ * shares the Runner's network. Its HTTP goes through the Runner either
19
+ * way, to public addresses only.
20
+ *
21
+ * The Runner decides both once, and says what it decided on every heartbeat,
22
+ * in its hostInfo under GLOBAL_RUNNER_SANDBOX_HOST_INFO_KEY, so the Admin
23
+ * Dashboard's Global Runners page can say, under the Runner's status, when a
24
+ * step gets less than both, and what to change. A Runner of a release from
25
+ * before this says nothing, and nothing is said about it.
26
+ *
27
+ * Pure, so the Runner and the Admin Dashboard read it the same way.
28
+ */
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.GlobalRunnerSandboxShortfall = exports.GlobalRunnerStepNetworkReason = exports.GlobalRunnerStepNetwork = exports.GlobalRunnerStepUserReason = exports.GlobalRunnerStepUser = exports.GLOBAL_RUNNER_SANDBOX_HOST_INFO_KEY = void 0;
31
+ exports.parseGlobalRunnerSandboxReport = parseGlobalRunnerSandboxReport;
32
+ exports.getGlobalRunnerSandboxShortfalls = getGlobalRunnerSandboxShortfalls;
33
+ exports.GLOBAL_RUNNER_SANDBOX_HOST_INFO_KEY = "javaScriptSandbox";
34
+ // Who a step's process runs as.
35
+ var GlobalRunnerStepUser;
36
+ (function (GlobalRunnerStepUser) {
37
+ // A user of its own, which no other running step holds.
38
+ GlobalRunnerStepUser["OwnUser"] = "own-user";
39
+ // The Runner's own user, in a process of its own.
40
+ GlobalRunnerStepUser["RunnerUser"] = "runner-user";
41
+ })(GlobalRunnerStepUser || (exports.GlobalRunnerStepUser = GlobalRunnerStepUser = {}));
42
+ // Why a step's process runs as the Runner's own user.
43
+ var GlobalRunnerStepUserReason;
44
+ (function (GlobalRunnerStepUserReason) {
45
+ // The container forbids switching users.
46
+ GlobalRunnerStepUserReason["NoPrivilege"] = "no-privilege";
47
+ // The Runner runs as a user outside its image's node group.
48
+ GlobalRunnerStepUserReason["NotInNodeGroup"] = "not-in-node-group";
49
+ // No launcher: a Runner run from its sources, not its image.
50
+ GlobalRunnerStepUserReason["NotInstalled"] = "not-installed";
51
+ // The launcher's check failed some other way; the Runner's log says how.
52
+ GlobalRunnerStepUserReason["CheckFailed"] = "check-failed";
53
+ })(GlobalRunnerStepUserReason || (exports.GlobalRunnerStepUserReason = GlobalRunnerStepUserReason = {}));
54
+ // What a step's process may reach by itself.
55
+ var GlobalRunnerStepNetwork;
56
+ (function (GlobalRunnerStepNetwork) {
57
+ // Nothing: it may open no socket of any kind.
58
+ GlobalRunnerStepNetwork["None"] = "none";
59
+ // What the Runner's container reaches.
60
+ GlobalRunnerStepNetwork["Shared"] = "shared";
61
+ })(GlobalRunnerStepNetwork || (exports.GlobalRunnerStepNetwork = GlobalRunnerStepNetwork = {}));
62
+ // Why a step's process shares the Runner's network.
63
+ var GlobalRunnerStepNetworkReason;
64
+ (function (GlobalRunnerStepNetworkReason) {
65
+ /*
66
+ * The kernel, or the container's seccomp profile, lets no process filter
67
+ * its own system calls.
68
+ */
69
+ GlobalRunnerStepNetworkReason["NoSeccomp"] = "no-seccomp";
70
+ // No filter: a Runner run from its sources, not its image.
71
+ GlobalRunnerStepNetworkReason["NotInstalled"] = "not-installed";
72
+ // The filter's check failed some other way; the Runner's log says how.
73
+ GlobalRunnerStepNetworkReason["CheckFailed"] = "check-failed";
74
+ })(GlobalRunnerStepNetworkReason || (exports.GlobalRunnerStepNetworkReason = GlobalRunnerStepNetworkReason = {}));
75
+ function isOneOf(values, value) {
76
+ return (typeof value === "string" && Object.values(values).includes(value));
77
+ }
78
+ /*
79
+ * The report a Runner's hostInfo holds, or null when it holds none, or one
80
+ * this release does not read. A reason the report does not name is read as
81
+ * a failed check: the page still says the step gets less than it should.
82
+ */
83
+ function parseGlobalRunnerSandboxReport(hostInfo) {
84
+ if (!hostInfo || typeof hostInfo !== "object" || Array.isArray(hostInfo)) {
85
+ return null;
86
+ }
87
+ const reported = hostInfo[exports.GLOBAL_RUNNER_SANDBOX_HOST_INFO_KEY];
88
+ if (!reported || typeof reported !== "object" || Array.isArray(reported)) {
89
+ return null;
90
+ }
91
+ const values = reported;
92
+ const user = values["user"];
93
+ const network = values["network"];
94
+ const userReason = values["userReason"];
95
+ const networkReason = values["networkReason"];
96
+ if (!isOneOf(GlobalRunnerStepUser, user) ||
97
+ !isOneOf(GlobalRunnerStepNetwork, network)) {
98
+ return null;
99
+ }
100
+ const report = { user, network };
101
+ if (user === GlobalRunnerStepUser.RunnerUser) {
102
+ report.userReason = isOneOf(GlobalRunnerStepUserReason, userReason)
103
+ ? userReason
104
+ : GlobalRunnerStepUserReason.CheckFailed;
105
+ }
106
+ if (network === GlobalRunnerStepNetwork.Shared) {
107
+ report.networkReason = isOneOf(GlobalRunnerStepNetworkReason, networkReason)
108
+ ? networkReason
109
+ : GlobalRunnerStepNetworkReason.CheckFailed;
110
+ }
111
+ return report;
112
+ }
113
+ /*
114
+ * What the Admin Dashboard draws under a global Runner's status when its
115
+ * steps get less than a user of their own and no network: one line for each,
116
+ * saying what the step gets and what to change. The decision is here, so it
117
+ * is shared and testable; the words are the Admin Dashboard's own, so its
118
+ * locales hold them (the page's GLOBAL_RUNNER_SANDBOX_COPY).
119
+ */
120
+ var GlobalRunnerSandboxShortfall;
121
+ (function (GlobalRunnerSandboxShortfall) {
122
+ GlobalRunnerSandboxShortfall["OwnUserNoPrivilege"] = "own-user-no-privilege";
123
+ GlobalRunnerSandboxShortfall["OwnUserNotInNodeGroup"] = "own-user-not-in-node-group";
124
+ GlobalRunnerSandboxShortfall["OwnUserNotInstalled"] = "own-user-not-installed";
125
+ GlobalRunnerSandboxShortfall["OwnUserCheckFailed"] = "own-user-check-failed";
126
+ GlobalRunnerSandboxShortfall["SharedNetworkNoSeccomp"] = "shared-network-no-seccomp";
127
+ GlobalRunnerSandboxShortfall["SharedNetworkNotInstalled"] = "shared-network-not-installed";
128
+ GlobalRunnerSandboxShortfall["SharedNetworkCheckFailed"] = "shared-network-check-failed";
129
+ // Both, for the one reason: a Runner run from its sources, not its image.
130
+ GlobalRunnerSandboxShortfall["NotInstalled"] = "not-installed";
131
+ })(GlobalRunnerSandboxShortfall || (exports.GlobalRunnerSandboxShortfall = GlobalRunnerSandboxShortfall = {}));
132
+ /*
133
+ * The shortfalls for a report, in the order the page draws them: the user
134
+ * first, then the network. None for a Runner whose steps get both, or one
135
+ * that says nothing.
136
+ */
137
+ function getGlobalRunnerSandboxShortfalls(report) {
138
+ if (!report) {
139
+ return [];
140
+ }
141
+ const isOwnUserMissing = report.user === GlobalRunnerStepUser.RunnerUser;
142
+ const isNetworkShared = report.network === GlobalRunnerStepNetwork.Shared;
143
+ if (isOwnUserMissing &&
144
+ isNetworkShared &&
145
+ report.userReason === GlobalRunnerStepUserReason.NotInstalled &&
146
+ report.networkReason === GlobalRunnerStepNetworkReason.NotInstalled) {
147
+ return [GlobalRunnerSandboxShortfall.NotInstalled];
148
+ }
149
+ const shortfalls = [];
150
+ if (isOwnUserMissing) {
151
+ switch (report.userReason) {
152
+ case GlobalRunnerStepUserReason.NoPrivilege:
153
+ shortfalls.push(GlobalRunnerSandboxShortfall.OwnUserNoPrivilege);
154
+ break;
155
+ case GlobalRunnerStepUserReason.NotInNodeGroup:
156
+ shortfalls.push(GlobalRunnerSandboxShortfall.OwnUserNotInNodeGroup);
157
+ break;
158
+ case GlobalRunnerStepUserReason.NotInstalled:
159
+ shortfalls.push(GlobalRunnerSandboxShortfall.OwnUserNotInstalled);
160
+ break;
161
+ default:
162
+ shortfalls.push(GlobalRunnerSandboxShortfall.OwnUserCheckFailed);
163
+ }
164
+ }
165
+ if (isNetworkShared) {
166
+ switch (report.networkReason) {
167
+ case GlobalRunnerStepNetworkReason.NoSeccomp:
168
+ shortfalls.push(GlobalRunnerSandboxShortfall.SharedNetworkNoSeccomp);
169
+ break;
170
+ case GlobalRunnerStepNetworkReason.NotInstalled:
171
+ shortfalls.push(GlobalRunnerSandboxShortfall.SharedNetworkNotInstalled);
172
+ break;
173
+ default:
174
+ shortfalls.push(GlobalRunnerSandboxShortfall.SharedNetworkCheckFailed);
175
+ }
176
+ }
177
+ return shortfalls;
178
+ }
@@ -0,0 +1,9 @@
1
+ import commonJsModule from "./GlobalRunnerSandbox.js";
2
+ export const GLOBAL_RUNNER_SANDBOX_HOST_INFO_KEY = commonJsModule.GLOBAL_RUNNER_SANDBOX_HOST_INFO_KEY;
3
+ export const GlobalRunnerSandboxShortfall = commonJsModule.GlobalRunnerSandboxShortfall;
4
+ export const GlobalRunnerStepNetwork = commonJsModule.GlobalRunnerStepNetwork;
5
+ export const GlobalRunnerStepNetworkReason = commonJsModule.GlobalRunnerStepNetworkReason;
6
+ export const GlobalRunnerStepUser = commonJsModule.GlobalRunnerStepUser;
7
+ export const GlobalRunnerStepUserReason = commonJsModule.GlobalRunnerStepUserReason;
8
+ export const getGlobalRunnerSandboxShortfalls = commonJsModule.getGlobalRunnerSandboxShortfalls;
9
+ export const parseGlobalRunnerSandboxReport = commonJsModule.parseGlobalRunnerSandboxReport;
@@ -20,10 +20,15 @@ const RunbookStepTimeout_1 = require("../Runbook/RunbookStepTimeout");
20
20
  * - JavaScript steps. Each runs in an isolated-vm sandbox of its own,
21
21
  * created for that one step and thrown away after it: no filesystem, no
22
22
  * processes, no environment (so never the Runner's own key), nothing kept
23
- * from one step to the next. Its HTTP goes through the sandbox's SSRF
24
- * guard on the strict policy: public internet addresses only, never a
25
- * private, loopback or link-local address or a cloud metadata endpoint -
26
- * so never a project's network, nor the network the Runner sits in.
23
+ * from one step to the next. The sandbox itself runs in a process started
24
+ * for that step alone, as a user of its own, with none of the Runner's
25
+ * environment or files (packages/Runner Utils/JavaScriptSandbox), so
26
+ * even code that got out of the isolate is kept from the Runner's key
27
+ * and a code fix's token and workspace. Its HTTP goes through the
28
+ * sandbox's SSRF guard on the strict policy: public internet addresses
29
+ * only, never a private, loopback or link-local address or a cloud
30
+ * metadata endpoint - so never a project's network, nor the network the
31
+ * Runner sits in.
27
32
  * - OneUptime AI's code fixes, in every code repository on the Global
28
33
  * Runner (Types/Runner/CodeRepositoryRunner), one at a time, each in a
29
34
  * workspace of its own that is deleted when the fix ends. The code agent
@@ -0,0 +1,16 @@
1
+ declare enum RunnerCodeFixCapability {
2
+ ServerOpensPullRequests = "serverOpensPullRequests",
3
+ KeepsPrivateRecordsOutOfPullRequests = "keepsPrivateRecordsOutOfPullRequests"
4
+ }
5
+ export declare const SUBJECT_IS_PRIVATE_FIELD: string;
6
+ export declare const RUNNER_CODE_FIX_CAPABILITIES_FIELD: string;
7
+ export declare const SERVER_OPENS_PULL_REQUEST_FIELD: string;
8
+ export declare const MAX_RUNNER_CODE_FIX_CAPABILITIES: number;
9
+ export declare const MAX_RUNNER_CODE_FIX_CAPABILITY_LENGTH: number;
10
+ export declare class RunnerCodeFixCapabilityUtil {
11
+ static parse(value: unknown): Array<RunnerCodeFixCapability>;
12
+ static readFromBody(body: unknown): Array<RunnerCodeFixCapability>;
13
+ static has(capabilities: ReadonlyArray<RunnerCodeFixCapability> | undefined, capability: RunnerCodeFixCapability): boolean;
14
+ static pushesWithRunTokens(body: unknown): boolean;
15
+ }
16
+ export default RunnerCodeFixCapability;
@@ -0,0 +1,16 @@
1
+ declare enum RunnerCodeFixCapability {
2
+ ServerOpensPullRequests = "serverOpensPullRequests",
3
+ KeepsPrivateRecordsOutOfPullRequests = "keepsPrivateRecordsOutOfPullRequests"
4
+ }
5
+ export declare const SUBJECT_IS_PRIVATE_FIELD: string;
6
+ export declare const RUNNER_CODE_FIX_CAPABILITIES_FIELD: string;
7
+ export declare const SERVER_OPENS_PULL_REQUEST_FIELD: string;
8
+ export declare const MAX_RUNNER_CODE_FIX_CAPABILITIES: number;
9
+ export declare const MAX_RUNNER_CODE_FIX_CAPABILITY_LENGTH: number;
10
+ export declare class RunnerCodeFixCapabilityUtil {
11
+ static parse(value: unknown): Array<RunnerCodeFixCapability>;
12
+ static readFromBody(body: unknown): Array<RunnerCodeFixCapability>;
13
+ static has(capabilities: ReadonlyArray<RunnerCodeFixCapability> | undefined, capability: RunnerCodeFixCapability): boolean;
14
+ static pushesWithRunTokens(body: unknown): boolean;
15
+ }
16
+ export default RunnerCodeFixCapability;
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RunnerCodeFixCapabilityUtil = exports.MAX_RUNNER_CODE_FIX_CAPABILITY_LENGTH = exports.MAX_RUNNER_CODE_FIX_CAPABILITIES = exports.SERVER_OPENS_PULL_REQUEST_FIELD = exports.RUNNER_CODE_FIX_CAPABILITIES_FIELD = exports.SUBJECT_IS_PRIVATE_FIELD = void 0;
4
+ /*
5
+ * WHAT A RUNNER BUILD CAN DO IN A CODE FIX.
6
+ *
7
+ * A Runner declares these on every code-fix request it sends
8
+ * (RUNNER_CODE_FIX_CAPABILITIES_FIELD in the request body), as a probe
9
+ * declares its probeCapabilities, so the server can hand a Runner only what
10
+ * that Runner understands - and keep handing an older Runner, which declares
11
+ * none, exactly what it always did. Both ends of every capability ship in the
12
+ * same release: the server reads it, and the Runner that declares it honours
13
+ * it.
14
+ *
15
+ * Add a capability only in the build whose code honours it.
16
+ */
17
+ var RunnerCodeFixCapability;
18
+ (function (RunnerCodeFixCapability) {
19
+ /*
20
+ * The Runner asks OneUptime to open a fix's pull (or merge) request
21
+ * (/ai-agent-data/open-pull-request) whenever the repository token's
22
+ * answer says OneUptime opens it (serverOpensPullRequest), rather than
23
+ * opening it itself with the token. So the token it is handed needs to
24
+ * push the fix's branch and nothing more:
25
+ *
26
+ * - GitHub: an installation token for the one repository that can push
27
+ * (contents) but not open a pull request (no pull_requests);
28
+ * - GitLab: a project access token OneUptime makes for the one run, on
29
+ * the one project, that can push (write_repository) but not call the
30
+ * API, and that OneUptime revokes when the run ends - rather than the
31
+ * connection's own token, wherever GitLab lets OneUptime make one;
32
+ * - Forgejo and Gitea: still the connection's token, which OneUptime
33
+ * cannot narrow (they make a token only for a user's password); the
34
+ * pull request is OneUptime's to open all the same.
35
+ *
36
+ * A Runner older than this opens the pull request itself, as it always
37
+ * did, with a token that can.
38
+ */
39
+ RunnerCodeFixCapability["ServerOpensPullRequests"] = "serverOpensPullRequests";
40
+ /*
41
+ * The Runner keeps a private incident or alert out of what it writes on
42
+ * the code host (#9165). For a fix about one - the task details say
43
+ * subjectIsPrivate - its pull request's title, description and commit
44
+ * message name neither the record nor quote the investigation's analysis,
45
+ * and its code agent is asked to describe the code change alone: the
46
+ * repository's readers are not the record's. A Runner older than this
47
+ * writes the record's title and the analysis into them, so it is never
48
+ * handed such a fix's details (/ai-agent-data/get-instrumentation-task-
49
+ * details refuses it, saying to update the Runner).
50
+ */
51
+ RunnerCodeFixCapability["KeepsPrivateRecordsOutOfPullRequests"] = "keepsPrivateRecordsOutOfPullRequests";
52
+ })(RunnerCodeFixCapability || (RunnerCodeFixCapability = {}));
53
+ /*
54
+ * The field of a subject fix's task details (an incident's or alert's) that
55
+ * says the record is private, for a Runner that keeps it out of the pull
56
+ * request (KeepsPrivateRecordsOutOfPullRequests).
57
+ */
58
+ exports.SUBJECT_IS_PRIVATE_FIELD = "subjectIsPrivate";
59
+ // The request body field a Runner declares its code-fix capabilities in.
60
+ exports.RUNNER_CODE_FIX_CAPABILITIES_FIELD = "codeFixCapabilities";
61
+ /*
62
+ * The field of a repository token's answer that says OneUptime opens the
63
+ * run's pull (or merge) request (true), so the Runner asks it to
64
+ * (/ai-agent-data/open-pull-request) rather than opening one with the token,
65
+ * which may not be able to. Left out - by an older server, for a Runner that
66
+ * did not declare ServerOpensPullRequests, or for a host OneUptime's server
67
+ * does not reach - the Runner opens it itself, as it always did.
68
+ */
69
+ exports.SERVER_OPENS_PULL_REQUEST_FIELD = "serverOpensPullRequest";
70
+ // How many capabilities, of how many characters, a request is read for.
71
+ exports.MAX_RUNNER_CODE_FIX_CAPABILITIES = 16;
72
+ exports.MAX_RUNNER_CODE_FIX_CAPABILITY_LENGTH = 64;
73
+ class RunnerCodeFixCapabilityUtil {
74
+ /*
75
+ * The capabilities a request body's field declares, as the server keeps
76
+ * them: the ones this server knows, de-duplicated and bounded. Anything
77
+ * that is not a list reads as none at all - an older Runner sends none -
78
+ * and a capability this server does not know (a newer Runner's) is left
79
+ * out, as one it cannot honour.
80
+ */
81
+ static parse(value) {
82
+ if (!Array.isArray(value)) {
83
+ return [];
84
+ }
85
+ const known = Object.values(RunnerCodeFixCapability);
86
+ const capabilities = [];
87
+ for (const entry of value.slice(0, exports.MAX_RUNNER_CODE_FIX_CAPABILITIES)) {
88
+ if (typeof entry !== "string" ||
89
+ entry.length > exports.MAX_RUNNER_CODE_FIX_CAPABILITY_LENGTH) {
90
+ continue;
91
+ }
92
+ const capability = entry.trim();
93
+ if (known.includes(capability) &&
94
+ !capabilities.includes(capability)) {
95
+ capabilities.push(capability);
96
+ }
97
+ }
98
+ return capabilities;
99
+ }
100
+ // The capabilities a request body declares (RUNNER_CODE_FIX_CAPABILITIES_FIELD).
101
+ static readFromBody(body) {
102
+ if (!body || typeof body !== "object" || Array.isArray(body)) {
103
+ return [];
104
+ }
105
+ return RunnerCodeFixCapabilityUtil.parse(body[exports.RUNNER_CODE_FIX_CAPABILITIES_FIELD]);
106
+ }
107
+ static has(capabilities, capability) {
108
+ return Array.isArray(capabilities) && capabilities.includes(capability);
109
+ }
110
+ /*
111
+ * Whether the Runner that sent this body pushes with a token OneUptime
112
+ * makes for its run - which only a Runner that has OneUptime open its pull
113
+ * requests can be handed - for the claim and the queue count it
114
+ * autoscales on.
115
+ */
116
+ static pushesWithRunTokens(body) {
117
+ return RunnerCodeFixCapabilityUtil.has(RunnerCodeFixCapabilityUtil.readFromBody(body), RunnerCodeFixCapability.ServerOpensPullRequests);
118
+ }
119
+ }
120
+ exports.RunnerCodeFixCapabilityUtil = RunnerCodeFixCapabilityUtil;
121
+ exports.default = RunnerCodeFixCapability;
@@ -0,0 +1,8 @@
1
+ import commonJsModule from "./RunnerCodeFixCapability.js";
2
+ export default commonJsModule.default;
3
+ export const MAX_RUNNER_CODE_FIX_CAPABILITIES = commonJsModule.MAX_RUNNER_CODE_FIX_CAPABILITIES;
4
+ export const MAX_RUNNER_CODE_FIX_CAPABILITY_LENGTH = commonJsModule.MAX_RUNNER_CODE_FIX_CAPABILITY_LENGTH;
5
+ export const RUNNER_CODE_FIX_CAPABILITIES_FIELD = commonJsModule.RUNNER_CODE_FIX_CAPABILITIES_FIELD;
6
+ export const RunnerCodeFixCapabilityUtil = commonJsModule.RunnerCodeFixCapabilityUtil;
7
+ export const SERVER_OPENS_PULL_REQUEST_FIELD = commonJsModule.SERVER_OPENS_PULL_REQUEST_FIELD;
8
+ export const SUBJECT_IS_PRIVATE_FIELD = commonJsModule.SUBJECT_IS_PRIVATE_FIELD;