@oneuptime/common 14.0.107 → 14.0.109

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 (591) hide show
  1. package/Models/AnalyticsModels/AuditLog.js +1 -1
  2. package/Models/DatabaseModels/CloudApp.d.mts +5 -0
  3. package/Models/DatabaseModels/CloudApp.d.ts +5 -0
  4. package/Models/DatabaseModels/CloudApp.js +112 -0
  5. package/Models/DatabaseModels/DataBiConnection.d.mts +4 -0
  6. package/Models/DatabaseModels/DataBiConnection.d.ts +4 -0
  7. package/Models/DatabaseModels/DataBiConnection.js +59 -2
  8. package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
  9. package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
  10. package/Models/DatabaseModels/GlobalConfig.js +111 -0
  11. package/Models/DatabaseModels/Index.js +9 -0
  12. package/Models/DatabaseModels/Monitor.js +14 -0
  13. package/Models/DatabaseModels/MonitorStatusTimeline.d.mts +1 -0
  14. package/Models/DatabaseModels/MonitorStatusTimeline.d.ts +1 -0
  15. package/Models/DatabaseModels/MonitorStatusTimeline.js +43 -0
  16. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +4 -0
  17. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
  18. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +132 -2
  19. package/Models/DatabaseModels/ProductFeedback.d.mts +11 -0
  20. package/Models/DatabaseModels/ProductFeedback.d.ts +11 -0
  21. package/Models/DatabaseModels/ProductFeedback.js +203 -0
  22. package/Models/DatabaseModels/ProductFeedback.mjs +2 -0
  23. package/Models/DatabaseModels/Project.d.mts +6 -0
  24. package/Models/DatabaseModels/Project.d.ts +6 -0
  25. package/Models/DatabaseModels/Project.js +237 -0
  26. package/Models/DatabaseModels/ProjectMilestone.d.mts +11 -0
  27. package/Models/DatabaseModels/ProjectMilestone.d.ts +11 -0
  28. package/Models/DatabaseModels/ProjectMilestone.js +207 -0
  29. package/Models/DatabaseModels/ProjectMilestone.mjs +2 -0
  30. package/Models/DatabaseModels/ProjectUserPreference.d.mts +11 -0
  31. package/Models/DatabaseModels/ProjectUserPreference.d.ts +11 -0
  32. package/Models/DatabaseModels/ProjectUserPreference.js +194 -0
  33. package/Models/DatabaseModels/ProjectUserPreference.mjs +2 -0
  34. package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.mts +20 -0
  35. package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.ts +20 -0
  36. package/Models/DatabaseModels/RumProductAnalyticsSavedView.js +353 -0
  37. package/Models/DatabaseModels/RumProductAnalyticsSavedView.mjs +2 -0
  38. package/Models/DatabaseModels/RumSessionPin.js +16 -2
  39. package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
  40. package/Models/DatabaseModels/SecurityCase.js +8 -1
  41. package/Models/DatabaseModels/User.d.mts +2 -0
  42. package/Models/DatabaseModels/User.d.ts +2 -0
  43. package/Models/DatabaseModels/User.js +52 -0
  44. package/Models/DatabaseModels/UserOnCallLog.js +32 -4
  45. package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -0
  46. package/Models/DatabaseModels/WhatsAppLog.d.mts +3 -0
  47. package/Models/DatabaseModels/WhatsAppLog.d.ts +3 -0
  48. package/Models/DatabaseModels/WhatsAppLog.js +62 -0
  49. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  50. package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +20 -0
  51. package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +20 -0
  52. package/Models/DatabaseModels/WorkspaceUserGroup.js +1 -1
  53. package/Server/Services/DatabaseService.d.mts +1 -0
  54. package/Server/Services/DatabaseService.d.ts +1 -0
  55. package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +213 -0
  56. package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +213 -0
  57. package/Server/Utils/Workspace/WorkspaceBase.d.mts +4 -0
  58. package/Server/Utils/Workspace/WorkspaceBase.d.ts +4 -0
  59. package/Types/AI/AIActionWords.d.mts +167 -7
  60. package/Types/AI/AIActionWords.d.ts +167 -7
  61. package/Types/AI/AIActionWords.js +474 -17
  62. package/Types/AI/AIActionWords.mjs +22 -0
  63. package/Types/AI/AIChatMessageStatus.js +3 -2
  64. package/Types/AI/AIChatRecordSeen.d.mts +6 -2
  65. package/Types/AI/AIChatRecordSeen.d.ts +6 -2
  66. package/Types/AI/AIChatRecordSeen.js +48 -9
  67. package/Types/AI/AIChatRecordSeen.mjs +2 -0
  68. package/Types/AI/AIChatTypes.d.mts +20 -1
  69. package/Types/AI/AIChatTypes.d.ts +20 -1
  70. package/Types/AI/AIChatTypes.js +46 -1
  71. package/Types/AI/AIChatTypes.mjs +3 -0
  72. package/Types/AI/AIRunAttempt.d.mts +8 -0
  73. package/Types/AI/AIRunAttempt.d.ts +8 -0
  74. package/Types/AI/AIRunAttempt.js +60 -6
  75. package/Types/AI/AIRunAttempt.mjs +3 -0
  76. package/Types/AI/AISetupActions.d.mts +9 -0
  77. package/Types/AI/AISetupActions.d.ts +9 -0
  78. package/Types/AI/AISetupActions.js +56 -0
  79. package/Types/AI/AISetupActions.mjs +10 -0
  80. package/Types/AI/CodeTask.d.mts +14 -0
  81. package/Types/AI/CodeTask.d.ts +14 -0
  82. package/Types/AI/InvestigationNotStartedReason.d.mts +7 -0
  83. package/Types/AI/InvestigationNotStartedReason.d.ts +7 -0
  84. package/Types/AI/RecordAiTokenLimit.d.mts +24 -0
  85. package/Types/AI/RecordAiTokenLimit.d.ts +24 -0
  86. package/Types/AI/RecordAiTokenLimit.js +153 -0
  87. package/Types/AI/RecordAiTokenLimit.mjs +8 -0
  88. package/Types/Accounts/SignInMessages.d.mts +8 -0
  89. package/Types/Accounts/SignInMessages.d.ts +8 -0
  90. package/Types/Accounts/SignInMessages.js +28 -0
  91. package/Types/Accounts/SignInMessages.mjs +5 -0
  92. package/Types/Analytics/ActivationMilestone.d.mts +48 -0
  93. package/Types/Analytics/ActivationMilestone.d.ts +48 -0
  94. package/Types/Analytics/ActivationMilestone.js +247 -0
  95. package/Types/Analytics/ActivationMilestone.mjs +16 -0
  96. package/Types/Analytics/ChecklistProgress.d.mts +11 -0
  97. package/Types/Analytics/ChecklistProgress.d.ts +11 -0
  98. package/Types/Analytics/ChecklistProgress.js +32 -0
  99. package/Types/Analytics/ChecklistProgress.mjs +2 -0
  100. package/Types/Analytics/ProductEvent.d.mts +61 -0
  101. package/Types/Analytics/ProductEvent.d.ts +61 -0
  102. package/Types/Analytics/ProductEvent.js +430 -0
  103. package/Types/Analytics/ProductEvent.mjs +14 -0
  104. package/Types/AuditLog/AuditLogAction.d.mts +5 -1
  105. package/Types/AuditLog/AuditLogAction.d.ts +5 -1
  106. package/Types/AuditLog/AuditLogAction.js +11 -0
  107. package/Types/AuditLog/AuditLogActionLabel.d.mts +3 -0
  108. package/Types/AuditLog/AuditLogActionLabel.d.ts +3 -0
  109. package/Types/AuditLog/AuditLogActionLabel.js +30 -0
  110. package/Types/AuditLog/AuditLogActionLabel.mjs +3 -0
  111. package/Types/AuditLog/AuditLogCoverage.d.mts +2 -1
  112. package/Types/AuditLog/AuditLogCoverage.d.ts +2 -1
  113. package/Types/AuditLog/AuditLogCoverage.js +8 -1
  114. package/Types/AuditLog/AuditLogRetention.js +7 -4
  115. package/Types/AuditLog/AuditLogSessionEvent.d.mts +45 -0
  116. package/Types/AuditLog/AuditLogSessionEvent.d.ts +45 -0
  117. package/Types/AuditLog/AuditLogSessionEvent.js +210 -0
  118. package/Types/AuditLog/AuditLogSessionEvent.mjs +14 -0
  119. package/Types/AutoRemediation/RemediationRound.d.mts +4 -0
  120. package/Types/AutoRemediation/RemediationRound.d.ts +4 -0
  121. package/Types/AutoRemediation/RemediationRound.js +19 -2
  122. package/Types/AutoRemediation/RemediationRoundName.d.mts +1 -0
  123. package/Types/AutoRemediation/RemediationRoundName.d.ts +1 -0
  124. package/Types/AutoRemediation/RemediationRoundName.js +5 -0
  125. package/Types/AutoRemediation/RemediationRoundName.mjs +1 -0
  126. package/Types/Cloud/CloudAppTelemetrySignal.d.mts +9 -0
  127. package/Types/Cloud/CloudAppTelemetrySignal.d.ts +9 -0
  128. package/Types/Cloud/CloudAppTelemetrySignal.js +41 -0
  129. package/Types/Cloud/CloudAppTelemetrySignal.mjs +4 -0
  130. package/Types/Cloud/CloudPlatform.js +7 -1
  131. package/Types/CodeInSentence.d.mts +8 -0
  132. package/Types/CodeInSentence.d.ts +8 -0
  133. package/Types/CodeInSentence.js +875 -0
  134. package/Types/CodeInSentence.mjs +4 -0
  135. package/Types/CodeRepository/CodeFileSeen.d.mts +5 -0
  136. package/Types/CodeRepository/CodeFileSeen.d.ts +5 -0
  137. package/Types/CodeRepository/CodeFileSeen.js +142 -27
  138. package/Types/CustomDomain/CustomDomainDnsCheckResult.d.mts +13 -0
  139. package/Types/CustomDomain/CustomDomainDnsCheckResult.d.ts +13 -0
  140. package/Types/CustomDomain/CustomDomainDnsCheckResult.js +80 -0
  141. package/Types/CustomDomain/CustomDomainDnsCheckResult.mjs +2 -0
  142. package/Types/CustomDomain/CustomDomainServerReadiness.d.mts +55 -0
  143. package/Types/CustomDomain/CustomDomainServerReadiness.d.ts +55 -0
  144. package/Types/CustomDomain/CustomDomainServerReadiness.js +199 -0
  145. package/Types/CustomDomain/CustomDomainServerReadiness.mjs +8 -0
  146. package/Types/CustomDomain/DnsRecordCheck.d.mts +34 -0
  147. package/Types/CustomDomain/DnsRecordCheck.d.ts +34 -0
  148. package/Types/CustomDomain/DnsRecordCheck.js +175 -0
  149. package/Types/CustomDomain/DnsRecordCheck.mjs +6 -0
  150. package/Types/CustomDomain/DnsRecordCheckWords.d.mts +35 -0
  151. package/Types/CustomDomain/DnsRecordCheckWords.d.ts +35 -0
  152. package/Types/CustomDomain/DnsRecordCheckWords.js +151 -0
  153. package/Types/CustomDomain/DnsRecordCheckWords.mjs +5 -0
  154. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
  155. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
  156. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +11 -1
  157. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +1 -0
  158. package/Types/Dashboard/DashboardComponentType.d.mts +2 -0
  159. package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
  160. package/Types/Dashboard/DashboardComponentType.js +7 -0
  161. package/Types/Dashboard/DashboardComponents/ComponentArgument.d.mts +3 -1
  162. package/Types/Dashboard/DashboardComponents/ComponentArgument.d.ts +3 -1
  163. package/Types/Dashboard/DashboardComponents/ComponentArgument.js +3 -0
  164. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.mts +11 -0
  165. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.ts +11 -0
  166. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.js +2 -0
  167. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.mjs +1 -0
  168. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.mts +11 -0
  169. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.ts +11 -0
  170. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.js +2 -0
  171. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.mjs +1 -0
  172. package/Types/Dashboard/PublicDashboardServedSettings.js +15 -7
  173. package/Types/DataObservability/DataBiRefreshAlert.d.mts +44 -0
  174. package/Types/DataObservability/DataBiRefreshAlert.d.ts +44 -0
  175. package/Types/DataObservability/DataBiRefreshAlert.js +206 -0
  176. package/Types/DataObservability/DataBiRefreshAlert.mjs +12 -0
  177. package/Types/DataObservability/DataCheckType.d.mts +4 -0
  178. package/Types/DataObservability/DataCheckType.d.ts +4 -0
  179. package/Types/DataObservability/DataCheckType.js +17 -0
  180. package/Types/DataObservability/DataCheckType.mjs +1 -0
  181. package/Types/DataObservability/DataLineageColumnTrail.d.mts +10 -0
  182. package/Types/DataObservability/DataLineageColumnTrail.d.ts +10 -0
  183. package/Types/DataObservability/DataLineageColumnTrail.js +152 -0
  184. package/Types/DataObservability/DataLineageColumnTrail.mjs +4 -0
  185. package/Types/DataObservability/DataLineageExpansion.d.mts +29 -0
  186. package/Types/DataObservability/DataLineageExpansion.d.ts +29 -0
  187. package/Types/DataObservability/DataLineageExpansion.js +166 -0
  188. package/Types/DataObservability/DataLineageExpansion.mjs +4 -0
  189. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +8 -0
  190. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +8 -0
  191. package/Types/DataObservability/DataObservabilityApiTypes.js +14 -0
  192. package/Types/DataObservability/DataTableLineage.d.mts +29 -1
  193. package/Types/DataObservability/DataTableLineage.d.ts +29 -1
  194. package/Types/DataObservability/DataTableLineage.js +27 -7
  195. package/Types/DataObservability/DataTableLineage.mjs +3 -0
  196. package/Types/Date.d.mts +22 -0
  197. package/Types/Date.d.ts +22 -0
  198. package/Types/Date.js +72 -3
  199. package/Types/DateLanguage.d.mts +7 -0
  200. package/Types/DateLanguage.d.ts +7 -0
  201. package/Types/DateLanguage.js +44 -1
  202. package/Types/DateLanguage.mjs +1 -0
  203. package/Types/Docs/DocsLanguage.d.mts +2 -0
  204. package/Types/Docs/DocsLanguage.d.ts +2 -0
  205. package/Types/Docs/DocsLanguage.js +23 -1
  206. package/Types/Docs/DocsLanguage.mjs +2 -0
  207. package/Types/Docs/GlossaryTerm.d.mts +82 -0
  208. package/Types/Docs/GlossaryTerm.d.ts +82 -0
  209. package/Types/Docs/GlossaryTerm.js +126 -0
  210. package/Types/Docs/GlossaryTerm.mjs +5 -0
  211. package/Types/Email/AmazonSesAuthenticationType.d.mts +23 -0
  212. package/Types/Email/AmazonSesAuthenticationType.d.ts +23 -0
  213. package/Types/Email/AmazonSesAuthenticationType.js +40 -0
  214. package/Types/Email/AmazonSesAuthenticationType.mjs +4 -0
  215. package/Types/Email/EmailServer.d.mts +2 -0
  216. package/Types/Email/EmailServer.d.ts +2 -0
  217. package/Types/Email/EmailTemplateType.d.mts +1 -0
  218. package/Types/Email/EmailTemplateType.d.ts +1 -0
  219. package/Types/Email/EmailTemplateType.js +2 -0
  220. package/Types/Exception/BadDataExceptionWithDetails.d.mts +6 -0
  221. package/Types/Exception/BadDataExceptionWithDetails.d.ts +6 -0
  222. package/Types/Exception/BadDataExceptionWithDetails.js +20 -0
  223. package/Types/Exception/BadDataExceptionWithDetails.mjs +2 -0
  224. package/Types/Exception/ErrorMessageRule.d.mts +4 -0
  225. package/Types/Exception/ErrorMessageRule.d.ts +4 -0
  226. package/Types/Exception/ErrorMessageRule.js +143 -0
  227. package/Types/Exception/ErrorMessageRule.mjs +5 -0
  228. package/Types/Exception/UnexplainedError.d.mts +45 -0
  229. package/Types/Exception/UnexplainedError.d.ts +45 -0
  230. package/Types/Exception/UnexplainedError.js +179 -0
  231. package/Types/Exception/UnexplainedError.mjs +11 -0
  232. package/Types/HashedString.js +9 -2
  233. package/Types/Icon/IconProp.d.mts +4 -1
  234. package/Types/Icon/IconProp.d.ts +4 -1
  235. package/Types/Icon/IconProp.js +6 -0
  236. package/Types/InstallationHealth/InstallationHealth.d.mts +122 -0
  237. package/Types/InstallationHealth/InstallationHealth.d.ts +122 -0
  238. package/Types/InstallationHealth/InstallationHealth.js +513 -0
  239. package/Types/InstallationHealth/InstallationHealth.mjs +13 -0
  240. package/Types/LLM/LLMProviderExchange.d.mts +17 -0
  241. package/Types/LLM/LLMProviderExchange.d.ts +17 -0
  242. package/Types/LLM/LLMProviderExchange.js +70 -0
  243. package/Types/LLM/LLMProviderExchange.mjs +5 -0
  244. package/Types/Monitor/CriteriaFilter.d.mts +1 -0
  245. package/Types/Monitor/CriteriaFilter.d.ts +1 -0
  246. package/Types/Monitor/CriteriaFilter.js +3 -1
  247. package/Types/Monitor/CriteriaFilterTerms.js +1 -0
  248. package/Types/Monitor/CriteriaFilterValues.d.mts +18 -0
  249. package/Types/Monitor/CriteriaFilterValues.d.ts +18 -0
  250. package/Types/Monitor/CriteriaFilterValues.js +346 -0
  251. package/Types/Monitor/CriteriaFilterValues.mjs +2 -0
  252. package/Types/Monitor/DataBiRefreshMonitorStep.d.mts +13 -0
  253. package/Types/Monitor/DataBiRefreshMonitorStep.d.ts +13 -0
  254. package/Types/Monitor/DataBiRefreshMonitorStep.js +108 -0
  255. package/Types/Monitor/DataBiRefreshMonitorStep.mjs +3 -0
  256. package/Types/Monitor/EvaluationSentence.d.mts +1 -0
  257. package/Types/Monitor/EvaluationSentence.d.ts +1 -0
  258. package/Types/Monitor/EvaluationSentence.js +34 -3
  259. package/Types/Monitor/EvaluationSentence.mjs +1 -0
  260. package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.mts +1 -0
  261. package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.ts +1 -0
  262. package/Types/Monitor/MonitorCriteriaInstance.js +22 -2
  263. package/Types/Monitor/MonitorStep.js +28 -11
  264. package/Types/Monitor/MonitorStepMetricMonitor.js +6 -1
  265. package/Types/Monitor/MonitorStepRollingTime.d.mts +12 -0
  266. package/Types/Monitor/MonitorStepRollingTime.d.ts +12 -0
  267. package/Types/Monitor/MonitorStepRollingTime.js +117 -0
  268. package/Types/Monitor/MonitorStepRollingTime.mjs +2 -0
  269. package/Types/Monitor/RetiredEvaluationTemplates.d.mts +2 -0
  270. package/Types/Monitor/RetiredEvaluationTemplates.d.ts +2 -0
  271. package/Types/Monitor/RetiredEvaluationTemplates.js +95 -0
  272. package/Types/Monitor/RetiredEvaluationTemplates.mjs +3 -0
  273. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.mts +6 -0
  274. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.ts +6 -0
  275. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.js +20 -0
  276. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.mjs +2 -0
  277. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.mts +6 -0
  278. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.ts +6 -0
  279. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.js +29 -0
  280. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.mjs +2 -0
  281. package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.mts +7 -0
  282. package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.ts +7 -0
  283. package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +11 -0
  284. package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.mts +1 -0
  285. package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.ts +1 -0
  286. package/Types/Monitor/TelemetryAlertRule.js +7 -2
  287. package/Types/Monitor/WhoIsTold.d.mts +165 -0
  288. package/Types/Monitor/WhoIsTold.d.ts +165 -0
  289. package/Types/Monitor/WhoIsTold.js +582 -0
  290. package/Types/Monitor/WhoIsTold.mjs +17 -0
  291. package/Types/NotificationRule/NotificationRepeat.d.mts +10 -0
  292. package/Types/NotificationRule/NotificationRepeat.d.ts +10 -0
  293. package/Types/NotificationRule/NotificationRepeat.js +51 -0
  294. package/Types/NotificationRule/NotificationRepeat.mjs +2 -0
  295. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +70 -0
  296. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +70 -0
  297. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +276 -0
  298. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +12 -0
  299. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +6 -0
  300. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +6 -0
  301. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +34 -0
  302. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
  303. package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.mts +9 -0
  304. package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.ts +9 -0
  305. package/Types/OnCallDutyPolicy/OnCallEscalationWait.js +44 -0
  306. package/Types/OnCallDutyPolicy/OnCallEscalationWait.mjs +5 -0
  307. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +240 -0
  308. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +240 -0
  309. package/Types/OnCallDutyPolicy/OnCallTestPage.js +574 -0
  310. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +52 -0
  311. package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.mts +31 -0
  312. package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.ts +31 -0
  313. package/Types/OnCallDutyPolicy/OnCallTestPageWords.js +105 -0
  314. package/Types/OnCallDutyPolicy/OnCallTestPageWords.mjs +14 -0
  315. package/Types/PhoneNumberDirection.d.mts +6 -0
  316. package/Types/PhoneNumberDirection.d.ts +6 -0
  317. package/Types/PhoneNumberDirection.js +123 -0
  318. package/Types/PhoneNumberDirection.mjs +6 -0
  319. package/Types/Probe/ProbeMonitorResponse.d.mts +1 -0
  320. package/Types/Probe/ProbeMonitorResponse.d.ts +1 -0
  321. package/Types/Product/ProductKey.d.mts +58 -0
  322. package/Types/Product/ProductKey.d.ts +58 -0
  323. package/Types/Product/ProductKey.js +175 -0
  324. package/Types/Product/ProductKey.mjs +8 -0
  325. package/Types/Product/ProductPins.d.mts +10 -0
  326. package/Types/Product/ProductPins.d.ts +10 -0
  327. package/Types/Product/ProductPins.js +65 -0
  328. package/Types/Product/ProductPins.mjs +6 -0
  329. package/Types/Product/ProductUsage.d.mts +21 -0
  330. package/Types/Product/ProductUsage.d.ts +21 -0
  331. package/Types/Product/ProductUsage.js +175 -0
  332. package/Types/Product/ProductUsage.mjs +10 -0
  333. package/Types/Product/ProjectProducts.d.mts +60 -0
  334. package/Types/Product/ProjectProducts.d.ts +60 -0
  335. package/Types/Product/ProjectProducts.js +336 -0
  336. package/Types/Product/ProjectProducts.mjs +19 -0
  337. package/Types/Product/ProjectProductsAnswer.d.mts +20 -0
  338. package/Types/Product/ProjectProductsAnswer.d.ts +20 -0
  339. package/Types/Product/ProjectProductsAnswer.js +139 -0
  340. package/Types/Product/ProjectProductsAnswer.mjs +7 -0
  341. package/Types/ProductFeedback/NewGitHubIssue.d.mts +12 -0
  342. package/Types/ProductFeedback/NewGitHubIssue.d.ts +12 -0
  343. package/Types/ProductFeedback/NewGitHubIssue.js +64 -0
  344. package/Types/ProductFeedback/NewGitHubIssue.mjs +5 -0
  345. package/Types/ProductFeedback/ProductFeedback.d.mts +140 -0
  346. package/Types/ProductFeedback/ProductFeedback.d.ts +140 -0
  347. package/Types/ProductFeedback/ProductFeedback.js +517 -0
  348. package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
  349. package/Types/ReadingDirection.d.mts +4 -0
  350. package/Types/ReadingDirection.d.ts +4 -0
  351. package/Types/ReadingDirection.js +303 -26
  352. package/Types/ReadingDirection.mjs +4 -0
  353. package/Types/Recommendation/RecommendationType.d.mts +2 -1
  354. package/Types/Recommendation/RecommendationType.d.ts +2 -1
  355. package/Types/Recommendation/RecommendationType.js +6 -0
  356. package/Types/Reminder/ReminderInterval.d.mts +7 -0
  357. package/Types/Reminder/ReminderInterval.d.ts +7 -0
  358. package/Types/Reminder/ReminderInterval.js +110 -0
  359. package/Types/Reminder/ReminderInterval.mjs +8 -0
  360. package/Types/Retention/ResolvedRecordRetention.d.mts +19 -0
  361. package/Types/Retention/ResolvedRecordRetention.d.ts +19 -0
  362. package/Types/Retention/ResolvedRecordRetention.js +124 -0
  363. package/Types/Retention/ResolvedRecordRetention.mjs +14 -0
  364. package/Types/RollingTime/RollingTimeUtil.d.mts +8 -0
  365. package/Types/RollingTime/RollingTimeUtil.d.ts +8 -0
  366. package/Types/RollingTime/RollingTimeUtil.js +249 -71
  367. package/Types/Rum/ProductAnalyticsSavedViews.d.mts +56 -0
  368. package/Types/Rum/ProductAnalyticsSavedViews.d.ts +56 -0
  369. package/Types/Rum/ProductAnalyticsSavedViews.js +219 -0
  370. package/Types/Rum/ProductAnalyticsSavedViews.mjs +14 -0
  371. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +116 -108
  372. package/Types/ServerSending/ServerSendingStatus.d.mts +69 -0
  373. package/Types/ServerSending/ServerSendingStatus.d.ts +69 -0
  374. package/Types/ServerSending/ServerSendingStatus.js +281 -0
  375. package/Types/ServerSending/ServerSendingStatus.mjs +7 -0
  376. package/Types/ServerSending/ServerSendingWords.d.mts +9 -0
  377. package/Types/ServerSending/ServerSendingWords.d.ts +9 -0
  378. package/Types/ServerSending/ServerSendingWords.js +95 -0
  379. package/Types/ServerSending/ServerSendingWords.mjs +7 -0
  380. package/Types/ServerSetup/ServerSetupChecklist.d.mts +172 -0
  381. package/Types/ServerSetup/ServerSetupChecklist.d.ts +172 -0
  382. package/Types/ServerSetup/ServerSetupChecklist.js +735 -0
  383. package/Types/ServerSetup/ServerSetupChecklist.mjs +12 -0
  384. package/Types/ServerSetup/ServerTestSend.d.mts +35 -0
  385. package/Types/ServerSetup/ServerTestSend.d.ts +35 -0
  386. package/Types/ServerSetup/ServerTestSend.js +160 -0
  387. package/Types/ServerSetup/ServerTestSend.mjs +10 -0
  388. package/Types/SetupHealth/SetupHealth.d.mts +283 -0
  389. package/Types/SetupHealth/SetupHealth.d.ts +283 -0
  390. package/Types/SetupHealth/SetupHealth.js +1047 -0
  391. package/Types/SetupHealth/SetupHealth.mjs +46 -0
  392. package/Types/StatusPage/StatusPageSummary.d.mts +1 -0
  393. package/Types/StatusPage/StatusPageSummary.d.ts +1 -0
  394. package/Types/StatusPage/StatusPageSummary.js +3 -0
  395. package/Types/StatusPage/UptimeDailyAggregate.d.mts +25 -0
  396. package/Types/StatusPage/UptimeDailyAggregate.d.ts +25 -0
  397. package/Types/Telemetry/LlmCallKind.js +1 -1
  398. package/Types/Telemetry/ServiceType.d.mts +1 -0
  399. package/Types/Telemetry/ServiceType.d.ts +1 -0
  400. package/Types/Telemetry/ServiceType.js +6 -0
  401. package/Types/Telemetry/TelemetryIngestionBudget.d.mts +1 -0
  402. package/Types/Telemetry/TelemetryIngestionBudget.d.ts +1 -0
  403. package/Types/Telemetry/TelemetryIngestionBudget.js +135 -2
  404. package/Types/Telemetry/TelemetryIngestionBudget.mjs +1 -0
  405. package/Types/ToolImport/ToolImportCatalog.d.mts +1 -0
  406. package/Types/ToolImport/ToolImportCatalog.d.ts +1 -0
  407. package/Types/ToolImport/ToolImportCatalog.js +54 -1
  408. package/Types/ToolImport/ToolImportCatalog.mjs +1 -0
  409. package/Types/Translator.js +64 -31
  410. package/Types/UserNotification/UserNotificationEventType.d.mts +2 -1
  411. package/Types/UserNotification/UserNotificationEventType.d.ts +2 -1
  412. package/Types/UserNotification/UserNotificationEventType.js +7 -0
  413. package/Types/UserSession/SessionEndCause.d.mts +17 -0
  414. package/Types/UserSession/SessionEndCause.d.ts +17 -0
  415. package/Types/UserSession/SessionEndCause.js +79 -0
  416. package/Types/UserSession/SessionEndCause.mjs +6 -0
  417. package/Types/UserSession/SessionSignIn.d.mts +44 -0
  418. package/Types/UserSession/SessionSignIn.d.ts +44 -0
  419. package/Types/UserSession/SessionSignIn.js +174 -0
  420. package/Types/UserSession/SessionSignIn.mjs +17 -0
  421. package/Types/WelcomeChecklist/ProjectGoal.d.mts +16 -0
  422. package/Types/WelcomeChecklist/ProjectGoal.d.ts +16 -0
  423. package/Types/WelcomeChecklist/ProjectGoal.js +94 -0
  424. package/Types/WelcomeChecklist/ProjectGoal.mjs +8 -0
  425. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +76 -0
  426. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +76 -0
  427. package/Types/WelcomeChecklist/WelcomeChecklist.js +344 -0
  428. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +19 -0
  429. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +24 -0
  430. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +24 -0
  431. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +136 -0
  432. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +9 -0
  433. package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +27 -0
  434. package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +27 -0
  435. package/Types/WelcomeChecklist/WelcomeChecklistState.js +183 -0
  436. package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +13 -0
  437. package/Types/Workflow/Documentation/AIDocumentation.js +1 -1
  438. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.mts +7 -0
  439. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.ts +7 -0
  440. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.js +40 -0
  441. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.mjs +3 -0
  442. package/Types/Workspace/WorkspaceChannelMembers.d.mts +1 -0
  443. package/Types/Workspace/WorkspaceChannelMembers.d.ts +1 -0
  444. package/Types/Workspace/WorkspaceChannelMembers.js +9 -2
  445. package/UI/Components/Dropdown/Dropdown.d.mts +1 -0
  446. package/UI/Components/Dropdown/Dropdown.d.ts +1 -0
  447. package/Utils/API.js +10 -0
  448. package/Utils/Crypto.js +10 -3
  449. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.mts +7 -0
  450. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.ts +7 -0
  451. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +67 -0
  452. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.mjs +2 -0
  453. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.mts +7 -0
  454. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.ts +7 -0
  455. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +68 -0
  456. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.mjs +2 -0
  457. package/Utils/Dashboard/DashboardWidgetIds.js +6 -1
  458. package/Utils/Dashboard/DashboardWidgetSorts.js +25 -4
  459. package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +37 -0
  460. package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +37 -0
  461. package/Utils/Dashboard/MonitorListWidgetFormat.js +86 -0
  462. package/Utils/Dashboard/MonitorListWidgetFormat.mjs +10 -0
  463. package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +31 -0
  464. package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +31 -0
  465. package/Utils/GuidedSetup/OnCallPolicyRecords.js +89 -0
  466. package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +6 -0
  467. package/Utils/GuidedSetup/StatusPageRecords.d.mts +36 -0
  468. package/Utils/GuidedSetup/StatusPageRecords.d.ts +36 -0
  469. package/Utils/GuidedSetup/StatusPageRecords.js +105 -0
  470. package/Utils/GuidedSetup/StatusPageRecords.mjs +6 -0
  471. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +41 -0
  472. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +41 -0
  473. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +204 -0
  474. package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +9 -0
  475. package/Utils/Markdown/InlineImageDataUri.d.mts +9 -0
  476. package/Utils/Markdown/InlineImageDataUri.d.ts +9 -0
  477. package/Utils/Markdown/InlineImageDataUri.js +17 -1
  478. package/Utils/Markdown/InlineImageDataUri.mjs +1 -0
  479. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +12 -0
  480. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +12 -0
  481. package/Utils/Markdown/LinkReferenceDefinitions.js +539 -0
  482. package/Utils/Markdown/LinkReferenceDefinitions.mjs +4 -0
  483. package/Utils/Metrics/MetricQueryCloudAggregation.js +2 -4
  484. package/Utils/Monitor/ExternalStatusPageReading.d.mts +9 -0
  485. package/Utils/Monitor/ExternalStatusPageReading.d.ts +9 -0
  486. package/Utils/Monitor/ExternalStatusPageReading.js +77 -8
  487. package/Utils/Monitor/ExternalStatusPageReading.mjs +3 -0
  488. package/Utils/Monitor/ExternalStatusPageScope.js +17 -1
  489. package/Utils/Monitor/MonitorDestinationUtil.js +2 -1
  490. package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +2 -1
  491. package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +2 -1
  492. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +10 -1
  493. package/Utils/Monitor/MonitorRootCauseWording.js +28 -24
  494. package/Utils/Monitor/MonitorStatusHistoryUtil.d.mts +1 -0
  495. package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +1 -0
  496. package/Utils/Monitor/MonitorStatusHistoryUtil.js +1 -0
  497. package/Utils/Monitor/MonitorStepMetricQueries.js +2 -1
  498. package/Utils/Monitor/MonitorStepsValuesUtil.d.mts +13 -0
  499. package/Utils/Monitor/MonitorStepsValuesUtil.d.ts +13 -0
  500. package/Utils/Monitor/MonitorStepsValuesUtil.js +80 -0
  501. package/Utils/Monitor/MonitorStepsValuesUtil.mjs +2 -0
  502. package/Utils/Monitor/MonitorSummaryProbeUtil.d.mts +2 -0
  503. package/Utils/Monitor/MonitorSummaryProbeUtil.d.ts +2 -0
  504. package/Utils/Monitor/MonitorSummaryProbeUtil.js +13 -17
  505. package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -3
  506. package/Utils/Monitor/MonitorUptimeSummaryUtil.d.mts +1 -1
  507. package/Utils/Monitor/MonitorUptimeSummaryUtil.d.ts +1 -1
  508. package/Utils/Monitor/MonitorUptimeSummaryUtil.js +1 -0
  509. package/Utils/Monitor/MonitoringOff.d.mts +20 -0
  510. package/Utils/Monitor/MonitoringOff.d.ts +20 -0
  511. package/Utils/Monitor/MonitoringOff.js +81 -0
  512. package/Utils/Monitor/MonitoringOff.mjs +4 -0
  513. package/Utils/Monitor/NotOperationalMonitorQuery.js +9 -7
  514. package/Utils/Monitor/StateChangeLogScreenshots.d.mts +8 -0
  515. package/Utils/Monitor/StateChangeLogScreenshots.d.ts +8 -0
  516. package/Utils/Monitor/StateChangeLogScreenshots.js +116 -0
  517. package/Utils/Monitor/StateChangeLogScreenshots.mjs +3 -0
  518. package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +1 -1
  519. package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +1 -1
  520. package/Utils/NetworkDevice/Naming/NamingLookup.js +14 -4
  521. package/Utils/NetworkDevice/Naming/NamingLookup.mjs +1 -0
  522. package/Utils/Slo/SloErrorBudgetPolicy.d.mts +2 -1
  523. package/Utils/Slo/SloErrorBudgetPolicy.d.ts +2 -1
  524. package/Utils/Slo/SloErrorBudgetPolicy.js +8 -2
  525. package/Utils/Slo/SloListWidgetFormat.d.mts +7 -1
  526. package/Utils/Slo/SloListWidgetFormat.d.ts +7 -1
  527. package/Utils/Slo/SloListWidgetFormat.js +20 -26
  528. package/Utils/Slo/SloOverviewText.d.mts +6 -1
  529. package/Utils/Slo/SloOverviewText.d.ts +6 -1
  530. package/Utils/Slo/SloOverviewText.js +3 -3
  531. package/Utils/Slo/SloProjection.d.mts +18 -0
  532. package/Utils/Slo/SloProjection.d.ts +18 -0
  533. package/Utils/Slo/SloProjection.js +53 -12
  534. package/Utils/Slo/SloProjection.mjs +2 -0
  535. package/Utils/Slo/SloUtil.d.mts +18 -9
  536. package/Utils/Slo/SloUtil.d.ts +18 -9
  537. package/Utils/Slo/SloUtil.js +47 -10
  538. package/Utils/Slo/SloWidgetFormat.d.mts +69 -11
  539. package/Utils/Slo/SloWidgetFormat.d.ts +69 -11
  540. package/Utils/Slo/SloWidgetFormat.js +198 -50
  541. package/Utils/Slo/SloWidgetFormat.mjs +7 -0
  542. package/Utils/StatusPage/FrozenMonitorResources.d.mts +41 -0
  543. package/Utils/StatusPage/FrozenMonitorResources.d.ts +41 -0
  544. package/Utils/StatusPage/FrozenMonitorResources.js +155 -0
  545. package/Utils/StatusPage/FrozenMonitorResources.mjs +4 -0
  546. package/Utils/StatusPage/GroupNestingLayout.d.mts +2 -0
  547. package/Utils/StatusPage/GroupNestingLayout.d.ts +2 -0
  548. package/Utils/StatusPage/GroupNestingLayout.js +12 -0
  549. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.mts +48 -0
  550. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.ts +48 -0
  551. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.js +181 -0
  552. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.mjs +2 -0
  553. package/Utils/StatusPage/ResourceExplorer.d.mts +1 -10
  554. package/Utils/StatusPage/ResourceExplorer.d.ts +1 -10
  555. package/Utils/StatusPage/ResourceExplorer.js +11 -29
  556. package/Utils/StatusPage/ResourceUptime.d.mts +6 -1
  557. package/Utils/StatusPage/ResourceUptime.d.ts +6 -1
  558. package/Utils/StatusPage/ResourceUptime.js +31 -6
  559. package/Utils/StatusPage/StatusPageSummaryBuilder.d.mts +1 -0
  560. package/Utils/StatusPage/StatusPageSummaryBuilder.d.ts +1 -0
  561. package/Utils/StatusPage/StatusPageSummaryBuilder.js +12 -1
  562. package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +41 -0
  563. package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +41 -0
  564. package/Utils/StatusPage/StatusPageUptimeTimezone.js +114 -0
  565. package/Utils/StatusPage/StatusPageUptimeTimezone.mjs +2 -0
  566. package/Utils/StatusPage/UptimeDailyAggregateUtil.d.mts +3 -1
  567. package/Utils/StatusPage/UptimeDailyAggregateUtil.d.ts +3 -1
  568. package/Utils/StatusPage/UptimeDailyAggregateUtil.js +69 -50
  569. package/Utils/Telemetry/CloudInstanceIdentity.js +12 -7
  570. package/Utils/Uptime/DayUptimeGraphUtil.d.mts +8 -0
  571. package/Utils/Uptime/DayUptimeGraphUtil.d.ts +8 -0
  572. package/Utils/Uptime/DayUptimeGraphUtil.js +41 -6
  573. package/Utils/Uptime/UptimeMaintenanceUtil.d.mts +3 -0
  574. package/Utils/Uptime/UptimeMaintenanceUtil.d.ts +3 -0
  575. package/Utils/Uptime/UptimeMaintenanceUtil.js +49 -0
  576. package/Utils/Uptime/UptimeUtil.d.mts +38 -1
  577. package/Utils/Uptime/UptimeUtil.d.ts +38 -1
  578. package/Utils/Uptime/UptimeUtil.js +270 -75
  579. package/Utils/Uptime/WorstStatusTimeline.d.mts +31 -0
  580. package/Utils/Uptime/WorstStatusTimeline.d.ts +31 -0
  581. package/Utils/Uptime/WorstStatusTimeline.js +190 -0
  582. package/Utils/Uptime/WorstStatusTimeline.mjs +2 -0
  583. package/Utils/Workspace/WorkspaceSummarySetup.d.mts +25 -0
  584. package/Utils/Workspace/WorkspaceSummarySetup.d.ts +25 -0
  585. package/Utils/Workspace/WorkspaceSummarySetup.js +215 -0
  586. package/Utils/Workspace/WorkspaceSummarySetup.mjs +11 -0
  587. package/package.json +1 -1
  588. package/Utils/StatusPage/ArchivedMonitorResources.d.mts +0 -10
  589. package/Utils/StatusPage/ArchivedMonitorResources.d.ts +0 -10
  590. package/Utils/StatusPage/ArchivedMonitorResources.js +0 -33
  591. package/Utils/StatusPage/ArchivedMonitorResources.mjs +0 -2
@@ -0,0 +1,513 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.INSTALLATION_HEALTH_ALL_RIGHT = exports.INSTALLATION_HEALTH_SETUP_FIX = exports.INSTALLATION_HEALTH_WORDS = exports.QUEUE_BACKLOG_LIMIT = exports.CLICKHOUSE_DISK_WARN_FREE_PERCENT = exports.CLICKHOUSE_DISK_FIX_FREE_PERCENT = exports.INSTALLATION_HEALTH_GUIDES = exports.INSTALLATION_HEALTH_ADMIN_PATHS = exports.InstallationHealthCheck = exports.InstallationHealthFindingId = exports.InstallationHealthLevel = void 0;
37
+ const Translator_1 = require("../Translator");
38
+ const ServerSetupChecklist_1 = __importStar(require("../ServerSetup/ServerSetupChecklist"));
39
+ /*
40
+ * WHAT IS WRONG WITH THIS INSTALLATION, AND THE FIX FOR EACH (#6826).
41
+ *
42
+ * One list of findings, worst first, each with what is wrong, why it matters
43
+ * and the exact fix. The server works it out from what it can see of itself
44
+ * (/api/admin/health/doctor, App/API/AdminHealth.ts):
45
+ *
46
+ * - PostgreSQL, ClickHouse and Valkey answer;
47
+ * - the database migrations have all run, and none failed;
48
+ * - ClickHouse's disks have room;
49
+ * - the background queues are moving;
50
+ * - the version, against the latest release;
51
+ * - the server setup checklist (#6824): email, HTTPS, sign-ups, SMS and
52
+ * calls, probes, backups, update checks. Its words are reused here, so
53
+ * the checklist and this list never say a thing two ways.
54
+ *
55
+ * Three readers print the same findings:
56
+ *
57
+ * - `npm run doctor` (Scripts/Install/Doctor.js), on a Docker Compose
58
+ * server. It asks the local ingress, in a POST with the cluster key from
59
+ * config.env, and adds what only the host can see: the containers,
60
+ * config.env, whether HOST reaches this OneUptime, the certificate and
61
+ * the disk.
62
+ * - HelmChart/Public/diagnose.sh, on Kubernetes, from inside the app pod,
63
+ * in a POST with the cluster key the pod holds.
64
+ * - The Admin Dashboard's OneUptime Health overview, in every edition, in
65
+ * a GET as a master admin.
66
+ *
67
+ * The terminals read `sentence` and `fixSentence`, filled in English. The
68
+ * Admin Dashboard translates `words` and `fix` with `values`.
69
+ *
70
+ * A finding's level:
71
+ *
72
+ * - fix: something required fails. `npm run doctor` exits 1.
73
+ * - warn: worth a look; OneUptime works without it.
74
+ *
75
+ * Pure, with no Node or browser APIs.
76
+ */
77
+ var InstallationHealthLevel;
78
+ (function (InstallationHealthLevel) {
79
+ InstallationHealthLevel["Fix"] = "fix";
80
+ InstallationHealthLevel["Warn"] = "warn";
81
+ })(InstallationHealthLevel || (exports.InstallationHealthLevel = InstallationHealthLevel = {}));
82
+ var InstallationHealthFindingId;
83
+ (function (InstallationHealthFindingId) {
84
+ InstallationHealthFindingId["Postgres"] = "postgres";
85
+ InstallationHealthFindingId["Clickhouse"] = "clickhouse";
86
+ InstallationHealthFindingId["Valkey"] = "valkey";
87
+ InstallationHealthFindingId["MigrationFailed"] = "migration-failed";
88
+ InstallationHealthFindingId["MigrationsPending"] = "migrations-pending";
89
+ InstallationHealthFindingId["ClickhouseDisk"] = "clickhouse-disk";
90
+ InstallationHealthFindingId["QueueBacklog"] = "queue-backlog";
91
+ InstallationHealthFindingId["UpdateAvailable"] = "update-available";
92
+ })(InstallationHealthFindingId || (exports.InstallationHealthFindingId = InstallationHealthFindingId = {}));
93
+ // What was looked at, so a reader can say what an empty list covers.
94
+ var InstallationHealthCheck;
95
+ (function (InstallationHealthCheck) {
96
+ InstallationHealthCheck["Postgres"] = "postgres";
97
+ InstallationHealthCheck["Clickhouse"] = "clickhouse";
98
+ InstallationHealthCheck["Valkey"] = "valkey";
99
+ InstallationHealthCheck["Migrations"] = "migrations";
100
+ InstallationHealthCheck["ClickhouseDisk"] = "clickhouse-disk";
101
+ InstallationHealthCheck["Queues"] = "queues";
102
+ InstallationHealthCheck["Version"] = "version";
103
+ InstallationHealthCheck["ServerSetup"] = "server-setup";
104
+ })(InstallationHealthCheck || (exports.InstallationHealthCheck = InstallationHealthCheck = {}));
105
+ // The Admin Dashboard pages the findings are fixed on.
106
+ exports.INSTALLATION_HEALTH_ADMIN_PATHS = {
107
+ clickhouse: "/admin/health/clickhouse",
108
+ migrations: "/admin/health/migrations",
109
+ setup: ServerSetupChecklist_1.SERVER_SETUP_ADMIN_PATHS.setup,
110
+ };
111
+ exports.INSTALLATION_HEALTH_GUIDES = {
112
+ upgrading: "/docs/installation/upgrading",
113
+ };
114
+ /*
115
+ * ClickHouse's disk: below this share free it is something to fix, below
116
+ * the other worth a look. ClickHouse stops taking writes when a disk fills,
117
+ * and merges need room of their own.
118
+ */
119
+ exports.CLICKHOUSE_DISK_FIX_FREE_PERCENT = 10;
120
+ exports.CLICKHOUSE_DISK_WARN_FREE_PERCENT = 20;
121
+ /*
122
+ * A queue with more jobs than this waiting is behind. BullMQ keeps the last
123
+ * 100 failed jobs of every queue, so a count of failed jobs says nothing
124
+ * about now; a backlog that grows does.
125
+ */
126
+ exports.QUEUE_BACKLOG_LIMIT = 1000;
127
+ // What each finding says: the title, what is wrong and why, and the fix.
128
+ exports.INSTALLATION_HEALTH_WORDS = {
129
+ [InstallationHealthFindingId.Postgres]: {
130
+ title: (0, Translator_1.translationKey)("PostgreSQL"),
131
+ words: (0, Translator_1.translationKey)("PostgreSQL does not answer, so OneUptime cannot read or save anything."),
132
+ fix: (0, Translator_1.translationKey)("Check that PostgreSQL is running, and read its log for the reason."),
133
+ },
134
+ [InstallationHealthFindingId.Clickhouse]: {
135
+ title: (0, Translator_1.translationKey)("ClickHouse"),
136
+ words: (0, Translator_1.translationKey)("ClickHouse does not answer, so logs, metrics, traces and monitor results are not saved."),
137
+ fix: (0, Translator_1.translationKey)("Check that ClickHouse is running, and read its log for the reason."),
138
+ },
139
+ [InstallationHealthFindingId.Valkey]: {
140
+ title: (0, Translator_1.translationKey)("Valkey"),
141
+ words: (0, Translator_1.translationKey)("Valkey does not answer, so background jobs and live updates stop."),
142
+ fix: (0, Translator_1.translationKey)("Check that Valkey is running, and read its log for the reason."),
143
+ },
144
+ [InstallationHealthFindingId.MigrationFailed]: {
145
+ title: (0, Translator_1.translationKey)("Database migrations"),
146
+ words: (0, Translator_1.translationKey)("The database migration {{name}} failed on {{time}}: {{reason}}"),
147
+ fix: (0, Translator_1.translationKey)("Fix what the error names, then restart OneUptime so the migration runs again."),
148
+ },
149
+ [InstallationHealthFindingId.MigrationsPending]: {
150
+ title: (0, Translator_1.translationKey)("Database migrations"),
151
+ words: (0, Translator_1.translationKey)("Database migrations are still running: {{count}} left. They run while OneUptime starts."),
152
+ fix: (0, Translator_1.translationKey)("Wait a few minutes. If they do not finish, restart OneUptime and read the app's log."),
153
+ },
154
+ [InstallationHealthFindingId.ClickhouseDisk]: {
155
+ title: (0, Translator_1.translationKey)("ClickHouse disk"),
156
+ words: (0, Translator_1.translationKey)("ClickHouse's disk {{disk}} has {{free}} free of {{total}}. When it fills, ClickHouse stops saving telemetry."),
157
+ fix: (0, Translator_1.translationKey)("Give the disk more space, or turn on automatic pruning on the ClickHouse page of OneUptime Health."),
158
+ },
159
+ [InstallationHealthFindingId.QueueBacklog]: {
160
+ title: (0, Translator_1.translationKey)("Background jobs"),
161
+ words: (0, Translator_1.translationKey)("{{count}} jobs are waiting in the {{queue}} queue, so the workers are behind."),
162
+ fix: (0, Translator_1.translationKey)("Give the workers more memory and CPU, and read the app's log for jobs that keep failing."),
163
+ },
164
+ [InstallationHealthFindingId.UpdateAvailable]: {
165
+ title: (0, Translator_1.translationKey)("Version"),
166
+ words: (0, Translator_1.translationKey)("This server runs OneUptime {{current}}. {{latest}} is out."),
167
+ fix: (0, Translator_1.translationKey)("Back up, then update: npm run update on Docker Compose, helm upgrade on Kubernetes."),
168
+ },
169
+ };
170
+ // The fix of a step of the server setup checklist: its own page.
171
+ exports.INSTALLATION_HEALTH_SETUP_FIX = (0, Translator_1.translationKey)("Finish it on the Server setup page.");
172
+ // What the Admin Dashboard says when there is nothing to list.
173
+ exports.INSTALLATION_HEALTH_ALL_RIGHT = (0, Translator_1.translationKey)("Everything looks right.");
174
+ const GIGABYTE = 1000 * 1000 * 1000;
175
+ const isObject = (value) => {
176
+ return Boolean(value) && typeof value === "object" && !Array.isArray(value);
177
+ };
178
+ const readText = (value, limit = 2000) => {
179
+ if (typeof value !== "string") {
180
+ return null;
181
+ }
182
+ const text = value.trim();
183
+ return text ? text.slice(0, limit) : null;
184
+ };
185
+ class InstallationHealthUtil {
186
+ // Bytes as people read a disk: "8.4 GB", "120 GB", "512 MB".
187
+ static formatBytes(bytes) {
188
+ if (!Number.isFinite(bytes) || bytes < 0) {
189
+ return "0 MB";
190
+ }
191
+ if (bytes < GIGABYTE) {
192
+ return `${Math.round(bytes / (1000 * 1000))} MB`;
193
+ }
194
+ const gigabytes = bytes / GIGABYTE;
195
+ return `${gigabytes >= 10 ? Math.round(gigabytes) : Math.round(gigabytes * 10) / 10} GB`;
196
+ }
197
+ // A date as a terminal and a browser alike read it: "2026-11-12 14:05 UTC".
198
+ static formatTime(value) {
199
+ if (!value) {
200
+ return "an unknown date";
201
+ }
202
+ const date = new Date(value);
203
+ if (Number.isNaN(date.getTime())) {
204
+ return "an unknown date";
205
+ }
206
+ return `${date.toISOString().slice(0, 16).replace("T", " ")} UTC`;
207
+ }
208
+ static finding(data) {
209
+ const values = data.values || {};
210
+ return {
211
+ id: data.id,
212
+ level: data.level,
213
+ title: data.title,
214
+ words: data.words,
215
+ fix: data.fix,
216
+ values: values,
217
+ adminPath: data.adminPath || null,
218
+ guidePath: data.guidePath || null,
219
+ sentence: (0, Translator_1.fillTemplate)(data.words, values),
220
+ fixSentence: data.fix ? (0, Translator_1.fillTemplate)(data.fix, values) : null,
221
+ };
222
+ }
223
+ static ofCatalogue(data) {
224
+ const words = exports.INSTALLATION_HEALTH_WORDS[data.id];
225
+ return InstallationHealthUtil.finding({
226
+ id: data.id,
227
+ level: data.level,
228
+ title: words.title,
229
+ words: words.words,
230
+ fix: words.fix,
231
+ values: data.values,
232
+ adminPath: data.adminPath,
233
+ guidePath: data.guidePath,
234
+ });
235
+ }
236
+ // The datastores: each one that does not answer is something to fix.
237
+ static datastoreFindings(facts) {
238
+ const findings = [];
239
+ const datastores = [
240
+ {
241
+ id: InstallationHealthFindingId.Postgres,
242
+ isConnected: facts.isPostgresConnected,
243
+ },
244
+ {
245
+ id: InstallationHealthFindingId.Clickhouse,
246
+ isConnected: facts.isClickhouseConnected,
247
+ },
248
+ {
249
+ id: InstallationHealthFindingId.Valkey,
250
+ isConnected: facts.isValkeyConnected,
251
+ },
252
+ ];
253
+ for (const datastore of datastores) {
254
+ if (!datastore.isConnected) {
255
+ findings.push(InstallationHealthUtil.ofCatalogue({
256
+ id: datastore.id,
257
+ level: InstallationHealthLevel.Fix,
258
+ }));
259
+ }
260
+ }
261
+ return findings;
262
+ }
263
+ /*
264
+ * The migrations: one that failed and is still pending is something to
265
+ * fix; pending ones alone are worth a look (they run while the app
266
+ * starts).
267
+ */
268
+ static migrationFindings(facts) {
269
+ const migrations = facts.migrations;
270
+ if (!migrations || migrations.pending <= 0) {
271
+ return [];
272
+ }
273
+ if (migrations.failure) {
274
+ return [
275
+ InstallationHealthUtil.ofCatalogue({
276
+ id: InstallationHealthFindingId.MigrationFailed,
277
+ level: InstallationHealthLevel.Fix,
278
+ values: {
279
+ name: migrations.failure.name,
280
+ time: InstallationHealthUtil.formatTime(migrations.failure.at),
281
+ reason: migrations.failure.reason,
282
+ },
283
+ adminPath: exports.INSTALLATION_HEALTH_ADMIN_PATHS.migrations,
284
+ }),
285
+ ];
286
+ }
287
+ return [
288
+ InstallationHealthUtil.ofCatalogue({
289
+ id: InstallationHealthFindingId.MigrationsPending,
290
+ level: InstallationHealthLevel.Warn,
291
+ values: { count: String(migrations.pending) },
292
+ adminPath: exports.INSTALLATION_HEALTH_ADMIN_PATHS.migrations,
293
+ }),
294
+ ];
295
+ }
296
+ // ClickHouse's fullest disk, when it is short of room.
297
+ static diskFindings(facts) {
298
+ let fullest = null;
299
+ let fullestFreePercent = 100;
300
+ for (const disk of facts.clickhouseDisks) {
301
+ if (!(disk.totalInBytes > 0) || !(disk.freeInBytes >= 0)) {
302
+ continue;
303
+ }
304
+ const freePercent = (disk.freeInBytes / disk.totalInBytes) * 100;
305
+ if (!fullest || freePercent < fullestFreePercent) {
306
+ fullest = disk;
307
+ fullestFreePercent = freePercent;
308
+ }
309
+ }
310
+ if (!fullest || fullestFreePercent >= exports.CLICKHOUSE_DISK_WARN_FREE_PERCENT) {
311
+ return [];
312
+ }
313
+ return [
314
+ InstallationHealthUtil.ofCatalogue({
315
+ id: InstallationHealthFindingId.ClickhouseDisk,
316
+ level: fullestFreePercent < exports.CLICKHOUSE_DISK_FIX_FREE_PERCENT
317
+ ? InstallationHealthLevel.Fix
318
+ : InstallationHealthLevel.Warn,
319
+ values: {
320
+ disk: fullest.name,
321
+ free: InstallationHealthUtil.formatBytes(fullest.freeInBytes),
322
+ total: InstallationHealthUtil.formatBytes(fullest.totalInBytes),
323
+ },
324
+ adminPath: exports.INSTALLATION_HEALTH_ADMIN_PATHS.clickhouse,
325
+ }),
326
+ ];
327
+ }
328
+ // The queue furthest behind, when one is.
329
+ static queueFindings(facts) {
330
+ let behind = null;
331
+ for (const queue of facts.queues) {
332
+ if (queue.waiting > exports.QUEUE_BACKLOG_LIMIT &&
333
+ (!behind || queue.waiting > behind.waiting)) {
334
+ behind = queue;
335
+ }
336
+ }
337
+ if (!behind) {
338
+ return [];
339
+ }
340
+ return [
341
+ InstallationHealthUtil.ofCatalogue({
342
+ id: InstallationHealthFindingId.QueueBacklog,
343
+ level: InstallationHealthLevel.Warn,
344
+ values: { count: String(behind.waiting), queue: behind.name },
345
+ }),
346
+ ];
347
+ }
348
+ static versionFindings(facts) {
349
+ if (!facts.version.isUpdateAvailable || !facts.version.latest) {
350
+ return [];
351
+ }
352
+ return [
353
+ InstallationHealthUtil.ofCatalogue({
354
+ id: InstallationHealthFindingId.UpdateAvailable,
355
+ level: InstallationHealthLevel.Warn,
356
+ values: {
357
+ current: facts.version.current,
358
+ latest: facts.version.latest,
359
+ },
360
+ guidePath: exports.INSTALLATION_HEALTH_GUIDES.upgrading,
361
+ }),
362
+ ];
363
+ }
364
+ /*
365
+ * The server setup checklist's open steps, in its words: a required one
366
+ * is something to fix, a recommended one worth a look. An optional one
367
+ * is a choice, not a fault, unless it is set up and failing.
368
+ */
369
+ static setupFindings(facts) {
370
+ if (!facts.serverSetup) {
371
+ return [];
372
+ }
373
+ const findings = [];
374
+ for (const check of facts.serverSetup.checks) {
375
+ if (check.isFinished) {
376
+ continue;
377
+ }
378
+ let level = null;
379
+ if (check.tier === ServerSetupChecklist_1.ServerSetupCheckTier.Required) {
380
+ level = InstallationHealthLevel.Fix;
381
+ }
382
+ else if (check.tier === ServerSetupChecklist_1.ServerSetupCheckTier.Recommended) {
383
+ level = InstallationHealthLevel.Warn;
384
+ }
385
+ else if (check.status === ServerSetupChecklist_1.ServerSetupStatus.Failing) {
386
+ level = InstallationHealthLevel.Warn;
387
+ }
388
+ const words = ServerSetupChecklist_1.default.getStatusWords(check);
389
+ if (!level || !words) {
390
+ continue;
391
+ }
392
+ const definition = ServerSetupChecklist_1.default.getDefinition(check.id);
393
+ findings.push(InstallationHealthUtil.finding({
394
+ id: `setup-${check.id}`,
395
+ level: level,
396
+ title: definition.title,
397
+ words: words,
398
+ fix: exports.INSTALLATION_HEALTH_SETUP_FIX,
399
+ values: InstallationHealthUtil.setupValues(check),
400
+ adminPath: definition.adminPath || null,
401
+ guidePath: definition.guidePath || null,
402
+ }));
403
+ }
404
+ return findings;
405
+ }
406
+ static setupValues(check) {
407
+ return check.time
408
+ ? { time: InstallationHealthUtil.formatTime(check.time) }
409
+ : {};
410
+ }
411
+ // Every finding, worst first: what to fix, then what is worth a look.
412
+ static evaluate(facts) {
413
+ const findings = [
414
+ ...InstallationHealthUtil.datastoreFindings(facts),
415
+ ...InstallationHealthUtil.migrationFindings(facts),
416
+ ...InstallationHealthUtil.diskFindings(facts),
417
+ ...InstallationHealthUtil.setupFindings(facts),
418
+ ...InstallationHealthUtil.queueFindings(facts),
419
+ ...InstallationHealthUtil.versionFindings(facts),
420
+ ];
421
+ return InstallationHealthUtil.worstFirst(findings);
422
+ }
423
+ // Fix before warn, keeping each level's order.
424
+ static worstFirst(findings) {
425
+ return [
426
+ ...findings.filter((finding) => {
427
+ return finding.level === InstallationHealthLevel.Fix;
428
+ }),
429
+ ...findings.filter((finding) => {
430
+ return finding.level !== InstallationHealthLevel.Fix;
431
+ }),
432
+ ];
433
+ }
434
+ static getAnswer(data) {
435
+ return {
436
+ findings: InstallationHealthUtil.evaluate(data.facts),
437
+ checked: Object.values(InstallationHealthCheck),
438
+ version: data.facts.version,
439
+ addressProof: data.addressProof,
440
+ checkedAt: data.checkedAt,
441
+ };
442
+ }
443
+ /*
444
+ * The answer, read in a browser, or null when it is not one (a failed
445
+ * read, a proxy's page). A finding that is not one is left out.
446
+ */
447
+ static parseAnswer(value) {
448
+ if (!isObject(value) || !Array.isArray(value["findings"])) {
449
+ return null;
450
+ }
451
+ const findings = [];
452
+ for (const row of value["findings"]) {
453
+ if (!isObject(row)) {
454
+ continue;
455
+ }
456
+ const id = readText(row["id"], 100);
457
+ const title = readText(row["title"], 200);
458
+ const words = readText(row["words"]);
459
+ const level = Object.values(InstallationHealthLevel).includes(row["level"])
460
+ ? row["level"]
461
+ : null;
462
+ if (!id || !title || !words || !level) {
463
+ continue;
464
+ }
465
+ const values = {};
466
+ if (isObject(row["values"])) {
467
+ for (const [key, entry] of Object.entries(row["values"])) {
468
+ if (typeof entry === "string" || typeof entry === "number") {
469
+ values[key] = String(entry).slice(0, 2000);
470
+ }
471
+ }
472
+ }
473
+ findings.push(InstallationHealthUtil.finding({
474
+ id: id,
475
+ level: level,
476
+ title: title,
477
+ words: words,
478
+ fix: readText(row["fix"]),
479
+ values: values,
480
+ adminPath: InstallationHealthUtil.readPath(row["adminPath"]),
481
+ guidePath: InstallationHealthUtil.readPath(row["guidePath"]),
482
+ }));
483
+ }
484
+ const version = isObject(value["version"])
485
+ ? value["version"]
486
+ : {};
487
+ return {
488
+ findings: InstallationHealthUtil.worstFirst(findings),
489
+ checked: Array.isArray(value["checked"])
490
+ ? value["checked"].filter((entry) => {
491
+ return Object.values(InstallationHealthCheck).includes(entry);
492
+ })
493
+ : [],
494
+ version: {
495
+ current: readText(version["current"], 100) || "",
496
+ latest: readText(version["latest"], 100),
497
+ isUpdateAvailable: version["isUpdateAvailable"] === true,
498
+ isUpdateCheckDisabled: version["isUpdateCheckDisabled"] === true,
499
+ },
500
+ addressProof: readText(value["addressProof"], 200),
501
+ checkedAt: readText(value["checkedAt"], 100) || "",
502
+ };
503
+ }
504
+ // A path on this server ("/admin/...", "/docs/..."), never another host's address.
505
+ static readPath(value) {
506
+ const path = readText(value, 300);
507
+ if (!path || !path.startsWith("/") || path.startsWith("//")) {
508
+ return null;
509
+ }
510
+ return path;
511
+ }
512
+ }
513
+ exports.default = InstallationHealthUtil;
@@ -0,0 +1,13 @@
1
+ import commonJsModule from "./InstallationHealth.js";
2
+ export default commonJsModule.default;
3
+ export const CLICKHOUSE_DISK_FIX_FREE_PERCENT = commonJsModule.CLICKHOUSE_DISK_FIX_FREE_PERCENT;
4
+ export const CLICKHOUSE_DISK_WARN_FREE_PERCENT = commonJsModule.CLICKHOUSE_DISK_WARN_FREE_PERCENT;
5
+ export const INSTALLATION_HEALTH_ADMIN_PATHS = commonJsModule.INSTALLATION_HEALTH_ADMIN_PATHS;
6
+ export const INSTALLATION_HEALTH_ALL_RIGHT = commonJsModule.INSTALLATION_HEALTH_ALL_RIGHT;
7
+ export const INSTALLATION_HEALTH_GUIDES = commonJsModule.INSTALLATION_HEALTH_GUIDES;
8
+ export const INSTALLATION_HEALTH_SETUP_FIX = commonJsModule.INSTALLATION_HEALTH_SETUP_FIX;
9
+ export const INSTALLATION_HEALTH_WORDS = commonJsModule.INSTALLATION_HEALTH_WORDS;
10
+ export const InstallationHealthCheck = commonJsModule.InstallationHealthCheck;
11
+ export const InstallationHealthFindingId = commonJsModule.InstallationHealthFindingId;
12
+ export const InstallationHealthLevel = commonJsModule.InstallationHealthLevel;
13
+ export const QUEUE_BACKLOG_LIMIT = commonJsModule.QUEUE_BACKLOG_LIMIT;
@@ -0,0 +1,17 @@
1
+ import Dictionary from "../Dictionary.mjs";
2
+ import { JSONValue } from "../JSON.mjs";
3
+ export interface LLMProviderExchange {
4
+ method: string;
5
+ url: string;
6
+ requestHeaders: Dictionary<string>;
7
+ requestBody?: JSONValue | undefined;
8
+ statusCode?: number | undefined;
9
+ responseHeaders?: Dictionary<string> | undefined;
10
+ responseBody?: JSONValue | undefined;
11
+ error?: string | undefined;
12
+ durationMs: number;
13
+ }
14
+ export declare const LLM_PROVIDER_EXCHANGE_MAX_COUNT: number;
15
+ export declare const LLM_PROVIDER_EXCHANGE_MAX_BODY_LENGTH: number;
16
+ export declare const LLM_PROVIDER_EXCHANGE_TRUNCATED_SUFFIX: string;
17
+ export declare function readLLMProviderExchanges(value: JSONValue | undefined): Array<LLMProviderExchange>;
@@ -0,0 +1,17 @@
1
+ import Dictionary from "../Dictionary";
2
+ import { JSONValue } from "../JSON";
3
+ export interface LLMProviderExchange {
4
+ method: string;
5
+ url: string;
6
+ requestHeaders: Dictionary<string>;
7
+ requestBody?: JSONValue | undefined;
8
+ statusCode?: number | undefined;
9
+ responseHeaders?: Dictionary<string> | undefined;
10
+ responseBody?: JSONValue | undefined;
11
+ error?: string | undefined;
12
+ durationMs: number;
13
+ }
14
+ export declare const LLM_PROVIDER_EXCHANGE_MAX_COUNT: number;
15
+ export declare const LLM_PROVIDER_EXCHANGE_MAX_BODY_LENGTH: number;
16
+ export declare const LLM_PROVIDER_EXCHANGE_TRUNCATED_SUFFIX: string;
17
+ export declare function readLLMProviderExchanges(value: JSONValue | undefined): Array<LLMProviderExchange>;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LLM_PROVIDER_EXCHANGE_TRUNCATED_SUFFIX = exports.LLM_PROVIDER_EXCHANGE_MAX_BODY_LENGTH = exports.LLM_PROVIDER_EXCHANGE_MAX_COUNT = void 0;
4
+ exports.readLLMProviderExchanges = readLLMProviderExchanges;
5
+ // The most exchanges one test reports: the rest are dropped.
6
+ exports.LLM_PROVIDER_EXCHANGE_MAX_COUNT = 10;
7
+ // The longest a body is kept, in characters of its JSON.
8
+ exports.LLM_PROVIDER_EXCHANGE_MAX_BODY_LENGTH = 16000;
9
+ exports.LLM_PROVIDER_EXCHANGE_TRUNCATED_SUFFIX = "… (cut: the rest was longer than OneUptime shows)";
10
+ function readHeaders(value) {
11
+ const headers = {};
12
+ if (!value || typeof value !== "object" || Array.isArray(value)) {
13
+ return headers;
14
+ }
15
+ for (const [key, raw] of Object.entries(value)) {
16
+ if (typeof raw === "string") {
17
+ headers[key] = raw;
18
+ }
19
+ }
20
+ return headers;
21
+ }
22
+ /*
23
+ * The exchanges a server's answer carries, read defensively: anything not
24
+ * shaped like one is skipped, so an older or odd answer shows none rather
25
+ * than breaking the dialog.
26
+ */
27
+ function readLLMProviderExchanges(value) {
28
+ if (!Array.isArray(value)) {
29
+ return [];
30
+ }
31
+ const exchanges = [];
32
+ for (const item of value) {
33
+ if (!item || typeof item !== "object" || Array.isArray(item)) {
34
+ continue;
35
+ }
36
+ const raw = item;
37
+ if (typeof raw["method"] !== "string" || typeof raw["url"] !== "string") {
38
+ continue;
39
+ }
40
+ const exchange = {
41
+ method: raw["method"],
42
+ url: raw["url"],
43
+ requestHeaders: readHeaders(raw["requestHeaders"]),
44
+ durationMs: typeof raw["durationMs"] === "number" &&
45
+ Number.isFinite(raw["durationMs"])
46
+ ? raw["durationMs"]
47
+ : 0,
48
+ };
49
+ if (raw["requestBody"] !== undefined && raw["requestBody"] !== null) {
50
+ exchange.requestBody = raw["requestBody"];
51
+ }
52
+ if (typeof raw["statusCode"] === "number") {
53
+ exchange.statusCode = raw["statusCode"];
54
+ }
55
+ if (raw["responseHeaders"] !== undefined) {
56
+ exchange.responseHeaders = readHeaders(raw["responseHeaders"]);
57
+ }
58
+ if (raw["responseBody"] !== undefined && raw["responseBody"] !== null) {
59
+ exchange.responseBody = raw["responseBody"];
60
+ }
61
+ if (typeof raw["error"] === "string" && raw["error"]) {
62
+ exchange.error = raw["error"];
63
+ }
64
+ exchanges.push(exchange);
65
+ if (exchanges.length >= exports.LLM_PROVIDER_EXCHANGE_MAX_COUNT) {
66
+ break;
67
+ }
68
+ }
69
+ return exchanges;
70
+ }
@@ -0,0 +1,5 @@
1
+ import commonJsModule from "./LLMProviderExchange.js";
2
+ export const LLM_PROVIDER_EXCHANGE_MAX_BODY_LENGTH = commonJsModule.LLM_PROVIDER_EXCHANGE_MAX_BODY_LENGTH;
3
+ export const LLM_PROVIDER_EXCHANGE_MAX_COUNT = commonJsModule.LLM_PROVIDER_EXCHANGE_MAX_COUNT;
4
+ export const LLM_PROVIDER_EXCHANGE_TRUNCATED_SUFFIX = commonJsModule.LLM_PROVIDER_EXCHANGE_TRUNCATED_SUFFIX;
5
+ export const readLLMProviderExchanges = commonJsModule.readLLMProviderExchanges;
@@ -34,6 +34,7 @@ export declare enum CheckOn {
34
34
  IsExpiredCertificate = "Is Expired Certificate",
35
35
  IsValidCertificate = "Is Valid Certificate",
36
36
  IsNotAValidCertificate = "Is Not A Valid Certificate",
37
+ IsRevokedCertificate = "Is Revoked Certificate",
37
38
  IsRequestTimeout = "Is Request Timeout",
38
39
  ResultValue = "Result Value",
39
40
  Error = "Error",
@@ -34,6 +34,7 @@ export declare enum CheckOn {
34
34
  IsExpiredCertificate = "Is Expired Certificate",
35
35
  IsValidCertificate = "Is Valid Certificate",
36
36
  IsNotAValidCertificate = "Is Not A Valid Certificate",
37
+ IsRevokedCertificate = "Is Revoked Certificate",
37
38
  IsRequestTimeout = "Is Request Timeout",
38
39
  ResultValue = "Result Value",
39
40
  Error = "Error",
@@ -39,6 +39,7 @@ var CheckOn;
39
39
  CheckOn["IsExpiredCertificate"] = "Is Expired Certificate";
40
40
  CheckOn["IsValidCertificate"] = "Is Valid Certificate";
41
41
  CheckOn["IsNotAValidCertificate"] = "Is Not A Valid Certificate";
42
+ CheckOn["IsRevokedCertificate"] = "Is Revoked Certificate";
42
43
  CheckOn["IsRequestTimeout"] = "Is Request Timeout";
43
44
  // Custom code or synthetic monitor.
44
45
  CheckOn["ResultValue"] = "Result Value";
@@ -439,7 +440,8 @@ class CriteriaFilterUtil {
439
440
  if (checkOn === CheckOn.IsValidCertificate ||
440
441
  checkOn === CheckOn.IsSelfSignedCertificate ||
441
442
  checkOn === CheckOn.IsExpiredCertificate ||
442
- checkOn === CheckOn.IsNotAValidCertificate) {
443
+ checkOn === CheckOn.IsNotAValidCertificate ||
444
+ checkOn === CheckOn.IsRevokedCertificate) {
443
445
  return false;
444
446
  }
445
447
  if (FilterType.IsEmpty === data.filterType ||