@oneuptime/common 14.0.109 → 14.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (578) hide show
  1. package/Models/AnalyticsModels/SecurityEvent.js +1 -1
  2. package/Models/DatabaseModels/AIInsight.js +2 -2
  3. package/Models/DatabaseModels/AIRunRecording.d.mts +12 -0
  4. package/Models/DatabaseModels/AIRunRecording.d.ts +12 -0
  5. package/Models/DatabaseModels/AIRunRecording.js +181 -0
  6. package/Models/DatabaseModels/AIRunRecording.mjs +2 -0
  7. package/Models/DatabaseModels/Alert.js +20 -4
  8. package/Models/DatabaseModels/AlertEpisode.js +2 -2
  9. package/Models/DatabaseModels/AlertEpisodeOnCallRule.js +3 -3
  10. package/Models/DatabaseModels/AlertGroupingRule.d.mts +1 -0
  11. package/Models/DatabaseModels/AlertGroupingRule.d.ts +1 -0
  12. package/Models/DatabaseModels/AlertGroupingRule.js +48 -2
  13. package/Models/DatabaseModels/AlertOnCallRule.js +3 -3
  14. package/Models/DatabaseModels/AlertSeverity.js +13 -4
  15. package/Models/DatabaseModels/AlertState.js +1 -1
  16. package/Models/DatabaseModels/CallLog.js +12 -12
  17. package/Models/DatabaseModels/DataStore.js +9 -0
  18. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
  19. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
  20. package/Models/DatabaseModels/EmailLog.js +14 -14
  21. package/Models/DatabaseModels/Form.js +3 -3
  22. package/Models/DatabaseModels/FormSubmission.js +6 -6
  23. package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
  24. package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
  25. package/Models/DatabaseModels/GlobalConfig.js +74 -45
  26. package/Models/DatabaseModels/Incident.js +20 -4
  27. package/Models/DatabaseModels/IncidentEpisode.js +2 -2
  28. package/Models/DatabaseModels/IncidentEpisodeOnCallRule.js +3 -3
  29. package/Models/DatabaseModels/IncidentGroupingRule.d.mts +1 -0
  30. package/Models/DatabaseModels/IncidentGroupingRule.d.ts +1 -0
  31. package/Models/DatabaseModels/IncidentGroupingRule.js +48 -2
  32. package/Models/DatabaseModels/IncidentOnCallRule.js +3 -3
  33. package/Models/DatabaseModels/IncidentSeverity.js +13 -4
  34. package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
  35. package/Models/DatabaseModels/IncidentState.js +1 -1
  36. package/Models/DatabaseModels/IncidentTemplate.js +2 -2
  37. package/Models/DatabaseModels/Index.js +4 -0
  38. package/Models/DatabaseModels/InventoryItem.js +11 -0
  39. package/Models/DatabaseModels/Monitor.js +54 -20
  40. package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
  41. package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
  42. package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
  43. package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
  44. package/Models/DatabaseModels/MonitorProbe.js +22 -5
  45. package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
  46. package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
  47. package/Models/DatabaseModels/NetworkDevice.js +64 -7
  48. package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
  49. package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
  50. package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
  51. package/Models/DatabaseModels/NetworkInterface.js +5 -5
  52. package/Models/DatabaseModels/OnCallDutyPolicy.js +4 -2
  53. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
  54. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +8 -5
  55. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +5 -2
  56. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +5 -2
  57. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +28 -11
  58. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
  59. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
  60. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
  61. package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +16 -11
  62. package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +7 -4
  63. package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +7 -4
  64. package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +6 -3
  65. package/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js +4 -4
  66. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +3 -3
  67. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +6 -6
  68. package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +9 -6
  69. package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
  70. package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
  71. package/Models/DatabaseModels/Project.d.mts +3 -0
  72. package/Models/DatabaseModels/Project.d.ts +3 -0
  73. package/Models/DatabaseModels/Project.js +142 -5
  74. package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
  75. package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
  76. package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
  77. package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
  78. package/Models/DatabaseModels/ProxmoxCluster.js +52 -3
  79. package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
  80. package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
  81. package/Models/DatabaseModels/PushNotificationLog.js +12 -12
  82. package/Models/DatabaseModels/Reseller.js +8 -2
  83. package/Models/DatabaseModels/ResellerPlan.js +8 -2
  84. package/Models/DatabaseModels/RunbookExecution.js +2 -2
  85. package/Models/DatabaseModels/RunbookRule.js +6 -6
  86. package/Models/DatabaseModels/ScheduledMaintenance.js +9 -6
  87. package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
  88. package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
  89. package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
  90. package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
  91. package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +3 -3
  92. package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
  93. package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
  94. package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
  95. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +10 -7
  96. package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
  97. package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +4 -4
  98. package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
  99. package/Models/DatabaseModels/Service.js +1 -1
  100. package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +4 -4
  101. package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +4 -4
  102. package/Models/DatabaseModels/SmsLog.js +12 -12
  103. package/Models/DatabaseModels/StatusPage.js +5 -5
  104. package/Models/DatabaseModels/StatusPageSubscriber.js +2 -2
  105. package/Models/DatabaseModels/TeamMember.js +10 -1
  106. package/Models/DatabaseModels/TelegramLog.js +12 -12
  107. package/Models/DatabaseModels/TelemetryIngestionKey.js +8 -5
  108. package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +7 -4
  109. package/Models/DatabaseModels/User.d.mts +4 -0
  110. package/Models/DatabaseModels/User.d.ts +4 -0
  111. package/Models/DatabaseModels/User.js +100 -0
  112. package/Models/DatabaseModels/UserOnCallLog.js +6 -6
  113. package/Models/DatabaseModels/UserOnCallLogTimeline.js +3 -3
  114. package/Models/DatabaseModels/UserOnCallShiftReminderLog.js +2 -2
  115. package/Models/DatabaseModels/WebhookLog.js +12 -12
  116. package/Models/DatabaseModels/WhatsAppLog.js +12 -12
  117. package/Models/DatabaseModels/WorkspaceNotificationLog.js +12 -12
  118. package/Models/DatabaseModels/WorkspaceNotificationRule.js +36 -1
  119. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  120. package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
  121. package/Server/Services/DatabaseService.d.mts +4 -1
  122. package/Server/Services/DatabaseService.d.ts +4 -1
  123. package/Server/Types/Database/CountBy.d.mts +1 -0
  124. package/Server/Types/Database/CountBy.d.ts +1 -0
  125. package/Server/Types/Database/UpdateLimit.d.mts +6 -0
  126. package/Server/Types/Database/UpdateLimit.d.ts +6 -0
  127. package/Types/AI/AIActionWords.d.mts +25 -1
  128. package/Types/AI/AIActionWords.d.ts +25 -1
  129. package/Types/AI/AIActionWords.js +166 -3
  130. package/Types/AI/AIActionWords.mjs +6 -0
  131. package/Types/AI/AIChatTypes.d.mts +4 -2
  132. package/Types/AI/AIChatTypes.d.ts +4 -2
  133. package/Types/AI/AIChatTypes.js +5 -0
  134. package/Types/AI/AiOutcomes.d.mts +57 -0
  135. package/Types/AI/AiOutcomes.d.ts +57 -0
  136. package/Types/AI/AiOutcomes.js +67 -0
  137. package/Types/AI/AiOutcomes.mjs +10 -0
  138. package/Types/AI/AiRunRefusal.d.mts +45 -0
  139. package/Types/AI/AiRunRefusal.d.ts +45 -0
  140. package/Types/AI/AiRunRefusal.js +187 -0
  141. package/Types/AI/AiRunRefusal.mjs +12 -0
  142. package/Types/AI/InvestigationRecording.d.mts +46 -0
  143. package/Types/AI/InvestigationRecording.d.ts +46 -0
  144. package/Types/AI/InvestigationRecording.js +42 -0
  145. package/Types/AI/InvestigationRecording.mjs +7 -0
  146. package/Types/API/HTTPResponse.d.mts +3 -0
  147. package/Types/API/HTTPResponse.d.ts +3 -0
  148. package/Types/API/HTTPResponse.js +15 -0
  149. package/Types/Analytics/ProductEvent.d.mts +6 -1
  150. package/Types/Analytics/ProductEvent.d.ts +6 -1
  151. package/Types/Analytics/ProductEvent.js +41 -0
  152. package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
  153. package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
  154. package/Types/AuditLog/AuditLogCoverage.js +4 -2
  155. package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
  156. package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
  157. package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -1
  158. package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -1
  159. package/Types/BaseDatabase/AggregationIntervalUtil.js +92 -2
  160. package/Types/BaseDatabase/ListResult.d.mts +1 -0
  161. package/Types/BaseDatabase/ListResult.d.ts +1 -0
  162. package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
  163. package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
  164. package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
  165. package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
  166. package/Types/Cloud/CloudResourceCatalog.d.mts +2 -0
  167. package/Types/Cloud/CloudResourceCatalog.d.ts +2 -0
  168. package/Types/Cloud/CloudResourceCatalog.js +33 -3
  169. package/Types/Cloud/CloudResourceCatalog.mjs +1 -0
  170. package/Types/Dashboard/DashboardAutoRefresh.d.mts +1 -0
  171. package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
  172. package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
  173. package/Types/Dashboard/DashboardAutoRefresh.mjs +1 -0
  174. package/Types/DataObservability/DataCheckSuggestions.d.mts +25 -0
  175. package/Types/DataObservability/DataCheckSuggestions.d.ts +25 -0
  176. package/Types/DataObservability/DataCheckSuggestions.js +102 -65
  177. package/Types/DataObservability/DataCheckSuggestions.mjs +1 -0
  178. package/Types/Database/TableMetadata.d.mts +2 -0
  179. package/Types/Database/TableMetadata.d.ts +2 -0
  180. package/Types/Database/TableMetadata.js +6 -0
  181. package/Types/Date.d.mts +26 -2
  182. package/Types/Date.d.ts +26 -2
  183. package/Types/Date.js +81 -9
  184. package/Types/Date.mjs +1 -0
  185. package/Types/DateLanguage.d.mts +2 -0
  186. package/Types/DateLanguage.d.ts +2 -0
  187. package/Types/DateLanguage.js +44 -2
  188. package/Types/DateLanguage.mjs +2 -0
  189. package/Types/DirectionArrow.d.mts +7 -0
  190. package/Types/DirectionArrow.d.ts +7 -0
  191. package/Types/DirectionArrow.js +88 -0
  192. package/Types/DirectionArrow.mjs +7 -0
  193. package/Types/Docs/GlossaryTerm.d.mts +1 -0
  194. package/Types/Docs/GlossaryTerm.d.ts +1 -0
  195. package/Types/Docs/GlossaryTerm.js +2 -0
  196. package/Types/Docs/RetiredNames.d.mts +11 -0
  197. package/Types/Docs/RetiredNames.d.ts +11 -0
  198. package/Types/Docs/RetiredNames.js +139 -0
  199. package/Types/Docs/RetiredNames.mjs +3 -0
  200. package/Types/Email/ServerEmailEnvironment.d.mts +85 -0
  201. package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
  202. package/Types/Email/ServerEmailEnvironment.js +793 -0
  203. package/Types/Email/ServerEmailEnvironment.mjs +14 -0
  204. package/Types/Exception/AiRunRefusalException.d.mts +6 -0
  205. package/Types/Exception/AiRunRefusalException.d.ts +6 -0
  206. package/Types/Exception/AiRunRefusalException.js +23 -0
  207. package/Types/Exception/AiRunRefusalException.mjs +2 -0
  208. package/Types/Exception/RefusalWithValues.d.mts +7 -0
  209. package/Types/Exception/RefusalWithValues.d.ts +7 -0
  210. package/Types/Exception/RefusalWithValues.js +76 -0
  211. package/Types/Exception/RefusalWithValues.mjs +3 -0
  212. package/Types/Exception/UnexplainedError.d.mts +13 -0
  213. package/Types/Exception/UnexplainedError.d.ts +13 -0
  214. package/Types/Exception/UnexplainedError.js +53 -1
  215. package/Types/Exception/UnexplainedError.mjs +1 -0
  216. package/Types/File/FileSize.d.mts +4 -1
  217. package/Types/File/FileSize.d.ts +4 -1
  218. package/Types/File/FileSize.js +18 -17
  219. package/Types/Form/FormTargetCatalog.js +2 -2
  220. package/Types/Form/FormTargetType.js +2 -2
  221. package/Types/HostCollector/HostCollector.d.mts +1 -0
  222. package/Types/HostCollector/HostCollector.d.ts +1 -0
  223. package/Types/HostCollector/HostCollector.js +26 -10
  224. package/Types/HostCollector/HostCollector.mjs +1 -0
  225. package/Types/ListData.d.mts +2 -0
  226. package/Types/ListData.d.ts +2 -0
  227. package/Types/ListData.js +4 -0
  228. package/Types/Monitor/MonitorCriteria.js +2 -2
  229. package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
  230. package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
  231. package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
  232. package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
  233. package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
  234. package/Types/Monitor/MonitorStep.js +1 -1
  235. package/Types/Monitor/MonitorTemplateSyncField.d.mts +6 -0
  236. package/Types/Monitor/MonitorTemplateSyncField.d.ts +6 -0
  237. package/Types/Monitor/MonitorTemplateSyncField.js +106 -64
  238. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.mts +1 -0
  239. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.ts +1 -0
  240. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.js +11 -3
  241. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +6 -0
  242. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
  243. package/Types/Monitor/UptimeHistoryLabels.js +2 -2
  244. package/Types/Monitor/WhoIsTold.d.mts +3 -1
  245. package/Types/Monitor/WhoIsTold.d.ts +3 -1
  246. package/Types/Monitor/WhoIsTold.js +2 -1
  247. package/Types/NotificationRule/PagingLadder.d.mts +137 -0
  248. package/Types/NotificationRule/PagingLadder.d.ts +137 -0
  249. package/Types/NotificationRule/PagingLadder.js +682 -0
  250. package/Types/NotificationRule/PagingLadder.mjs +28 -0
  251. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +1 -1
  252. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.mts +1 -0
  253. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
  254. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
  255. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
  256. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
  257. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
  258. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
  259. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -0
  260. package/Types/OnCallDutyPolicy/OnCallPageLine.d.mts +26 -0
  261. package/Types/OnCallDutyPolicy/OnCallPageLine.d.ts +26 -0
  262. package/Types/OnCallDutyPolicy/OnCallPageLine.js +136 -0
  263. package/Types/OnCallDutyPolicy/OnCallPageLine.mjs +18 -0
  264. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
  265. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
  266. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
  267. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
  268. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
  269. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
  270. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +44 -0
  271. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +44 -0
  272. package/Types/OnCallDutyPolicy/OnCallTestPage.js +96 -5
  273. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
  274. package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.mts +19 -0
  275. package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.ts +19 -0
  276. package/Types/OnCallDutyPolicy/OnCallTestPageLine.js +222 -0
  277. package/Types/OnCallDutyPolicy/OnCallTestPageLine.mjs +6 -0
  278. package/Types/OnCallDutyPolicy/ScheduleLayerDefaults.js +5 -2
  279. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
  280. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
  281. package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
  282. package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
  283. package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
  284. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
  285. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
  286. package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
  287. package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
  288. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
  289. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
  290. package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
  291. package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
  292. package/Types/Permission.d.mts +2 -2
  293. package/Types/Permission.d.ts +2 -2
  294. package/Types/Permission.js +196 -195
  295. package/Types/Probe/ProbeCapability.d.mts +2 -1
  296. package/Types/Probe/ProbeCapability.d.ts +2 -1
  297. package/Types/Probe/ProbeCapability.js +10 -0
  298. package/Types/Product/ProductCatalog.d.mts +10 -0
  299. package/Types/Product/ProductCatalog.d.ts +10 -0
  300. package/Types/Product/ProductCatalog.js +208 -0
  301. package/Types/Product/ProductCatalog.mjs +6 -0
  302. package/Types/Product/ProductOfTable.d.mts +3 -0
  303. package/Types/Product/ProductOfTable.d.ts +3 -0
  304. package/Types/Product/ProductOfTable.js +68 -0
  305. package/Types/Product/ProductOfTable.mjs +3 -0
  306. package/Types/Product/ProjectProductsAnswer.d.mts +3 -0
  307. package/Types/Product/ProjectProductsAnswer.d.ts +3 -0
  308. package/Types/Product/ProjectProductsAnswer.js +35 -2
  309. package/Types/Product/ProjectProductsAnswer.mjs +1 -0
  310. package/Types/Product/ServerProducts.d.mts +65 -0
  311. package/Types/Product/ServerProducts.d.ts +65 -0
  312. package/Types/Product/ServerProducts.js +383 -0
  313. package/Types/Product/ServerProducts.mjs +26 -0
  314. package/Types/Product/ServerProductsAnswer.d.mts +21 -0
  315. package/Types/Product/ServerProductsAnswer.d.ts +21 -0
  316. package/Types/Product/ServerProductsAnswer.js +78 -0
  317. package/Types/Product/ServerProductsAnswer.mjs +5 -0
  318. package/Types/ProductFeedback/ProductFeedback.d.mts +3 -1
  319. package/Types/ProductFeedback/ProductFeedback.d.ts +3 -1
  320. package/Types/ProductFeedback/ProductFeedback.js +8 -0
  321. package/Types/ReaderLanguage.d.mts +1 -0
  322. package/Types/ReaderLanguage.d.ts +1 -0
  323. package/Types/ReaderLanguage.js +13 -1
  324. package/Types/ReaderLanguage.mjs +1 -0
  325. package/Types/Rules/RuleRun.js +2 -2
  326. package/Types/Rum/SessionReplayCustomEvents.d.mts +1 -0
  327. package/Types/Rum/SessionReplayCustomEvents.d.ts +1 -0
  328. package/Types/SampleProject/SampleProject.d.mts +54 -0
  329. package/Types/SampleProject/SampleProject.d.ts +54 -0
  330. package/Types/SampleProject/SampleProject.js +177 -0
  331. package/Types/SampleProject/SampleProject.mjs +22 -0
  332. package/Types/SampleProject/SampleProjectContent.d.mts +127 -0
  333. package/Types/SampleProject/SampleProjectContent.d.ts +127 -0
  334. package/Types/SampleProject/SampleProjectContent.js +397 -0
  335. package/Types/SampleProject/SampleProjectContent.mjs +18 -0
  336. package/Types/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
  337. package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
  338. package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
  339. package/Types/ServerSending/ServerSendingStatus.js +49 -2
  340. package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
  341. package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
  342. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
  343. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
  344. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
  345. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
  346. package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
  347. package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
  348. package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
  349. package/Types/Telemetry/CompatibleIngest.js +123 -0
  350. package/Types/Telemetry/CompatibleIngest.mjs +21 -0
  351. package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
  352. package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
  353. package/Types/Telemetry/TelemetryIngestSurface.js +54 -12
  354. package/Types/TimezoneAlias.d.mts +1 -0
  355. package/Types/TimezoneAlias.d.ts +1 -0
  356. package/Types/TimezoneAlias.js +13 -0
  357. package/Types/Translator.d.mts +1 -0
  358. package/Types/Translator.d.ts +1 -0
  359. package/Types/Translator.js +414 -50
  360. package/Types/Translator.mjs +1 -0
  361. package/Types/UsedBy/UsedBy.d.mts +103 -0
  362. package/Types/UsedBy/UsedBy.d.ts +103 -0
  363. package/Types/UsedBy/UsedBy.js +389 -0
  364. package/Types/UsedBy/UsedBy.mjs +20 -0
  365. package/Types/UsedBy/UsedByServerProducts.d.mts +4 -0
  366. package/Types/UsedBy/UsedByServerProducts.d.ts +4 -0
  367. package/Types/UsedBy/UsedByServerProducts.js +48 -0
  368. package/Types/UsedBy/UsedByServerProducts.mjs +3 -0
  369. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +6 -0
  370. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +6 -0
  371. package/Types/WelcomeChecklist/WelcomeChecklist.js +54 -2
  372. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
  373. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +1 -0
  374. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +1 -0
  375. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +3 -0
  376. package/Types/Workflow/PassedOnFields.js +2 -1
  377. package/Types/Workflow/RunRecord.js +1 -1
  378. package/Types/Workflow/Templates.js +3 -3
  379. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
  380. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
  381. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +28 -1
  382. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +28 -1
  383. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
  384. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
  385. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
  386. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -0
  387. package/Utils/AI/MeaningMatch.d.mts +36 -0
  388. package/Utils/AI/MeaningMatch.d.ts +36 -0
  389. package/Utils/AI/MeaningMatch.js +535 -0
  390. package/Utils/AI/MeaningMatch.mjs +7 -0
  391. package/Utils/ArchivableValues.js +1 -1
  392. package/Utils/AuditLog/AuditLogValues.js +2 -2
  393. package/Utils/Dashboard/ClockWidgetFormat.d.mts +14 -2
  394. package/Utils/Dashboard/ClockWidgetFormat.d.ts +14 -2
  395. package/Utils/Dashboard/ClockWidgetFormat.js +105 -2
  396. package/Utils/Dashboard/DashboardViewConfigSignature.d.mts +3 -0
  397. package/Utils/Dashboard/DashboardViewConfigSignature.d.ts +3 -0
  398. package/Utils/Dashboard/DashboardViewConfigSignature.js +45 -0
  399. package/Utils/Dashboard/DashboardViewConfigSignature.mjs +3 -0
  400. package/Utils/Dashboard/ValueWidgetSeries.d.mts +2 -0
  401. package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
  402. package/Utils/Dashboard/ValueWidgetSeries.js +75 -0
  403. package/Utils/DataSecurity/TextScanner.js +2 -2
  404. package/Utils/DeveloperDocs/AiAssistantExamples.js +4 -4
  405. package/Utils/DeveloperDocs/CliCommands.d.mts +1 -0
  406. package/Utils/DeveloperDocs/CliCommands.d.ts +1 -0
  407. package/Utils/DeveloperDocs/CliCommands.js +2 -1
  408. package/Utils/DeveloperDocs/CliResources.js +2 -1
  409. package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
  410. package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
  411. package/Utils/DeveloperDocs/TerraformSchema.js +3 -1
  412. package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
  413. package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
  414. package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
  415. package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
  416. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
  417. package/Utils/HostAddressUtil.d.mts +1 -0
  418. package/Utils/HostAddressUtil.d.ts +1 -0
  419. package/Utils/HostAddressUtil.js +30 -0
  420. package/Utils/LinearRegExp/LinearRegExp.js +5 -1
  421. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +8 -0
  422. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +8 -0
  423. package/Utils/Markdown/LinkReferenceDefinitions.js +1493 -131
  424. package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
  425. package/Utils/Markdown/MarkdownTableCell.js +2 -1
  426. package/Utils/Markdown/OverLongText.js +523 -5
  427. package/Utils/Markdown/SlowMarkdown.d.mts +14 -0
  428. package/Utils/Markdown/SlowMarkdown.d.ts +14 -0
  429. package/Utils/Markdown/SlowMarkdown.js +595 -11
  430. package/Utils/Markdown/SlowMarkdown.mjs +6 -0
  431. package/Utils/Milliseconds.d.mts +7 -0
  432. package/Utils/Milliseconds.d.ts +7 -0
  433. package/Utils/Milliseconds.js +60 -0
  434. package/Utils/Milliseconds.mjs +4 -0
  435. package/Utils/ModelApiName.d.mts +11 -0
  436. package/Utils/ModelApiName.d.ts +11 -0
  437. package/Utils/ModelApiName.js +72 -0
  438. package/Utils/ModelApiName.mjs +5 -0
  439. package/Utils/Monitor/DeviceMacLearningUtil.d.mts +2 -1
  440. package/Utils/Monitor/DeviceMacLearningUtil.d.ts +2 -1
  441. package/Utils/Monitor/DeviceMacLearningUtil.js +26 -0
  442. package/Utils/Monitor/EndpointAttachmentUtil.d.mts +8 -0
  443. package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
  444. package/Utils/Monitor/EndpointAttachmentUtil.js +97 -22
  445. package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
  446. package/Utils/Monitor/ExternalStatusPageReading.d.mts +3 -0
  447. package/Utils/Monitor/ExternalStatusPageReading.d.ts +3 -0
  448. package/Utils/Monitor/ExternalStatusPageReading.js +35 -1
  449. package/Utils/Monitor/ExternalStatusPageReading.mjs +2 -0
  450. package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
  451. package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
  452. package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
  453. package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
  454. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
  455. package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
  456. package/Utils/Monitor/MonitorRootCauseWording.d.mts +2 -0
  457. package/Utils/Monitor/MonitorRootCauseWording.d.ts +2 -0
  458. package/Utils/Monitor/MonitorRootCauseWording.js +58 -4
  459. package/Utils/Monitor/MonitorTemplateLinkRefusal.d.mts +9 -0
  460. package/Utils/Monitor/MonitorTemplateLinkRefusal.d.ts +9 -0
  461. package/Utils/Monitor/MonitorTemplateLinkRefusal.js +45 -0
  462. package/Utils/Monitor/MonitorTemplateLinkRefusal.mjs +6 -0
  463. package/Utils/Monitor/MonitoringOff.d.mts +2 -0
  464. package/Utils/Monitor/MonitoringOff.d.ts +2 -0
  465. package/Utils/Monitor/MonitoringOff.js +21 -0
  466. package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
  467. package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
  468. package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
  469. package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
  470. package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
  471. package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
  472. package/Utils/Monitor/ProbeFailureReading.d.mts +14 -0
  473. package/Utils/Monitor/ProbeFailureReading.d.ts +14 -0
  474. package/Utils/Monitor/ProbeFailureReading.js +137 -0
  475. package/Utils/Monitor/ProbeFailureReading.mjs +7 -0
  476. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
  477. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
  478. package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
  479. package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -0
  480. package/Utils/OpenStack/OpenStackCheckName.js +2 -1
  481. package/Utils/OpenStack/OpenStackLogScrub.js +1 -1
  482. package/Utils/OpenStack/OpenStackLogs.js +3 -2
  483. package/Utils/OpenStack/OpenStackTraces.js +2 -1
  484. package/Utils/Project/NextNumber.js +1 -1
  485. package/Utils/Project/NotificationChannels.js +5 -5
  486. package/Utils/Project/ProjectBalance.js +2 -2
  487. package/Utils/Project/TwilioAccount.js +2 -2
  488. package/Utils/PromQL/PromQLAst.d.mts +159 -0
  489. package/Utils/PromQL/PromQLAst.d.ts +159 -0
  490. package/Utils/PromQL/PromQLAst.js +118 -0
  491. package/Utils/PromQL/PromQLAst.mjs +12 -0
  492. package/Utils/PromQL/PromQLDuration.d.mts +2 -0
  493. package/Utils/PromQL/PromQLDuration.d.ts +2 -0
  494. package/Utils/PromQL/PromQLDuration.js +78 -0
  495. package/Utils/PromQL/PromQLDuration.mjs +3 -0
  496. package/Utils/PromQL/PromQLEngine.d.mts +15 -0
  497. package/Utils/PromQL/PromQLEngine.d.ts +15 -0
  498. package/Utils/PromQL/PromQLEngine.js +965 -0
  499. package/Utils/PromQL/PromQLEngine.mjs +7 -0
  500. package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
  501. package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
  502. package/Utils/PromQL/PromQLEngineTypes.js +10 -0
  503. package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
  504. package/Utils/PromQL/PromQLError.d.mts +11 -0
  505. package/Utils/PromQL/PromQLError.d.ts +11 -0
  506. package/Utils/PromQL/PromQLError.js +27 -0
  507. package/Utils/PromQL/PromQLError.mjs +3 -0
  508. package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
  509. package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
  510. package/Utils/PromQL/PromQLFunctionEvaluators.js +773 -0
  511. package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
  512. package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
  513. package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
  514. package/Utils/PromQL/PromQLFunctions.js +127 -0
  515. package/Utils/PromQL/PromQLFunctions.mjs +4 -0
  516. package/Utils/PromQL/PromQLLabels.d.mts +11 -0
  517. package/Utils/PromQL/PromQLLabels.d.ts +11 -0
  518. package/Utils/PromQL/PromQLLabels.js +218 -0
  519. package/Utils/PromQL/PromQLLabels.mjs +9 -0
  520. package/Utils/PromQL/PromQLLexer.d.mts +39 -0
  521. package/Utils/PromQL/PromQLLexer.d.ts +39 -0
  522. package/Utils/PromQL/PromQLLexer.js +391 -0
  523. package/Utils/PromQL/PromQLLexer.mjs +3 -0
  524. package/Utils/PromQL/PromQLMath.d.mts +19 -0
  525. package/Utils/PromQL/PromQLMath.d.ts +19 -0
  526. package/Utils/PromQL/PromQLMath.js +200 -0
  527. package/Utils/PromQL/PromQLMath.mjs +9 -0
  528. package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
  529. package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
  530. package/Utils/PromQL/PromQLMetricNames.js +199 -0
  531. package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
  532. package/Utils/PromQL/PromQLParser.d.mts +4 -0
  533. package/Utils/PromQL/PromQLParser.d.ts +4 -0
  534. package/Utils/PromQL/PromQLParser.js +831 -0
  535. package/Utils/PromQL/PromQLParser.mjs +4 -0
  536. package/Utils/PromQL/PromQLRegex.d.mts +9 -0
  537. package/Utils/PromQL/PromQLRegex.d.ts +9 -0
  538. package/Utils/PromQL/PromQLRegex.js +74 -0
  539. package/Utils/PromQL/PromQLRegex.mjs +2 -0
  540. package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
  541. package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
  542. package/Utils/PromQL/PrometheusResponse.js +90 -0
  543. package/Utils/PromQL/PrometheusResponse.mjs +3 -0
  544. package/Utils/Rum/PathInSentence.d.mts +5 -0
  545. package/Utils/Rum/PathInSentence.d.ts +5 -0
  546. package/Utils/Rum/PathInSentence.js +46 -0
  547. package/Utils/Rum/PathInSentence.mjs +6 -0
  548. package/Utils/Rum/UrlScrubber.d.mts +4 -0
  549. package/Utils/Rum/UrlScrubber.d.ts +4 -0
  550. package/Utils/Rum/UrlScrubber.js +143 -3
  551. package/Utils/Rum/UserFlow.d.mts +1 -1
  552. package/Utils/Rum/UserFlow.d.ts +1 -1
  553. package/Utils/Rum/UserFlow.js +180 -25
  554. package/Utils/Rum/UserFlow.mjs +1 -1
  555. package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
  556. package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
  557. package/Utils/Runbook/RunbookStepsSignature.js +30 -0
  558. package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
  559. package/Utils/ScheduledMaintenanceStart.d.mts +3 -0
  560. package/Utils/ScheduledMaintenanceStart.d.ts +3 -0
  561. package/Utils/ScheduledMaintenanceStart.js +9 -0
  562. package/Utils/Schema/ModelSchema.js +10 -1
  563. package/Utils/Schema/TypeSchemas.js +6 -0
  564. package/Utils/Slo/SloDuration.d.mts +5 -2
  565. package/Utils/Slo/SloDuration.d.ts +5 -2
  566. package/Utils/Slo/SloDuration.js +11 -6
  567. package/Utils/Slo/SloHealth.js +1 -1
  568. package/Utils/StateOrder.js +1 -4
  569. package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
  570. package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
  571. package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
  572. package/Utils/Telemetry/HeartbeatAvailability.js +118 -26
  573. package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
  574. package/Utils/Uptime/UptimeMaintenanceUtil.js +2 -1
  575. package/Utils/ValueFormatter.d.mts +8 -6
  576. package/Utils/ValueFormatter.d.ts +8 -6
  577. package/Utils/ValueFormatter.js +145 -0
  578. package/package.json +1 -1
@@ -1,11 +1,14 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.DEFAULT_USER_FLOW_OPTIONS = exports.USER_FLOW_MAX_OTHER_PAGES = exports.USER_FLOW_MAX_LOOPS = exports.USER_FLOW_MAX_NEIGHBOURS = exports.USER_FLOW_MAX_PATHS = exports.USER_FLOW_MAX_PATH_LENGTH = exports.USER_FLOW_SAMPLE_SESSIONS = exports.USER_FLOW_DEFAULT_PAGES_PER_STEP = exports.USER_FLOW_MAX_PAGES_PER_STEP = exports.USER_FLOW_MIN_PAGES_PER_STEP = exports.USER_FLOW_DEFAULT_STEPS = exports.USER_FLOW_MAX_STEPS = exports.USER_FLOW_MIN_STEPS = exports.OTHER_PAGES_LABEL = exports.OTHER_PAGES_KEY = void 0;
4
7
  exports.isDynamicPathSegment = isDynamicPathSegment;
5
8
  exports.toUserFlowPageKey = toUserFlowPageKey;
6
9
  exports.spansMultipleHosts = spansMultipleHosts;
7
10
  exports.toSessionListUrlPrefix = toSessionListUrlPrefix;
8
- exports.getUserFlowPageLabel = getUserFlowPageLabel;
11
+ exports.getUserFlowPageText = getUserFlowPageText;
9
12
  exports.buildUserFlowJourneys = buildUserFlowJourneys;
10
13
  exports.buildUserFlowJourneySteps = buildUserFlowJourneySteps;
11
14
  exports.sliceJourneyForMap = sliceJourneyForMap;
@@ -17,6 +20,8 @@ exports.buildUserFlowSummary = buildUserFlowSummary;
17
20
  exports.buildUserFlowInsights = buildUserFlowInsights;
18
21
  exports.normalizeUserFlowOptions = normalizeUserFlowOptions;
19
22
  exports.analyzeUserFlow = analyzeUserFlow;
23
+ const PathInSentence_1 = require("./PathInSentence");
24
+ const UrlScrubber_1 = __importDefault(require("./UrlScrubber"));
20
25
  /*
21
26
  * The User Flows engine: recorded session journeys in, everything the page
22
27
  * draws out - the step-by-step flow map, the most common paths, per-page
@@ -32,7 +37,9 @@ exports.analyzeUserFlow = analyzeUserFlow;
32
37
  * - page: a flow-map key. The scrubbed URL without origin, query or
33
38
  * trailing slash ("/cart"), optionally with id-shaped segments grouped
34
39
  * ("/product/:id"), and with the host kept only when the application
35
- * spans more than one ("shop.example.com/cart").
40
+ * spans more than one ("shop.example.com/cart"). Escaped as the URL
41
+ * parser escapes it ("/caf%C3%A9"); getUserFlowPageText is what a
42
+ * person reads ("/café").
36
43
  * - journey: one session's pages in order, after grouping and hiding,
37
44
  * with back-to-back repeats collapsed.
38
45
  * - step: a column of the flow map. Step 0 is the session's first page,
@@ -115,15 +122,17 @@ function parsePageUrl(rawUrl) {
115
122
  const parsed = new URL(trimmed, RELATIVE_BASE);
116
123
  const isRelative = parsed.origin === RELATIVE_BASE && !trimmed.startsWith(RELATIVE_BASE);
117
124
  /*
118
- * A hash router keeps its route in the fragment ("/#/orders"). The
119
- * recorder stores such URLs with the fragment when it can; treat
120
- * "#/..." as the path so those apps do not collapse onto "/".
125
+ * A hash router keeps its route in the fragment ("/#/orders",
126
+ * "/#!/orders"), and the scrubber keeps that route in every URL it
127
+ * stores. The route is the page, so those apps do not collapse onto
128
+ * "/"; the query a route can carry inside the fragment is left out,
129
+ * as a path's query is.
121
130
  */
122
- let path = parsed.pathname || "/";
123
- if (parsed.hash.startsWith("#/")) {
124
- path = parsed.hash.slice(1);
125
- }
126
- return { host: isRelative ? "" : parsed.host, path: path };
131
+ const hashRoute = UrlScrubber_1.default.getHashRoute(parsed.hash);
132
+ return {
133
+ host: isRelative ? "" : parsed.host,
134
+ path: hashRoute === null ? parsed.pathname || "/" : hashRoute,
135
+ };
127
136
  }
128
137
  catch (_a) {
129
138
  return { host: "", path: trimmed };
@@ -153,10 +162,15 @@ function normalizePath(path, groupDynamicSegments) {
153
162
  * The flow-map key for one stored URL. Query strings are dropped (the
154
163
  * scrubber keeps only redacted allowlisted parameters, which would split
155
164
  * one page into two), and the host is kept only when asked.
165
+ *
166
+ * The path is in its one spelling (UrlScrubber.normalizePathSpelling):
167
+ * "/caf%c3%a9", "/cafe%CC%81" and "/caf%C3%A9" are one page, "/a%2Fb" and
168
+ * "/a/b" two. The scrubber stores that spelling; a URL stored before it
169
+ * did is keyed the same way here.
156
170
  */
157
171
  function toUserFlowPageKey(rawUrl, options) {
158
172
  const parsed = parsePageUrl(rawUrl);
159
- const path = normalizePath(parsed.path, options.groupDynamicSegments);
173
+ const path = normalizePath(UrlScrubber_1.default.normalizePathSpelling(parsed.path), options.groupDynamicSegments);
160
174
  if (options.includeHost && parsed.host) {
161
175
  return `${parsed.host}${path}`;
162
176
  }
@@ -182,7 +196,9 @@ function spansMultipleHosts(rawUrls) {
182
196
  /*
183
197
  * The URL-path prefix that selects a page key in the session list's
184
198
  * urlPrefix filter: "/product/:id" -> "/product/", host dropped. The list
185
- * matches prefixes, so a grouped key is widened to its static head.
199
+ * matches prefixes, so a grouped key is widened to its static head. It
200
+ * matches every spelling of the key's path, as a key reads them
201
+ * (SessionReplayReadService's url arms).
186
202
  */
187
203
  function toSessionListUrlPrefix(page) {
188
204
  if (!page || page === exports.OTHER_PAGES_KEY) {
@@ -196,8 +212,143 @@ function toSessionListUrlPrefix(page) {
196
212
  }
197
213
  return path;
198
214
  }
199
- function getUserFlowPageLabel(page) {
200
- return page === exports.OTHER_PAGES_KEY ? exports.OTHER_PAGES_LABEL : page;
215
+ /* ------------------------------------------------------------------ */
216
+ /* A page as a person reads it */
217
+ /* ------------------------------------------------------------------ */
218
+ // One escaped byte: "%D8".
219
+ const ESCAPED_BYTE_REGEX = /^%[0-9A-Fa-f]{2}$/;
220
+ // A letter, a mark (an accent, a vowel sign) or a digit, of any script.
221
+ const WORD_CHARACTER_REGEX = /^[\p{L}\p{M}\p{N}]$/u;
222
+ // Drawn with no width at all: a filler that looks like nothing, a selector.
223
+ const NO_WIDTH_CHARACTER_REGEX = /^\p{Default_Ignorable_Code_Point}$/u;
224
+ /*
225
+ * ZERO WIDTH NON-JOINER and ZERO WIDTH JOINER have no width either, but
226
+ * they are part of a word: Persian keeps the parts of one word apart
227
+ * with the first, and Hindi parts and joins its letters with both.
228
+ */
229
+ const WORD_JOINERS = [
230
+ String.fromCharCode(0x200c),
231
+ String.fromCharCode(0x200d),
232
+ ];
233
+ /*
234
+ * How many bytes the character led by `byte` takes in UTF-8: 2 to 4, or 0
235
+ * for an ASCII byte, a byte in the middle of a character and a lead UTF-8
236
+ * never writes ("%C0%AF" is "/" written too long, which no decoder takes).
237
+ */
238
+ function getUtf8Length(byte) {
239
+ if (byte >= 0xc2 && byte <= 0xdf) {
240
+ return 2;
241
+ }
242
+ if (byte >= 0xe0 && byte <= 0xef) {
243
+ return 3;
244
+ }
245
+ if (byte >= 0xf0 && byte <= 0xf4) {
246
+ return 4;
247
+ }
248
+ return 0;
249
+ }
250
+ /*
251
+ * The character `escapes` spell, when it is one a person reads as part of
252
+ * a word; null for anything else, and for bytes that are not UTF-8: a
253
+ * sequence cut short, one written too long, a surrogate
254
+ * (decodeURIComponent refuses each).
255
+ */
256
+ function decodeWordCharacter(escapes) {
257
+ for (let at = 0; at < escapes.length; at += 3) {
258
+ if (!ESCAPED_BYTE_REGEX.test(escapes.slice(at, at + 3))) {
259
+ return null;
260
+ }
261
+ }
262
+ let character;
263
+ try {
264
+ character = decodeURIComponent(escapes);
265
+ }
266
+ catch (_a) {
267
+ return null;
268
+ }
269
+ if (WORD_JOINERS.includes(character)) {
270
+ return character;
271
+ }
272
+ return WORD_CHARACTER_REGEX.test(character) &&
273
+ !NO_WIDTH_CHARACTER_REGEX.test(character)
274
+ ? character
275
+ : null;
276
+ }
277
+ // `path` with each escape of a word's letter decoded (getUserFlowPageText).
278
+ function decodeWordEscapes(path) {
279
+ if (!path.includes("%")) {
280
+ return path;
281
+ }
282
+ let decoded = "";
283
+ let index = 0;
284
+ while (index < path.length) {
285
+ const escape = path.slice(index, index + 3);
286
+ if (!ESCAPED_BYTE_REGEX.test(escape)) {
287
+ decoded += path.charAt(index);
288
+ index += 1;
289
+ continue;
290
+ }
291
+ const length = getUtf8Length(parseInt(escape.slice(1), 16)) * 3;
292
+ const character = length > 0
293
+ ? decodeWordCharacter(path.slice(index, index + length))
294
+ : null;
295
+ if (character === null) {
296
+ decoded += escape;
297
+ index += 3;
298
+ continue;
299
+ }
300
+ decoded += character;
301
+ index += length;
302
+ }
303
+ return decoded;
304
+ }
305
+ /*
306
+ * A PAGE AS A PERSON READS IT: what the map, its tooltips, the panel, the
307
+ * tables, the journeys and every sentence about a page draw for its key.
308
+ *
309
+ * A key is the path as the URL parser writes it, and the parser escapes
310
+ * every letter outside ASCII: "/الرئيسية" is "/%D8%A7%D9%84...", "/café"
311
+ * is "/caf%C3%A9". The key stays so. The session list matches it against
312
+ * the stored URLs, which the browser escaped the same way
313
+ * (toSessionListUrlPrefix); the anchor, the hidden pages and the link to
314
+ * this page hold it. Only the words drawn for it are decoded.
315
+ *
316
+ * Only an escape of a letter, a mark or a digit beyond ASCII is decoded:
317
+ * the words of a path in Arabic, Persian, Chinese or with accents, and the
318
+ * joiners inside a Persian or Hindi word. None of them is a separator, so
319
+ * decoding one never changes which page a key names. The same words
320
+ * written two ways - in lower-case escapes ("%c3%a9", as WordPress writes
321
+ * them) and upper-case ones ("%C3%A9"), or with an accent composed and
322
+ * decomposed - are one key, so one row (toUserFlowPageKey). The rest is
323
+ * drawn as written:
324
+ * - an escaped "/", "?", "#" or "%", which would read as a separator, a
325
+ * query, a fragment or another escape: "/a%2Fb" is one page, and not
326
+ * "/a/b", which may be another;
327
+ * - any other escape of an ASCII character, which a key can hold
328
+ * unescaped too: "%20" stays "%20";
329
+ * - punctuation and symbols, among them the signs drawn like a slash
330
+ * ("∕", "/"); spaces, controls and the marks that turn text round,
331
+ * which would move the words drawn round the path; and characters with
332
+ * no width, which would hide part of it;
333
+ * - bytes that are not UTF-8: a lone "%", "%E0%A4" cut short.
334
+ *
335
+ * A path reads from the left on every page, its "/" first, and the Arabic
336
+ * or Persian words in it still read from the right (RFC 3987's
337
+ * bidirectional IRIs, as a browser's address bar draws them). Read the
338
+ * way its letters do, "/الرئيسية" would be drawn "الرئيسية/". So a path
339
+ * with a letter of a script read from the right is set apart, left to
340
+ * right (LRI ... PDI), and reads so wherever it is drawn: in a box of its
341
+ * own, in a sentence, on either side of a transition's arrow, in an
342
+ * option. A path in letters read from the left needs nothing, and comes
343
+ * back exactly as before. The fold comes back as its English name, which
344
+ * the Dashboard words in the reader's language.
345
+ */
346
+ function getUserFlowPageText(page) {
347
+ if (page === exports.OTHER_PAGES_KEY) {
348
+ return exports.OTHER_PAGES_LABEL;
349
+ }
350
+ // A line read from the left sets a value apart for its right-to-left letters.
351
+ return (0, PathInSentence_1.setPathApartInSentence)(decodeWordEscapes(page));
201
352
  }
202
353
  /* ------------------------------------------------------------------ */
203
354
  /* Journeys */
@@ -442,7 +593,7 @@ function buildUserFlowGraph(journeys, options) {
442
593
  id: id,
443
594
  step: step,
444
595
  page: key,
445
- label: getUserFlowPageLabel(key),
596
+ label: getUserFlowPageText(key),
446
597
  isOther: isOther,
447
598
  otherPages: [],
448
599
  sessions: 0,
@@ -827,7 +978,8 @@ function sessionsNoun(count) {
827
978
  /*
828
979
  * At most one finding per kind, each over the sample floor, ordered by how
829
980
  * much they should worry someone. Every number in the copy is one the page
830
- * also shows, so a finding can always be checked against the map.
981
+ * also shows, so a finding can always be checked against the map, and each
982
+ * page is named as the map names it (getUserFlowPageText).
831
983
  */
832
984
  function buildUserFlowInsights(journeys, pages, loops) {
833
985
  var _a;
@@ -862,15 +1014,16 @@ function buildUserFlowInsights(journeys, pages, loops) {
862
1014
  }
863
1015
  const count = pick(page);
864
1016
  const share = ratio(count, page.sessions);
1017
+ const name = getUserFlowPageText(page.page);
865
1018
  insights.push({
866
1019
  kind: kind,
867
1020
  tone: kind === "error-hotspot" ? "danger" : "warning",
868
1021
  title: kind === "error-hotspot"
869
- ? `Errors concentrate on ${page.page}`
870
- : `Frustration concentrates on ${page.page}`,
1022
+ ? `Errors concentrate on ${name}`
1023
+ : `Frustration concentrates on ${name}`,
871
1024
  detail: kind === "error-hotspot"
872
- ? `${formatShare(share)} of the sessions that visited ${page.page} hit an error there (${sessionsNoun(count)}).`
873
- : `${formatShare(share)} of the sessions that visited ${page.page} rage-clicked, dead-clicked or reloaded in frustration there (${sessionsNoun(count)}).`,
1025
+ ? `${formatShare(share)} of the sessions that visited ${name} hit an error there (${sessionsNoun(count)}).`
1026
+ : `${formatShare(share)} of the sessions that visited ${name} rage-clicked, dead-clicked or reloaded in frustration there (${sessionsNoun(count)}).`,
874
1027
  page: page.page,
875
1028
  focusDirection: "forward",
876
1029
  sessions: count,
@@ -908,11 +1061,12 @@ function buildUserFlowInsights(journeys, pages, loops) {
908
1061
  if (dropOff) {
909
1062
  const leftAfterNavigating = dropOff.exits - dropOff.bounces;
910
1063
  const share = ratio(leftAfterNavigating, dropOff.sessions - dropOff.bounces);
1064
+ const name = getUserFlowPageText(dropOff.page);
911
1065
  insights.push({
912
1066
  kind: "drop-off",
913
1067
  tone: share >= 0.5 ? "danger" : "warning",
914
- title: `Journeys end on ${dropOff.page}`,
915
- detail: `${formatShare(share)} of the sessions that navigated to ${dropOff.page} left the application there (${sessionsNoun(leftAfterNavigating)}).`,
1068
+ title: `Journeys end on ${name}`,
1069
+ detail: `${formatShare(share)} of the sessions that navigated to ${name} left the application there (${sessionsNoun(leftAfterNavigating)}).`,
916
1070
  page: dropOff.page,
917
1071
  focusDirection: "backward",
918
1072
  sessions: leftAfterNavigating,
@@ -927,7 +1081,7 @@ function buildUserFlowInsights(journeys, pages, loops) {
927
1081
  insights.push({
928
1082
  kind: "loop",
929
1083
  tone: "warning",
930
- title: `Visitors go back and forth between ${loop.pageA} and ${loop.pageB}`,
1084
+ title: `Visitors go back and forth between ${getUserFlowPageText(loop.pageA)} and ${getUserFlowPageText(loop.pageB)}`,
931
1085
  detail: `${formatShare(loop.share)} of sessions (${sessionsNoun(loop.sessions)}) left one of these pages for the other and came straight back - often a sign that what they needed was not where they looked first.`,
932
1086
  page: loop.pageA,
933
1087
  secondaryPage: loop.pageB,
@@ -950,11 +1104,12 @@ function buildUserFlowInsights(journeys, pages, loops) {
950
1104
  entry.entries > 0 &&
951
1105
  ((_a = byEntries[1]) === null || _a === void 0 ? void 0 : _a.entries) !== entry.entries) {
952
1106
  const share = ratio(entry.entries, total);
1107
+ const name = getUserFlowPageText(entry.page);
953
1108
  insights.push({
954
1109
  kind: "top-entry",
955
1110
  tone: "neutral",
956
- title: `Most sessions start on ${entry.page}`,
957
- detail: `${formatShare(share)} of sessions (${sessionsNoun(entry.entries)}) landed on ${entry.page}; ${formatShare(ratio(entry.bounces, entry.entries))} of them saw no other page.`,
1111
+ title: `Most sessions start on ${name}`,
1112
+ detail: `${formatShare(share)} of sessions (${sessionsNoun(entry.entries)}) landed on ${name}; ${formatShare(ratio(entry.bounces, entry.entries))} of them saw no other page.`,
958
1113
  page: entry.page,
959
1114
  focusDirection: "forward",
960
1115
  sessions: entry.entries,
@@ -23,7 +23,7 @@ export const buildUserFlowLoops = commonJsModule.buildUserFlowLoops;
23
23
  export const buildUserFlowPageStats = commonJsModule.buildUserFlowPageStats;
24
24
  export const buildUserFlowPaths = commonJsModule.buildUserFlowPaths;
25
25
  export const buildUserFlowSummary = commonJsModule.buildUserFlowSummary;
26
- export const getUserFlowPageLabel = commonJsModule.getUserFlowPageLabel;
26
+ export const getUserFlowPageText = commonJsModule.getUserFlowPageText;
27
27
  export const isDynamicPathSegment = commonJsModule.isDynamicPathSegment;
28
28
  export const normalizeUserFlowOptions = commonJsModule.normalizeUserFlowOptions;
29
29
  export const sliceJourneyForMap = commonJsModule.sliceJourneyForMap;
@@ -0,0 +1,3 @@
1
+ import { RunbookStep } from "../../Types/Runbook/RunbookStep.mjs";
2
+ export declare const getRunbookStepsSignature: (steps: ReadonlyArray<RunbookStep>) => string;
3
+ export default getRunbookStepsSignature;
@@ -0,0 +1,3 @@
1
+ import { RunbookStep } from "../../Types/Runbook/RunbookStep";
2
+ export declare const getRunbookStepsSignature: (steps: ReadonlyArray<RunbookStep>) => string;
3
+ export default getRunbookStepsSignature;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getRunbookStepsSignature = void 0;
7
+ const StableStringify_1 = __importDefault(require("../StableStringify"));
8
+ /*
9
+ * A runbook's steps as Save Steps writes them, in one string: in the order
10
+ * they run, each numbered by its place (Save Steps writes order 0, 1, 2...),
11
+ * with every object's keys sorted and a key left undefined left out, as
12
+ * JSON leaves it out.
13
+ *
14
+ * The same steps give the same string however their objects were built - a
15
+ * step handed back by an editor unchanged, a config spread into a copy in
16
+ * another order. Any change Save Steps would write gives another: a step
17
+ * added, removed, moved or edited, a switch flipped.
18
+ *
19
+ * The Steps page compares its steps with the ones last loaded or saved: a
20
+ * change undone - a step moved and moved back, a switch flipped twice -
21
+ * leaves nothing unsaved, so Save Steps rests, no "Unsaved changes" shows,
22
+ * and leaving asks nothing.
23
+ */
24
+ const getRunbookStepsSignature = (steps) => {
25
+ return (0, StableStringify_1.default)(steps.map((step, index) => {
26
+ return Object.assign(Object.assign({}, step), { order: index });
27
+ }));
28
+ };
29
+ exports.getRunbookStepsSignature = getRunbookStepsSignature;
30
+ exports.default = exports.getRunbookStepsSignature;
@@ -0,0 +1,3 @@
1
+ import commonJsModule from "./RunbookStepsSignature.js";
2
+ export default commonJsModule.default;
3
+ export const getRunbookStepsSignature = commonJsModule.getRunbookStepsSignature;
@@ -57,6 +57,9 @@ export default class ScheduledMaintenanceStartUtil {
57
57
  states: Array<unknown>;
58
58
  state: unknown;
59
59
  }): boolean;
60
+ static getScheduledState<T>(data: {
61
+ states: Array<T>;
62
+ }): T | null;
60
63
  static getOngoingState<T>(data: {
61
64
  states: Array<T>;
62
65
  }): T | null;
@@ -57,6 +57,9 @@ export default class ScheduledMaintenanceStartUtil {
57
57
  states: Array<unknown>;
58
58
  state: unknown;
59
59
  }): boolean;
60
+ static getScheduledState<T>(data: {
61
+ states: Array<T>;
62
+ }): T | null;
60
63
  static getOngoingState<T>(data: {
61
64
  states: Array<T>;
62
65
  }): T | null;
@@ -292,6 +292,15 @@ class ScheduledMaintenanceStartUtil {
292
292
  return ((0, StateOrder_1.getStateListReachedBuiltIn)(DEFINITION, placed.rows, placed.row) ===
293
293
  COMPLETED_FLAG);
294
294
  }
295
+ /*
296
+ * The project's scheduled state: the first state from the top flagged
297
+ * scheduled - the one a new event is created in, and the sample project's
298
+ * events start in. Null when the list has none (a project always keeps
299
+ * one; StateOrderGuard refuses deleting it).
300
+ */
301
+ static getScheduledState(data) {
302
+ return this.getBuiltInState(data.states, SCHEDULED_FLAG);
303
+ }
295
304
  /*
296
305
  * The project's ongoing state: the first state from the top flagged
297
306
  * ongoing - the one an event's start at its time, and Mark as Ongoing,
@@ -15,6 +15,7 @@ const MonitorSchemas_1 = require("./MonitorSchemas");
15
15
  const MonitorType_1 = __importDefault(require("../../Types/Monitor/MonitorType"));
16
16
  const WorkflowStatus_1 = __importDefault(require("../../Types/Workflow/WorkflowStatus"));
17
17
  const CustomFieldType_1 = __importDefault(require("../../Types/CustomField/CustomFieldType"));
18
+ const ModelApiName_1 = require("../ModelApiName");
18
19
  /*
19
20
  * The text columns an encrypted secret is stored in. An encrypted JSON
20
21
  * column holds a map of them, not one string, so it is left as it is.
@@ -638,8 +639,16 @@ class ModelSchema extends BaseSchema_1.BaseSchema {
638
639
  if (!tableName) {
639
640
  continue;
640
641
  }
642
+ /*
643
+ * By the name the API keeps, the one OpenAPI.ts tags the model's
644
+ * endpoints with. A model renamed on screen (#6817: an On-Call Policy
645
+ * Schedule is an On-Call Schedule) keeps its tag, and its screen name
646
+ * here named a tag no endpoint has: the Terraform provider found no
647
+ * resource for the relation, and its docs example was not a list of
648
+ * ids.
649
+ */
641
650
  references[columnKey] = {
642
- tag: target.singularName || tableName,
651
+ tag: (0, ModelApiName_1.getApiSingularName)(target) || tableName,
643
652
  tableName: tableName,
644
653
  };
645
654
  }
@@ -70,6 +70,12 @@ function getPhoneSchema() {
70
70
  }).openapi({
71
71
  type: "object",
72
72
  description: "Phone object",
73
+ /*
74
+ * Machine-readable marker, as on the DateTime wrapper: the Terraform
75
+ * provider generator writes a phone number as a plain string, compared
76
+ * as OneUptime keeps it (as written, or as its digits).
77
+ */
78
+ "x-oneuptime-type": JSON_1.ObjectType.Phone,
73
79
  example: { _type: JSON_1.ObjectType.Phone, value: "+1-555-123-4567" },
74
80
  });
75
81
  }
@@ -14,6 +14,9 @@
14
14
  * one rendering, and so every rounding edge is unit-testable without a
15
15
  * DOM.
16
16
  */
17
+ export interface CompactDurationOptions {
18
+ adjacentUnitsOnly?: boolean | undefined;
19
+ }
17
20
  /**
18
21
  * An unsigned duration as "2d 5h" / "43m 12s" / "45s". Fractional seconds
19
22
  * are floored, so a 59.9-second budget renders "59s" rather than rounding
@@ -22,9 +25,9 @@
22
25
  * A duration that floors to zero renders "0s" — a real, sayable state —
23
26
  * instead of an empty string.
24
27
  */
25
- export type FormatDurationCompactFunction = (seconds: number) => string;
28
+ export type FormatDurationCompactFunction = (seconds: number, options?: CompactDurationOptions | undefined) => string;
26
29
  export declare const formatDurationCompact: FormatDurationCompactFunction;
27
- export declare const formatDurationCompactInLanguage: (seconds: number, language?: string | undefined) => string;
30
+ export declare const formatDurationCompactInLanguage: (seconds: number, language?: string | undefined, options?: CompactDurationOptions | undefined) => string;
28
31
  /**
29
32
  * `errorBudgetRemainingSeconds` is SIGNED: negative means the budget is
30
33
  * overspent, and that overage is the single most useful number during a
@@ -14,6 +14,9 @@
14
14
  * one rendering, and so every rounding edge is unit-testable without a
15
15
  * DOM.
16
16
  */
17
+ export interface CompactDurationOptions {
18
+ adjacentUnitsOnly?: boolean | undefined;
19
+ }
17
20
  /**
18
21
  * An unsigned duration as "2d 5h" / "43m 12s" / "45s". Fractional seconds
19
22
  * are floored, so a 59.9-second budget renders "59s" rather than rounding
@@ -22,9 +25,9 @@
22
25
  * A duration that floors to zero renders "0s" — a real, sayable state —
23
26
  * instead of an empty string.
24
27
  */
25
- export type FormatDurationCompactFunction = (seconds: number) => string;
28
+ export type FormatDurationCompactFunction = (seconds: number, options?: CompactDurationOptions | undefined) => string;
26
29
  export declare const formatDurationCompact: FormatDurationCompactFunction;
27
- export declare const formatDurationCompactInLanguage: (seconds: number, language?: string | undefined) => string;
30
+ export declare const formatDurationCompactInLanguage: (seconds: number, language?: string | undefined, options?: CompactDurationOptions | undefined) => string;
28
31
  /**
29
32
  * `errorBudgetRemainingSeconds` is SIGNED: negative means the budget is
30
33
  * overspent, and that overage is the single most useful number during a
@@ -38,7 +38,7 @@ const toFiniteNumber = (value) => {
38
38
  return value;
39
39
  };
40
40
  // The units a compact duration names, with their counts: [2 d, 5 h].
41
- const getCompactParts = (seconds) => {
41
+ const getCompactParts = (seconds, options) => {
42
42
  let remainingSeconds = Math.floor(Math.abs(seconds));
43
43
  const parts = [];
44
44
  for (const unit of UNITS) {
@@ -50,8 +50,13 @@ const getCompactParts = (seconds) => {
50
50
  * Skip leading zero units ("0d 5h"), but once a larger unit has been
51
51
  * emitted a zero is still skipped rather than padded — "2d" is
52
52
  * correct for exactly 48 hours, "2d 0h" is not how anyone says it.
53
+ * With adjacentUnitsOnly a zero right after the first unit ends the
54
+ * duration there: "2d", never "2d 30s".
53
55
  */
54
56
  if (count <= 0) {
57
+ if (parts.length > 0 && (options === null || options === void 0 ? void 0 : options.adjacentUnitsOnly)) {
58
+ break;
59
+ }
55
60
  continue;
56
61
  }
57
62
  parts.push({ count: count, suffix: unit.suffix, unit: unit.unit });
@@ -59,8 +64,8 @@ const getCompactParts = (seconds) => {
59
64
  }
60
65
  return parts;
61
66
  };
62
- const formatDurationCompact = (seconds) => {
63
- const parts = getCompactParts(seconds);
67
+ const formatDurationCompact = (seconds, options) => {
68
+ const parts = getCompactParts(seconds, options);
64
69
  if (parts.length === 0) {
65
70
  return "0s";
66
71
  }
@@ -89,12 +94,12 @@ exports.formatDurationCompact = formatDurationCompact;
89
94
  * formatDurationCompact itself stays English: the SLO pages still glue its
90
95
  * text into English sentences of their own.
91
96
  */
92
- const formatDurationCompactInLanguage = (seconds, language) => {
97
+ const formatDurationCompactInLanguage = (seconds, language, options) => {
93
98
  const write = () => {
94
99
  return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
95
- return (0, exports.formatDurationCompact)(seconds);
100
+ return (0, exports.formatDurationCompact)(seconds, options);
96
101
  }, (_language, locale) => {
97
- const parts = getCompactParts(seconds).map((part) => {
102
+ const parts = getCompactParts(seconds, options).map((part) => {
98
103
  return { count: part.count, unit: part.unit };
99
104
  });
100
105
  return (0, DateLanguage_1.formatDurationText)({
@@ -170,7 +170,7 @@ const getSloNotice = (data) => {
170
170
  return {
171
171
  type: SloNoticeType.Info,
172
172
  title: "Measurement is paused",
173
- body: "Every monitor attached to this SLO has active monitoring disabled — by hand, by a manual incident, or by a scheduled maintenance event — so there is no signal to measure. The SLO resumes automatically when a monitor starts reporting again.",
173
+ body: "Every monitor attached to this SLO has active monitoring disabled — by hand, by a manual incident, or by a maintenance event — so there is no signal to measure. The SLO resumes automatically when a monitor starts reporting again.",
174
174
  action: {
175
175
  label: "View monitors",
176
176
  target: SloNoticeActionTarget.Monitors,
@@ -96,10 +96,7 @@ exports.STATE_LISTS = {
96
96
  [StateListType.ScheduledMaintenanceState]: {
97
97
  type: StateListType.ScheduledMaintenanceState,
98
98
  orderColumn: "order",
99
- subject: {
100
- singular: "scheduled maintenance event",
101
- plural: "scheduled maintenance events",
102
- },
99
+ subject: { singular: "maintenance event", plural: "maintenance events" },
103
100
  builtIns: [
104
101
  { flag: "isScheduledState", role: "scheduled state" },
105
102
  { flag: "isOngoingState", role: "ongoing state" },
@@ -47,7 +47,7 @@ var StateTimelineRecord;
47
47
  exports.ONLY_STATE_DELETE_MESSAGES = {
48
48
  [StateTimelineRecord.Incident]: "The incident's only state can't be deleted: an incident always has a state. To change it, add a new state.",
49
49
  [StateTimelineRecord.Alert]: "The alert's only state can't be deleted: an alert always has a state. To change it, add a new state.",
50
- [StateTimelineRecord.ScheduledMaintenance]: "The event's only state can't be deleted: a scheduled maintenance event always has a state. To change it, add a new state.",
50
+ [StateTimelineRecord.ScheduledMaintenance]: "The event's only state can't be deleted: a maintenance event always has a state. To change it, add a new state.",
51
51
  [StateTimelineRecord.IncidentEpisode]: "The episode's only state can't be deleted: an episode always has a state. To change it, add a new state.",
52
52
  [StateTimelineRecord.AlertEpisode]: "The episode's only state can't be deleted: an episode always has a state. To change it, add a new state.",
53
53
  };
@@ -1,4 +1,5 @@
1
1
  import AggregatedModel from "../../Types/BaseDatabase/AggregatedModel.mjs";
2
+ import Timezone from "../../Types/Timezone.mjs";
2
3
  import { ReceivingGap } from "./ReceivingGaps.mjs";
3
4
  export interface HeartbeatAvailabilityPoint {
4
5
  x: Date;
@@ -19,7 +20,10 @@ export declare class HeartbeatAvailabilityUtil {
19
20
  windowEnd: Date;
20
21
  now: Date;
21
22
  receivingGaps?: Array<ReceivingGap> | undefined;
23
+ timezone?: Timezone | undefined;
22
24
  }): HeartbeatAvailabilityResult;
25
+ private static getSlots;
26
+ private static getNearestSlotIndex;
23
27
  private static isNotMonitored;
24
28
  private static getBucketTimestamp;
25
29
  }
@@ -1,4 +1,5 @@
1
1
  import AggregatedModel from "../../Types/BaseDatabase/AggregatedModel";
2
+ import Timezone from "../../Types/Timezone";
2
3
  import { ReceivingGap } from "./ReceivingGaps";
3
4
  export interface HeartbeatAvailabilityPoint {
4
5
  x: Date;
@@ -19,7 +20,10 @@ export declare class HeartbeatAvailabilityUtil {
19
20
  windowEnd: Date;
20
21
  now: Date;
21
22
  receivingGaps?: Array<ReceivingGap> | undefined;
23
+ timezone?: Timezone | undefined;
22
24
  }): HeartbeatAvailabilityResult;
25
+ private static getSlots;
26
+ private static getNearestSlotIndex;
23
27
  private static isNotMonitored;
24
28
  private static getBucketTimestamp;
25
29
  }