@oneuptime/common 14.0.106 → 14.0.108

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 (350) hide show
  1. package/Models/AnalyticsModels/AuditLog.js +1 -1
  2. package/Models/AnalyticsModels/Index.js +3 -0
  3. package/Models/AnalyticsModels/RumProductAnalyticsEvent.d.mts +5 -0
  4. package/Models/AnalyticsModels/RumProductAnalyticsEvent.d.ts +5 -0
  5. package/Models/AnalyticsModels/RumProductAnalyticsEvent.js +300 -0
  6. package/Models/AnalyticsModels/RumProductAnalyticsEvent.mjs +3 -0
  7. package/Models/DatabaseModels/CallLog.d.mts +4 -0
  8. package/Models/DatabaseModels/CallLog.d.ts +4 -0
  9. package/Models/DatabaseModels/CallLog.js +85 -0
  10. package/Models/DatabaseModels/DataBiConnection.d.mts +7 -0
  11. package/Models/DatabaseModels/DataBiConnection.d.ts +7 -0
  12. package/Models/DatabaseModels/DataBiConnection.js +105 -2
  13. package/Models/DatabaseModels/DataDashboard.d.mts +10 -0
  14. package/Models/DatabaseModels/DataDashboard.d.ts +10 -0
  15. package/Models/DatabaseModels/DataDashboard.js +129 -2
  16. package/Models/DatabaseModels/Index.js +8 -0
  17. package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
  18. package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
  19. package/Models/DatabaseModels/NetworkDevice.js +55 -0
  20. package/Models/DatabaseModels/NetworkDeviceNamingRule.d.mts +26 -0
  21. package/Models/DatabaseModels/NetworkDeviceNamingRule.d.ts +26 -0
  22. package/Models/DatabaseModels/NetworkDeviceNamingRule.js +536 -0
  23. package/Models/DatabaseModels/NetworkDeviceNamingRule.mjs +2 -0
  24. package/Models/DatabaseModels/NetworkSite.d.mts +1 -0
  25. package/Models/DatabaseModels/NetworkSite.d.ts +1 -0
  26. package/Models/DatabaseModels/NetworkSite.js +51 -0
  27. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.mts +2 -0
  28. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.ts +2 -0
  29. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +41 -0
  30. package/Models/DatabaseModels/ProjectCallSMSConfig.d.mts +2 -0
  31. package/Models/DatabaseModels/ProjectCallSMSConfig.d.ts +2 -0
  32. package/Models/DatabaseModels/ProjectCallSMSConfig.js +80 -1
  33. package/Models/DatabaseModels/RumApplication.d.mts +2 -0
  34. package/Models/DatabaseModels/RumApplication.d.ts +2 -0
  35. package/Models/DatabaseModels/RumApplication.js +108 -0
  36. package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.mts +20 -0
  37. package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.ts +20 -0
  38. package/Models/DatabaseModels/RumProductAnalyticsSavedView.js +353 -0
  39. package/Models/DatabaseModels/RumProductAnalyticsSavedView.mjs +2 -0
  40. package/Models/DatabaseModels/Team.js +10 -2
  41. package/Models/DatabaseModels/TeamComplianceSetting.js +8 -1
  42. package/Models/DatabaseModels/TeamCustomRole.js +9 -1
  43. package/Models/DatabaseModels/TeamMember.js +15 -1
  44. package/Models/DatabaseModels/TeamOwnerTeam.d.mts +17 -0
  45. package/Models/DatabaseModels/TeamOwnerTeam.d.ts +17 -0
  46. package/Models/DatabaseModels/TeamOwnerTeam.js +325 -0
  47. package/Models/DatabaseModels/TeamOwnerTeam.mjs +2 -0
  48. package/Models/DatabaseModels/TeamOwnerUser.d.mts +17 -0
  49. package/Models/DatabaseModels/TeamOwnerUser.d.ts +17 -0
  50. package/Models/DatabaseModels/TeamOwnerUser.js +331 -0
  51. package/Models/DatabaseModels/TeamOwnerUser.mjs +2 -0
  52. package/Models/DatabaseModels/TeamPermission.js +12 -1
  53. package/Models/DatabaseModels/TelemetryUsageBilling.d.mts +1 -0
  54. package/Models/DatabaseModels/TelemetryUsageBilling.d.ts +1 -0
  55. package/Models/DatabaseModels/TelemetryUsageBilling.js +34 -0
  56. package/Models/DatabaseModels/WhatsAppLog.d.mts +3 -0
  57. package/Models/DatabaseModels/WhatsAppLog.d.ts +3 -0
  58. package/Models/DatabaseModels/WhatsAppLog.js +62 -0
  59. package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +11 -0
  60. package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +11 -0
  61. package/Models/DatabaseModels/WorkspaceUserGroup.js +1 -1
  62. package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +212 -0
  63. package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +212 -0
  64. package/Server/Utils/Workspace/WorkspaceBase.d.mts +3 -0
  65. package/Server/Utils/Workspace/WorkspaceBase.d.ts +3 -0
  66. package/Types/AI/AIActionWords.d.mts +1 -0
  67. package/Types/AI/AIActionWords.d.ts +1 -0
  68. package/Types/AI/AIActionWords.js +15 -4
  69. package/Types/AI/AIChatRecordSeen.d.mts +3 -0
  70. package/Types/AI/AIChatRecordSeen.d.ts +3 -0
  71. package/Types/AI/AIChatRecordSeen.js +28 -3
  72. package/Types/AI/AIChatRecordSeen.mjs +1 -0
  73. package/Types/AI/AIChatTypes.d.mts +2 -1
  74. package/Types/AI/AIChatTypes.d.ts +2 -1
  75. package/Types/AI/AIChatTypes.js +2 -0
  76. package/Types/AI/InvestigationNotStartedReason.d.mts +7 -0
  77. package/Types/AI/InvestigationNotStartedReason.d.ts +7 -0
  78. package/Types/AnalyticsDatabase/AnalyticsTableName.d.mts +2 -1
  79. package/Types/AnalyticsDatabase/AnalyticsTableName.d.ts +2 -1
  80. package/Types/AnalyticsDatabase/AnalyticsTableName.js +7 -0
  81. package/Types/AuditLog/AuditLogRetention.d.mts +10 -0
  82. package/Types/AuditLog/AuditLogRetention.d.ts +10 -0
  83. package/Types/AuditLog/AuditLogRetention.js +91 -0
  84. package/Types/AuditLog/AuditLogRetention.mjs +8 -0
  85. package/Types/CallAndSMS/TwilioConfigDefaults.d.mts +37 -0
  86. package/Types/CallAndSMS/TwilioConfigDefaults.d.ts +37 -0
  87. package/Types/CallAndSMS/TwilioConfigDefaults.js +224 -0
  88. package/Types/CallAndSMS/TwilioConfigDefaults.mjs +3 -0
  89. package/Types/CodeInSentence.d.mts +8 -0
  90. package/Types/CodeInSentence.d.ts +8 -0
  91. package/Types/CodeInSentence.js +875 -0
  92. package/Types/CodeInSentence.mjs +4 -0
  93. package/Types/CodeRepository/CodeFileSeen.d.mts +3 -0
  94. package/Types/CodeRepository/CodeFileSeen.d.ts +3 -0
  95. package/Types/CodeRepository/CodeFileSeen.js +61 -3
  96. package/Types/Dashboard/DashboardComponentType.d.mts +2 -0
  97. package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
  98. package/Types/Dashboard/DashboardComponentType.js +7 -0
  99. package/Types/Dashboard/DashboardComponents/ComponentArgument.d.mts +3 -1
  100. package/Types/Dashboard/DashboardComponents/ComponentArgument.d.ts +3 -1
  101. package/Types/Dashboard/DashboardComponents/ComponentArgument.js +3 -0
  102. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.mts +11 -0
  103. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.ts +11 -0
  104. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.js +2 -0
  105. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.mjs +1 -0
  106. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.mts +11 -0
  107. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.ts +11 -0
  108. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.js +2 -0
  109. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.mjs +1 -0
  110. package/Types/Dashboard/PublicDashboardServedSettings.js +15 -7
  111. package/Types/DataObservability/DataBiRefreshAlert.d.mts +44 -0
  112. package/Types/DataObservability/DataBiRefreshAlert.d.ts +44 -0
  113. package/Types/DataObservability/DataBiRefreshAlert.js +206 -0
  114. package/Types/DataObservability/DataBiRefreshAlert.mjs +12 -0
  115. package/Types/DataObservability/DataDashboardActivity.d.mts +40 -0
  116. package/Types/DataObservability/DataDashboardActivity.d.ts +40 -0
  117. package/Types/DataObservability/DataDashboardActivity.js +119 -0
  118. package/Types/DataObservability/DataDashboardActivity.mjs +12 -0
  119. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +14 -0
  120. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +14 -0
  121. package/Types/DataObservability/DataObservabilityApiTypes.js +14 -0
  122. package/Types/DataObservability/DataTableLineage.d.mts +108 -0
  123. package/Types/DataObservability/DataTableLineage.d.ts +108 -0
  124. package/Types/DataObservability/DataTableLineage.js +119 -0
  125. package/Types/DataObservability/DataTableLineage.mjs +21 -0
  126. package/Types/DataSecurity/DataStoreKind.d.mts +1 -0
  127. package/Types/DataSecurity/DataStoreKind.d.ts +1 -0
  128. package/Types/DataSecurity/DataStoreKind.js +3 -0
  129. package/Types/Database/AccessControl/PermissionScopeNarrowing.js +6 -0
  130. package/Types/DatabaseServer/DatabaseServerMetricCatalog.js +71 -82
  131. package/Types/Date.d.mts +4 -0
  132. package/Types/Date.d.ts +4 -0
  133. package/Types/Date.js +47 -2
  134. package/Types/Date.mjs +2 -0
  135. package/Types/DateLanguage.d.mts +9 -0
  136. package/Types/DateLanguage.d.ts +9 -0
  137. package/Types/DateLanguage.js +79 -1
  138. package/Types/DateLanguage.mjs +4 -0
  139. package/Types/HashedString.js +9 -2
  140. package/Types/MessageQueue/MessageQueueMetricCatalog.js +61 -61
  141. package/Types/Monitor/CriteriaFilterTerms.d.mts +4 -0
  142. package/Types/Monitor/CriteriaFilterTerms.d.ts +4 -0
  143. package/Types/Monitor/CriteriaFilterTerms.js +166 -0
  144. package/Types/Monitor/CriteriaFilterTerms.mjs +4 -0
  145. package/Types/Monitor/CriteriaFilterValues.d.mts +16 -0
  146. package/Types/Monitor/CriteriaFilterValues.d.ts +16 -0
  147. package/Types/Monitor/CriteriaFilterValues.js +324 -0
  148. package/Types/Monitor/CriteriaFilterValues.mjs +2 -0
  149. package/Types/Monitor/DataBiRefreshMonitorStep.d.mts +13 -0
  150. package/Types/Monitor/DataBiRefreshMonitorStep.d.ts +13 -0
  151. package/Types/Monitor/DataBiRefreshMonitorStep.js +108 -0
  152. package/Types/Monitor/DataBiRefreshMonitorStep.mjs +3 -0
  153. package/Types/Monitor/EvaluationSentence.d.mts +37 -0
  154. package/Types/Monitor/EvaluationSentence.d.ts +37 -0
  155. package/Types/Monitor/EvaluationSentence.js +298 -0
  156. package/Types/Monitor/EvaluationSentence.mjs +12 -0
  157. package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.mts +1 -0
  158. package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.ts +1 -0
  159. package/Types/Monitor/MonitorCriteria.d.mts +2 -0
  160. package/Types/Monitor/MonitorCriteria.d.ts +2 -0
  161. package/Types/Monitor/MonitorCriteria.js +8 -0
  162. package/Types/Monitor/MonitorCriteriaInstance.d.mts +5 -0
  163. package/Types/Monitor/MonitorCriteriaInstance.d.ts +5 -0
  164. package/Types/Monitor/MonitorCriteriaInstance.js +265 -196
  165. package/Types/Monitor/MonitorEvaluationDetails.d.mts +2 -0
  166. package/Types/Monitor/MonitorEvaluationDetails.d.ts +2 -0
  167. package/Types/Monitor/MonitorEvaluationSummary.d.mts +4 -0
  168. package/Types/Monitor/MonitorEvaluationSummary.d.ts +4 -0
  169. package/Types/Monitor/MonitorStep.d.mts +2 -0
  170. package/Types/Monitor/MonitorStep.d.ts +2 -0
  171. package/Types/Monitor/MonitorStep.js +28 -11
  172. package/Types/Monitor/MonitorStepMetricMonitor.js +6 -1
  173. package/Types/Monitor/MonitorStepRollingTime.d.mts +12 -0
  174. package/Types/Monitor/MonitorStepRollingTime.d.ts +12 -0
  175. package/Types/Monitor/MonitorStepRollingTime.js +117 -0
  176. package/Types/Monitor/MonitorStepRollingTime.mjs +2 -0
  177. package/Types/Monitor/MonitorSteps.d.mts +2 -0
  178. package/Types/Monitor/MonitorSteps.d.ts +2 -0
  179. package/Types/Monitor/MonitorType.d.mts +1 -0
  180. package/Types/Monitor/MonitorType.d.ts +1 -0
  181. package/Types/Monitor/MonitorType.js +12 -0
  182. package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +11 -0
  183. package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.mts +1 -0
  184. package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.ts +1 -0
  185. package/Types/Monitor/TelemetryAlertRule.js +7 -2
  186. package/Types/Monitor/TelemetryObservation.d.mts +15 -0
  187. package/Types/Monitor/TelemetryObservation.d.ts +15 -0
  188. package/Types/Monitor/TelemetryObservation.js +28 -0
  189. package/Types/Monitor/TelemetryObservation.mjs +2 -0
  190. package/Types/NetworkDevice/DeviceNaming.d.mts +87 -0
  191. package/Types/NetworkDevice/DeviceNaming.d.ts +87 -0
  192. package/Types/NetworkDevice/DeviceNaming.js +279 -0
  193. package/Types/NetworkDevice/DeviceNaming.mjs +24 -0
  194. package/Types/NetworkDevice/DiscoveredDevice.d.mts +1 -0
  195. package/Types/NetworkDevice/DiscoveredDevice.d.ts +1 -0
  196. package/Types/NetworkDevice/DiscoveredDevice.js +4 -0
  197. package/Types/NotificationRule/NotificationRepeat.d.mts +10 -0
  198. package/Types/NotificationRule/NotificationRepeat.d.ts +10 -0
  199. package/Types/NotificationRule/NotificationRepeat.js +51 -0
  200. package/Types/NotificationRule/NotificationRepeat.mjs +2 -0
  201. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +70 -0
  202. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +70 -0
  203. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +276 -0
  204. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +12 -0
  205. package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.mts +9 -0
  206. package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.ts +9 -0
  207. package/Types/OnCallDutyPolicy/OnCallEscalationWait.js +44 -0
  208. package/Types/OnCallDutyPolicy/OnCallEscalationWait.mjs +5 -0
  209. package/Types/OnCallDutyPolicy/OnCallPageChannel.d.mts +68 -0
  210. package/Types/OnCallDutyPolicy/OnCallPageChannel.d.ts +68 -0
  211. package/Types/OnCallDutyPolicy/OnCallPageChannel.js +351 -0
  212. package/Types/OnCallDutyPolicy/OnCallPageChannel.mjs +15 -0
  213. package/Types/Permission.d.mts +5 -0
  214. package/Types/Permission.d.ts +5 -0
  215. package/Types/Permission.js +61 -5
  216. package/Types/Probe/ProbeMonitorResponse.d.mts +1 -0
  217. package/Types/Probe/ProbeMonitorResponse.d.ts +1 -0
  218. package/Types/ReadingDirection.d.mts +2 -0
  219. package/Types/ReadingDirection.d.ts +2 -0
  220. package/Types/ReadingDirection.js +221 -25
  221. package/Types/ReadingDirection.mjs +2 -0
  222. package/Types/RollingTime/RollingTimeUtil.d.mts +7 -0
  223. package/Types/RollingTime/RollingTimeUtil.d.ts +7 -0
  224. package/Types/RollingTime/RollingTimeUtil.js +240 -71
  225. package/Types/Rules/RuleCriteriaFieldRegistry.js +12 -0
  226. package/Types/Rules/RuleCriteriaSubject.js +1 -0
  227. package/Types/Rum/ProductAnalyticsEventReads.d.mts +115 -0
  228. package/Types/Rum/ProductAnalyticsEventReads.d.ts +115 -0
  229. package/Types/Rum/ProductAnalyticsEventReads.js +166 -0
  230. package/Types/Rum/ProductAnalyticsEventReads.mjs +27 -0
  231. package/Types/Rum/ProductAnalyticsEvents.d.mts +121 -0
  232. package/Types/Rum/ProductAnalyticsEvents.d.ts +121 -0
  233. package/Types/Rum/ProductAnalyticsEvents.js +477 -0
  234. package/Types/Rum/ProductAnalyticsEvents.mjs +40 -0
  235. package/Types/Rum/ProductAnalyticsSavedViews.d.mts +56 -0
  236. package/Types/Rum/ProductAnalyticsSavedViews.d.ts +56 -0
  237. package/Types/Rum/ProductAnalyticsSavedViews.js +219 -0
  238. package/Types/Rum/ProductAnalyticsSavedViews.mjs +14 -0
  239. package/Types/Rum/SessionReplay.d.mts +4 -0
  240. package/Types/Rum/SessionReplay.d.ts +4 -0
  241. package/Types/Rum/SessionReplayHealth.js +1 -1
  242. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +8 -7
  243. package/Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.d.mts +10 -0
  244. package/Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.d.ts +10 -0
  245. package/Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.js +51 -0
  246. package/Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.mjs +4 -0
  247. package/Types/Team/BuiltInTeam.d.mts +1 -0
  248. package/Types/Team/BuiltInTeam.d.ts +1 -0
  249. package/Types/Team/BuiltInTeam.js +14 -1
  250. package/Types/Team/BuiltInTeam.mjs +1 -0
  251. package/Types/Telemetry/ServiceType.d.mts +1 -0
  252. package/Types/Telemetry/ServiceType.d.ts +1 -0
  253. package/Types/Telemetry/ServiceType.js +6 -0
  254. package/Types/Telemetry/TelemetryUsage.d.mts +7 -2
  255. package/Types/Telemetry/TelemetryUsage.d.ts +7 -2
  256. package/Types/Telemetry/TelemetryUsage.js +24 -5
  257. package/Types/Telemetry/TelemetryUsage.mjs +3 -0
  258. package/Types/UserNotification/UserNotificationStatus.d.mts +2 -1
  259. package/Types/UserNotification/UserNotificationStatus.d.ts +2 -1
  260. package/Types/UserNotification/UserNotificationStatus.js +8 -0
  261. package/Types/Workspace/NotificationRules/EventType.d.mts +2 -1
  262. package/Types/Workspace/NotificationRules/EventType.d.ts +2 -1
  263. package/Types/Workspace/NotificationRules/EventType.js +8 -0
  264. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +7 -1
  265. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +7 -1
  266. package/Types/Workspace/NotificationRules/NotificationRuleInvites.js +5 -1
  267. package/Types/Workspace/NotificationRules/NotificationRuleTypes/ServiceLevelObjectiveNotificationRule.d.mts +4 -0
  268. package/Types/Workspace/NotificationRules/NotificationRuleTypes/ServiceLevelObjectiveNotificationRule.d.ts +4 -0
  269. package/Types/Workspace/NotificationRules/NotificationRuleTypes/ServiceLevelObjectiveNotificationRule.js +2 -0
  270. package/Types/Workspace/NotificationRules/NotificationRuleTypes/ServiceLevelObjectiveNotificationRule.mjs +1 -0
  271. package/Utils/AI/InvestigationReport.js +93 -21
  272. package/Utils/AI/InvestigationReportLanguages.d.mts +25 -0
  273. package/Utils/AI/InvestigationReportLanguages.d.ts +25 -0
  274. package/Utils/AI/InvestigationReportLanguages.js +603 -0
  275. package/Utils/AI/InvestigationReportLanguages.mjs +11 -0
  276. package/Utils/Crypto.js +10 -3
  277. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.mts +7 -0
  278. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.ts +7 -0
  279. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +67 -0
  280. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.mjs +2 -0
  281. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.mts +7 -0
  282. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.ts +7 -0
  283. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +68 -0
  284. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.mjs +2 -0
  285. package/Utils/Dashboard/DashboardWidgetIds.js +6 -1
  286. package/Utils/Dashboard/TableThresholds.js +5 -2
  287. package/Utils/Metrics/MetricQueryCloudAggregation.js +2 -4
  288. package/Utils/Monitor/MonitorLogSummaryUtil.d.mts +8 -0
  289. package/Utils/Monitor/MonitorLogSummaryUtil.d.ts +8 -0
  290. package/Utils/Monitor/MonitorLogSummaryUtil.js +170 -0
  291. package/Utils/Monitor/MonitorRootCauseWording.d.mts +17 -0
  292. package/Utils/Monitor/MonitorRootCauseWording.d.ts +17 -0
  293. package/Utils/Monitor/MonitorRootCauseWording.js +246 -0
  294. package/Utils/Monitor/MonitorRootCauseWording.mjs +2 -0
  295. package/Utils/Monitor/MonitorStepMetricQueries.js +2 -1
  296. package/Utils/Monitor/MonitorStepsValuesUtil.d.mts +13 -0
  297. package/Utils/Monitor/MonitorStepsValuesUtil.d.ts +13 -0
  298. package/Utils/Monitor/MonitorStepsValuesUtil.js +80 -0
  299. package/Utils/Monitor/MonitorStepsValuesUtil.mjs +2 -0
  300. package/Utils/Monitor/MonitorSummarySnapshotUtil.d.mts +3 -0
  301. package/Utils/Monitor/MonitorSummarySnapshotUtil.d.ts +3 -0
  302. package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -2
  303. package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.d.mts +75 -0
  304. package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.d.ts +75 -0
  305. package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.js +303 -0
  306. package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.mjs +8 -0
  307. package/Utils/NetworkDevice/Naming/NamePattern.d.mts +122 -0
  308. package/Utils/NetworkDevice/Naming/NamePattern.d.ts +122 -0
  309. package/Utils/NetworkDevice/Naming/NamePattern.js +649 -0
  310. package/Utils/NetworkDevice/Naming/NamePattern.mjs +22 -0
  311. package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +77 -0
  312. package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +77 -0
  313. package/Utils/NetworkDevice/Naming/NamingLookup.js +467 -0
  314. package/Utils/NetworkDevice/Naming/NamingLookup.mjs +14 -0
  315. package/Utils/NetworkDevice/Naming/NamingRuleMatcher.d.mts +26 -0
  316. package/Utils/NetworkDevice/Naming/NamingRuleMatcher.d.ts +26 -0
  317. package/Utils/NetworkDevice/Naming/NamingRuleMatcher.js +327 -0
  318. package/Utils/NetworkDevice/Naming/NamingRuleMatcher.mjs +7 -0
  319. package/Utils/NetworkDiscovery/DiscoveredNameUpgrade.d.mts +1 -0
  320. package/Utils/NetworkDiscovery/DiscoveredNameUpgrade.d.ts +1 -0
  321. package/Utils/NetworkDiscovery/DiscoveredNameUpgrade.js +8 -0
  322. package/Utils/NetworkDiscovery/PingMonitorBuilder.d.mts +2 -0
  323. package/Utils/NetworkDiscovery/PingMonitorBuilder.d.ts +2 -0
  324. package/Utils/NetworkDiscovery/PingMonitorBuilder.js +1 -0
  325. package/Utils/{Rum → SessionReplay}/SessionReplayHealth.d.mts +7 -6
  326. package/Utils/{Rum → SessionReplay}/SessionReplayHealth.d.ts +7 -6
  327. package/Utils/SessionReplay/SessionReplayHealth.js +703 -0
  328. package/Utils/Slo/SloErrorBudgetPolicy.d.mts +7 -0
  329. package/Utils/Slo/SloErrorBudgetPolicy.d.ts +7 -0
  330. package/Utils/Slo/SloErrorBudgetPolicy.js +39 -0
  331. package/Utils/Slo/SloErrorBudgetPolicy.mjs +1 -0
  332. package/Utils/Slo/SloFeedMarkdown.d.mts +19 -4
  333. package/Utils/Slo/SloFeedMarkdown.d.ts +19 -4
  334. package/Utils/Slo/SloFeedMarkdown.js +64 -17
  335. package/Utils/Slo/SloFeedMarkdown.mjs +4 -0
  336. package/Utils/Slo/SloProjection.d.mts +18 -0
  337. package/Utils/Slo/SloProjection.d.ts +18 -0
  338. package/Utils/Slo/SloProjection.js +53 -12
  339. package/Utils/Slo/SloProjection.mjs +2 -0
  340. package/Utils/StatusPage/ResourceExplorer.d.mts +0 -10
  341. package/Utils/StatusPage/ResourceExplorer.d.ts +0 -10
  342. package/Utils/StatusPage/ResourceExplorer.js +5 -32
  343. package/Utils/TotpSetupKey.d.mts +3 -0
  344. package/Utils/TotpSetupKey.d.ts +3 -0
  345. package/Utils/TotpSetupKey.js +72 -0
  346. package/Utils/TotpSetupKey.mjs +4 -0
  347. package/Utils/Workspace/WorkspaceChannelName.js +5 -1
  348. package/package.json +1 -1
  349. package/Utils/Rum/SessionReplayHealth.js +0 -558
  350. /package/Utils/{Rum → SessionReplay}/SessionReplayHealth.mjs +0 -0
@@ -0,0 +1,603 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ENGLISH_REPORT_WORDS = exports.INVESTIGATION_REPORT_LANGUAGES = exports.ENGLISH_REPORT_LANGUAGE_CODE = exports.INVESTIGATION_REPORT_IMPACT_LABEL_TERMS = exports.INVESTIGATION_REPORT_HEADING_TERMS = exports.InvestigationReportTerm = void 0;
4
+ exports.getInvestigationReportWordKey = getInvestigationReportWordKey;
5
+ exports.readTranslatedReportTerm = readTranslatedReportTerm;
6
+ exports.getTranslatedReportWords = getTranslatedReportWords;
7
+ exports.getInvestigationReportLanguage = getInvestigationReportLanguage;
8
+ const RegExpCharacterClasses_1 = require("../RegExpCharacterClasses");
9
+ /*
10
+ * THE WORDS AN AI REPORT'S HEADINGS AND IMPACT LABELS ARE WRITTEN WITH, IN
11
+ * EVERY LANGUAGE THE DASHBOARD READS (issue #6542).
12
+ *
13
+ * OneUptime AI writes what people read in the language a team's AI context
14
+ * asks for, the investigation report's headings included. The AI card lays
15
+ * the report out by those headings - the summary first, the impact with a
16
+ * mark for each line, the causes ruled out as a list (InvestigationReport) -
17
+ * so a heading the card cannot read leaves the report as one block of text.
18
+ * Both sides read this table: a run that read an AI context is told each
19
+ * language's words for the headings its persona asks for
20
+ * (AIInvestigationEngine.getReportLanguageInstructions), and the report
21
+ * parser reads those words, and a few others a model writes for them, as it
22
+ * reads the English ones.
23
+ *
24
+ * The words are the Dashboard's own where its locale files have them
25
+ * ("Summary", "Impact", "Evidence", "Root cause", "Next steps", "Users",
26
+ * "Services", "SLOs", and "ruled out" in "Fixes it ruled out"), so a report
27
+ * reads as the page around it does.
28
+ *
29
+ * Pure data and one key: no server or UI code, so it loads the same in the
30
+ * dashboard, the API server and Common jest.
31
+ */
32
+ // What a word names: a heading the persona asks for, or an Impact line's label.
33
+ var InvestigationReportTerm;
34
+ (function (InvestigationReportTerm) {
35
+ InvestigationReportTerm["Summary"] = "Summary";
36
+ InvestigationReportTerm["Impact"] = "Impact";
37
+ InvestigationReportTerm["RootCause"] = "RootCause";
38
+ InvestigationReportTerm["Evidence"] = "Evidence";
39
+ InvestigationReportTerm["RuledOut"] = "RuledOut";
40
+ InvestigationReportTerm["NextSteps"] = "NextSteps";
41
+ InvestigationReportTerm["Users"] = "Users";
42
+ InvestigationReportTerm["Services"] = "Services";
43
+ InvestigationReportTerm["Slos"] = "Slos";
44
+ })(InvestigationReportTerm || (exports.InvestigationReportTerm = InvestigationReportTerm = {}));
45
+ // The section headings, in the order the investigation persona asks for them.
46
+ exports.INVESTIGATION_REPORT_HEADING_TERMS = [
47
+ InvestigationReportTerm.Summary,
48
+ InvestigationReportTerm.Impact,
49
+ InvestigationReportTerm.RootCause,
50
+ InvestigationReportTerm.Evidence,
51
+ InvestigationReportTerm.RuledOut,
52
+ InvestigationReportTerm.NextSteps,
53
+ ];
54
+ // The labels the Impact section's lines open with, in order.
55
+ exports.INVESTIGATION_REPORT_IMPACT_LABEL_TERMS = [
56
+ InvestigationReportTerm.Users,
57
+ InvestigationReportTerm.Services,
58
+ InvestigationReportTerm.Slos,
59
+ ];
60
+ exports.ENGLISH_REPORT_LANGUAGE_CODE = "en";
61
+ /*
62
+ * English first: the words the personas spell out, which the report parser
63
+ * reads with its own English tables (KNOWN_LABELS, IMPACT_ASPECT_WORDS) as
64
+ * it always has. Then the Dashboard's other languages, in its order.
65
+ */
66
+ exports.INVESTIGATION_REPORT_LANGUAGES = [
67
+ {
68
+ code: exports.ENGLISH_REPORT_LANGUAGE_CODE,
69
+ words: {
70
+ Summary: "Summary",
71
+ Impact: "Impact",
72
+ RootCause: "Most likely root cause",
73
+ Evidence: "Evidence",
74
+ RuledOut: "Ruled out",
75
+ NextSteps: "Suggested next steps",
76
+ Users: "Users",
77
+ Services: "Services",
78
+ Slos: "SLOs",
79
+ },
80
+ otherWords: {},
81
+ },
82
+ {
83
+ code: "de",
84
+ words: {
85
+ Summary: "Zusammenfassung",
86
+ Impact: "Auswirkungen",
87
+ RootCause: "Wahrscheinlichste Grundursache",
88
+ Evidence: "Belege",
89
+ RuledOut: "Ausgeschlossene Ursachen",
90
+ NextSteps: "Vorgeschlagene nächste Schritte",
91
+ Users: "Benutzer",
92
+ Services: "Dienste",
93
+ Slos: "SLOs",
94
+ },
95
+ otherWords: {
96
+ Summary: ["Kurzfassung"],
97
+ Impact: ["Auswirkung"],
98
+ RootCause: [
99
+ "Grundursache",
100
+ "Wahrscheinliche Grundursache",
101
+ "Wahrscheinlichste Ursache",
102
+ "Ursache",
103
+ ],
104
+ Evidence: ["Beweise", "Nachweise"],
105
+ RuledOut: ["Ausgeschlossen"],
106
+ NextSteps: ["Nächste Schritte", "Empfohlene nächste Schritte"],
107
+ Users: ["Nutzer"],
108
+ Slos: ["SLO"],
109
+ },
110
+ },
111
+ {
112
+ code: "fr",
113
+ words: {
114
+ Summary: "Résumé",
115
+ Impact: "Impact",
116
+ RootCause: "Cause racine la plus probable",
117
+ Evidence: "Preuves",
118
+ RuledOut: "Causes écartées",
119
+ NextSteps: "Prochaines étapes suggérées",
120
+ Users: "Utilisateurs",
121
+ Services: "Services",
122
+ Slos: "SLOs",
123
+ },
124
+ otherWords: {
125
+ Summary: ["Synthèse"],
126
+ RootCause: ["Cause racine", "Cause racine probable"],
127
+ Evidence: ["Éléments de preuve"],
128
+ RuledOut: ["Écartées", "Hypothèses écartées"],
129
+ NextSteps: ["Prochaines étapes", "Étapes suivantes"],
130
+ Slos: ["SLO"],
131
+ },
132
+ },
133
+ {
134
+ code: "es",
135
+ words: {
136
+ Summary: "Resumen",
137
+ Impact: "Impacto",
138
+ RootCause: "Causa raíz más probable",
139
+ Evidence: "Evidencias",
140
+ RuledOut: "Causas descartadas",
141
+ NextSteps: "Próximos pasos sugeridos",
142
+ Users: "Usuarios",
143
+ Services: "Servicios",
144
+ Slos: "SLO",
145
+ },
146
+ otherWords: {
147
+ RootCause: ["Causa raíz", "Causa raíz probable"],
148
+ Evidence: ["Evidencia", "Pruebas"],
149
+ RuledOut: ["Descartadas", "Hipótesis descartadas"],
150
+ NextSteps: ["Próximos pasos", "Siguientes pasos"],
151
+ Slos: ["SLOs"],
152
+ },
153
+ },
154
+ {
155
+ code: "it",
156
+ words: {
157
+ Summary: "Riepilogo",
158
+ Impact: "Impatto",
159
+ RootCause: "Causa principale più probabile",
160
+ Evidence: "Prove",
161
+ RuledOut: "Cause scartate",
162
+ NextSteps: "Prossimi passi suggeriti",
163
+ Users: "Utenti",
164
+ Services: "Servizi",
165
+ Slos: "SLOs",
166
+ },
167
+ otherWords: {
168
+ Summary: ["Sintesi", "Riassunto"],
169
+ RootCause: [
170
+ "Causa principale",
171
+ "Causa principale probabile",
172
+ "Causa radice",
173
+ ],
174
+ Evidence: ["Evidenze"],
175
+ RuledOut: ["Cause escluse", "Escluse"],
176
+ NextSteps: ["Prossimi passi", "Passi successivi"],
177
+ Slos: ["SLO"],
178
+ },
179
+ },
180
+ {
181
+ code: "pt",
182
+ words: {
183
+ Summary: "Resumo",
184
+ Impact: "Impacto",
185
+ RootCause: "Causa raiz mais provável",
186
+ Evidence: "Evidências",
187
+ RuledOut: "Causas descartadas",
188
+ NextSteps: "Próximos passos sugeridos",
189
+ Users: "Usuários",
190
+ Services: "Serviços",
191
+ Slos: "SLOs",
192
+ },
193
+ otherWords: {
194
+ RootCause: ["Causa raiz", "Causa raiz provável"],
195
+ Evidence: ["Evidência", "Provas"],
196
+ RuledOut: ["Descartadas", "Hipóteses descartadas"],
197
+ NextSteps: ["Próximos passos", "Próximas etapas"],
198
+ Users: ["Utilizadores"],
199
+ Slos: ["SLO"],
200
+ },
201
+ },
202
+ {
203
+ code: "nl",
204
+ words: {
205
+ Summary: "Samenvatting",
206
+ Impact: "Impact",
207
+ RootCause: "Meest waarschijnlijke hoofdoorzaak",
208
+ Evidence: "Bewijs",
209
+ RuledOut: "Uitgesloten oorzaken",
210
+ NextSteps: "Voorgestelde volgende stappen",
211
+ Users: "Gebruikers",
212
+ Services: "Services",
213
+ Slos: "SLOs",
214
+ },
215
+ otherWords: {
216
+ RootCause: ["Hoofdoorzaak", "Waarschijnlijke hoofdoorzaak"],
217
+ Evidence: ["Bewijzen", "Bewijsmateriaal"],
218
+ RuledOut: ["Uitgesloten"],
219
+ NextSteps: ["Volgende stappen"],
220
+ Services: ["Diensten"],
221
+ Slos: ["SLO"],
222
+ },
223
+ },
224
+ {
225
+ code: "da",
226
+ words: {
227
+ Summary: "Oversigt",
228
+ Impact: "Påvirkning",
229
+ RootCause: "Mest sandsynlige grundårsag",
230
+ Evidence: "Beviser",
231
+ RuledOut: "Udelukkede årsager",
232
+ NextSteps: "Foreslåede næste trin",
233
+ Users: "Brugere",
234
+ Services: "Tjenester",
235
+ Slos: "SLOs",
236
+ },
237
+ otherWords: {
238
+ Summary: ["Resumé", "Opsummering"],
239
+ RootCause: ["Grundårsag", "Sandsynlig grundårsag"],
240
+ Evidence: ["Bevis"],
241
+ RuledOut: ["Udelukket"],
242
+ NextSteps: ["Næste trin"],
243
+ Slos: ["SLO"],
244
+ },
245
+ },
246
+ {
247
+ code: "no",
248
+ words: {
249
+ Summary: "Sammendrag",
250
+ Impact: "Påvirkning",
251
+ RootCause: "Mest sannsynlige rotårsak",
252
+ Evidence: "Bevis",
253
+ RuledOut: "Utelukkede årsaker",
254
+ NextSteps: "Foreslåtte neste steg",
255
+ Users: "Brukere",
256
+ Services: "Tjenester",
257
+ Slos: "SLOs",
258
+ },
259
+ otherWords: {
260
+ Summary: ["Oppsummering"],
261
+ RootCause: [
262
+ "Rotårsak",
263
+ "Sannsynlig rotårsak",
264
+ "Mest sannsynlig rotårsak",
265
+ ],
266
+ RuledOut: ["Utelukket"],
267
+ NextSteps: ["Neste steg"],
268
+ Slos: ["SLO"],
269
+ },
270
+ },
271
+ {
272
+ code: "sv",
273
+ words: {
274
+ Summary: "Sammanfattning",
275
+ Impact: "Påverkan",
276
+ RootCause: "Mest trolig rotorsak",
277
+ Evidence: "Bevis",
278
+ RuledOut: "Uteslutna orsaker",
279
+ NextSteps: "Föreslagna nästa steg",
280
+ Users: "Användare",
281
+ Services: "Tjänster",
282
+ Slos: "SLOs",
283
+ },
284
+ otherWords: {
285
+ RootCause: ["Rotorsak", "Trolig rotorsak", "Troligaste rotorsak"],
286
+ RuledOut: ["Uteslutet", "Uteslutna"],
287
+ NextSteps: ["Nästa steg"],
288
+ Slos: ["SLO"],
289
+ },
290
+ },
291
+ {
292
+ code: "ru",
293
+ words: {
294
+ Summary: "Сводка",
295
+ Impact: "Последствия",
296
+ RootCause: "Наиболее вероятная корневая причина",
297
+ Evidence: "Доказательства",
298
+ RuledOut: "Исключённые причины",
299
+ NextSteps: "Предлагаемые следующие шаги",
300
+ Users: "Пользователи",
301
+ Services: "Службы",
302
+ Slos: "SLOs",
303
+ },
304
+ otherWords: {
305
+ Summary: ["Резюме", "Итог", "Итоги", "Кратко"],
306
+ Impact: ["Влияние"],
307
+ RootCause: [
308
+ "Корневая причина",
309
+ "Вероятная корневая причина",
310
+ "Первопричина",
311
+ ],
312
+ Evidence: ["Свидетельства"],
313
+ RuledOut: ["Исключено", "Исключённые гипотезы"],
314
+ NextSteps: ["Следующие шаги", "Рекомендуемые следующие шаги"],
315
+ Services: ["Сервисы"],
316
+ Slos: ["SLO"],
317
+ },
318
+ },
319
+ {
320
+ code: "ja",
321
+ words: {
322
+ Summary: "概要",
323
+ Impact: "影響",
324
+ RootCause: "最も可能性の高い根本原因",
325
+ Evidence: "証拠",
326
+ RuledOut: "除外した原因",
327
+ NextSteps: "推奨される次のステップ",
328
+ Users: "ユーザー",
329
+ Services: "サービス",
330
+ Slos: "SLO",
331
+ },
332
+ otherWords: {
333
+ Summary: ["要約", "サマリー"],
334
+ Impact: ["影響範囲"],
335
+ RootCause: [
336
+ "根本原因",
337
+ "考えられる根本原因",
338
+ "最も考えられる根本原因",
339
+ "推定される根本原因",
340
+ ],
341
+ Evidence: ["根拠"],
342
+ RuledOut: ["除外された原因", "除外"],
343
+ NextSteps: ["次のステップ", "推奨する次のステップ", "推奨対応"],
344
+ Users: ["利用者"],
345
+ Slos: ["SLOs"],
346
+ },
347
+ },
348
+ {
349
+ code: "ko",
350
+ words: {
351
+ Summary: "요약",
352
+ Impact: "영향",
353
+ RootCause: "가장 가능성 높은 근본 원인",
354
+ Evidence: "증거",
355
+ RuledOut: "제외한 원인",
356
+ NextSteps: "제안된 다음 단계",
357
+ Users: "사용자",
358
+ Services: "서비스",
359
+ Slos: "SLOs",
360
+ },
361
+ otherWords: {
362
+ Impact: ["영향 범위"],
363
+ RootCause: [
364
+ "근본 원인",
365
+ "가능성 높은 근본 원인",
366
+ "가장 가능성이 높은 근본 원인",
367
+ ],
368
+ Evidence: ["근거"],
369
+ RuledOut: ["제외된 원인", "배제된 원인"],
370
+ NextSteps: ["다음 단계", "권장 다음 단계"],
371
+ Slos: ["SLO"],
372
+ },
373
+ },
374
+ {
375
+ code: "zh-CN",
376
+ words: {
377
+ Summary: "摘要",
378
+ Impact: "影响",
379
+ RootCause: "最可能的根本原因",
380
+ Evidence: "证据",
381
+ RuledOut: "已排除的原因",
382
+ NextSteps: "建议的后续步骤",
383
+ Users: "用户",
384
+ Services: "服务",
385
+ Slos: "SLOs",
386
+ },
387
+ otherWords: {
388
+ Summary: ["总结", "概要", "概述"],
389
+ Impact: ["影响范围"],
390
+ RootCause: ["根本原因", "可能的根本原因", "最可能的根因", "根因"],
391
+ Evidence: ["依据"],
392
+ RuledOut: ["已排除", "排除的原因"],
393
+ NextSteps: ["后续步骤", "建议的下一步", "下一步", "建议措施"],
394
+ Slos: ["SLO"],
395
+ },
396
+ },
397
+ {
398
+ code: "zh-TW",
399
+ words: {
400
+ Summary: "摘要",
401
+ Impact: "影響",
402
+ RootCause: "最可能的根本原因",
403
+ Evidence: "證據",
404
+ RuledOut: "已排除的原因",
405
+ NextSteps: "建議的後續步驟",
406
+ Users: "使用者",
407
+ Services: "服務",
408
+ Slos: "SLOs",
409
+ },
410
+ otherWords: {
411
+ Summary: ["總結", "概要", "概述"],
412
+ Impact: ["影響範圍"],
413
+ RootCause: ["根本原因", "可能的根本原因", "最可能的根因", "根因"],
414
+ Evidence: ["依據"],
415
+ RuledOut: ["已排除", "排除的原因"],
416
+ NextSteps: ["後續步驟", "建議的下一步", "下一步", "建議措施"],
417
+ Users: ["用戶"],
418
+ Slos: ["SLO"],
419
+ },
420
+ },
421
+ {
422
+ code: "hi",
423
+ words: {
424
+ Summary: "सारांश",
425
+ Impact: "प्रभाव",
426
+ RootCause: "सबसे संभावित मूल कारण",
427
+ Evidence: "साक्ष्य",
428
+ RuledOut: "खारिज किए गए कारण",
429
+ NextSteps: "सुझाए गए अगले कदम",
430
+ Users: "उपयोगकर्ता",
431
+ Services: "सेवाएं",
432
+ Slos: "SLOs",
433
+ },
434
+ otherWords: {
435
+ RootCause: ["मूल कारण", "संभावित मूल कारण"],
436
+ Evidence: ["सबूत", "प्रमाण"],
437
+ RuledOut: ["ख़ारिज किए गए कारण", "खारिज किए गए"],
438
+ NextSteps: ["अगले कदम", "सुझाए गए अगले क़दम"],
439
+ Services: ["सेवाएँ"],
440
+ Slos: ["SLO"],
441
+ },
442
+ },
443
+ {
444
+ code: "fa",
445
+ words: {
446
+ Summary: "خلاصه",
447
+ Impact: "تأثیر",
448
+ RootCause: "محتمل‌ترین علت ریشه‌ای",
449
+ Evidence: "شواهد",
450
+ RuledOut: "علت‌های ردشده",
451
+ NextSteps: "گام‌های بعدی پیشنهادی",
452
+ Users: "کاربران",
453
+ Services: "سرویس‌ها",
454
+ Slos: "SLOs",
455
+ },
456
+ otherWords: {
457
+ Summary: ["جمع‌بندی"],
458
+ Impact: ["اثرات"],
459
+ RootCause: ["علت ریشه‌ای", "علت ریشه‌ای محتمل"],
460
+ RuledOut: ["موارد ردشده", "فرضیه‌های ردشده"],
461
+ NextSteps: ["گام‌های بعدی", "اقدامات پیشنهادی"],
462
+ Services: ["خدمات"],
463
+ Slos: ["SLO"],
464
+ },
465
+ },
466
+ {
467
+ code: "ar",
468
+ words: {
469
+ Summary: "الملخص",
470
+ Impact: "التأثير",
471
+ RootCause: "السبب الجذري الأكثر احتمالًا",
472
+ Evidence: "الأدلة",
473
+ RuledOut: "الأسباب المستبعدة",
474
+ NextSteps: "الخطوات التالية المقترحة",
475
+ Users: "المستخدمون",
476
+ Services: "الخدمات",
477
+ Slos: "أهداف SLO",
478
+ },
479
+ otherWords: {
480
+ Summary: ["ملخص"],
481
+ Impact: ["الأثر", "تأثير"],
482
+ RootCause: ["السبب الجذري", "السبب الجذري المحتمل"],
483
+ Evidence: ["أدلة"],
484
+ RuledOut: ["المستبعد", "الأسباب التي تم استبعادها"],
485
+ NextSteps: ["الخطوات التالية", "الخطوات المقترحة"],
486
+ Users: ["المستخدمين"],
487
+ Services: ["خدمات"],
488
+ Slos: ["SLOs", "SLO"],
489
+ },
490
+ },
491
+ ];
492
+ /*
493
+ * What a key leaves out: the joiners Persian writes inside a word (a model
494
+ * writes the same word with one, a space or nothing), the word joiner, the
495
+ * byte order mark, and the Arabic letters' stretch (tatweel).
496
+ */
497
+ const KEY_LEFT_OUT_CODES = new Set([
498
+ 0x200b, 0x200c, 0x200d, 0x2060, 0xfeff, 0x0640,
499
+ ]);
500
+ // The Arabic vowel marks a model may or may not write over a word.
501
+ function isArabicVowelMark(code) {
502
+ return (code >= 0x064b && code <= 0x065f) || code === 0x0670;
503
+ }
504
+ /*
505
+ * Letters written two ways for one word: Russian "ё" and "е"; an alef with
506
+ * a hamza or a madda and a bare alef; the Arabic and the Persian yeh and
507
+ * kaf. Each is read as the second.
508
+ */
509
+ const KEY_SAME_LETTERS = new Map([
510
+ [0x0451, String.fromCharCode(0x0435)],
511
+ [0x0622, String.fromCharCode(0x0627)],
512
+ [0x0623, String.fromCharCode(0x0627)],
513
+ [0x0625, String.fromCharCode(0x0627)],
514
+ [0x0671, String.fromCharCode(0x0627)],
515
+ [0x064a, String.fromCharCode(0x06cc)],
516
+ [0x0649, String.fromCharCode(0x06cc)],
517
+ [0x0643, String.fromCharCode(0x06a9)],
518
+ ]);
519
+ // A key is looked up, never stored: longer text than any word is no word.
520
+ const MAX_KEY_INPUT_LENGTH = 200;
521
+ /*
522
+ * A word as it is looked up, in any language: in its compatibility form
523
+ * (NFKC - a full-width letter or colon is the plain one), in lower case,
524
+ * without white space (Korean spaces its words as a writer likes; Chinese
525
+ * and Japanese do not space them), and with the letters a word is written
526
+ * either way with read as one (above). One pass over at most a short
527
+ * label's length.
528
+ */
529
+ function getInvestigationReportWordKey(text) {
530
+ if (typeof text !== "string" || text.length > MAX_KEY_INPUT_LENGTH) {
531
+ return "";
532
+ }
533
+ let key = "";
534
+ for (const character of text.normalize("NFKC").toLowerCase()) {
535
+ const code = character.codePointAt(0) || 0;
536
+ if ((0, RegExpCharacterClasses_1.isWhiteSpaceCode)(code) ||
537
+ KEY_LEFT_OUT_CODES.has(code) ||
538
+ isArabicVowelMark(code)) {
539
+ continue;
540
+ }
541
+ key += KEY_SAME_LETTERS.get(code) || character;
542
+ }
543
+ return key;
544
+ }
545
+ // Every word a language other than English writes for a term, by its key.
546
+ function buildTermsByKey() {
547
+ const termsByKey = new Map();
548
+ for (const language of exports.INVESTIGATION_REPORT_LANGUAGES) {
549
+ if (language.code === exports.ENGLISH_REPORT_LANGUAGE_CODE) {
550
+ continue;
551
+ }
552
+ for (const term of Object.values(InvestigationReportTerm)) {
553
+ for (const word of [
554
+ language.words[term],
555
+ ...(language.otherWords[term] || []),
556
+ ]) {
557
+ const key = getInvestigationReportWordKey(word);
558
+ // The first language to write a word keeps it (a test holds them apart).
559
+ if (key && !termsByKey.has(key)) {
560
+ termsByKey.set(key, term);
561
+ }
562
+ }
563
+ }
564
+ }
565
+ return termsByKey;
566
+ }
567
+ const TERMS_BY_KEY = buildTermsByKey();
568
+ /*
569
+ * The term a heading or a label of a language other than English names, or
570
+ * null: "摘要" and "Zusammenfassung" are the Summary, "用户" the Users. The
571
+ * text is the label alone - its emphasis, colon and qualifier already taken
572
+ * off. English is read by the report parser's own tables, as it always was.
573
+ */
574
+ function readTranslatedReportTerm(text) {
575
+ const key = getInvestigationReportWordKey(text);
576
+ return key ? TERMS_BY_KEY.get(key) || null : null;
577
+ }
578
+ // Every word for a term in every language other than English, as written.
579
+ function getTranslatedReportWords(term) {
580
+ const words = [];
581
+ for (const language of exports.INVESTIGATION_REPORT_LANGUAGES) {
582
+ if (language.code === exports.ENGLISH_REPORT_LANGUAGE_CODE) {
583
+ continue;
584
+ }
585
+ for (const word of [
586
+ language.words[term],
587
+ ...(language.otherWords[term] || []),
588
+ ]) {
589
+ if (!words.includes(word)) {
590
+ words.push(word);
591
+ }
592
+ }
593
+ }
594
+ return words;
595
+ }
596
+ // The language of a code, or undefined.
597
+ function getInvestigationReportLanguage(code) {
598
+ return exports.INVESTIGATION_REPORT_LANGUAGES.find((language) => {
599
+ return language.code === code;
600
+ });
601
+ }
602
+ // The words the personas spell out: English's.
603
+ exports.ENGLISH_REPORT_WORDS = getInvestigationReportLanguage(exports.ENGLISH_REPORT_LANGUAGE_CODE).words;
@@ -0,0 +1,11 @@
1
+ import commonJsModule from "./InvestigationReportLanguages.js";
2
+ export const ENGLISH_REPORT_LANGUAGE_CODE = commonJsModule.ENGLISH_REPORT_LANGUAGE_CODE;
3
+ export const ENGLISH_REPORT_WORDS = commonJsModule.ENGLISH_REPORT_WORDS;
4
+ export const INVESTIGATION_REPORT_HEADING_TERMS = commonJsModule.INVESTIGATION_REPORT_HEADING_TERMS;
5
+ export const INVESTIGATION_REPORT_IMPACT_LABEL_TERMS = commonJsModule.INVESTIGATION_REPORT_IMPACT_LABEL_TERMS;
6
+ export const INVESTIGATION_REPORT_LANGUAGES = commonJsModule.INVESTIGATION_REPORT_LANGUAGES;
7
+ export const InvestigationReportTerm = commonJsModule.InvestigationReportTerm;
8
+ export const getInvestigationReportLanguage = commonJsModule.getInvestigationReportLanguage;
9
+ export const getInvestigationReportWordKey = commonJsModule.getInvestigationReportWordKey;
10
+ export const getTranslatedReportWords = commonJsModule.getTranslatedReportWords;
11
+ export const readTranslatedReportTerm = commonJsModule.readTranslatedReportTerm;
package/Utils/Crypto.js CHANGED
@@ -3,13 +3,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const crypto_js_1 = __importDefault(require("crypto-js"));
6
+ /*
7
+ * The two hashes this class gives, not crypto-js's index: a public dashboard
8
+ * reaches it through its metric charts (Utils/Telemetry/EntityKey), and the
9
+ * index brings every cipher and hash crypto-js has (HashedString says what
10
+ * that weighs).
11
+ */
12
+ const md5_1 = __importDefault(require("crypto-js/md5"));
13
+ const sha256_1 = __importDefault(require("crypto-js/sha256"));
7
14
  class Crypto {
8
15
  static getMd5Hash(text) {
9
- return crypto_js_1.default.MD5(text).toString();
16
+ return (0, md5_1.default)(text).toString();
10
17
  }
11
18
  static getSha256Hash(text) {
12
- return crypto_js_1.default.SHA256(text).toString();
19
+ return (0, sha256_1.default)(text).toString();
13
20
  }
14
21
  }
15
22
  exports.default = Crypto;
@@ -0,0 +1,7 @@
1
+ import DashboardProductAnalyticsFunnelComponent from "../../../Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.mjs";
2
+ import { ComponentArgument } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument.mjs";
3
+ import DashboardBaseComponentUtil from "./DashboardBaseComponent.mjs";
4
+ export default class DashboardProductAnalyticsFunnelComponentUtil extends DashboardBaseComponentUtil {
5
+ static getDefaultComponent(): DashboardProductAnalyticsFunnelComponent;
6
+ static getComponentConfigArguments(): Array<ComponentArgument<DashboardProductAnalyticsFunnelComponent>>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import DashboardProductAnalyticsFunnelComponent from "../../../Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent";
2
+ import { ComponentArgument } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
3
+ import DashboardBaseComponentUtil from "./DashboardBaseComponent";
4
+ export default class DashboardProductAnalyticsFunnelComponentUtil extends DashboardBaseComponentUtil {
5
+ static getDefaultComponent(): DashboardProductAnalyticsFunnelComponent;
6
+ static getComponentConfigArguments(): Array<ComponentArgument<DashboardProductAnalyticsFunnelComponent>>;
7
+ }