@oneuptime/common 14.0.108 → 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 (494) 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/GlobalConfig.d.mts +5 -0
  6. package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
  7. package/Models/DatabaseModels/GlobalConfig.js +111 -0
  8. package/Models/DatabaseModels/Index.js +7 -0
  9. package/Models/DatabaseModels/Monitor.js +14 -0
  10. package/Models/DatabaseModels/MonitorStatusTimeline.d.mts +1 -0
  11. package/Models/DatabaseModels/MonitorStatusTimeline.d.ts +1 -0
  12. package/Models/DatabaseModels/MonitorStatusTimeline.js +43 -0
  13. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +4 -0
  14. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
  15. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +132 -2
  16. package/Models/DatabaseModels/ProductFeedback.d.mts +11 -0
  17. package/Models/DatabaseModels/ProductFeedback.d.ts +11 -0
  18. package/Models/DatabaseModels/ProductFeedback.js +203 -0
  19. package/Models/DatabaseModels/ProductFeedback.mjs +2 -0
  20. package/Models/DatabaseModels/Project.d.mts +6 -0
  21. package/Models/DatabaseModels/Project.d.ts +6 -0
  22. package/Models/DatabaseModels/Project.js +237 -0
  23. package/Models/DatabaseModels/ProjectMilestone.d.mts +11 -0
  24. package/Models/DatabaseModels/ProjectMilestone.d.ts +11 -0
  25. package/Models/DatabaseModels/ProjectMilestone.js +207 -0
  26. package/Models/DatabaseModels/ProjectMilestone.mjs +2 -0
  27. package/Models/DatabaseModels/ProjectUserPreference.d.mts +11 -0
  28. package/Models/DatabaseModels/ProjectUserPreference.d.ts +11 -0
  29. package/Models/DatabaseModels/ProjectUserPreference.js +194 -0
  30. package/Models/DatabaseModels/ProjectUserPreference.mjs +2 -0
  31. package/Models/DatabaseModels/RumSessionPin.js +16 -2
  32. package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
  33. package/Models/DatabaseModels/SecurityCase.js +8 -1
  34. package/Models/DatabaseModels/User.d.mts +2 -0
  35. package/Models/DatabaseModels/User.d.ts +2 -0
  36. package/Models/DatabaseModels/User.js +52 -0
  37. package/Models/DatabaseModels/UserOnCallLog.js +32 -4
  38. package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -0
  39. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  40. package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +9 -0
  41. package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +9 -0
  42. package/Server/Services/DatabaseService.d.mts +1 -0
  43. package/Server/Services/DatabaseService.d.ts +1 -0
  44. package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +2 -1
  45. package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +2 -1
  46. package/Server/Utils/Workspace/WorkspaceBase.d.mts +1 -0
  47. package/Server/Utils/Workspace/WorkspaceBase.d.ts +1 -0
  48. package/Types/AI/AIActionWords.d.mts +167 -7
  49. package/Types/AI/AIActionWords.d.ts +167 -7
  50. package/Types/AI/AIActionWords.js +474 -17
  51. package/Types/AI/AIActionWords.mjs +22 -0
  52. package/Types/AI/AIChatMessageStatus.js +3 -2
  53. package/Types/AI/AIChatRecordSeen.d.mts +6 -2
  54. package/Types/AI/AIChatRecordSeen.d.ts +6 -2
  55. package/Types/AI/AIChatRecordSeen.js +48 -9
  56. package/Types/AI/AIChatRecordSeen.mjs +2 -0
  57. package/Types/AI/AIChatTypes.d.mts +19 -1
  58. package/Types/AI/AIChatTypes.d.ts +19 -1
  59. package/Types/AI/AIChatTypes.js +44 -1
  60. package/Types/AI/AIChatTypes.mjs +3 -0
  61. package/Types/AI/AIRunAttempt.d.mts +8 -0
  62. package/Types/AI/AIRunAttempt.d.ts +8 -0
  63. package/Types/AI/AIRunAttempt.js +60 -6
  64. package/Types/AI/AIRunAttempt.mjs +3 -0
  65. package/Types/AI/AISetupActions.d.mts +9 -0
  66. package/Types/AI/AISetupActions.d.ts +9 -0
  67. package/Types/AI/AISetupActions.js +56 -0
  68. package/Types/AI/AISetupActions.mjs +10 -0
  69. package/Types/AI/CodeTask.d.mts +14 -0
  70. package/Types/AI/CodeTask.d.ts +14 -0
  71. package/Types/AI/RecordAiTokenLimit.d.mts +24 -0
  72. package/Types/AI/RecordAiTokenLimit.d.ts +24 -0
  73. package/Types/AI/RecordAiTokenLimit.js +153 -0
  74. package/Types/AI/RecordAiTokenLimit.mjs +8 -0
  75. package/Types/Accounts/SignInMessages.d.mts +8 -0
  76. package/Types/Accounts/SignInMessages.d.ts +8 -0
  77. package/Types/Accounts/SignInMessages.js +28 -0
  78. package/Types/Accounts/SignInMessages.mjs +5 -0
  79. package/Types/Analytics/ActivationMilestone.d.mts +48 -0
  80. package/Types/Analytics/ActivationMilestone.d.ts +48 -0
  81. package/Types/Analytics/ActivationMilestone.js +247 -0
  82. package/Types/Analytics/ActivationMilestone.mjs +16 -0
  83. package/Types/Analytics/ChecklistProgress.d.mts +11 -0
  84. package/Types/Analytics/ChecklistProgress.d.ts +11 -0
  85. package/Types/Analytics/ChecklistProgress.js +32 -0
  86. package/Types/Analytics/ChecklistProgress.mjs +2 -0
  87. package/Types/Analytics/ProductEvent.d.mts +61 -0
  88. package/Types/Analytics/ProductEvent.d.ts +61 -0
  89. package/Types/Analytics/ProductEvent.js +430 -0
  90. package/Types/Analytics/ProductEvent.mjs +14 -0
  91. package/Types/AuditLog/AuditLogAction.d.mts +5 -1
  92. package/Types/AuditLog/AuditLogAction.d.ts +5 -1
  93. package/Types/AuditLog/AuditLogAction.js +11 -0
  94. package/Types/AuditLog/AuditLogActionLabel.d.mts +3 -0
  95. package/Types/AuditLog/AuditLogActionLabel.d.ts +3 -0
  96. package/Types/AuditLog/AuditLogActionLabel.js +30 -0
  97. package/Types/AuditLog/AuditLogActionLabel.mjs +3 -0
  98. package/Types/AuditLog/AuditLogCoverage.d.mts +2 -1
  99. package/Types/AuditLog/AuditLogCoverage.d.ts +2 -1
  100. package/Types/AuditLog/AuditLogCoverage.js +8 -1
  101. package/Types/AuditLog/AuditLogRetention.js +7 -4
  102. package/Types/AuditLog/AuditLogSessionEvent.d.mts +45 -0
  103. package/Types/AuditLog/AuditLogSessionEvent.d.ts +45 -0
  104. package/Types/AuditLog/AuditLogSessionEvent.js +210 -0
  105. package/Types/AuditLog/AuditLogSessionEvent.mjs +14 -0
  106. package/Types/AutoRemediation/RemediationRound.d.mts +4 -0
  107. package/Types/AutoRemediation/RemediationRound.d.ts +4 -0
  108. package/Types/AutoRemediation/RemediationRound.js +19 -2
  109. package/Types/AutoRemediation/RemediationRoundName.d.mts +1 -0
  110. package/Types/AutoRemediation/RemediationRoundName.d.ts +1 -0
  111. package/Types/AutoRemediation/RemediationRoundName.js +5 -0
  112. package/Types/AutoRemediation/RemediationRoundName.mjs +1 -0
  113. package/Types/Cloud/CloudAppTelemetrySignal.d.mts +9 -0
  114. package/Types/Cloud/CloudAppTelemetrySignal.d.ts +9 -0
  115. package/Types/Cloud/CloudAppTelemetrySignal.js +41 -0
  116. package/Types/Cloud/CloudAppTelemetrySignal.mjs +4 -0
  117. package/Types/Cloud/CloudPlatform.js +7 -1
  118. package/Types/CodeRepository/CodeFileSeen.d.mts +5 -0
  119. package/Types/CodeRepository/CodeFileSeen.d.ts +5 -0
  120. package/Types/CodeRepository/CodeFileSeen.js +142 -27
  121. package/Types/CustomDomain/CustomDomainDnsCheckResult.d.mts +13 -0
  122. package/Types/CustomDomain/CustomDomainDnsCheckResult.d.ts +13 -0
  123. package/Types/CustomDomain/CustomDomainDnsCheckResult.js +80 -0
  124. package/Types/CustomDomain/CustomDomainDnsCheckResult.mjs +2 -0
  125. package/Types/CustomDomain/CustomDomainServerReadiness.d.mts +55 -0
  126. package/Types/CustomDomain/CustomDomainServerReadiness.d.ts +55 -0
  127. package/Types/CustomDomain/CustomDomainServerReadiness.js +199 -0
  128. package/Types/CustomDomain/CustomDomainServerReadiness.mjs +8 -0
  129. package/Types/CustomDomain/DnsRecordCheck.d.mts +34 -0
  130. package/Types/CustomDomain/DnsRecordCheck.d.ts +34 -0
  131. package/Types/CustomDomain/DnsRecordCheck.js +175 -0
  132. package/Types/CustomDomain/DnsRecordCheck.mjs +6 -0
  133. package/Types/CustomDomain/DnsRecordCheckWords.d.mts +35 -0
  134. package/Types/CustomDomain/DnsRecordCheckWords.d.ts +35 -0
  135. package/Types/CustomDomain/DnsRecordCheckWords.js +151 -0
  136. package/Types/CustomDomain/DnsRecordCheckWords.mjs +5 -0
  137. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
  138. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
  139. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +11 -1
  140. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +1 -0
  141. package/Types/DataObservability/DataCheckType.d.mts +4 -0
  142. package/Types/DataObservability/DataCheckType.d.ts +4 -0
  143. package/Types/DataObservability/DataCheckType.js +17 -0
  144. package/Types/DataObservability/DataCheckType.mjs +1 -0
  145. package/Types/DataObservability/DataLineageColumnTrail.d.mts +10 -0
  146. package/Types/DataObservability/DataLineageColumnTrail.d.ts +10 -0
  147. package/Types/DataObservability/DataLineageColumnTrail.js +152 -0
  148. package/Types/DataObservability/DataLineageColumnTrail.mjs +4 -0
  149. package/Types/DataObservability/DataLineageExpansion.d.mts +29 -0
  150. package/Types/DataObservability/DataLineageExpansion.d.ts +29 -0
  151. package/Types/DataObservability/DataLineageExpansion.js +166 -0
  152. package/Types/DataObservability/DataLineageExpansion.mjs +4 -0
  153. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +1 -0
  154. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +1 -0
  155. package/Types/DataObservability/DataObservabilityApiTypes.js +2 -0
  156. package/Types/DataObservability/DataTableLineage.d.mts +7 -0
  157. package/Types/DataObservability/DataTableLineage.d.ts +7 -0
  158. package/Types/DataObservability/DataTableLineage.js +15 -3
  159. package/Types/DataObservability/DataTableLineage.mjs +1 -0
  160. package/Types/Date.d.mts +22 -0
  161. package/Types/Date.d.ts +22 -0
  162. package/Types/Date.js +72 -3
  163. package/Types/DateLanguage.d.mts +7 -0
  164. package/Types/DateLanguage.d.ts +7 -0
  165. package/Types/DateLanguage.js +44 -1
  166. package/Types/DateLanguage.mjs +1 -0
  167. package/Types/Docs/DocsLanguage.d.mts +2 -0
  168. package/Types/Docs/DocsLanguage.d.ts +2 -0
  169. package/Types/Docs/DocsLanguage.js +23 -1
  170. package/Types/Docs/DocsLanguage.mjs +2 -0
  171. package/Types/Docs/GlossaryTerm.d.mts +82 -0
  172. package/Types/Docs/GlossaryTerm.d.ts +82 -0
  173. package/Types/Docs/GlossaryTerm.js +126 -0
  174. package/Types/Docs/GlossaryTerm.mjs +5 -0
  175. package/Types/Email/AmazonSesAuthenticationType.d.mts +23 -0
  176. package/Types/Email/AmazonSesAuthenticationType.d.ts +23 -0
  177. package/Types/Email/AmazonSesAuthenticationType.js +40 -0
  178. package/Types/Email/AmazonSesAuthenticationType.mjs +4 -0
  179. package/Types/Email/EmailServer.d.mts +2 -0
  180. package/Types/Email/EmailServer.d.ts +2 -0
  181. package/Types/Email/EmailTemplateType.d.mts +1 -0
  182. package/Types/Email/EmailTemplateType.d.ts +1 -0
  183. package/Types/Email/EmailTemplateType.js +2 -0
  184. package/Types/Exception/BadDataExceptionWithDetails.d.mts +6 -0
  185. package/Types/Exception/BadDataExceptionWithDetails.d.ts +6 -0
  186. package/Types/Exception/BadDataExceptionWithDetails.js +20 -0
  187. package/Types/Exception/BadDataExceptionWithDetails.mjs +2 -0
  188. package/Types/Exception/ErrorMessageRule.d.mts +4 -0
  189. package/Types/Exception/ErrorMessageRule.d.ts +4 -0
  190. package/Types/Exception/ErrorMessageRule.js +143 -0
  191. package/Types/Exception/ErrorMessageRule.mjs +5 -0
  192. package/Types/Exception/UnexplainedError.d.mts +45 -0
  193. package/Types/Exception/UnexplainedError.d.ts +45 -0
  194. package/Types/Exception/UnexplainedError.js +179 -0
  195. package/Types/Exception/UnexplainedError.mjs +11 -0
  196. package/Types/Icon/IconProp.d.mts +4 -1
  197. package/Types/Icon/IconProp.d.ts +4 -1
  198. package/Types/Icon/IconProp.js +6 -0
  199. package/Types/InstallationHealth/InstallationHealth.d.mts +122 -0
  200. package/Types/InstallationHealth/InstallationHealth.d.ts +122 -0
  201. package/Types/InstallationHealth/InstallationHealth.js +513 -0
  202. package/Types/InstallationHealth/InstallationHealth.mjs +13 -0
  203. package/Types/LLM/LLMProviderExchange.d.mts +17 -0
  204. package/Types/LLM/LLMProviderExchange.d.ts +17 -0
  205. package/Types/LLM/LLMProviderExchange.js +70 -0
  206. package/Types/LLM/LLMProviderExchange.mjs +5 -0
  207. package/Types/Monitor/CriteriaFilter.d.mts +1 -0
  208. package/Types/Monitor/CriteriaFilter.d.ts +1 -0
  209. package/Types/Monitor/CriteriaFilter.js +3 -1
  210. package/Types/Monitor/CriteriaFilterTerms.js +1 -0
  211. package/Types/Monitor/CriteriaFilterValues.d.mts +2 -0
  212. package/Types/Monitor/CriteriaFilterValues.d.ts +2 -0
  213. package/Types/Monitor/CriteriaFilterValues.js +22 -0
  214. package/Types/Monitor/EvaluationSentence.d.mts +1 -0
  215. package/Types/Monitor/EvaluationSentence.d.ts +1 -0
  216. package/Types/Monitor/EvaluationSentence.js +34 -3
  217. package/Types/Monitor/EvaluationSentence.mjs +1 -0
  218. package/Types/Monitor/RetiredEvaluationTemplates.d.mts +2 -0
  219. package/Types/Monitor/RetiredEvaluationTemplates.d.ts +2 -0
  220. package/Types/Monitor/RetiredEvaluationTemplates.js +95 -0
  221. package/Types/Monitor/RetiredEvaluationTemplates.mjs +3 -0
  222. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.mts +6 -0
  223. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.ts +6 -0
  224. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.js +20 -0
  225. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.mjs +2 -0
  226. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.mts +6 -0
  227. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.ts +6 -0
  228. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.js +29 -0
  229. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.mjs +2 -0
  230. package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.mts +7 -0
  231. package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.ts +7 -0
  232. package/Types/Monitor/WhoIsTold.d.mts +165 -0
  233. package/Types/Monitor/WhoIsTold.d.ts +165 -0
  234. package/Types/Monitor/WhoIsTold.js +582 -0
  235. package/Types/Monitor/WhoIsTold.mjs +17 -0
  236. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +6 -0
  237. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +6 -0
  238. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +34 -0
  239. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
  240. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +240 -0
  241. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +240 -0
  242. package/Types/OnCallDutyPolicy/OnCallTestPage.js +574 -0
  243. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +52 -0
  244. package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.mts +31 -0
  245. package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.ts +31 -0
  246. package/Types/OnCallDutyPolicy/OnCallTestPageWords.js +105 -0
  247. package/Types/OnCallDutyPolicy/OnCallTestPageWords.mjs +14 -0
  248. package/Types/PhoneNumberDirection.d.mts +6 -0
  249. package/Types/PhoneNumberDirection.d.ts +6 -0
  250. package/Types/PhoneNumberDirection.js +123 -0
  251. package/Types/PhoneNumberDirection.mjs +6 -0
  252. package/Types/Product/ProductKey.d.mts +58 -0
  253. package/Types/Product/ProductKey.d.ts +58 -0
  254. package/Types/Product/ProductKey.js +175 -0
  255. package/Types/Product/ProductKey.mjs +8 -0
  256. package/Types/Product/ProductPins.d.mts +10 -0
  257. package/Types/Product/ProductPins.d.ts +10 -0
  258. package/Types/Product/ProductPins.js +65 -0
  259. package/Types/Product/ProductPins.mjs +6 -0
  260. package/Types/Product/ProductUsage.d.mts +21 -0
  261. package/Types/Product/ProductUsage.d.ts +21 -0
  262. package/Types/Product/ProductUsage.js +175 -0
  263. package/Types/Product/ProductUsage.mjs +10 -0
  264. package/Types/Product/ProjectProducts.d.mts +60 -0
  265. package/Types/Product/ProjectProducts.d.ts +60 -0
  266. package/Types/Product/ProjectProducts.js +336 -0
  267. package/Types/Product/ProjectProducts.mjs +19 -0
  268. package/Types/Product/ProjectProductsAnswer.d.mts +20 -0
  269. package/Types/Product/ProjectProductsAnswer.d.ts +20 -0
  270. package/Types/Product/ProjectProductsAnswer.js +139 -0
  271. package/Types/Product/ProjectProductsAnswer.mjs +7 -0
  272. package/Types/ProductFeedback/NewGitHubIssue.d.mts +12 -0
  273. package/Types/ProductFeedback/NewGitHubIssue.d.ts +12 -0
  274. package/Types/ProductFeedback/NewGitHubIssue.js +64 -0
  275. package/Types/ProductFeedback/NewGitHubIssue.mjs +5 -0
  276. package/Types/ProductFeedback/ProductFeedback.d.mts +140 -0
  277. package/Types/ProductFeedback/ProductFeedback.d.ts +140 -0
  278. package/Types/ProductFeedback/ProductFeedback.js +517 -0
  279. package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
  280. package/Types/ReadingDirection.d.mts +2 -0
  281. package/Types/ReadingDirection.d.ts +2 -0
  282. package/Types/ReadingDirection.js +83 -2
  283. package/Types/ReadingDirection.mjs +2 -0
  284. package/Types/Recommendation/RecommendationType.d.mts +2 -1
  285. package/Types/Recommendation/RecommendationType.d.ts +2 -1
  286. package/Types/Recommendation/RecommendationType.js +6 -0
  287. package/Types/Reminder/ReminderInterval.d.mts +7 -0
  288. package/Types/Reminder/ReminderInterval.d.ts +7 -0
  289. package/Types/Reminder/ReminderInterval.js +110 -0
  290. package/Types/Reminder/ReminderInterval.mjs +8 -0
  291. package/Types/Retention/ResolvedRecordRetention.d.mts +19 -0
  292. package/Types/Retention/ResolvedRecordRetention.d.ts +19 -0
  293. package/Types/Retention/ResolvedRecordRetention.js +124 -0
  294. package/Types/Retention/ResolvedRecordRetention.mjs +14 -0
  295. package/Types/RollingTime/RollingTimeUtil.d.mts +1 -0
  296. package/Types/RollingTime/RollingTimeUtil.d.ts +1 -0
  297. package/Types/RollingTime/RollingTimeUtil.js +9 -0
  298. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +108 -101
  299. package/Types/ServerSending/ServerSendingStatus.d.mts +69 -0
  300. package/Types/ServerSending/ServerSendingStatus.d.ts +69 -0
  301. package/Types/ServerSending/ServerSendingStatus.js +281 -0
  302. package/Types/ServerSending/ServerSendingStatus.mjs +7 -0
  303. package/Types/ServerSending/ServerSendingWords.d.mts +9 -0
  304. package/Types/ServerSending/ServerSendingWords.d.ts +9 -0
  305. package/Types/ServerSending/ServerSendingWords.js +95 -0
  306. package/Types/ServerSending/ServerSendingWords.mjs +7 -0
  307. package/Types/ServerSetup/ServerSetupChecklist.d.mts +172 -0
  308. package/Types/ServerSetup/ServerSetupChecklist.d.ts +172 -0
  309. package/Types/ServerSetup/ServerSetupChecklist.js +735 -0
  310. package/Types/ServerSetup/ServerSetupChecklist.mjs +12 -0
  311. package/Types/ServerSetup/ServerTestSend.d.mts +35 -0
  312. package/Types/ServerSetup/ServerTestSend.d.ts +35 -0
  313. package/Types/ServerSetup/ServerTestSend.js +160 -0
  314. package/Types/ServerSetup/ServerTestSend.mjs +10 -0
  315. package/Types/SetupHealth/SetupHealth.d.mts +283 -0
  316. package/Types/SetupHealth/SetupHealth.d.ts +283 -0
  317. package/Types/SetupHealth/SetupHealth.js +1047 -0
  318. package/Types/SetupHealth/SetupHealth.mjs +46 -0
  319. package/Types/StatusPage/StatusPageSummary.d.mts +1 -0
  320. package/Types/StatusPage/StatusPageSummary.d.ts +1 -0
  321. package/Types/StatusPage/StatusPageSummary.js +3 -0
  322. package/Types/StatusPage/UptimeDailyAggregate.d.mts +25 -0
  323. package/Types/StatusPage/UptimeDailyAggregate.d.ts +25 -0
  324. package/Types/Telemetry/LlmCallKind.js +1 -1
  325. package/Types/Telemetry/TelemetryIngestionBudget.d.mts +1 -0
  326. package/Types/Telemetry/TelemetryIngestionBudget.d.ts +1 -0
  327. package/Types/Telemetry/TelemetryIngestionBudget.js +135 -2
  328. package/Types/Telemetry/TelemetryIngestionBudget.mjs +1 -0
  329. package/Types/ToolImport/ToolImportCatalog.d.mts +1 -0
  330. package/Types/ToolImport/ToolImportCatalog.d.ts +1 -0
  331. package/Types/ToolImport/ToolImportCatalog.js +54 -1
  332. package/Types/ToolImport/ToolImportCatalog.mjs +1 -0
  333. package/Types/Translator.js +64 -31
  334. package/Types/UserNotification/UserNotificationEventType.d.mts +2 -1
  335. package/Types/UserNotification/UserNotificationEventType.d.ts +2 -1
  336. package/Types/UserNotification/UserNotificationEventType.js +7 -0
  337. package/Types/UserSession/SessionEndCause.d.mts +17 -0
  338. package/Types/UserSession/SessionEndCause.d.ts +17 -0
  339. package/Types/UserSession/SessionEndCause.js +79 -0
  340. package/Types/UserSession/SessionEndCause.mjs +6 -0
  341. package/Types/UserSession/SessionSignIn.d.mts +44 -0
  342. package/Types/UserSession/SessionSignIn.d.ts +44 -0
  343. package/Types/UserSession/SessionSignIn.js +174 -0
  344. package/Types/UserSession/SessionSignIn.mjs +17 -0
  345. package/Types/WelcomeChecklist/ProjectGoal.d.mts +16 -0
  346. package/Types/WelcomeChecklist/ProjectGoal.d.ts +16 -0
  347. package/Types/WelcomeChecklist/ProjectGoal.js +94 -0
  348. package/Types/WelcomeChecklist/ProjectGoal.mjs +8 -0
  349. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +76 -0
  350. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +76 -0
  351. package/Types/WelcomeChecklist/WelcomeChecklist.js +344 -0
  352. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +19 -0
  353. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +24 -0
  354. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +24 -0
  355. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +136 -0
  356. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +9 -0
  357. package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +27 -0
  358. package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +27 -0
  359. package/Types/WelcomeChecklist/WelcomeChecklistState.js +183 -0
  360. package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +13 -0
  361. package/Types/Workflow/Documentation/AIDocumentation.js +1 -1
  362. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.mts +7 -0
  363. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.ts +7 -0
  364. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.js +40 -0
  365. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.mjs +3 -0
  366. package/Types/Workspace/WorkspaceChannelMembers.d.mts +1 -0
  367. package/Types/Workspace/WorkspaceChannelMembers.d.ts +1 -0
  368. package/Types/Workspace/WorkspaceChannelMembers.js +9 -2
  369. package/UI/Components/Dropdown/Dropdown.d.mts +1 -0
  370. package/UI/Components/Dropdown/Dropdown.d.ts +1 -0
  371. package/Utils/API.js +10 -0
  372. package/Utils/Dashboard/DashboardWidgetSorts.js +25 -4
  373. package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +37 -0
  374. package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +37 -0
  375. package/Utils/Dashboard/MonitorListWidgetFormat.js +86 -0
  376. package/Utils/Dashboard/MonitorListWidgetFormat.mjs +10 -0
  377. package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +31 -0
  378. package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +31 -0
  379. package/Utils/GuidedSetup/OnCallPolicyRecords.js +89 -0
  380. package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +6 -0
  381. package/Utils/GuidedSetup/StatusPageRecords.d.mts +36 -0
  382. package/Utils/GuidedSetup/StatusPageRecords.d.ts +36 -0
  383. package/Utils/GuidedSetup/StatusPageRecords.js +105 -0
  384. package/Utils/GuidedSetup/StatusPageRecords.mjs +6 -0
  385. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +41 -0
  386. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +41 -0
  387. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +204 -0
  388. package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +9 -0
  389. package/Utils/Markdown/InlineImageDataUri.d.mts +9 -0
  390. package/Utils/Markdown/InlineImageDataUri.d.ts +9 -0
  391. package/Utils/Markdown/InlineImageDataUri.js +17 -1
  392. package/Utils/Markdown/InlineImageDataUri.mjs +1 -0
  393. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +12 -0
  394. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +12 -0
  395. package/Utils/Markdown/LinkReferenceDefinitions.js +539 -0
  396. package/Utils/Markdown/LinkReferenceDefinitions.mjs +4 -0
  397. package/Utils/Monitor/ExternalStatusPageReading.d.mts +9 -0
  398. package/Utils/Monitor/ExternalStatusPageReading.d.ts +9 -0
  399. package/Utils/Monitor/ExternalStatusPageReading.js +77 -8
  400. package/Utils/Monitor/ExternalStatusPageReading.mjs +3 -0
  401. package/Utils/Monitor/ExternalStatusPageScope.js +17 -1
  402. package/Utils/Monitor/MonitorDestinationUtil.js +2 -1
  403. package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +2 -1
  404. package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +2 -1
  405. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +10 -1
  406. package/Utils/Monitor/MonitorStatusHistoryUtil.d.mts +1 -0
  407. package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +1 -0
  408. package/Utils/Monitor/MonitorStatusHistoryUtil.js +1 -0
  409. package/Utils/Monitor/MonitorSummaryProbeUtil.d.mts +2 -0
  410. package/Utils/Monitor/MonitorSummaryProbeUtil.d.ts +2 -0
  411. package/Utils/Monitor/MonitorSummaryProbeUtil.js +13 -17
  412. package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -3
  413. package/Utils/Monitor/MonitorUptimeSummaryUtil.d.mts +1 -1
  414. package/Utils/Monitor/MonitorUptimeSummaryUtil.d.ts +1 -1
  415. package/Utils/Monitor/MonitorUptimeSummaryUtil.js +1 -0
  416. package/Utils/Monitor/MonitoringOff.d.mts +20 -0
  417. package/Utils/Monitor/MonitoringOff.d.ts +20 -0
  418. package/Utils/Monitor/MonitoringOff.js +81 -0
  419. package/Utils/Monitor/MonitoringOff.mjs +4 -0
  420. package/Utils/Monitor/NotOperationalMonitorQuery.js +9 -7
  421. package/Utils/Monitor/StateChangeLogScreenshots.d.mts +8 -0
  422. package/Utils/Monitor/StateChangeLogScreenshots.d.ts +8 -0
  423. package/Utils/Monitor/StateChangeLogScreenshots.js +116 -0
  424. package/Utils/Monitor/StateChangeLogScreenshots.mjs +3 -0
  425. package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +1 -1
  426. package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +1 -1
  427. package/Utils/NetworkDevice/Naming/NamingLookup.js +14 -4
  428. package/Utils/NetworkDevice/Naming/NamingLookup.mjs +1 -0
  429. package/Utils/Slo/SloErrorBudgetPolicy.d.mts +2 -1
  430. package/Utils/Slo/SloErrorBudgetPolicy.d.ts +2 -1
  431. package/Utils/Slo/SloErrorBudgetPolicy.js +8 -2
  432. package/Utils/Slo/SloListWidgetFormat.d.mts +7 -1
  433. package/Utils/Slo/SloListWidgetFormat.d.ts +7 -1
  434. package/Utils/Slo/SloListWidgetFormat.js +20 -26
  435. package/Utils/Slo/SloOverviewText.d.mts +6 -1
  436. package/Utils/Slo/SloOverviewText.d.ts +6 -1
  437. package/Utils/Slo/SloOverviewText.js +3 -3
  438. package/Utils/Slo/SloUtil.d.mts +18 -9
  439. package/Utils/Slo/SloUtil.d.ts +18 -9
  440. package/Utils/Slo/SloUtil.js +47 -10
  441. package/Utils/Slo/SloWidgetFormat.d.mts +69 -11
  442. package/Utils/Slo/SloWidgetFormat.d.ts +69 -11
  443. package/Utils/Slo/SloWidgetFormat.js +198 -50
  444. package/Utils/Slo/SloWidgetFormat.mjs +7 -0
  445. package/Utils/StatusPage/FrozenMonitorResources.d.mts +41 -0
  446. package/Utils/StatusPage/FrozenMonitorResources.d.ts +41 -0
  447. package/Utils/StatusPage/FrozenMonitorResources.js +155 -0
  448. package/Utils/StatusPage/FrozenMonitorResources.mjs +4 -0
  449. package/Utils/StatusPage/GroupNestingLayout.d.mts +2 -0
  450. package/Utils/StatusPage/GroupNestingLayout.d.ts +2 -0
  451. package/Utils/StatusPage/GroupNestingLayout.js +12 -0
  452. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.mts +48 -0
  453. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.ts +48 -0
  454. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.js +181 -0
  455. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.mjs +2 -0
  456. package/Utils/StatusPage/ResourceExplorer.d.mts +1 -0
  457. package/Utils/StatusPage/ResourceExplorer.d.ts +1 -0
  458. package/Utils/StatusPage/ResourceExplorer.js +11 -1
  459. package/Utils/StatusPage/ResourceUptime.d.mts +6 -1
  460. package/Utils/StatusPage/ResourceUptime.d.ts +6 -1
  461. package/Utils/StatusPage/ResourceUptime.js +31 -6
  462. package/Utils/StatusPage/StatusPageSummaryBuilder.d.mts +1 -0
  463. package/Utils/StatusPage/StatusPageSummaryBuilder.d.ts +1 -0
  464. package/Utils/StatusPage/StatusPageSummaryBuilder.js +12 -1
  465. package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +41 -0
  466. package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +41 -0
  467. package/Utils/StatusPage/StatusPageUptimeTimezone.js +114 -0
  468. package/Utils/StatusPage/StatusPageUptimeTimezone.mjs +2 -0
  469. package/Utils/StatusPage/UptimeDailyAggregateUtil.d.mts +3 -1
  470. package/Utils/StatusPage/UptimeDailyAggregateUtil.d.ts +3 -1
  471. package/Utils/StatusPage/UptimeDailyAggregateUtil.js +69 -50
  472. package/Utils/Telemetry/CloudInstanceIdentity.js +12 -7
  473. package/Utils/Uptime/DayUptimeGraphUtil.d.mts +8 -0
  474. package/Utils/Uptime/DayUptimeGraphUtil.d.ts +8 -0
  475. package/Utils/Uptime/DayUptimeGraphUtil.js +41 -6
  476. package/Utils/Uptime/UptimeMaintenanceUtil.d.mts +3 -0
  477. package/Utils/Uptime/UptimeMaintenanceUtil.d.ts +3 -0
  478. package/Utils/Uptime/UptimeMaintenanceUtil.js +49 -0
  479. package/Utils/Uptime/UptimeUtil.d.mts +38 -1
  480. package/Utils/Uptime/UptimeUtil.d.ts +38 -1
  481. package/Utils/Uptime/UptimeUtil.js +270 -75
  482. package/Utils/Uptime/WorstStatusTimeline.d.mts +31 -0
  483. package/Utils/Uptime/WorstStatusTimeline.d.ts +31 -0
  484. package/Utils/Uptime/WorstStatusTimeline.js +190 -0
  485. package/Utils/Uptime/WorstStatusTimeline.mjs +2 -0
  486. package/Utils/Workspace/WorkspaceSummarySetup.d.mts +25 -0
  487. package/Utils/Workspace/WorkspaceSummarySetup.d.ts +25 -0
  488. package/Utils/Workspace/WorkspaceSummarySetup.js +215 -0
  489. package/Utils/Workspace/WorkspaceSummarySetup.mjs +11 -0
  490. package/package.json +1 -1
  491. package/Utils/StatusPage/ArchivedMonitorResources.d.mts +0 -10
  492. package/Utils/StatusPage/ArchivedMonitorResources.d.ts +0 -10
  493. package/Utils/StatusPage/ArchivedMonitorResources.js +0 -33
  494. package/Utils/StatusPage/ArchivedMonitorResources.mjs +0 -2
@@ -0,0 +1,199 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.describeReadinessCheckInEnglish = exports.describeReadinessCheck = exports.CustomDomainReadinessWords = exports.CustomDomainReadinessReason = exports.CustomDomainReadinessOutcome = exports.CustomDomainReadinessCheckId = void 0;
4
+ const Translator_1 = require("../Translator");
5
+ /*
6
+ * WHETHER THIS SERVER CAN SERVE A CUSTOM DOMAIN AT ALL.
7
+ *
8
+ * Three of the four reports about custom domains (#1521, #1692, #1774) were
9
+ * self-hosted servers that could not serve one: the CNAME target was not
10
+ * set, or not pointed at the server, or a proxy in front of it did not pass
11
+ * the custom domain on. Each person found out only after changing their DNS
12
+ * and waiting, from "CNAME is not verified". So before anybody adds a
13
+ * record, a self-hosted server checks what it needs and says what is
14
+ * missing and where it is set:
15
+ *
16
+ * - TargetSet: the address CNAME records point to is set
17
+ * (STATUS_PAGE_CNAME_RECORD; statusPage.cnameRecord in Helm);
18
+ * - TargetResolves: that address resolves in DNS;
19
+ * - Port80: a request to it on port 80 reaches this OneUptime - where
20
+ * visitors and Let's Encrypt reach every custom domain;
21
+ * - Port443: it accepts connections on port 443, for HTTPS;
22
+ * - FreeCertificates: this server issues free certificates (a Let's
23
+ * Encrypt account key) - a warning, not a failure: without one, a
24
+ * custom domain's HTTPS is the operator's own proxy's.
25
+ *
26
+ * Checked from the server itself: what people outside its network see can
27
+ * differ, and the sentences say so. OneUptime Cloud skips all of it.
28
+ *
29
+ * Shape and words in one React-free file, so the Dashboard draws it (the
30
+ * templates are keys of its locales: a "keys" root of its extractor) and an
31
+ * installation health check (#6826) can print it.
32
+ */
33
+ var CustomDomainReadinessCheckId;
34
+ (function (CustomDomainReadinessCheckId) {
35
+ CustomDomainReadinessCheckId["TargetSet"] = "TargetSet";
36
+ CustomDomainReadinessCheckId["TargetResolves"] = "TargetResolves";
37
+ CustomDomainReadinessCheckId["Port80"] = "Port80";
38
+ CustomDomainReadinessCheckId["Port443"] = "Port443";
39
+ CustomDomainReadinessCheckId["FreeCertificates"] = "FreeCertificates";
40
+ })(CustomDomainReadinessCheckId || (exports.CustomDomainReadinessCheckId = CustomDomainReadinessCheckId = {}));
41
+ var CustomDomainReadinessOutcome;
42
+ (function (CustomDomainReadinessOutcome) {
43
+ CustomDomainReadinessOutcome["Pass"] = "Pass";
44
+ // Custom domains cannot work until it is fixed.
45
+ CustomDomainReadinessOutcome["Fail"] = "Fail";
46
+ // They work, with something the operator should know.
47
+ CustomDomainReadinessOutcome["Warn"] = "Warn";
48
+ })(CustomDomainReadinessOutcome || (exports.CustomDomainReadinessOutcome = CustomDomainReadinessOutcome = {}));
49
+ /*
50
+ * Why a check failed, where it can fail in more than one way: port 80 with
51
+ * nothing answering, or answering as something other than this OneUptime.
52
+ */
53
+ var CustomDomainReadinessReason;
54
+ (function (CustomDomainReadinessReason) {
55
+ CustomDomainReadinessReason["NoAnswer"] = "NoAnswer";
56
+ CustomDomainReadinessReason["NotThisServer"] = "NotThisServer";
57
+ })(CustomDomainReadinessReason || (exports.CustomDomainReadinessReason = CustomDomainReadinessReason = {}));
58
+ exports.CustomDomainReadinessWords = {
59
+ notReadyTitle: (0, Translator_1.translationKey)("This server is not ready for custom domains yet"),
60
+ warningTitle: (0, Translator_1.translationKey)("Before you add a custom domain"),
61
+ checkedFromServer: (0, Translator_1.translationKey)("We checked from this server. People outside your network must reach {{target}} on the same ports."),
62
+ targetSet: (0, Translator_1.translationKey)("Custom domains point to {{target}}, set in {{variable}}."),
63
+ targetNotSet: (0, Translator_1.translationKey)("Custom domains are off: {{variable}} is not set. Set it to a hostname that points to this server ({{helmValue}} in the Helm chart's values), then restart OneUptime."),
64
+ targetResolves: (0, Translator_1.translationKey)("{{target}} resolves to {{addresses}}."),
65
+ targetDoesNotResolve: (0, Translator_1.translationKey)("{{target}} does not resolve in DNS. Add an A record for it that points to this server's public IP address."),
66
+ port80Reaches: (0, Translator_1.translationKey)("{{target}} reaches this OneUptime server on port 80."),
67
+ port80NotThisServer: (0, Translator_1.translationKey)("{{target}} answers on port 80, but not as this OneUptime server (HTTP {{status}}). A proxy or load balancer at that address must pass requests for every hostname on to OneUptime."),
68
+ port80NoAnswer: (0, Translator_1.translationKey)("{{target}} does not answer on port 80. Open port 80 to this server: visitors and Let's Encrypt reach custom domains there."),
69
+ port443Answers: (0, Translator_1.translationKey)("{{target}} accepts connections on port 443."),
70
+ port443NoAnswer: (0, Translator_1.translationKey)("{{target}} does not accept connections on port 443. Open port 443 to this server, so visitors can open custom domains over HTTPS."),
71
+ freeCertificates: (0, Translator_1.translationKey)("This server issues free certificates from Let's Encrypt."),
72
+ noFreeCertificates: (0, Translator_1.translationKey)("This server issues no free certificates: LETS_ENCRYPT_ACCOUNT_KEY is not set (letsEncrypt.accountKey in the Helm chart). Serve HTTPS for custom domains at your own proxy, or upload a certificate for each domain."),
73
+ };
74
+ const describeReadinessCheck = (check) => {
75
+ const isPass = check.outcome === CustomDomainReadinessOutcome.Pass;
76
+ const words = exports.CustomDomainReadinessWords;
77
+ let template;
78
+ switch (check.id) {
79
+ case CustomDomainReadinessCheckId.TargetSet:
80
+ template = isPass ? words.targetSet : words.targetNotSet;
81
+ break;
82
+ case CustomDomainReadinessCheckId.TargetResolves:
83
+ template = isPass ? words.targetResolves : words.targetDoesNotResolve;
84
+ break;
85
+ case CustomDomainReadinessCheckId.Port80:
86
+ template = isPass
87
+ ? words.port80Reaches
88
+ : check.reason === CustomDomainReadinessReason.NotThisServer
89
+ ? words.port80NotThisServer
90
+ : words.port80NoAnswer;
91
+ break;
92
+ case CustomDomainReadinessCheckId.Port443:
93
+ template = isPass ? words.port443Answers : words.port443NoAnswer;
94
+ break;
95
+ case CustomDomainReadinessCheckId.FreeCertificates:
96
+ default:
97
+ template = isPass ? words.freeCertificates : words.noFreeCertificates;
98
+ break;
99
+ }
100
+ return { template, values: check.values };
101
+ };
102
+ exports.describeReadinessCheck = describeReadinessCheck;
103
+ // The check in English: for logs and a health check's output.
104
+ const describeReadinessCheckInEnglish = (check) => {
105
+ const described = (0, exports.describeReadinessCheck)(check);
106
+ return (0, Translator_1.fillTemplate)(described.template, described.values);
107
+ };
108
+ exports.describeReadinessCheckInEnglish = describeReadinessCheckInEnglish;
109
+ const IDS = Object.values(CustomDomainReadinessCheckId);
110
+ const OUTCOMES = Object.values(CustomDomainReadinessOutcome);
111
+ const REASONS = Object.values(CustomDomainReadinessReason);
112
+ class CustomDomainServerReadiness {
113
+ // Ready unless a check failed: a warning does not stop a custom domain.
114
+ static isReady(result) {
115
+ return !result.checks.some((check) => {
116
+ return check.outcome === CustomDomainReadinessOutcome.Fail;
117
+ });
118
+ }
119
+ // Whether anything is worth showing: a failure or a warning.
120
+ static needsAttention(result) {
121
+ return result.checks.some((check) => {
122
+ return check.outcome !== CustomDomainReadinessOutcome.Pass;
123
+ });
124
+ }
125
+ static toJSON(result) {
126
+ const json = {
127
+ target: result.target,
128
+ checks: result.checks.map((check) => {
129
+ const item = {
130
+ id: check.id,
131
+ outcome: check.outcome,
132
+ values: Object.assign({}, check.values),
133
+ };
134
+ if (check.reason) {
135
+ item["reason"] = check.reason;
136
+ }
137
+ return item;
138
+ }),
139
+ };
140
+ if (result.checkedAt) {
141
+ json["checkedAt"] = result.checkedAt.toISOString();
142
+ }
143
+ return json;
144
+ }
145
+ // Reads the answer, leaving out any check it does not know.
146
+ static fromJSON(json) {
147
+ const result = {
148
+ target: typeof (json === null || json === void 0 ? void 0 : json["target"]) === "string" ? json["target"] : "",
149
+ checks: [],
150
+ };
151
+ const checks = json === null || json === void 0 ? void 0 : json["checks"];
152
+ if (Array.isArray(checks)) {
153
+ for (const entry of checks) {
154
+ if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
155
+ continue;
156
+ }
157
+ const item = entry;
158
+ const id = item["id"];
159
+ const outcome = item["outcome"];
160
+ if (typeof id !== "string" ||
161
+ !IDS.includes(id) ||
162
+ typeof outcome !== "string" ||
163
+ !OUTCOMES.includes(outcome)) {
164
+ continue;
165
+ }
166
+ const values = {};
167
+ const rawValues = item["values"];
168
+ if (rawValues &&
169
+ typeof rawValues === "object" &&
170
+ !Array.isArray(rawValues)) {
171
+ for (const [key, value] of Object.entries(rawValues)) {
172
+ if (typeof value === "string") {
173
+ values[key] = value;
174
+ }
175
+ }
176
+ }
177
+ const check = {
178
+ id: id,
179
+ outcome: outcome,
180
+ values: values,
181
+ };
182
+ const reason = item["reason"];
183
+ if (typeof reason === "string" && REASONS.includes(reason)) {
184
+ check.reason = reason;
185
+ }
186
+ result.checks.push(check);
187
+ }
188
+ }
189
+ const checkedAt = json === null || json === void 0 ? void 0 : json["checkedAt"];
190
+ if (typeof checkedAt === "string" && checkedAt) {
191
+ const date = new Date(checkedAt);
192
+ if (!isNaN(date.getTime())) {
193
+ result.checkedAt = date;
194
+ }
195
+ }
196
+ return result;
197
+ }
198
+ }
199
+ exports.default = CustomDomainServerReadiness;
@@ -0,0 +1,8 @@
1
+ import commonJsModule from "./CustomDomainServerReadiness.js";
2
+ export default commonJsModule.default;
3
+ export const CustomDomainReadinessCheckId = commonJsModule.CustomDomainReadinessCheckId;
4
+ export const CustomDomainReadinessOutcome = commonJsModule.CustomDomainReadinessOutcome;
5
+ export const CustomDomainReadinessReason = commonJsModule.CustomDomainReadinessReason;
6
+ export const CustomDomainReadinessWords = commonJsModule.CustomDomainReadinessWords;
7
+ export const describeReadinessCheck = commonJsModule.describeReadinessCheck;
8
+ export const describeReadinessCheckInEnglish = commonJsModule.describeReadinessCheckInEnglish;
@@ -0,0 +1,34 @@
1
+ import { JSONArray, JSONObject } from "../JSON.mjs";
2
+ export declare enum DnsRecordType {
3
+ CNAME = "CNAME",
4
+ TXT = "TXT"
5
+ }
6
+ export declare enum DnsRecordCheckOutcome {
7
+ Found = "Found",
8
+ WrongValue = "WrongValue",
9
+ NotFound = "NotFound",
10
+ NameNotFound = "NameNotFound",
11
+ LookupFailed = "LookupFailed",
12
+ NotCheckedYet = "NotCheckedYet"
13
+ }
14
+ export interface DnsRecordCheck {
15
+ type: DnsRecordType;
16
+ name: string;
17
+ expectedValue: string;
18
+ foundValues: Array<string>;
19
+ outcome: DnsRecordCheckOutcome;
20
+ addresses?: Array<string> | undefined;
21
+ reachedOneUptime?: boolean | undefined;
22
+ httpStatus?: number | undefined;
23
+ lookupError?: string | undefined;
24
+ checkedAt?: Date | undefined;
25
+ }
26
+ export declare const isDnsRecordFound: (check: DnsRecordCheck) => boolean;
27
+ export declare const normalizeDnsName: (name: string | undefined | null) => string;
28
+ export default class DnsRecordCheckJSON {
29
+ static toJSON(check: DnsRecordCheck): JSONObject;
30
+ static fromJSON(json: unknown): DnsRecordCheck | undefined;
31
+ static toJSONArray(checks: Array<DnsRecordCheck>): JSONArray;
32
+ static fromJSONArray(json: unknown): Array<DnsRecordCheck>;
33
+ private static readStrings;
34
+ }
@@ -0,0 +1,34 @@
1
+ import { JSONArray, JSONObject } from "../JSON";
2
+ export declare enum DnsRecordType {
3
+ CNAME = "CNAME",
4
+ TXT = "TXT"
5
+ }
6
+ export declare enum DnsRecordCheckOutcome {
7
+ Found = "Found",
8
+ WrongValue = "WrongValue",
9
+ NotFound = "NotFound",
10
+ NameNotFound = "NameNotFound",
11
+ LookupFailed = "LookupFailed",
12
+ NotCheckedYet = "NotCheckedYet"
13
+ }
14
+ export interface DnsRecordCheck {
15
+ type: DnsRecordType;
16
+ name: string;
17
+ expectedValue: string;
18
+ foundValues: Array<string>;
19
+ outcome: DnsRecordCheckOutcome;
20
+ addresses?: Array<string> | undefined;
21
+ reachedOneUptime?: boolean | undefined;
22
+ httpStatus?: number | undefined;
23
+ lookupError?: string | undefined;
24
+ checkedAt?: Date | undefined;
25
+ }
26
+ export declare const isDnsRecordFound: (check: DnsRecordCheck) => boolean;
27
+ export declare const normalizeDnsName: (name: string | undefined | null) => string;
28
+ export default class DnsRecordCheckJSON {
29
+ static toJSON(check: DnsRecordCheck): JSONObject;
30
+ static fromJSON(json: unknown): DnsRecordCheck | undefined;
31
+ static toJSONArray(checks: Array<DnsRecordCheck>): JSONArray;
32
+ static fromJSONArray(json: unknown): Array<DnsRecordCheck>;
33
+ private static readStrings;
34
+ }
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizeDnsName = exports.isDnsRecordFound = exports.DnsRecordCheckOutcome = exports.DnsRecordType = void 0;
4
+ /*
5
+ * WHAT ONE DNS RECORD CHECK LOOKED UP, AND WHAT CAME BACK.
6
+ *
7
+ * A custom domain needs two records: a TXT record on the project's domain
8
+ * (example.com), which proves the project owns it, and a CNAME record on the
9
+ * custom domain itself (status.example.com), which points it at this
10
+ * installation. A check that failed used to say only "CNAME is not
11
+ * verified", so nobody could tell whether OneUptime saw no record, the wrong
12
+ * record, or no answer at all (#1521, #1664). Every check now answers with
13
+ * this: the record it looked for, at which name, with which value, and what
14
+ * it found there.
15
+ *
16
+ * Small on purpose, and free of React and of the server: the Dashboard's
17
+ * DNS Setup draws it record by record (each with its own status), the
18
+ * server's messages say it in English (DnsRecordCheckWords), and an
19
+ * installation health check (#6826) can print it.
20
+ */
21
+ var DnsRecordType;
22
+ (function (DnsRecordType) {
23
+ DnsRecordType["CNAME"] = "CNAME";
24
+ DnsRecordType["TXT"] = "TXT";
25
+ })(DnsRecordType || (exports.DnsRecordType = DnsRecordType = {}));
26
+ var DnsRecordCheckOutcome;
27
+ (function (DnsRecordCheckOutcome) {
28
+ // The record is there, with the value OneUptime looks for.
29
+ DnsRecordCheckOutcome["Found"] = "Found";
30
+ // A record of this type is there, but with another value.
31
+ DnsRecordCheckOutcome["WrongValue"] = "WrongValue";
32
+ // The name exists, but has no record of this type.
33
+ DnsRecordCheckOutcome["NotFound"] = "NotFound";
34
+ // The name does not exist in DNS at all (NXDOMAIN).
35
+ DnsRecordCheckOutcome["NameNotFound"] = "NameNotFound";
36
+ // The lookup got no answer: a timeout, or a DNS server that failed.
37
+ DnsRecordCheckOutcome["LookupFailed"] = "LookupFailed";
38
+ /*
39
+ * Not looked up yet: the CNAME of a custom domain is checked once the TXT
40
+ * of its project domain is found, because the custom domain cannot be
41
+ * added before that.
42
+ */
43
+ DnsRecordCheckOutcome["NotCheckedYet"] = "NotCheckedYet";
44
+ })(DnsRecordCheckOutcome || (exports.DnsRecordCheckOutcome = DnsRecordCheckOutcome = {}));
45
+ // Whether the record is in place: the one thing a caller decides on.
46
+ const isDnsRecordFound = (check) => {
47
+ return check.outcome === DnsRecordCheckOutcome.Found;
48
+ };
49
+ exports.isDnsRecordFound = isDnsRecordFound;
50
+ /*
51
+ * DNS names are compared without case and without the root's trailing dot:
52
+ * a CNAME typed as "statuspage.oneuptime.com." at a DNS provider is the same
53
+ * target as "statuspage.oneuptime.com".
54
+ */
55
+ const normalizeDnsName = (name) => {
56
+ let normalized = (name || "").trim().toLowerCase();
57
+ while (normalized.endsWith(".")) {
58
+ normalized = normalized.substring(0, normalized.length - 1);
59
+ }
60
+ return normalized;
61
+ };
62
+ exports.normalizeDnsName = normalizeDnsName;
63
+ const OUTCOMES = Object.values(DnsRecordCheckOutcome);
64
+ const TYPES = Object.values(DnsRecordType);
65
+ class DnsRecordCheckJSON {
66
+ static toJSON(check) {
67
+ const json = {
68
+ type: check.type,
69
+ name: check.name,
70
+ expectedValue: check.expectedValue,
71
+ foundValues: [...check.foundValues],
72
+ outcome: check.outcome,
73
+ };
74
+ if (check.addresses && check.addresses.length > 0) {
75
+ json["addresses"] = [...check.addresses];
76
+ }
77
+ if (check.reachedOneUptime !== undefined) {
78
+ json["reachedOneUptime"] = check.reachedOneUptime;
79
+ }
80
+ if (check.httpStatus !== undefined) {
81
+ json["httpStatus"] = check.httpStatus;
82
+ }
83
+ if (check.lookupError) {
84
+ json["lookupError"] = check.lookupError;
85
+ }
86
+ if (check.checkedAt) {
87
+ json["checkedAt"] = check.checkedAt.toISOString();
88
+ }
89
+ return json;
90
+ }
91
+ /*
92
+ * Reads one check. Anything that is not a check - no known type or
93
+ * outcome, no name - reads as undefined rather than as a guess: a record
94
+ * OneUptime cannot say anything true about is not drawn.
95
+ */
96
+ static fromJSON(json) {
97
+ if (!json || typeof json !== "object" || Array.isArray(json)) {
98
+ return undefined;
99
+ }
100
+ const item = json;
101
+ const type = item["type"];
102
+ const outcome = item["outcome"];
103
+ const name = item["name"];
104
+ if (typeof type !== "string" ||
105
+ !TYPES.includes(type) ||
106
+ typeof outcome !== "string" ||
107
+ !OUTCOMES.includes(outcome) ||
108
+ typeof name !== "string" ||
109
+ !name) {
110
+ return undefined;
111
+ }
112
+ const check = {
113
+ type: type,
114
+ name: name,
115
+ expectedValue: typeof item["expectedValue"] === "string"
116
+ ? item["expectedValue"]
117
+ : "",
118
+ foundValues: DnsRecordCheckJSON.readStrings(item["foundValues"]),
119
+ outcome: outcome,
120
+ };
121
+ const addresses = DnsRecordCheckJSON.readStrings(item["addresses"]);
122
+ if (addresses.length > 0) {
123
+ check.addresses = addresses;
124
+ }
125
+ if (typeof item["reachedOneUptime"] === "boolean") {
126
+ check.reachedOneUptime = item["reachedOneUptime"];
127
+ }
128
+ if (typeof item["httpStatus"] === "number" &&
129
+ Number.isFinite(item["httpStatus"])) {
130
+ check.httpStatus = item["httpStatus"];
131
+ }
132
+ if (typeof item["lookupError"] === "string" && item["lookupError"]) {
133
+ check.lookupError = item["lookupError"];
134
+ }
135
+ const checkedAt = item["checkedAt"];
136
+ if (checkedAt instanceof Date && !isNaN(checkedAt.getTime())) {
137
+ check.checkedAt = checkedAt;
138
+ }
139
+ else if (typeof checkedAt === "string" && checkedAt) {
140
+ const date = new Date(checkedAt);
141
+ if (!isNaN(date.getTime())) {
142
+ check.checkedAt = date;
143
+ }
144
+ }
145
+ return check;
146
+ }
147
+ static toJSONArray(checks) {
148
+ return checks.map((check) => {
149
+ return DnsRecordCheckJSON.toJSON(check);
150
+ });
151
+ }
152
+ // Reads a list of checks, leaving out what is not one.
153
+ static fromJSONArray(json) {
154
+ if (!Array.isArray(json)) {
155
+ return [];
156
+ }
157
+ const checks = [];
158
+ for (const entry of json) {
159
+ const check = DnsRecordCheckJSON.fromJSON(entry);
160
+ if (check) {
161
+ checks.push(check);
162
+ }
163
+ }
164
+ return checks;
165
+ }
166
+ static readStrings(value) {
167
+ if (!Array.isArray(value)) {
168
+ return [];
169
+ }
170
+ return value.filter((entry) => {
171
+ return typeof entry === "string";
172
+ });
173
+ }
174
+ }
175
+ exports.default = DnsRecordCheckJSON;
@@ -0,0 +1,6 @@
1
+ import commonJsModule from "./DnsRecordCheck.js";
2
+ export default commonJsModule.default;
3
+ export const DnsRecordCheckOutcome = commonJsModule.DnsRecordCheckOutcome;
4
+ export const DnsRecordType = commonJsModule.DnsRecordType;
5
+ export const isDnsRecordFound = commonJsModule.isDnsRecordFound;
6
+ export const normalizeDnsName = commonJsModule.normalizeDnsName;
@@ -0,0 +1,35 @@
1
+ import { DnsRecordCheck, DnsRecordCheckOutcome } from "./DnsRecordCheck.mjs";
2
+ export interface DnsRecordCheckSentence {
3
+ template: string;
4
+ values: Record<string, string>;
5
+ }
6
+ export interface DnsRecordCheckDescription {
7
+ lookedUp: DnsRecordCheckSentence;
8
+ whatToDo?: DnsRecordCheckSentence | undefined;
9
+ warning?: DnsRecordCheckSentence | undefined;
10
+ }
11
+ export declare const DNS_RECORD_STATUS: Record<DnsRecordCheckOutcome, string>;
12
+ export declare const DnsRecordCheckWords: {
13
+ cnameFound: string;
14
+ cnameReachesOneUptime: string;
15
+ txtFound: string;
16
+ cnameNotFound: string;
17
+ cnameNotFoundWithAddresses: string;
18
+ txtNotFound: string;
19
+ cnameWrongValue: string;
20
+ txtWrongValue: string;
21
+ nameNotFound: string;
22
+ lookupFailed: string;
23
+ notCheckedYet: string;
24
+ addCname: string;
25
+ addCnameInsteadOfAddress: string;
26
+ addTxt: string;
27
+ changeCname: string;
28
+ addAnotherTxt: string;
29
+ txtNameNotFound: string;
30
+ tryAgain: string;
31
+ notReachedWithStatus: string;
32
+ notReachedNoAnswer: string;
33
+ };
34
+ export declare const describeDnsRecordCheck: (check: DnsRecordCheck) => DnsRecordCheckDescription;
35
+ export declare const describeDnsRecordCheckInEnglish: (check: DnsRecordCheck) => string;
@@ -0,0 +1,35 @@
1
+ import { DnsRecordCheck, DnsRecordCheckOutcome } from "./DnsRecordCheck";
2
+ export interface DnsRecordCheckSentence {
3
+ template: string;
4
+ values: Record<string, string>;
5
+ }
6
+ export interface DnsRecordCheckDescription {
7
+ lookedUp: DnsRecordCheckSentence;
8
+ whatToDo?: DnsRecordCheckSentence | undefined;
9
+ warning?: DnsRecordCheckSentence | undefined;
10
+ }
11
+ export declare const DNS_RECORD_STATUS: Record<DnsRecordCheckOutcome, string>;
12
+ export declare const DnsRecordCheckWords: {
13
+ cnameFound: string;
14
+ cnameReachesOneUptime: string;
15
+ txtFound: string;
16
+ cnameNotFound: string;
17
+ cnameNotFoundWithAddresses: string;
18
+ txtNotFound: string;
19
+ cnameWrongValue: string;
20
+ txtWrongValue: string;
21
+ nameNotFound: string;
22
+ lookupFailed: string;
23
+ notCheckedYet: string;
24
+ addCname: string;
25
+ addCnameInsteadOfAddress: string;
26
+ addTxt: string;
27
+ changeCname: string;
28
+ addAnotherTxt: string;
29
+ txtNameNotFound: string;
30
+ tryAgain: string;
31
+ notReachedWithStatus: string;
32
+ notReachedNoAnswer: string;
33
+ };
34
+ export declare const describeDnsRecordCheck: (check: DnsRecordCheck) => DnsRecordCheckDescription;
35
+ export declare const describeDnsRecordCheckInEnglish: (check: DnsRecordCheck) => string;