@oneuptime/common 14.0.104 → 14.0.106

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 (1038) hide show
  1. package/Models/AnalyticsModels/CloudCost.d.mts +2 -0
  2. package/Models/AnalyticsModels/CloudCost.d.ts +2 -0
  3. package/Models/AnalyticsModels/CloudCost.js +27 -0
  4. package/Models/AnalyticsModels/Index.js +8 -0
  5. package/Models/AnalyticsModels/RumProductAnalyticsSession.d.mts +14 -0
  6. package/Models/AnalyticsModels/RumProductAnalyticsSession.d.ts +14 -0
  7. package/Models/AnalyticsModels/RumProductAnalyticsSession.js +410 -0
  8. package/Models/AnalyticsModels/RumProductAnalyticsSession.mjs +11 -0
  9. package/Models/AnalyticsModels/RumProductAnalyticsUser.d.mts +4 -0
  10. package/Models/AnalyticsModels/RumProductAnalyticsUser.d.ts +4 -0
  11. package/Models/AnalyticsModels/RumProductAnalyticsUser.js +210 -0
  12. package/Models/AnalyticsModels/RumProductAnalyticsUser.mjs +2 -0
  13. package/Models/AnalyticsModels/RumSession.js +66 -12
  14. package/Models/AnalyticsModels/RumSessionChunk.js +30 -2
  15. package/Models/DatabaseModels/AIAgentTaskPullRequest.js +24 -9
  16. package/Models/DatabaseModels/AIRun.d.mts +4 -0
  17. package/Models/DatabaseModels/AIRun.d.ts +4 -0
  18. package/Models/DatabaseModels/AIRun.js +107 -0
  19. package/Models/DatabaseModels/Alert.d.mts +2 -0
  20. package/Models/DatabaseModels/Alert.d.ts +2 -0
  21. package/Models/DatabaseModels/Alert.js +70 -0
  22. package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.d.mts +18 -0
  23. package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.d.ts +18 -0
  24. package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.js +456 -0
  25. package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.mjs +2 -0
  26. package/Models/DatabaseModels/AlertGroupingRule.d.mts +2 -0
  27. package/Models/DatabaseModels/AlertGroupingRule.d.ts +2 -0
  28. package/Models/DatabaseModels/AlertGroupingRule.js +85 -0
  29. package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.d.mts +18 -0
  30. package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.d.ts +18 -0
  31. package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.js +456 -0
  32. package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.mjs +2 -0
  33. package/Models/DatabaseModels/AuditLogExport.d.mts +1 -0
  34. package/Models/DatabaseModels/AuditLogExport.d.ts +1 -0
  35. package/Models/DatabaseModels/AuditLogExport.js +32 -0
  36. package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +4 -0
  37. package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +4 -0
  38. package/Models/DatabaseModels/AutoRemediationSuggestion.js +109 -0
  39. package/Models/DatabaseModels/CephCluster.d.mts +1 -0
  40. package/Models/DatabaseModels/CephCluster.d.ts +1 -0
  41. package/Models/DatabaseModels/CephCluster.js +36 -0
  42. package/Models/DatabaseModels/CloudAccount.d.mts +2 -0
  43. package/Models/DatabaseModels/CloudAccount.d.ts +2 -0
  44. package/Models/DatabaseModels/CloudAccount.js +48 -0
  45. package/Models/DatabaseModels/CloudBudget.d.mts +1 -0
  46. package/Models/DatabaseModels/CloudBudget.d.ts +1 -0
  47. package/Models/DatabaseModels/CloudBudget.js +38 -3
  48. package/Models/DatabaseModels/CloudConnection.d.mts +1 -0
  49. package/Models/DatabaseModels/CloudConnection.d.ts +1 -0
  50. package/Models/DatabaseModels/CloudConnection.js +27 -6
  51. package/Models/DatabaseModels/CloudCostRecommendation.d.mts +2 -0
  52. package/Models/DatabaseModels/CloudCostRecommendation.d.ts +2 -0
  53. package/Models/DatabaseModels/CloudCostRecommendation.js +30 -2
  54. package/Models/DatabaseModels/CodeRepository.js +23 -6
  55. package/Models/DatabaseModels/DataStoreFinding.js +8 -2
  56. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -1
  57. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -1
  58. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js +21 -0
  59. package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.d.mts +2 -0
  60. package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.d.ts +2 -0
  61. package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.js +35 -1
  62. package/Models/DatabaseModels/DatabaseServer.d.mts +1 -0
  63. package/Models/DatabaseModels/DatabaseServer.d.ts +1 -0
  64. package/Models/DatabaseModels/DatabaseServer.js +36 -0
  65. package/Models/DatabaseModels/DetectionRule.js +8 -7
  66. package/Models/DatabaseModels/DockerHost.d.mts +1 -0
  67. package/Models/DatabaseModels/DockerHost.d.ts +1 -0
  68. package/Models/DatabaseModels/DockerHost.js +36 -0
  69. package/Models/DatabaseModels/DockerSwarmCluster.d.mts +1 -0
  70. package/Models/DatabaseModels/DockerSwarmCluster.d.ts +1 -0
  71. package/Models/DatabaseModels/DockerSwarmCluster.js +36 -0
  72. package/Models/DatabaseModels/GlobalConfig.d.mts +36 -1
  73. package/Models/DatabaseModels/GlobalConfig.d.ts +36 -1
  74. package/Models/DatabaseModels/GlobalConfig.js +635 -2
  75. package/Models/DatabaseModels/Host.d.mts +1 -0
  76. package/Models/DatabaseModels/Host.d.ts +1 -0
  77. package/Models/DatabaseModels/Host.js +36 -0
  78. package/Models/DatabaseModels/Incident.d.mts +2 -0
  79. package/Models/DatabaseModels/Incident.d.ts +2 -0
  80. package/Models/DatabaseModels/Incident.js +70 -0
  81. package/Models/DatabaseModels/IncidentEpisodeFeed.d.mts +2 -1
  82. package/Models/DatabaseModels/IncidentEpisodeFeed.d.ts +2 -1
  83. package/Models/DatabaseModels/IncidentEpisodeFeed.js +7 -0
  84. package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.d.mts +18 -0
  85. package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.d.ts +18 -0
  86. package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.js +456 -0
  87. package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.mjs +2 -0
  88. package/Models/DatabaseModels/IncidentEpisodePublicNote.d.mts +5 -0
  89. package/Models/DatabaseModels/IncidentEpisodePublicNote.d.ts +5 -0
  90. package/Models/DatabaseModels/IncidentEpisodePublicNote.js +185 -0
  91. package/Models/DatabaseModels/IncidentFeed.d.mts +2 -1
  92. package/Models/DatabaseModels/IncidentFeed.d.ts +2 -1
  93. package/Models/DatabaseModels/IncidentFeed.js +7 -0
  94. package/Models/DatabaseModels/IncidentGroupingRule.d.mts +2 -0
  95. package/Models/DatabaseModels/IncidentGroupingRule.d.ts +2 -0
  96. package/Models/DatabaseModels/IncidentGroupingRule.js +85 -0
  97. package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.d.mts +18 -0
  98. package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.d.ts +18 -0
  99. package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.js +456 -0
  100. package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.mjs +2 -0
  101. package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.d.mts +18 -0
  102. package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.d.ts +18 -0
  103. package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.js +456 -0
  104. package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.mjs +2 -0
  105. package/Models/DatabaseModels/IncidentPublicNote.d.mts +5 -0
  106. package/Models/DatabaseModels/IncidentPublicNote.d.ts +5 -0
  107. package/Models/DatabaseModels/IncidentPublicNote.js +185 -0
  108. package/Models/DatabaseModels/Index.js +24 -0
  109. package/Models/DatabaseModels/KubernetesCluster.d.mts +1 -0
  110. package/Models/DatabaseModels/KubernetesCluster.d.ts +1 -0
  111. package/Models/DatabaseModels/KubernetesCluster.js +36 -0
  112. package/Models/DatabaseModels/LlmProvider.d.mts +1 -0
  113. package/Models/DatabaseModels/LlmProvider.d.ts +1 -0
  114. package/Models/DatabaseModels/LlmProvider.js +39 -0
  115. package/Models/DatabaseModels/Monitor.d.mts +2 -0
  116. package/Models/DatabaseModels/Monitor.d.ts +2 -0
  117. package/Models/DatabaseModels/Monitor.js +98 -2
  118. package/Models/DatabaseModels/NetworkDeviceDiscoveryImport.js +11 -6
  119. package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
  120. package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
  121. package/Models/DatabaseModels/NetworkEndpoint.js +48 -0
  122. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +1 -0
  123. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +1 -0
  124. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +54 -0
  125. package/Models/DatabaseModels/OpenStackCloud.d.mts +1 -0
  126. package/Models/DatabaseModels/OpenStackCloud.d.ts +1 -0
  127. package/Models/DatabaseModels/OpenStackCloud.js +27 -0
  128. package/Models/DatabaseModels/PacketCapture.js +3 -1
  129. package/Models/DatabaseModels/PodmanHost.d.mts +1 -0
  130. package/Models/DatabaseModels/PodmanHost.d.ts +1 -0
  131. package/Models/DatabaseModels/PodmanHost.js +36 -0
  132. package/Models/DatabaseModels/Project.d.mts +19 -0
  133. package/Models/DatabaseModels/Project.d.ts +19 -0
  134. package/Models/DatabaseModels/Project.js +541 -0
  135. package/Models/DatabaseModels/ProjectSmtpConfig.d.mts +10 -0
  136. package/Models/DatabaseModels/ProjectSmtpConfig.d.ts +10 -0
  137. package/Models/DatabaseModels/ProjectSmtpConfig.js +335 -1
  138. package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
  139. package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
  140. package/Models/DatabaseModels/ProxmoxCluster.js +36 -0
  141. package/Models/DatabaseModels/PublicNoteApprovalRequest.d.mts +29 -0
  142. package/Models/DatabaseModels/PublicNoteApprovalRequest.d.ts +29 -0
  143. package/Models/DatabaseModels/PublicNoteApprovalRequest.js +460 -0
  144. package/Models/DatabaseModels/PublicNoteApprovalRequest.mjs +3 -0
  145. package/Models/DatabaseModels/PublicNoteApprovalStep.d.mts +19 -0
  146. package/Models/DatabaseModels/PublicNoteApprovalStep.d.ts +19 -0
  147. package/Models/DatabaseModels/PublicNoteApprovalStep.js +363 -0
  148. package/Models/DatabaseModels/PublicNoteApprovalStep.mjs +2 -0
  149. package/Models/DatabaseModels/RumApplication.d.mts +6 -0
  150. package/Models/DatabaseModels/RumApplication.d.ts +6 -0
  151. package/Models/DatabaseModels/RumApplication.js +202 -2
  152. package/Models/DatabaseModels/ScheduledMaintenance.d.mts +2 -0
  153. package/Models/DatabaseModels/ScheduledMaintenance.d.ts +2 -0
  154. package/Models/DatabaseModels/ScheduledMaintenance.js +63 -0
  155. package/Models/DatabaseModels/ScheduledMaintenanceFeed.d.mts +2 -1
  156. package/Models/DatabaseModels/ScheduledMaintenanceFeed.d.ts +2 -1
  157. package/Models/DatabaseModels/ScheduledMaintenanceFeed.js +7 -0
  158. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.d.mts +5 -0
  159. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.d.ts +5 -0
  160. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +185 -0
  161. package/Models/DatabaseModels/ServerlessFunction.js +10 -2
  162. package/Models/DatabaseModels/ServiceLevelObjective.d.mts +5 -0
  163. package/Models/DatabaseModels/ServiceLevelObjective.d.ts +5 -0
  164. package/Models/DatabaseModels/ServiceLevelObjective.js +174 -3
  165. package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +1 -1
  166. package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.d.mts +54 -0
  167. package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.d.ts +54 -0
  168. package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +1674 -0
  169. package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.mjs +2 -0
  170. package/Models/DatabaseModels/ServiceLevelObjectiveFeed.d.mts +8 -1
  171. package/Models/DatabaseModels/ServiceLevelObjectiveFeed.d.ts +8 -1
  172. package/Models/DatabaseModels/ServiceLevelObjectiveFeed.js +14 -0
  173. package/Models/DatabaseModels/TelemetryIngestionKey.d.mts +10 -0
  174. package/Models/DatabaseModels/TelemetryIngestionKey.d.ts +10 -0
  175. package/Models/DatabaseModels/TelemetryIngestionKey.js +199 -0
  176. package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.d.mts +19 -0
  177. package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.d.ts +19 -0
  178. package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +297 -0
  179. package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.mjs +2 -0
  180. package/Models/DatabaseModels/TelemetryUsageBilling.js +35 -122
  181. package/Models/DatabaseModels/User.d.mts +1 -0
  182. package/Models/DatabaseModels/User.d.ts +1 -0
  183. package/Models/DatabaseModels/User.js +29 -0
  184. package/Models/DatabaseModels/UserSession.js +10 -4
  185. package/Models/DatabaseModels/VMwareVCenter.d.mts +1 -0
  186. package/Models/DatabaseModels/VMwareVCenter.d.ts +1 -0
  187. package/Models/DatabaseModels/VMwareVCenter.js +36 -0
  188. package/Models/DatabaseModels/Workflow.d.mts +1 -0
  189. package/Models/DatabaseModels/Workflow.d.ts +1 -0
  190. package/Models/DatabaseModels/Workflow.js +45 -0
  191. package/Models/DatabaseModels/WorkflowVersion.d.mts +24 -0
  192. package/Models/DatabaseModels/WorkflowVersion.d.ts +24 -0
  193. package/Models/DatabaseModels/WorkflowVersion.js +529 -0
  194. package/Models/DatabaseModels/WorkflowVersion.mjs +2 -0
  195. package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.d.mts +18 -0
  196. package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.d.ts +18 -0
  197. package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.js +499 -0
  198. package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.mjs +2 -0
  199. package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.d.mts +31 -0
  200. package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.d.ts +31 -0
  201. package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +537 -0
  202. package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.mjs +2 -0
  203. package/Server/Services/DatabaseService.d.mts +4 -0
  204. package/Server/Services/DatabaseService.d.ts +4 -0
  205. package/Server/Types/Database/UpdateByID.d.mts +1 -0
  206. package/Server/Types/Database/UpdateByID.d.ts +1 -0
  207. package/Server/Types/Database/UpdateOneBy.d.mts +1 -0
  208. package/Server/Types/Database/UpdateOneBy.d.ts +1 -0
  209. package/Server/Utils/Workspace/WorkspaceBase.d.mts +7 -1
  210. package/Server/Utils/Workspace/WorkspaceBase.d.ts +7 -1
  211. package/Types/AI/AIActionWords.d.mts +16 -0
  212. package/Types/AI/AIActionWords.d.ts +16 -0
  213. package/Types/AI/AIActionWords.js +105 -1
  214. package/Types/AI/AIActionWords.mjs +3 -0
  215. package/Types/AI/AIAgentRunLimits.d.mts +76 -13
  216. package/Types/AI/AIAgentRunLimits.d.ts +76 -13
  217. package/Types/AI/AIAgentRunLimits.js +434 -51
  218. package/Types/AI/AIAgentRunLimits.mjs +10 -2
  219. package/Types/AI/AIChatRecordSeen.d.mts +49 -0
  220. package/Types/AI/AIChatRecordSeen.d.ts +49 -0
  221. package/Types/AI/AIChatRecordSeen.js +337 -0
  222. package/Types/AI/AIChatRecordSeen.mjs +12 -0
  223. package/Types/AI/AIChatTypes.d.mts +7 -0
  224. package/Types/AI/AIChatTypes.d.ts +7 -0
  225. package/Types/AI/AIChatTypes.js +15 -1
  226. package/Types/AI/AIChatTypes.mjs +1 -0
  227. package/Types/AI/AIRunAttempt.d.mts +30 -0
  228. package/Types/AI/AIRunAttempt.d.ts +30 -0
  229. package/Types/AI/AIRunAttempt.js +175 -0
  230. package/Types/AI/AIRunAttempt.mjs +5 -0
  231. package/Types/AI/AIRunEventType.d.mts +3 -0
  232. package/Types/AI/AIRunEventType.d.ts +3 -0
  233. package/Types/AI/AIRunEventType.js +28 -0
  234. package/Types/AI/AIRunStatus.d.mts +2 -0
  235. package/Types/AI/AIRunStatus.d.ts +2 -0
  236. package/Types/AI/AIRunStatus.js +12 -0
  237. package/Types/AI/AgentLoopDetector.d.mts +29 -0
  238. package/Types/AI/AgentLoopDetector.d.ts +29 -0
  239. package/Types/AI/AgentLoopDetector.js +196 -0
  240. package/Types/AI/AgentLoopDetector.mjs +9 -0
  241. package/Types/AI/CodeAgentRunLimits.d.mts +28 -0
  242. package/Types/AI/CodeAgentRunLimits.d.ts +28 -0
  243. package/Types/AI/CodeAgentRunLimits.js +163 -0
  244. package/Types/AI/CodeAgentRunLimits.mjs +2 -0
  245. package/Types/AI/CodeFixTaskContext.d.mts +2 -0
  246. package/Types/AI/CodeFixTaskContext.d.ts +2 -0
  247. package/Types/AI/CodeTask.d.mts +20 -0
  248. package/Types/AI/CodeTask.d.ts +20 -0
  249. package/Types/AI/CodeTask.js +23 -1
  250. package/Types/AI/CodeTask.mjs +4 -0
  251. package/Types/AI/CodeTaskRetry.d.mts +21 -0
  252. package/Types/AI/CodeTaskRetry.d.ts +21 -0
  253. package/Types/AI/CodeTaskRetry.js +61 -0
  254. package/Types/AI/CodeTaskRetry.mjs +4 -0
  255. package/Types/AI/CodeTaskStage.d.mts +19 -0
  256. package/Types/AI/CodeTaskStage.d.ts +19 -0
  257. package/Types/AI/CodeTaskStage.js +78 -0
  258. package/Types/AI/CodeTaskStage.mjs +3 -0
  259. package/Types/AI/ExternalMcpServer/ExternalMcpServerLimits.d.mts +0 -1
  260. package/Types/AI/ExternalMcpServer/ExternalMcpServerLimits.d.ts +0 -1
  261. package/Types/AI/ExternalMcpServer/ExternalMcpServerLimits.js +6 -4
  262. package/Types/AI/ExternalMcpServer/ExternalMcpServerLimits.mjs +0 -1
  263. package/Types/AI/ProjectAiRunLimits.d.mts +24 -0
  264. package/Types/AI/ProjectAiRunLimits.d.ts +24 -0
  265. package/Types/AI/ProjectAiRunLimits.js +137 -0
  266. package/Types/AI/ProjectAiRunLimits.mjs +9 -0
  267. package/Types/AI/ResourceAiAccessApi.d.mts +1 -0
  268. package/Types/AI/ResourceAiAccessApi.d.ts +1 -0
  269. package/Types/AI/ResourceAiAccessApi.js +6 -1
  270. package/Types/AI/ResourceAiAccessApi.mjs +1 -0
  271. package/Types/AI/ResourceAiAccessPermissions.d.mts +2 -0
  272. package/Types/AI/ResourceAiAccessPermissions.d.ts +2 -0
  273. package/Types/AI/ResourceAiAccessPermissions.js +13 -0
  274. package/Types/AI/ResourceAiAccessPermissions.mjs +2 -0
  275. package/Types/AI/TransientAIFailure.d.mts +16 -0
  276. package/Types/AI/TransientAIFailure.d.ts +16 -0
  277. package/Types/AI/TransientAIFailure.js +228 -0
  278. package/Types/AI/TransientAIFailure.mjs +4 -0
  279. package/Types/Accounts/AccountsLanguage.js +1 -0
  280. package/Types/AdminDashboard/AdminDashboardLanguage.js +1 -0
  281. package/Types/AnalyticsDatabase/AnalyticsTableName.d.mts +3 -1
  282. package/Types/AnalyticsDatabase/AnalyticsTableName.d.ts +3 -1
  283. package/Types/AnalyticsDatabase/AnalyticsTableName.js +16 -0
  284. package/Types/AuditLog/AuditLogCoverage.d.mts +40 -0
  285. package/Types/AuditLog/AuditLogCoverage.d.ts +40 -0
  286. package/Types/AuditLog/AuditLogCoverage.js +804 -0
  287. package/Types/AuditLog/AuditLogCoverage.mjs +17 -0
  288. package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.d.mts +13 -1
  289. package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.d.ts +13 -1
  290. package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.js +92 -8
  291. package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.mjs +5 -0
  292. package/Types/AuditLog/Export/AuditLogExportRecord.d.mts +14 -4
  293. package/Types/AuditLog/Export/AuditLogExportRecord.d.ts +14 -4
  294. package/Types/AuditLog/Export/AuditLogExportRecord.js +86 -29
  295. package/Types/AuditLog/Export/AuditLogExportRecord.mjs +7 -0
  296. package/Types/AutoRemediation/RemediationApprovals.d.mts +16 -0
  297. package/Types/AutoRemediation/RemediationApprovals.d.ts +16 -0
  298. package/Types/AutoRemediation/RemediationApprovals.js +92 -0
  299. package/Types/AutoRemediation/RemediationApprovals.mjs +7 -0
  300. package/Types/AutoRemediation/RemediationRound.d.mts +56 -0
  301. package/Types/AutoRemediation/RemediationRound.d.ts +56 -0
  302. package/Types/AutoRemediation/RemediationRound.js +242 -0
  303. package/Types/AutoRemediation/RemediationRound.mjs +22 -0
  304. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +2 -0
  305. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +2 -0
  306. package/Types/BaseDatabase/EnableAuditLogOn.d.mts +1 -0
  307. package/Types/BaseDatabase/EnableAuditLogOn.d.ts +1 -0
  308. package/Types/BaseDatabase/WriteSource.d.mts +6 -0
  309. package/Types/BaseDatabase/WriteSource.d.ts +6 -0
  310. package/Types/BaseDatabase/WriteSource.js +25 -0
  311. package/Types/BaseDatabase/WriteSource.mjs +4 -0
  312. package/Types/Cloud/CloudCommitments.d.mts +74 -0
  313. package/Types/Cloud/CloudCommitments.d.ts +74 -0
  314. package/Types/Cloud/CloudCommitments.js +294 -0
  315. package/Types/Cloud/CloudCommitments.mjs +17 -0
  316. package/Types/Cloud/CloudConnectionTelemetry.d.mts +3 -0
  317. package/Types/Cloud/CloudConnectionTelemetry.d.ts +3 -0
  318. package/Types/Cloud/CloudConnectionTelemetry.js +28 -0
  319. package/Types/Cloud/CloudConnectionTelemetry.mjs +3 -0
  320. package/Types/Cloud/CloudCost.d.mts +30 -0
  321. package/Types/Cloud/CloudCost.d.ts +30 -0
  322. package/Types/Cloud/CloudCost.js +163 -1
  323. package/Types/Cloud/CloudCost.mjs +8 -0
  324. package/Types/Cloud/CloudCostAnomaly.d.mts +34 -0
  325. package/Types/Cloud/CloudCostAnomaly.d.ts +34 -0
  326. package/Types/Cloud/CloudCostAnomaly.js +236 -0
  327. package/Types/Cloud/CloudCostAnomaly.mjs +18 -0
  328. package/Types/Cloud/CloudKeyMetrics.d.mts +13 -0
  329. package/Types/Cloud/CloudKeyMetrics.d.ts +13 -0
  330. package/Types/Cloud/CloudKeyMetrics.js +174 -1
  331. package/Types/Cloud/CloudKeyMetrics.mjs +10 -0
  332. package/Types/Cloud/CloudLogGroups.d.mts +33 -2
  333. package/Types/Cloud/CloudLogGroups.d.ts +33 -2
  334. package/Types/Cloud/CloudLogGroups.js +245 -8
  335. package/Types/Cloud/CloudLogGroups.mjs +12 -0
  336. package/Types/Cloud/CloudMonitoredResource.d.mts +1 -0
  337. package/Types/Cloud/CloudMonitoredResource.d.ts +1 -0
  338. package/Types/Cloud/CloudMonitoredResource.js +23 -0
  339. package/Types/Cloud/CloudMonitoredResource.mjs +1 -0
  340. package/Types/Cloud/CloudPlatform.js +9 -8
  341. package/Types/Cloud/CloudPlatformCosts.d.mts +54 -0
  342. package/Types/Cloud/CloudPlatformCosts.d.ts +54 -0
  343. package/Types/Cloud/CloudPlatformCosts.js +249 -0
  344. package/Types/Cloud/CloudPlatformCosts.mjs +7 -0
  345. package/Types/Cloud/CloudResourceCatalog.js +10 -0
  346. package/Types/Cloud/CloudResourceHealth.d.mts +1 -0
  347. package/Types/Cloud/CloudResourceHealth.d.ts +1 -0
  348. package/Types/Cloud/CloudResourceHealth.js +4 -1
  349. package/Types/Cloud/CloudResourceMetricAggregation.d.mts +21 -0
  350. package/Types/Cloud/CloudResourceMetricAggregation.d.ts +21 -0
  351. package/Types/Cloud/CloudResourceMetricAggregation.js +140 -0
  352. package/Types/Cloud/CloudResourceMetricAggregation.mjs +4 -0
  353. package/Types/Cloud/CloudRightSizing.d.mts +140 -0
  354. package/Types/Cloud/CloudRightSizing.d.ts +140 -0
  355. package/Types/Cloud/CloudRightSizing.js +867 -0
  356. package/Types/Cloud/CloudRightSizing.mjs +53 -0
  357. package/Types/Cloud/CloudWatchLogSeverity.d.mts +7 -0
  358. package/Types/Cloud/CloudWatchLogSeverity.d.ts +7 -0
  359. package/Types/Cloud/CloudWatchLogSeverity.js +182 -0
  360. package/Types/Cloud/CloudWatchLogSeverity.mjs +4 -0
  361. package/Types/Cloud/RdsConnectionLimits.d.mts +53 -0
  362. package/Types/Cloud/RdsConnectionLimits.d.ts +53 -0
  363. package/Types/Cloud/RdsConnectionLimits.js +404 -0
  364. package/Types/Cloud/RdsConnectionLimits.mjs +24 -0
  365. package/Types/CloudConnection/AwsStackSets.d.mts +51 -0
  366. package/Types/CloudConnection/AwsStackSets.d.ts +51 -0
  367. package/Types/CloudConnection/AwsStackSets.js +188 -0
  368. package/Types/CloudConnection/AwsStackSets.mjs +15 -0
  369. package/Types/CloudConnection/CloudAiAgentKey.d.mts +65 -0
  370. package/Types/CloudConnection/CloudAiAgentKey.d.ts +65 -0
  371. package/Types/CloudConnection/CloudAiAgentKey.js +289 -0
  372. package/Types/CloudConnection/CloudAiAgentKey.mjs +18 -0
  373. package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +38 -2
  374. package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +38 -2
  375. package/Types/CloudConnection/CloudAiAgentSetupCommands.js +580 -94
  376. package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +20 -1
  377. package/Types/CloudConnection/CloudConnectionCatalog.d.mts +3 -0
  378. package/Types/CloudConnection/CloudConnectionCatalog.d.ts +3 -0
  379. package/Types/CloudConnection/CloudConnectionCatalog.js +31 -1
  380. package/Types/CloudConnection/CloudConnectionCatalog.mjs +2 -0
  381. package/Types/CloudConnection/CloudConnectionSetupCommands.js +24 -7
  382. package/Types/CloudConnection/CloudOrganizationAgents.d.mts +45 -0
  383. package/Types/CloudConnection/CloudOrganizationAgents.d.ts +45 -0
  384. package/Types/CloudConnection/CloudOrganizationAgents.js +182 -0
  385. package/Types/CloudConnection/CloudOrganizationAgents.mjs +12 -0
  386. package/Types/CloudConnection/CloudStream.d.mts +50 -1
  387. package/Types/CloudConnection/CloudStream.d.ts +50 -1
  388. package/Types/CloudConnection/CloudStream.js +333 -23
  389. package/Types/CloudConnection/CloudStream.mjs +35 -0
  390. package/Types/CloudConnection/CloudStreamAzure.d.mts +60 -0
  391. package/Types/CloudConnection/CloudStreamAzure.d.ts +60 -0
  392. package/Types/CloudConnection/CloudStreamAzure.js +418 -0
  393. package/Types/CloudConnection/CloudStreamAzure.mjs +35 -0
  394. package/Types/CloudConnection/CloudStreamGcp.d.mts +55 -0
  395. package/Types/CloudConnection/CloudStreamGcp.d.ts +55 -0
  396. package/Types/CloudConnection/CloudStreamGcp.js +247 -0
  397. package/Types/CloudConnection/CloudStreamGcp.mjs +25 -0
  398. package/Types/CloudConnection/CloudStreamOrganization.d.mts +17 -0
  399. package/Types/CloudConnection/CloudStreamOrganization.d.ts +17 -0
  400. package/Types/CloudConnection/CloudStreamOrganization.js +176 -0
  401. package/Types/CloudConnection/CloudStreamOrganization.mjs +9 -0
  402. package/Types/CloudConnection/CloudStreamTemplate.d.mts +5 -5
  403. package/Types/CloudConnection/CloudStreamTemplate.d.ts +5 -5
  404. package/Types/CloudConnection/CloudStreamTemplate.js +99 -26
  405. package/Types/CloudConnection/CloudStreamTemplate.mjs +2 -0
  406. package/Types/CodeRepository/CodeChangeProposedOnKey.d.mts +1 -0
  407. package/Types/CodeRepository/CodeChangeProposedOnKey.d.ts +1 -0
  408. package/Types/CodeRepository/CodeChangeProposedOnKey.js +12 -0
  409. package/Types/CodeRepository/CodeChangeProposedOnKey.mjs +2 -0
  410. package/Types/CodeRepository/CodeFileSeen.d.mts +106 -0
  411. package/Types/CodeRepository/CodeFileSeen.d.ts +106 -0
  412. package/Types/CodeRepository/CodeFileSeen.js +523 -0
  413. package/Types/CodeRepository/CodeFileSeen.mjs +17 -0
  414. package/Types/CodeRepository/CodeFileValuesHidden.d.mts +21 -0
  415. package/Types/CodeRepository/CodeFileValuesHidden.d.ts +21 -0
  416. package/Types/CodeRepository/CodeFileValuesHidden.js +135 -0
  417. package/Types/CodeRepository/CodeFileValuesHidden.mjs +6 -0
  418. package/Types/CodeRepository/CodeHost.d.mts +15 -0
  419. package/Types/CodeRepository/CodeHost.d.ts +15 -0
  420. package/Types/CodeRepository/CodeHost.js +195 -6
  421. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
  422. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
  423. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +3 -0
  424. package/Types/Dashboard/DashboardComponentType.d.mts +2 -0
  425. package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
  426. package/Types/Dashboard/DashboardComponentType.js +24 -1
  427. package/Types/Dashboard/DashboardComponentType.mjs +2 -0
  428. package/Types/Dashboard/DashboardLanguage.js +1 -0
  429. package/Types/Dashboard/PublicDashboardServedSettings.d.mts +19 -0
  430. package/Types/Dashboard/PublicDashboardServedSettings.d.ts +19 -0
  431. package/Types/Dashboard/PublicDashboardServedSettings.js +501 -0
  432. package/Types/Dashboard/PublicDashboardServedSettings.mjs +12 -0
  433. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +17 -0
  434. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +17 -0
  435. package/Types/DataObservability/DataObservabilityApiTypes.js +5 -1
  436. package/Types/DataObservability/DataObservabilityApiTypes.mjs +1 -0
  437. package/Types/DataObservability/DataObservabilityAttention.d.mts +78 -0
  438. package/Types/DataObservability/DataObservabilityAttention.d.ts +78 -0
  439. package/Types/DataObservability/DataObservabilityAttention.js +163 -0
  440. package/Types/DataObservability/DataObservabilityAttention.mjs +12 -0
  441. package/Types/Database/AccessControl/PermissionScopeNarrowing.js +4 -0
  442. package/Types/Database/EnableAuditLog.js +3 -0
  443. package/Types/Date.d.mts +9 -0
  444. package/Types/Date.d.ts +9 -0
  445. package/Types/Date.js +57 -8
  446. package/Types/DateLanguage.d.mts +3 -0
  447. package/Types/DateLanguage.d.ts +3 -0
  448. package/Types/DateLanguage.js +59 -10
  449. package/Types/DateLanguage.mjs +3 -0
  450. package/Types/Email/EmailServer.d.mts +7 -0
  451. package/Types/Email/EmailServer.d.ts +7 -0
  452. package/Types/Email/EmailTemplateType.d.mts +2 -0
  453. package/Types/Email/EmailTemplateType.d.ts +2 -0
  454. package/Types/Email/EmailTemplateType.js +3 -0
  455. package/Types/Email/MailTransportType.d.mts +29 -9
  456. package/Types/Email/MailTransportType.d.ts +29 -9
  457. package/Types/Email/MailTransportType.js +56 -8
  458. package/Types/Email/MailTransportType.mjs +4 -0
  459. package/Types/Email/MailgunDomain.d.mts +2 -0
  460. package/Types/Email/MailgunDomain.d.ts +2 -0
  461. package/Types/Email/MailgunDomain.js +57 -0
  462. package/Types/Email/MailgunDomain.mjs +3 -0
  463. package/Types/Email/MailgunRegion.d.mts +8 -0
  464. package/Types/Email/MailgunRegion.d.ts +8 -0
  465. package/Types/Email/MailgunRegion.js +32 -0
  466. package/Types/Email/MailgunRegion.mjs +5 -0
  467. package/Types/Exception/ConflictException.d.mts +6 -0
  468. package/Types/Exception/ConflictException.d.ts +6 -0
  469. package/Types/Exception/ConflictException.js +30 -0
  470. package/Types/Exception/ConflictException.mjs +2 -0
  471. package/Types/Exception/ExceptionCode.d.mts +1 -0
  472. package/Types/Exception/ExceptionCode.d.ts +1 -0
  473. package/Types/Exception/ExceptionCode.js +2 -0
  474. package/Types/InstallScripts/InstallScripts.js +1 -1
  475. package/Types/Kubernetes/KubernetesClusterAiAccess.d.mts +0 -1
  476. package/Types/Kubernetes/KubernetesClusterAiAccess.d.ts +0 -1
  477. package/Types/Kubernetes/KubernetesClusterAiAccess.js +7 -6
  478. package/Types/Kubernetes/KubernetesClusterAiAccess.mjs +0 -1
  479. package/Types/Kubernetes/KubernetesEvent.js +5 -4
  480. package/Types/LlmObservability/LlmConnectionCatalog.d.mts +5 -0
  481. package/Types/LlmObservability/LlmConnectionCatalog.d.ts +5 -0
  482. package/Types/LlmObservability/LlmConnectionCatalog.js +35 -0
  483. package/Types/LlmObservability/LlmConnectionProvider.d.mts +1 -0
  484. package/Types/LlmObservability/LlmConnectionProvider.d.ts +1 -0
  485. package/Types/LlmObservability/LlmConnectionProvider.js +4 -2
  486. package/Types/LlmObservability/LlmConnectionRecords.d.mts +7 -0
  487. package/Types/LlmObservability/LlmConnectionRecords.d.ts +7 -0
  488. package/Types/LlmObservability/LlmConnectionTest.d.mts +1 -0
  489. package/Types/LlmObservability/LlmConnectionTest.d.ts +1 -0
  490. package/Types/Log/LogEventName.d.mts +6 -0
  491. package/Types/Log/LogEventName.d.ts +6 -0
  492. package/Types/Log/LogEventName.js +59 -0
  493. package/Types/Log/LogEventName.mjs +4 -0
  494. package/Types/MessageQueue/MessageQueueCloudConnectionMetrics.d.mts +15 -0
  495. package/Types/MessageQueue/MessageQueueCloudConnectionMetrics.d.ts +15 -0
  496. package/Types/MessageQueue/MessageQueueCloudConnectionMetrics.js +51 -0
  497. package/Types/MessageQueue/MessageQueueCloudConnectionMetrics.mjs +4 -0
  498. package/Types/MessageQueue/MessageQueueMetricCatalog.d.mts +1 -1
  499. package/Types/MessageQueue/MessageQueueMetricCatalog.d.ts +1 -1
  500. package/Types/MessageQueue/MessageQueueMetricCatalog.js +64 -0
  501. package/Types/MessageQueue/MessageQueueSpanPopulation.d.mts +65 -0
  502. package/Types/MessageQueue/MessageQueueSpanPopulation.d.ts +65 -0
  503. package/Types/MessageQueue/MessageQueueSpanPopulation.js +326 -0
  504. package/Types/MessageQueue/MessageQueueSpanPopulation.mjs +22 -0
  505. package/Types/MessageQueue/MessageQueueTopology.d.mts +59 -0
  506. package/Types/MessageQueue/MessageQueueTopology.d.ts +59 -0
  507. package/Types/MessageQueue/MessageQueueTopology.js +211 -0
  508. package/Types/MessageQueue/MessageQueueTopology.mjs +8 -0
  509. package/Types/MessageQueue/MessagingSystem.js +6 -2
  510. package/Types/Metrics/MetricsQuery.d.mts +1 -0
  511. package/Types/Metrics/MetricsQuery.d.ts +1 -0
  512. package/Types/Monitor/CloudAlertTemplates.d.mts +122 -0
  513. package/Types/Monitor/CloudAlertTemplates.d.ts +122 -0
  514. package/Types/Monitor/CloudAlertTemplates.js +2003 -0
  515. package/Types/Monitor/CloudAlertTemplates.mjs +26 -0
  516. package/Types/Monitor/CloudAppAlertTemplates.d.mts +34 -0
  517. package/Types/Monitor/CloudAppAlertTemplates.d.ts +34 -0
  518. package/Types/Monitor/CloudAppAlertTemplates.js +331 -0
  519. package/Types/Monitor/CloudAppAlertTemplates.mjs +8 -0
  520. package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.mts +1 -0
  521. package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.ts +1 -0
  522. package/Types/Monitor/MessageQueueAlertTemplates.js +3 -0
  523. package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.mts +1 -0
  524. package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.ts +1 -0
  525. package/Types/Monitor/MonitorEvaluationDetails.d.mts +80 -0
  526. package/Types/Monitor/MonitorEvaluationDetails.d.ts +80 -0
  527. package/Types/Monitor/MonitorEvaluationDetails.js +41 -0
  528. package/Types/Monitor/MonitorEvaluationDetails.mjs +3 -0
  529. package/Types/Monitor/MonitorStepMetricMonitor.d.mts +2 -0
  530. package/Types/Monitor/MonitorStepMetricMonitor.d.ts +2 -0
  531. package/Types/Monitor/MonitorStepMetricMonitor.js +4 -0
  532. package/Types/Monitor/MonitorSummarySnapshot.d.mts +1 -0
  533. package/Types/Monitor/MonitorSummarySnapshot.d.ts +1 -0
  534. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.mts +1 -1
  535. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.ts +1 -1
  536. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +113 -13
  537. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +16 -1
  538. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +16 -1
  539. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +18 -0
  540. package/Types/Monitor/Recommendation/MonitorRecommendationUtil.d.mts +10 -0
  541. package/Types/Monitor/Recommendation/MonitorRecommendationUtil.d.ts +10 -0
  542. package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +54 -1
  543. package/Types/Monitor/TelemetryAlertRule.js +19 -1
  544. package/Types/NetFlow/NetworkTrafficUsage.d.mts +56 -0
  545. package/Types/NetFlow/NetworkTrafficUsage.d.ts +56 -0
  546. package/Types/NetFlow/NetworkTrafficUsage.js +171 -1
  547. package/Types/NetFlow/NetworkTrafficUsage.mjs +11 -0
  548. package/Types/NetworkController/NetworkControllerApplianceLink.d.mts +43 -0
  549. package/Types/NetworkController/NetworkControllerApplianceLink.d.ts +43 -0
  550. package/Types/NetworkController/NetworkControllerApplianceLink.js +107 -0
  551. package/Types/NetworkController/NetworkControllerApplianceLink.mjs +8 -0
  552. package/Types/NetworkDevice/DiscoveredDevice.d.mts +105 -0
  553. package/Types/NetworkDevice/DiscoveredDevice.d.ts +105 -0
  554. package/Types/NetworkDevice/DiscoveredDevice.js +407 -0
  555. package/Types/NetworkDevice/DiscoveredDevice.mjs +23 -0
  556. package/Types/NetworkDevice/DiscoveredDeviceRetention.d.mts +10 -0
  557. package/Types/NetworkDevice/DiscoveredDeviceRetention.d.ts +10 -0
  558. package/Types/NetworkDevice/DiscoveredDeviceRetention.js +93 -0
  559. package/Types/NetworkDevice/DiscoveredDeviceRetention.mjs +11 -0
  560. package/Types/NetworkDevice/DiscoveryImport.d.mts +12 -0
  561. package/Types/NetworkDevice/DiscoveryImport.d.ts +12 -0
  562. package/Types/NetworkDevice/DiscoveryImport.js +53 -1
  563. package/Types/NetworkDevice/DiscoveryImport.mjs +2 -0
  564. package/Types/NetworkDevice/NetworkDeviceTelemetryAttribute.d.mts +2 -0
  565. package/Types/NetworkDevice/NetworkDeviceTelemetryAttribute.d.ts +2 -0
  566. package/Types/NetworkDevice/NetworkDeviceTelemetryAttribute.js +19 -0
  567. package/Types/NetworkDevice/NetworkDeviceTelemetryAttribute.mjs +3 -0
  568. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +8 -0
  569. package/Types/NotificationSetting/NotificationEmailRollupPolicy.js +7 -0
  570. package/Types/NotificationSetting/NotificationSettingEventType.d.mts +2 -0
  571. package/Types/NotificationSetting/NotificationSettingEventType.d.ts +2 -0
  572. package/Types/NotificationSetting/NotificationSettingEventType.js +9 -0
  573. package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.mts +5 -3
  574. package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.ts +5 -3
  575. package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.js +98 -11
  576. package/Types/OnCallDutyPolicy/OnCallObserverPage.d.mts +61 -0
  577. package/Types/OnCallDutyPolicy/OnCallObserverPage.d.ts +61 -0
  578. package/Types/OnCallDutyPolicy/OnCallObserverPage.js +331 -0
  579. package/Types/OnCallDutyPolicy/OnCallObserverPage.mjs +24 -0
  580. package/Types/OnCallDutyPolicy/OnCallPageAs.d.mts +5 -0
  581. package/Types/OnCallDutyPolicy/OnCallPageAs.d.ts +5 -0
  582. package/Types/OnCallDutyPolicy/OnCallPageAs.js +21 -0
  583. package/Types/OnCallDutyPolicy/OnCallPageAs.mjs +2 -0
  584. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
  585. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
  586. package/Types/OnCallDutyPolicy/OnCallPageWords.d.mts +59 -0
  587. package/Types/OnCallDutyPolicy/OnCallPageWords.d.ts +59 -0
  588. package/Types/OnCallDutyPolicy/OnCallPageWords.js +388 -0
  589. package/Types/OnCallDutyPolicy/OnCallPageWords.mjs +24 -0
  590. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +10 -3
  591. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +10 -3
  592. package/Types/OnCallDutyPolicy/OnCallPersonPage.js +172 -37
  593. package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +2 -0
  594. package/Types/Permission.d.mts +28 -0
  595. package/Types/Permission.d.ts +28 -0
  596. package/Types/Permission.js +288 -0
  597. package/Types/ProviderLogo/AllProviderLogoMarks.js +2 -0
  598. package/Types/ProviderLogo/Marks/cursor.d.mts +3 -0
  599. package/Types/ProviderLogo/Marks/cursor.d.ts +3 -0
  600. package/Types/ProviderLogo/Marks/cursor.js +12 -0
  601. package/Types/ProviderLogo/Marks/cursor.mjs +2 -0
  602. package/Types/ProviderLogo/ProviderLogo.d.mts +1 -0
  603. package/Types/ProviderLogo/ProviderLogo.d.ts +1 -0
  604. package/Types/ProviderLogo/ProviderLogo.js +2 -0
  605. package/Types/ProviderLogo/ProviderLogoMarks.js +1 -0
  606. package/Types/PushNotification/PushNotificationCategory.d.mts +4 -0
  607. package/Types/PushNotification/PushNotificationCategory.d.ts +4 -0
  608. package/Types/PushNotification/PushNotificationCategory.js +36 -12
  609. package/Types/PushNotification/PushNotificationCategory.mjs +2 -0
  610. package/Types/ReadingDirection.js +2 -2
  611. package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +10 -0
  612. package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +10 -0
  613. package/Types/ResourceAiAgent/CloudAiAgentNames.js +42 -3
  614. package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +7 -0
  615. package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +4 -2
  616. package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +4 -2
  617. package/Types/ResourceAiAgent/ResourceAiAccess.js +25 -7
  618. package/Types/ResourceAiAgent/ResourceAiAccess.mjs +3 -1
  619. package/Types/Rum/ProductAnalytics.d.mts +153 -0
  620. package/Types/Rum/ProductAnalytics.d.ts +153 -0
  621. package/Types/Rum/ProductAnalytics.js +204 -0
  622. package/Types/Rum/ProductAnalytics.mjs +36 -0
  623. package/Types/Rum/RumApplicationStatus.d.mts +30 -0
  624. package/Types/Rum/RumApplicationStatus.d.ts +30 -0
  625. package/Types/Rum/RumApplicationStatus.js +147 -0
  626. package/Types/Rum/RumApplicationStatus.mjs +14 -0
  627. package/Types/Rum/RumTelemetrySignal.d.mts +7 -0
  628. package/Types/Rum/RumTelemetrySignal.d.ts +7 -0
  629. package/Types/Rum/RumTelemetrySignal.js +30 -0
  630. package/Types/Rum/RumTelemetrySignal.mjs +3 -0
  631. package/Types/Rum/SessionReplay.d.mts +6 -0
  632. package/Types/Rum/SessionReplay.d.ts +6 -0
  633. package/Types/Rum/SessionReplayApi.d.mts +7 -0
  634. package/Types/Rum/SessionReplayApi.d.ts +7 -0
  635. package/Types/Rum/SessionReplayCustomEvents.d.mts +11 -0
  636. package/Types/Rum/SessionReplayCustomEvents.d.ts +11 -0
  637. package/Types/Rum/SessionReplayCustomEvents.js +11 -0
  638. package/Types/Rum/SessionReplayCustomEvents.mjs +1 -0
  639. package/Types/Rum/SessionReplayFrustrationSignals.d.mts +90 -0
  640. package/Types/Rum/SessionReplayFrustrationSignals.d.ts +90 -0
  641. package/Types/Rum/SessionReplayFrustrationSignals.js +349 -0
  642. package/Types/Rum/SessionReplayFrustrationSignals.mjs +22 -0
  643. package/Types/SecurityCase/SecurityCaseContext.d.mts +2 -1
  644. package/Types/SecurityCase/SecurityCaseContext.d.ts +2 -1
  645. package/Types/SecurityCase/SecurityConnection.d.mts +11 -1
  646. package/Types/SecurityCase/SecurityConnection.d.ts +11 -1
  647. package/Types/SecurityEvent/RealTimeDetection.d.mts +14 -5
  648. package/Types/SecurityEvent/RealTimeDetection.d.ts +14 -5
  649. package/Types/SecurityEvent/RealTimeDetection.js +75 -25
  650. package/Types/SecurityEvent/RealTimeDetection.mjs +3 -3
  651. package/Types/SecurityEvent/SecurityEventScope.d.mts +12 -0
  652. package/Types/SecurityEvent/SecurityEventScope.d.ts +12 -0
  653. package/Types/SecurityEvent/SecurityEventScope.js +109 -0
  654. package/Types/SecurityEvent/SecurityEventScope.mjs +8 -0
  655. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +4 -2
  656. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +4 -2
  657. package/Types/SecurityPlaybook/SecurityPlaybookAction.js +22 -3
  658. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +7 -2
  659. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +7 -2
  660. package/Types/SecurityPlaybook/SecurityPlaybookStep.js +96 -39
  661. package/Types/SecurityPlaybook/SecurityPlaybookStep.mjs +2 -0
  662. package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.mts +17 -2
  663. package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.ts +17 -2
  664. package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.js +174 -33
  665. package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.mjs +7 -0
  666. package/Types/Serverless/ServerlessFunctionStatus.d.mts +30 -0
  667. package/Types/Serverless/ServerlessFunctionStatus.d.ts +30 -0
  668. package/Types/Serverless/ServerlessFunctionStatus.js +153 -0
  669. package/Types/Serverless/ServerlessFunctionStatus.mjs +14 -0
  670. package/Types/Service/ServiceTelemetryStatus.d.mts +32 -0
  671. package/Types/Service/ServiceTelemetryStatus.d.ts +32 -0
  672. package/Types/Service/ServiceTelemetryStatus.js +138 -0
  673. package/Types/Service/ServiceTelemetryStatus.mjs +15 -0
  674. package/Types/StatusPage/PublicNoteApproval.d.mts +146 -0
  675. package/Types/StatusPage/PublicNoteApproval.d.ts +146 -0
  676. package/Types/StatusPage/PublicNoteApproval.js +473 -0
  677. package/Types/StatusPage/PublicNoteApproval.mjs +8 -0
  678. package/Types/StatusPage/StateChangeSubscriberNotification.d.mts +9 -0
  679. package/Types/StatusPage/StateChangeSubscriberNotification.d.ts +9 -0
  680. package/Types/StatusPage/StateChangeSubscriberNotification.js +16 -0
  681. package/Types/StatusPage/StatusPageLanguage.js +1 -0
  682. package/Types/StatusPage/StatusPageReport.d.mts +3 -0
  683. package/Types/StatusPage/StatusPageReport.d.ts +3 -0
  684. package/Types/StatusPage/SubscriberNotificationResend.d.mts +1 -0
  685. package/Types/StatusPage/SubscriberNotificationResend.d.ts +1 -0
  686. package/Types/StatusPage/SubscriberNotificationResend.js +2 -0
  687. package/Types/Table/DefaultTableColumns.d.mts +22 -0
  688. package/Types/Table/DefaultTableColumns.d.ts +22 -0
  689. package/Types/Table/DefaultTableColumns.js +166 -0
  690. package/Types/Table/DefaultTableColumns.mjs +6 -0
  691. package/Types/TeamOwnedRule/TeamOwnedRuleHeld.d.mts +15 -0
  692. package/Types/TeamOwnedRule/TeamOwnedRuleHeld.d.ts +15 -0
  693. package/Types/TeamOwnedRule/TeamOwnedRuleHeld.js +96 -0
  694. package/Types/TeamOwnedRule/TeamOwnedRuleHeld.mjs +2 -0
  695. package/Types/TeamOwnedRule/TeamOwnedRuleKinds.d.mts +12 -0
  696. package/Types/TeamOwnedRule/TeamOwnedRuleKinds.d.ts +12 -0
  697. package/Types/TeamOwnedRule/TeamOwnedRuleKinds.js +72 -0
  698. package/Types/TeamOwnedRule/TeamOwnedRuleKinds.mjs +4 -0
  699. package/Types/Telemetry/LlmConventions.d.mts +5 -0
  700. package/Types/Telemetry/LlmConventions.d.ts +5 -0
  701. package/Types/Telemetry/LlmConventions.js +51 -3
  702. package/Types/Telemetry/LlmConventions.mjs +5 -0
  703. package/Types/Telemetry/LlmConversationApi.d.mts +7 -0
  704. package/Types/Telemetry/LlmConversationApi.d.ts +7 -0
  705. package/Types/Telemetry/LlmConversationApi.js +37 -1
  706. package/Types/Telemetry/LlmConversationApi.mjs +2 -0
  707. package/Types/Telemetry/LlmMetricConventions.d.mts +10 -0
  708. package/Types/Telemetry/LlmMetricConventions.d.ts +10 -0
  709. package/Types/Telemetry/LlmMetricConventions.js +84 -14
  710. package/Types/Telemetry/LlmMetricConventions.mjs +3 -0
  711. package/Types/Telemetry/LlmMetricUsageApi.d.mts +27 -0
  712. package/Types/Telemetry/LlmMetricUsageApi.d.ts +27 -0
  713. package/Types/Telemetry/LlmMetricUsageApi.js +73 -0
  714. package/Types/Telemetry/LlmMetricUsageApi.mjs +7 -0
  715. package/Types/Telemetry/LlmProviders.d.mts +23 -0
  716. package/Types/Telemetry/LlmProviders.d.ts +23 -0
  717. package/Types/Telemetry/LlmProviders.js +288 -0
  718. package/Types/Telemetry/LlmProviders.mjs +16 -0
  719. package/Types/Telemetry/LlmSetupCheckApi.d.mts +93 -0
  720. package/Types/Telemetry/LlmSetupCheckApi.d.ts +93 -0
  721. package/Types/Telemetry/LlmSetupCheckApi.js +269 -0
  722. package/Types/Telemetry/LlmSetupCheckApi.mjs +11 -0
  723. package/Types/Telemetry/LlmUsageApi.d.mts +49 -0
  724. package/Types/Telemetry/LlmUsageApi.d.ts +49 -0
  725. package/Types/Telemetry/LlmUsageApi.js +131 -0
  726. package/Types/Telemetry/LlmUsageApi.mjs +10 -0
  727. package/Types/Telemetry/ScrubRule.js +2 -1
  728. package/Types/Telemetry/TelemetryIngestRefusal.d.mts +23 -0
  729. package/Types/Telemetry/TelemetryIngestRefusal.d.ts +23 -0
  730. package/Types/Telemetry/TelemetryIngestRefusal.js +81 -0
  731. package/Types/Telemetry/TelemetryIngestRefusal.mjs +7 -0
  732. package/Types/Telemetry/TelemetryIngestionBudget.d.mts +160 -0
  733. package/Types/Telemetry/TelemetryIngestionBudget.d.ts +160 -0
  734. package/Types/Telemetry/TelemetryIngestionBudget.js +600 -0
  735. package/Types/Telemetry/TelemetryIngestionBudget.mjs +52 -0
  736. package/Types/Telemetry/TelemetryIngestionBudgetMetricType.d.mts +7 -0
  737. package/Types/Telemetry/TelemetryIngestionBudgetMetricType.d.ts +7 -0
  738. package/Types/Telemetry/TelemetryIngestionBudgetMetricType.js +50 -0
  739. package/Types/Telemetry/TelemetryIngestionBudgetMetricType.mjs +2 -0
  740. package/Types/Telemetry/TelemetryIngestionKeyPolicy.d.mts +2 -0
  741. package/Types/Telemetry/TelemetryIngestionKeyPolicy.d.ts +2 -0
  742. package/Types/Telemetry/TelemetryQuery.d.mts +3 -0
  743. package/Types/Telemetry/TelemetryQuery.d.ts +3 -0
  744. package/Types/Telemetry/TelemetryUsage.d.mts +79 -0
  745. package/Types/Telemetry/TelemetryUsage.d.ts +79 -0
  746. package/Types/Telemetry/TelemetryUsage.js +176 -0
  747. package/Types/Telemetry/TelemetryUsage.mjs +22 -0
  748. package/Types/Trace/TraceScrubPatternType.js +2 -1
  749. package/Types/Translator.d.mts +6 -0
  750. package/Types/Translator.d.ts +6 -0
  751. package/Types/Translator.js +113 -12
  752. package/Types/Translator.mjs +6 -0
  753. package/Types/UserLanguage.d.mts +7 -0
  754. package/Types/UserLanguage.d.ts +7 -0
  755. package/Types/UserLanguage.js +78 -0
  756. package/Types/UserLanguage.mjs +5 -0
  757. package/Types/Workflow/Components/OnCall.js +28 -1
  758. package/Types/Workflow/Components/OnCallPageSettings.d.mts +3 -0
  759. package/Types/Workflow/Components/OnCallPageSettings.d.ts +3 -0
  760. package/Types/Workflow/Components/OnCallPageSettings.js +25 -0
  761. package/Types/Workflow/Components/OnCallPageSettings.mjs +1 -0
  762. package/Types/Workflow/WorkflowDraft.d.mts +2 -0
  763. package/Types/Workflow/WorkflowDraft.d.ts +2 -0
  764. package/Types/Workflow/WorkflowDraft.js +32 -23
  765. package/Types/Workflow/WorkflowDraft.mjs +1 -0
  766. package/Types/Workflow/WorkflowDraftProposedOnKey.d.mts +1 -0
  767. package/Types/Workflow/WorkflowDraftProposedOnKey.d.ts +1 -0
  768. package/Types/Workflow/WorkflowDraftProposedOnKey.js +11 -0
  769. package/Types/Workflow/WorkflowDraftProposedOnKey.mjs +2 -0
  770. package/Types/Workflow/WorkflowDraftRebase.d.mts +74 -0
  771. package/Types/Workflow/WorkflowDraftRebase.d.ts +74 -0
  772. package/Types/Workflow/WorkflowDraftRebase.js +447 -0
  773. package/Types/Workflow/WorkflowDraftRebase.mjs +9 -0
  774. package/Types/Workflow/WorkflowDraftSeen.d.mts +39 -0
  775. package/Types/Workflow/WorkflowDraftSeen.d.ts +39 -0
  776. package/Types/Workflow/WorkflowDraftSeen.js +161 -0
  777. package/Types/Workflow/WorkflowDraftSeen.mjs +6 -0
  778. package/Types/Workflow/WorkflowGraphRevision.d.mts +2 -0
  779. package/Types/Workflow/WorkflowGraphRevision.d.ts +2 -0
  780. package/Types/Workflow/WorkflowGraphRevision.js +45 -0
  781. package/Types/Workflow/WorkflowGraphRevision.mjs +3 -0
  782. package/Types/Workflow/WorkflowVersion.d.mts +11 -0
  783. package/Types/Workflow/WorkflowVersion.d.ts +11 -0
  784. package/Types/Workflow/WorkflowVersion.js +63 -0
  785. package/Types/Workflow/WorkflowVersion.mjs +7 -0
  786. package/Utils/AI/InvestigationImpactNumbers.d.mts +33 -0
  787. package/Utils/AI/InvestigationImpactNumbers.d.ts +33 -0
  788. package/Utils/AI/InvestigationImpactNumbers.js +307 -0
  789. package/Utils/AI/InvestigationImpactNumbers.mjs +9 -0
  790. package/Utils/AI/InvestigationReport.d.mts +14 -0
  791. package/Utils/AI/InvestigationReport.d.ts +14 -0
  792. package/Utils/AI/InvestigationReport.js +136 -3
  793. package/Utils/AI/InvestigationReport.mjs +4 -0
  794. package/Utils/AiRemediation/CloudChangeWords.js +6 -0
  795. package/Utils/AiRemediation/DeclaredCodeChange.d.mts +106 -0
  796. package/Utils/AiRemediation/DeclaredCodeChange.d.ts +106 -0
  797. package/Utils/AiRemediation/DeclaredCodeChange.js +451 -0
  798. package/Utils/AiRemediation/DeclaredCodeChange.mjs +16 -0
  799. package/Utils/AiRemediation/Resource/CloudCommandPolicy.js +4 -0
  800. package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +1 -0
  801. package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +1 -0
  802. package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +144 -11
  803. package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +1 -0
  804. package/Utils/AuditLog/AuditLogTypedValues.d.mts +23 -0
  805. package/Utils/AuditLog/AuditLogTypedValues.d.ts +23 -0
  806. package/Utils/AuditLog/AuditLogTypedValues.js +331 -0
  807. package/Utils/AuditLog/AuditLogTypedValues.mjs +8 -0
  808. package/Utils/AuditLog/AuditLogValues.d.mts +25 -0
  809. package/Utils/AuditLog/AuditLogValues.d.ts +25 -0
  810. package/Utils/AuditLog/AuditLogValues.js +398 -0
  811. package/Utils/AuditLog/AuditLogValues.mjs +15 -0
  812. package/Utils/CronScheduleText.js +2 -2
  813. package/Utils/Dashboard/DashboardWidgetIds.d.mts +9 -0
  814. package/Utils/Dashboard/DashboardWidgetIds.d.ts +9 -0
  815. package/Utils/Dashboard/DashboardWidgetIds.js +136 -0
  816. package/Utils/Dashboard/DashboardWidgetIds.mjs +4 -0
  817. package/Utils/Dashboard/DashboardWidgetSorts.js +7 -1
  818. package/Utils/Dashboard/LabelVariable.js +12 -2
  819. package/Utils/Dashboard/SloWidgetSource.d.mts +2 -2
  820. package/Utils/Dashboard/SloWidgetSource.d.ts +2 -2
  821. package/Utils/Dashboard/SloWidgetSource.js +14 -3
  822. package/Utils/Dashboard/StoredDashboardViewConfig.d.mts +7 -0
  823. package/Utils/Dashboard/StoredDashboardViewConfig.d.ts +7 -0
  824. package/Utils/Dashboard/StoredDashboardViewConfig.js +124 -22
  825. package/Utils/Episode/EpisodeOpeningThreshold.d.mts +9 -0
  826. package/Utils/Episode/EpisodeOpeningThreshold.d.ts +9 -0
  827. package/Utils/Episode/EpisodeOpeningThreshold.js +64 -0
  828. package/Utils/Episode/EpisodeOpeningThreshold.mjs +7 -0
  829. package/Utils/LLM/LlmProviderResponseTimeout.d.mts +4 -0
  830. package/Utils/LLM/LlmProviderResponseTimeout.d.ts +4 -0
  831. package/Utils/LLM/LlmProviderResponseTimeout.js +24 -0
  832. package/Utils/LLM/LlmProviderResponseTimeout.mjs +4 -0
  833. package/Utils/LinearRegExp/PatternWork.d.mts +1 -0
  834. package/Utils/LinearRegExp/PatternWork.d.ts +1 -0
  835. package/Utils/LinearRegExp/PatternWork.js +10 -4
  836. package/Utils/LinearRegExp/PatternWork.mjs +1 -0
  837. package/Utils/Markdown/Base64Data.d.mts +8 -0
  838. package/Utils/Markdown/Base64Data.d.ts +8 -0
  839. package/Utils/Markdown/Base64Data.js +130 -0
  840. package/Utils/Markdown/Base64Data.mjs +4 -0
  841. package/Utils/Metrics/MetricExplorerUrl.d.mts +1 -0
  842. package/Utils/Metrics/MetricExplorerUrl.d.ts +1 -0
  843. package/Utils/Metrics/MetricExplorerUrl.js +14 -3
  844. package/Utils/Metrics/MetricFormulaEvaluator.d.mts +18 -0
  845. package/Utils/Metrics/MetricFormulaEvaluator.d.ts +18 -0
  846. package/Utils/Metrics/MetricFormulaEvaluator.js +112 -0
  847. package/Utils/Metrics/MetricQueryCloudAggregation.d.mts +62 -0
  848. package/Utils/Metrics/MetricQueryCloudAggregation.d.ts +62 -0
  849. package/Utils/Metrics/MetricQueryCloudAggregation.js +335 -0
  850. package/Utils/Metrics/MetricQueryCloudAggregation.mjs +2 -0
  851. package/Utils/Metrics/MetricQueryServices.d.mts +14 -0
  852. package/Utils/Metrics/MetricQueryServices.d.ts +14 -0
  853. package/Utils/Metrics/MetricQueryServices.js +121 -0
  854. package/Utils/Metrics/MetricQueryServices.mjs +2 -0
  855. package/Utils/Metrics/MetricWholeWindow.d.mts +11 -0
  856. package/Utils/Metrics/MetricWholeWindow.d.ts +11 -0
  857. package/Utils/Metrics/MetricWholeWindow.js +50 -0
  858. package/Utils/Metrics/MetricWholeWindow.mjs +2 -0
  859. package/Utils/Monitor/MetricTelemetrySnapshot.d.mts +23 -0
  860. package/Utils/Monitor/MetricTelemetrySnapshot.d.ts +23 -0
  861. package/Utils/Monitor/MetricTelemetrySnapshot.js +154 -0
  862. package/Utils/Monitor/MetricTelemetrySnapshot.mjs +2 -0
  863. package/Utils/Monitor/MonitorAutoResolveTemplates.d.mts +13 -0
  864. package/Utils/Monitor/MonitorAutoResolveTemplates.d.ts +13 -0
  865. package/Utils/Monitor/MonitorAutoResolveTemplates.js +59 -0
  866. package/Utils/Monitor/MonitorAutoResolveTemplates.mjs +2 -0
  867. package/Utils/Monitor/MonitorEvaluationDetailsUtil.d.mts +8 -0
  868. package/Utils/Monitor/MonitorEvaluationDetailsUtil.d.ts +8 -0
  869. package/Utils/Monitor/MonitorEvaluationDetailsUtil.js +81 -0
  870. package/Utils/Monitor/MonitorEvaluationDetailsUtil.mjs +2 -0
  871. package/Utils/Monitor/MonitorGroupMonitoring.d.mts +25 -0
  872. package/Utils/Monitor/MonitorGroupMonitoring.d.ts +25 -0
  873. package/Utils/Monitor/MonitorGroupMonitoring.js +78 -0
  874. package/Utils/Monitor/MonitorGroupMonitoring.mjs +3 -0
  875. package/Utils/Monitor/MonitorOverviewFamily.d.mts +2 -1
  876. package/Utils/Monitor/MonitorOverviewFamily.d.ts +2 -1
  877. package/Utils/Monitor/MonitorOverviewFamily.js +35 -3
  878. package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +1 -0
  879. package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +1 -0
  880. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +5 -0
  881. package/Utils/Monitor/MonitorStepMetricQueries.d.mts +61 -0
  882. package/Utils/Monitor/MonitorStepMetricQueries.d.ts +61 -0
  883. package/Utils/Monitor/MonitorStepMetricQueries.js +616 -0
  884. package/Utils/Monitor/MonitorStepMetricQueries.mjs +6 -0
  885. package/Utils/Monitor/MonitorStepMetricThresholds.d.mts +62 -0
  886. package/Utils/Monitor/MonitorStepMetricThresholds.d.ts +62 -0
  887. package/Utils/Monitor/MonitorStepMetricThresholds.js +415 -0
  888. package/Utils/Monitor/MonitorStepMetricThresholds.mjs +4 -0
  889. package/Utils/Monitor/NetworkTopologyUtil.d.mts +1 -0
  890. package/Utils/Monitor/NetworkTopologyUtil.d.ts +1 -0
  891. package/Utils/Monitor/NetworkTopologyUtil.js +27 -7
  892. package/Utils/Monitor/NetworkTopologyUtil.mjs +1 -0
  893. package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +5 -0
  894. package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +5 -0
  895. package/Utils/Monitor/NotOperationalMonitorQuery.js +37 -0
  896. package/Utils/Monitor/NotOperationalMonitorQuery.mjs +2 -0
  897. package/Utils/NameBreaks.js +44 -12
  898. package/Utils/NetworkDevice/DeviceNameLikeness.d.mts +33 -0
  899. package/Utils/NetworkDevice/DeviceNameLikeness.d.ts +33 -0
  900. package/Utils/NetworkDevice/DeviceNameLikeness.js +279 -0
  901. package/Utils/NetworkDevice/DeviceNameLikeness.mjs +14 -0
  902. package/Utils/NetworkDevice/DiscoveredDeviceIdentity.d.mts +13 -0
  903. package/Utils/NetworkDevice/DiscoveredDeviceIdentity.d.ts +13 -0
  904. package/Utils/NetworkDevice/DiscoveredDeviceIdentity.js +104 -0
  905. package/Utils/NetworkDevice/DiscoveredDeviceIdentity.mjs +6 -0
  906. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.mts +12 -0
  907. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.ts +12 -0
  908. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.js +92 -0
  909. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.mjs +3 -0
  910. package/Utils/Project/ProjectBilling.d.mts +1 -0
  911. package/Utils/Project/ProjectBilling.d.ts +1 -0
  912. package/Utils/Project/ProjectBilling.js +27 -3
  913. package/Utils/Project/ProjectBilling.mjs +1 -0
  914. package/Utils/Rum/SessionReplayFrustrationSettingsValidation.d.mts +9 -0
  915. package/Utils/Rum/SessionReplayFrustrationSettingsValidation.d.ts +9 -0
  916. package/Utils/Rum/SessionReplayFrustrationSettingsValidation.js +337 -0
  917. package/Utils/Rum/SessionReplayFrustrationSettingsValidation.mjs +5 -0
  918. package/Utils/Rum/UserFlow.js +6 -2
  919. package/Utils/Runbook/RunbookStepExecutionChanges.d.mts +32 -0
  920. package/Utils/Runbook/RunbookStepExecutionChanges.d.ts +32 -0
  921. package/Utils/Runbook/RunbookStepExecutionChanges.js +264 -0
  922. package/Utils/Runbook/RunbookStepExecutionChanges.mjs +11 -0
  923. package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +5 -0
  924. package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +5 -0
  925. package/Utils/SecurityCase/SecurityCaseMarkdown.js +10 -0
  926. package/Utils/SecurityCase/SecurityCaseMarkdown.mjs +1 -0
  927. package/Utils/SecurityCase/SecurityConnectionMatch.d.mts +1 -0
  928. package/Utils/SecurityCase/SecurityConnectionMatch.d.ts +1 -0
  929. package/Utils/SecurityCase/SecurityConnectionMatch.js +33 -0
  930. package/Utils/SecurityCase/SecurityConnectionMatch.mjs +1 -0
  931. package/Utils/SecurityEvent/LogParsers/DatabaseServerLogLine.d.mts +5 -0
  932. package/Utils/SecurityEvent/LogParsers/DatabaseServerLogLine.d.ts +5 -0
  933. package/Utils/SecurityEvent/LogParsers/DatabaseServerLogLine.js +458 -0
  934. package/Utils/SecurityEvent/LogParsers/DatabaseServerLogLine.mjs +6 -0
  935. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +1 -0
  936. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +1 -0
  937. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +30 -0
  938. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +1 -0
  939. package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +9 -0
  940. package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.mts +3 -0
  941. package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.ts +3 -0
  942. package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.js +223 -33
  943. package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.mjs +3 -0
  944. package/Utils/SecurityEvent/SecurityScanWords.d.mts +2 -0
  945. package/Utils/SecurityEvent/SecurityScanWords.d.ts +2 -0
  946. package/Utils/SecurityEvent/SecurityScanWords.js +122 -0
  947. package/Utils/SecurityEvent/SecurityScanWords.mjs +3 -0
  948. package/Utils/Slo/SloBulkRecommendedBurnRateRules.d.mts +42 -0
  949. package/Utils/Slo/SloBulkRecommendedBurnRateRules.d.ts +42 -0
  950. package/Utils/Slo/SloBulkRecommendedBurnRateRules.js +207 -0
  951. package/Utils/Slo/SloBulkRecommendedBurnRateRules.mjs +10 -0
  952. package/Utils/Slo/SloBurnRateTemplate.d.mts +23 -3
  953. package/Utils/Slo/SloBurnRateTemplate.d.ts +23 -3
  954. package/Utils/Slo/SloBurnRateTemplate.js +96 -17
  955. package/Utils/Slo/SloBurnRateTemplate.mjs +6 -0
  956. package/Utils/Slo/SloErrorBudgetPolicy.d.mts +99 -0
  957. package/Utils/Slo/SloErrorBudgetPolicy.d.ts +99 -0
  958. package/Utils/Slo/SloErrorBudgetPolicy.js +398 -0
  959. package/Utils/Slo/SloErrorBudgetPolicy.mjs +25 -0
  960. package/Utils/Slo/SloEvaluation.d.mts +22 -0
  961. package/Utils/Slo/SloEvaluation.d.ts +22 -0
  962. package/Utils/Slo/SloEvaluation.js +43 -1
  963. package/Utils/Slo/SloEvaluation.mjs +4 -0
  964. package/Utils/Slo/SloFeedMarkdown.d.mts +27 -0
  965. package/Utils/Slo/SloFeedMarkdown.d.ts +27 -0
  966. package/Utils/Slo/SloFeedMarkdown.js +118 -3
  967. package/Utils/Slo/SloFeedMarkdown.mjs +2 -0
  968. package/Utils/Slo/SloRecommendedBurnRateRules.d.mts +73 -0
  969. package/Utils/Slo/SloRecommendedBurnRateRules.d.ts +73 -0
  970. package/Utils/Slo/SloRecommendedBurnRateRules.js +348 -0
  971. package/Utils/Slo/SloRecommendedBurnRateRules.mjs +28 -0
  972. package/Utils/Slo/SloRecordOutputColumns.d.mts +25 -0
  973. package/Utils/Slo/SloRecordOutputColumns.d.ts +25 -0
  974. package/Utils/Slo/SloRecordOutputColumns.js +87 -0
  975. package/Utils/Slo/SloRecordOutputColumns.mjs +9 -0
  976. package/Utils/Slo/SloStatusColor.d.mts +6 -0
  977. package/Utils/Slo/SloStatusColor.d.ts +6 -0
  978. package/Utils/Slo/SloStatusColor.js +23 -1
  979. package/Utils/Slo/SloStatusColor.mjs +2 -0
  980. package/Utils/Slo/SloUtil.d.mts +4 -0
  981. package/Utils/Slo/SloUtil.d.ts +4 -0
  982. package/Utils/Slo/SloUtil.js +8 -2
  983. package/Utils/Sms/OnCallPageSms.d.mts +18 -0
  984. package/Utils/Sms/OnCallPageSms.d.ts +18 -0
  985. package/Utils/Sms/OnCallPageSms.js +88 -6
  986. package/Utils/StatusPage/Report.js +2 -0
  987. package/Utils/StatusPage/ReportPeriod.d.mts +4 -4
  988. package/Utils/StatusPage/ReportPeriod.d.ts +4 -4
  989. package/Utils/StatusPage/ReportPeriod.js +23 -47
  990. package/Utils/StatusPage/ReportText.d.mts +33 -0
  991. package/Utils/StatusPage/ReportText.d.ts +33 -0
  992. package/Utils/StatusPage/ReportText.js +266 -0
  993. package/Utils/StatusPage/ReportText.mjs +3 -0
  994. package/Utils/Telemetry/CloudChangeTitle.d.mts +37 -0
  995. package/Utils/Telemetry/CloudChangeTitle.d.ts +37 -0
  996. package/Utils/Telemetry/CloudChangeTitle.js +315 -3
  997. package/Utils/Telemetry/CloudChangeTitle.mjs +13 -0
  998. package/Utils/Telemetry/CloudHealthDescription.d.mts +53 -0
  999. package/Utils/Telemetry/CloudHealthDescription.d.ts +53 -0
  1000. package/Utils/Telemetry/CloudHealthDescription.js +310 -0
  1001. package/Utils/Telemetry/CloudHealthDescription.mjs +13 -0
  1002. package/Utils/Telemetry/LlmCallCounting.d.mts +30 -0
  1003. package/Utils/Telemetry/LlmCallCounting.d.ts +30 -0
  1004. package/Utils/Telemetry/LlmCallCounting.js +109 -0
  1005. package/Utils/Telemetry/LlmCallCounting.mjs +2 -0
  1006. package/Utils/Telemetry/LlmConversationTranscript.js +12 -6
  1007. package/Utils/Telemetry/LlmLogEvents.d.mts +45 -0
  1008. package/Utils/Telemetry/LlmLogEvents.d.ts +45 -0
  1009. package/Utils/Telemetry/LlmLogEvents.js +613 -0
  1010. package/Utils/Telemetry/LlmLogEvents.mjs +4 -0
  1011. package/Utils/Telemetry/LlmMessageParser.d.mts +1 -0
  1012. package/Utils/Telemetry/LlmMessageParser.d.ts +1 -0
  1013. package/Utils/Telemetry/LlmMessageParser.js +60 -2
  1014. package/Utils/Telemetry/LlmMetricUsage.d.mts +27 -0
  1015. package/Utils/Telemetry/LlmMetricUsage.d.ts +27 -0
  1016. package/Utils/Telemetry/LlmMetricUsage.js +189 -0
  1017. package/Utils/Telemetry/LlmMetricUsage.mjs +2 -0
  1018. package/Utils/Telemetry/LlmUsage.d.mts +51 -0
  1019. package/Utils/Telemetry/LlmUsage.d.ts +51 -0
  1020. package/Utils/Telemetry/LlmUsage.js +266 -0
  1021. package/Utils/Telemetry/LlmUsage.mjs +3 -0
  1022. package/Utils/Telemetry/ScrubNestedValues.d.mts +14 -0
  1023. package/Utils/Telemetry/ScrubNestedValues.d.ts +14 -0
  1024. package/Utils/Telemetry/ScrubNestedValues.js +302 -0
  1025. package/Utils/Telemetry/ScrubNestedValues.mjs +4 -0
  1026. package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.d.mts +18 -0
  1027. package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.d.ts +18 -0
  1028. package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.js +141 -0
  1029. package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.mjs +9 -0
  1030. package/Utils/Workflow/WorkflowGraphChanges.d.mts +65 -0
  1031. package/Utils/Workflow/WorkflowGraphChanges.d.ts +65 -0
  1032. package/Utils/Workflow/WorkflowGraphChanges.js +530 -0
  1033. package/Utils/Workflow/WorkflowGraphChanges.mjs +8 -0
  1034. package/Utils/Workflow/WorkflowGraphSnapshot.d.mts +12 -0
  1035. package/Utils/Workflow/WorkflowGraphSnapshot.d.ts +12 -0
  1036. package/Utils/Workflow/WorkflowGraphSnapshot.js +214 -0
  1037. package/Utils/Workflow/WorkflowGraphSnapshot.mjs +6 -0
  1038. package/package.json +1 -1
@@ -3,11 +3,12 @@ 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
- exports.ANNOUNCEMENT_TITLE_MAX_LENGTH = exports.ENTITY_ACTIVITY_LOOKBACK_DEFAULT_HOURS = exports.ENTITY_ACTIVITY_LOOKBACK_MAX_HOURS = exports.ENTITY_ACTIVITY_LOOKBACK_MIN_HOURS = exports.SECURITY_PLAYBOOK_TASK_MAX_LENGTH = exports.SECURITY_PLAYBOOK_MAX_TASKS_PER_STEP = exports.SECURITY_PLAYBOOK_NOTE_MAX_LENGTH = exports.SECURITY_PLAYBOOK_MAX_STEPS = exports.TURN_OFF_CONTAINMENT_APPROVAL_PERMISSIONS = exports.DefenderIsolationType = void 0;
6
+ exports.SECURITY_PLAYBOOK_STOP_REASON_MAX_LENGTH = exports.ANNOUNCEMENT_TITLE_MAX_LENGTH = exports.ENTITY_ACTIVITY_LOOKBACK_DEFAULT_HOURS = exports.ENTITY_ACTIVITY_LOOKBACK_MAX_HOURS = exports.ENTITY_ACTIVITY_LOOKBACK_MIN_HOURS = exports.SECURITY_PLAYBOOK_TASK_MAX_LENGTH = exports.SECURITY_PLAYBOOK_MAX_TASKS_PER_STEP = exports.SECURITY_PLAYBOOK_NOTE_MAX_LENGTH = exports.SECURITY_PLAYBOOK_MAX_STEPS = exports.TURN_OFF_CONTAINMENT_APPROVAL_PERMISSIONS = exports.DefenderIsolationType = void 0;
7
7
  exports.normalizeSecurityPlaybookStepConfig = normalizeSecurityPlaybookStepConfig;
8
8
  exports.readTaskLines = readTaskLines;
9
9
  exports.doesStepNeedApproval = doesStepNeedApproval;
10
10
  exports.parseSecurityPlaybookSteps = parseSecurityPlaybookSteps;
11
+ exports.doesStepWaitOn = doesStepWaitOn;
11
12
  exports.getStepsWaitingOn = getStepsWaitingOn;
12
13
  exports.assertSecurityPlaybookStepConditions = assertSecurityPlaybookStepConditions;
13
14
  const ColumnLength_1 = __importDefault(require("../Database/ColumnLength"));
@@ -34,6 +35,8 @@ exports.ENTITY_ACTIVITY_LOOKBACK_MAX_HOURS = 720;
34
35
  exports.ENTITY_ACTIVITY_LOOKBACK_DEFAULT_HOURS = 24;
35
36
  // A status page announcement's title is a short text column.
36
37
  exports.ANNOUNCEMENT_TITLE_MAX_LENGTH = 100;
38
+ // What a Stop step says on the case when the run stops there: a sentence.
39
+ exports.SECURITY_PLAYBOOK_STOP_REASON_MAX_LENGTH = 500;
37
40
  // An http(s) URL with a host: what a webhook step can post to.
38
41
  const WEBHOOK_URL = /^https?:\/\/[^\s/?#]+[^\s]*$/i;
39
42
  function stepLabel(index, action) {
@@ -282,6 +285,13 @@ function normalizeSecurityPlaybookStepConfig(action, rawConfig, label) {
282
285
  notifySubscribers: rawConfig["notifySubscribers"] === true,
283
286
  };
284
287
  }
288
+ case SecurityPlaybookAction_1.SecurityPlaybookActionType.StopRun: {
289
+ const reason = readText(rawConfig, "reason");
290
+ if (reason.length > exports.SECURITY_PLAYBOOK_STOP_REASON_MAX_LENGTH) {
291
+ throw new BadDataException_1.default(`${label}: say why it stops in at most ${exports.SECURITY_PLAYBOOK_STOP_REASON_MAX_LENGTH} characters.`);
292
+ }
293
+ return reason ? { reason } : {};
294
+ }
285
295
  // Nothing to set: each reads what it acts on from the case.
286
296
  case SecurityPlaybookAction_1.SecurityPlaybookActionType.PreserveEvidence:
287
297
  case SecurityPlaybookAction_1.SecurityPlaybookActionType.FixWithAi:
@@ -379,27 +389,36 @@ function parseSecurityPlaybookSteps(value) {
379
389
  }
380
390
  seenIds.add(id);
381
391
  const isDisruptive = Boolean((_a = (0, SecurityPlaybookAction_1.getSecurityPlaybookAction)(action)) === null || _a === void 0 ? void 0 : _a.isDisruptive);
382
- const requiresApproval = isDisruptive
383
- ? step["requiresApproval"] !== false
384
- : step["requiresApproval"] === true;
392
+ // A step that stops the run does nothing to approve, and cannot fail.
393
+ const stopsTheRun = action === SecurityPlaybookAction_1.SecurityPlaybookActionType.StopRun;
394
+ const requiresApproval = stopsTheRun
395
+ ? false
396
+ : isDisruptive
397
+ ? step["requiresApproval"] !== false
398
+ : step["requiresApproval"] === true;
385
399
  const approvalTurnedOff = isDisruptive && !requiresApproval
386
400
  ? readApprovalTurnedOff(step["approvalTurnedOff"])
387
401
  : undefined;
388
402
  const runIf = (0, SecurityPlaybookStepCondition_1.readSecurityPlaybookStepCondition)(step["runIf"], label);
389
403
  return Object.assign(Object.assign({ id,
390
- action, config: normalizeSecurityPlaybookStepConfig(action, readObject(step["config"]), label), requiresApproval, continueOnFailure: step["continueOnFailure"] === true, onlyIfThreatIntelMatched: step["onlyIfThreatIntelMatched"] === true }, (runIf ? { runIf } : {})), (approvalTurnedOff ? { approvalTurnedOff } : {}));
404
+ action, config: normalizeSecurityPlaybookStepConfig(action, readObject(step["config"]), label), requiresApproval, continueOnFailure: !stopsTheRun && step["continueOnFailure"] === true, onlyIfThreatIntelMatched: step["onlyIfThreatIntelMatched"] === true }, (runIf ? { runIf } : {})), (approvalTurnedOff ? { approvalTurnedOff } : {}));
405
+ });
406
+ }
407
+ // Whether a step waits on this step's result, among any it waits on.
408
+ function doesStepWaitOn(step, stepId) {
409
+ return (0, SecurityPlaybookStepCondition_1.getSecurityPlaybookStepConditions)(step.runIf).some((condition) => {
410
+ return condition.stepId === stepId;
391
411
  });
392
412
  }
393
413
  /*
394
- * The steps a step's own result is waited on by: every later step whose
395
- * condition names it. What keeps it from being deleted, or moved below one
396
- * of them.
414
+ * The steps a step's own result is waited on by: every later step with a
415
+ * condition that names it. What keeps it from being deleted, or moved
416
+ * below one of them.
397
417
  */
398
418
  function getStepsWaitingOn(steps, stepId) {
399
419
  const waiting = [];
400
420
  steps.forEach((step, index) => {
401
- var _a;
402
- if (((_a = step.runIf) === null || _a === void 0 ? void 0 : _a.stepId) === stepId) {
421
+ if (doesStepWaitOn(step, stepId)) {
403
422
  waiting.push({ index, step });
404
423
  }
405
424
  });
@@ -407,42 +426,80 @@ function getStepsWaitingOn(steps, stepId) {
407
426
  }
408
427
  /*
409
428
  * THE BRANCHING RULE, checked across the whole list when a playbook is
410
- * saved: a step waits only on a step before it, on a result that step can
411
- * have - found or found nothing for one that looks something up, succeeded
412
- * otherwise - and on its failure only when that step carries on past one.
413
- * Throws a message that names the step and says what to change. Runs
429
+ * saved, for every result a step waits on: a step waits only on a step
430
+ * before it, on a result that step can have - found or found nothing for
431
+ * one that looks something up, succeeded otherwise - on its failure only
432
+ * when that step carries on past one, and never on a step that stops the
433
+ * run, after which nothing runs. A step waiting on all of its results never
434
+ * waits on two results of one step, and a Stop step that always runs is the
435
+ * last. Throws a message that names the step and says what to change. Runs
414
436
  * already under way keep the steps they started with, which the engine
415
437
  * reads as they are (evaluateSecurityPlaybookStepCondition).
416
438
  */
417
439
  function assertSecurityPlaybookStepConditions(steps) {
418
440
  steps.forEach((step, index) => {
419
- var _a;
420
- const condition = step.runIf;
421
- if (!condition) {
422
- return;
423
- }
424
- const label = stepLabel(index, step.action);
425
- const waitedOn = steps.findIndex((candidate) => {
426
- return candidate.id === condition.stepId;
427
- });
428
- if (waitedOn < 0) {
429
- throw new BadDataException_1.default(`${label}: the step it runs after is no longer in the playbook. Choose again when it runs.`);
441
+ const conditions = (0, SecurityPlaybookStepCondition_1.getSecurityPlaybookStepConditions)(step.runIf);
442
+ for (const condition of conditions) {
443
+ assertStepCondition({ steps, step, index, condition });
430
444
  }
431
- if (waitedOn >= index) {
432
- throw new BadDataException_1.default(waitedOn === index
433
- ? `${label}: a step cannot run after its own result. Choose an earlier step.`
434
- : `${label}: it runs after step ${waitedOn + 1}, which comes after it. Move it below step ${waitedOn + 1}, or choose again when it runs.`);
445
+ /*
446
+ * A Stop step that always runs ends every run where it is: a step after
447
+ * it would never run.
448
+ */
449
+ if (step.action === SecurityPlaybookAction_1.SecurityPlaybookActionType.StopRun &&
450
+ conditions.length === 0 &&
451
+ !step.onlyIfThreatIntelMatched &&
452
+ index < steps.length - 1) {
453
+ throw new BadDataException_1.default(`${stepLabel(index, step.action)}: it always stops the run, so the steps after it would never run. Make it run only after an earlier step's result, or move it to the end.`);
435
454
  }
436
- const earlier = steps[waitedOn];
437
- const earlierTitle = ((_a = (0, SecurityPlaybookAction_1.getSecurityPlaybookAction)(earlier.action)) === null || _a === void 0 ? void 0 : _a.title) || earlier.action;
438
- if (condition.outcome === SecurityPlaybookStepCondition_1.SecurityPlaybookStepOutcome.Failed &&
439
- !earlier.continueOnFailure) {
440
- throw new BadDataException_1.default(`${label}: it runs only if step ${waitedOn + 1} (${earlierTitle}) fails, but a failed step ${waitedOn + 1} stops the run. Turn on Carry On If It Fails for step ${waitedOn + 1}, or choose again when this step runs.`);
441
- }
442
- if (!(0, SecurityPlaybookStepCondition_1.getSecurityPlaybookStepOutcomes)(earlier).includes(condition.outcome)) {
443
- throw new BadDataException_1.default((0, SecurityPlaybookStepCondition_1.getSecurityPlaybookFinds)(earlier.action)
444
- ? `${label}: step ${waitedOn + 1} (${earlierTitle}) looks something up, so it finds something or finds nothing. Choose one of those.`
445
- : `${label}: step ${waitedOn + 1} (${earlierTitle}) does not look anything up, so it can only succeed or fail. Choose one of those.`);
455
+ /*
456
+ * Waiting on all of two results of one step - it found something and
457
+ * found nothing - is waiting on what never happens.
458
+ */
459
+ if ((0, SecurityPlaybookStepCondition_1.getSecurityPlaybookConditionMatch)(step.runIf) ===
460
+ SecurityPlaybookStepCondition_1.SecurityPlaybookConditionMatch.All) {
461
+ const firstClash = conditions.find((condition) => {
462
+ return conditions.some((other) => {
463
+ return (other.stepId === condition.stepId &&
464
+ other.outcome !== condition.outcome);
465
+ });
466
+ });
467
+ if (firstClash) {
468
+ const waitedOn = steps.findIndex((candidate) => {
469
+ return candidate.id === firstClash.stepId;
470
+ });
471
+ throw new BadDataException_1.default(`${stepLabel(index, step.action)}: it waits on two results of step ${waitedOn + 1}, which one run never has together. Choose one of them, or run it when any of its results happened.`);
472
+ }
446
473
  }
447
474
  });
448
475
  }
476
+ function assertStepCondition(data) {
477
+ var _a;
478
+ const { steps, step, index, condition } = data;
479
+ const label = stepLabel(index, step.action);
480
+ const waitedOn = steps.findIndex((candidate) => {
481
+ return candidate.id === condition.stepId;
482
+ });
483
+ if (waitedOn < 0) {
484
+ throw new BadDataException_1.default(`${label}: the step it runs after is no longer in the playbook. Choose again when it runs.`);
485
+ }
486
+ if (waitedOn >= index) {
487
+ throw new BadDataException_1.default(waitedOn === index
488
+ ? `${label}: a step cannot run after its own result. Choose an earlier step.`
489
+ : `${label}: it runs after step ${waitedOn + 1}, which comes after it. Move it below step ${waitedOn + 1}, or choose again when it runs.`);
490
+ }
491
+ const earlier = steps[waitedOn];
492
+ const earlierTitle = ((_a = (0, SecurityPlaybookAction_1.getSecurityPlaybookAction)(earlier.action)) === null || _a === void 0 ? void 0 : _a.title) || earlier.action;
493
+ if (earlier.action === SecurityPlaybookAction_1.SecurityPlaybookActionType.StopRun) {
494
+ throw new BadDataException_1.default(`${label}: step ${waitedOn + 1} (${earlierTitle}) ends the run when it runs, so no step after it can wait on it. Choose another step.`);
495
+ }
496
+ if (condition.outcome === SecurityPlaybookStepCondition_1.SecurityPlaybookStepOutcome.Failed &&
497
+ !earlier.continueOnFailure) {
498
+ throw new BadDataException_1.default(`${label}: it runs only if step ${waitedOn + 1} (${earlierTitle}) fails, but a failed step ${waitedOn + 1} stops the run. Turn on Carry On If It Fails for step ${waitedOn + 1}, or choose again when this step runs.`);
499
+ }
500
+ if (!(0, SecurityPlaybookStepCondition_1.getSecurityPlaybookStepOutcomes)(earlier).includes(condition.outcome)) {
501
+ throw new BadDataException_1.default((0, SecurityPlaybookStepCondition_1.getSecurityPlaybookFinds)(earlier.action)
502
+ ? `${label}: step ${waitedOn + 1} (${earlierTitle}) looks something up, so it finds something or finds nothing. Choose one of those.`
503
+ : `${label}: step ${waitedOn + 1} (${earlierTitle}) does not look anything up, so it can only succeed or fail. Choose one of those.`);
504
+ }
505
+ }
@@ -7,10 +7,12 @@ export const ENTITY_ACTIVITY_LOOKBACK_MIN_HOURS = commonJsModule.ENTITY_ACTIVITY
7
7
  export const SECURITY_PLAYBOOK_MAX_STEPS = commonJsModule.SECURITY_PLAYBOOK_MAX_STEPS;
8
8
  export const SECURITY_PLAYBOOK_MAX_TASKS_PER_STEP = commonJsModule.SECURITY_PLAYBOOK_MAX_TASKS_PER_STEP;
9
9
  export const SECURITY_PLAYBOOK_NOTE_MAX_LENGTH = commonJsModule.SECURITY_PLAYBOOK_NOTE_MAX_LENGTH;
10
+ export const SECURITY_PLAYBOOK_STOP_REASON_MAX_LENGTH = commonJsModule.SECURITY_PLAYBOOK_STOP_REASON_MAX_LENGTH;
10
11
  export const SECURITY_PLAYBOOK_TASK_MAX_LENGTH = commonJsModule.SECURITY_PLAYBOOK_TASK_MAX_LENGTH;
11
12
  export const TURN_OFF_CONTAINMENT_APPROVAL_PERMISSIONS = commonJsModule.TURN_OFF_CONTAINMENT_APPROVAL_PERMISSIONS;
12
13
  export const assertSecurityPlaybookStepConditions = commonJsModule.assertSecurityPlaybookStepConditions;
13
14
  export const doesStepNeedApproval = commonJsModule.doesStepNeedApproval;
15
+ export const doesStepWaitOn = commonJsModule.doesStepWaitOn;
14
16
  export const getStepsWaitingOn = commonJsModule.getStepsWaitingOn;
15
17
  export const normalizeSecurityPlaybookStepConfig = commonJsModule.normalizeSecurityPlaybookStepConfig;
16
18
  export const parseSecurityPlaybookSteps = commonJsModule.parseSecurityPlaybookSteps;
@@ -11,24 +11,39 @@ export interface SecurityPlaybookStepCondition {
11
11
  stepId: string;
12
12
  outcome: SecurityPlaybookStepOutcome;
13
13
  }
14
+ export declare enum SecurityPlaybookConditionMatch {
15
+ All = "All",
16
+ Any = "Any"
17
+ }
18
+ export interface SecurityPlaybookStepConditionGroup {
19
+ match: SecurityPlaybookConditionMatch;
20
+ conditions: Array<SecurityPlaybookStepCondition>;
21
+ }
22
+ export type SecurityPlaybookStepRunIf = SecurityPlaybookStepCondition | SecurityPlaybookStepConditionGroup;
23
+ export declare const SECURITY_PLAYBOOK_MAX_CONDITIONS_PER_STEP: number;
14
24
  export interface SecurityPlaybookFinds {
15
25
  found: string;
16
26
  foundNothing: string;
17
27
  }
18
28
  export declare function getSecurityPlaybookFinds(action: SecurityPlaybookActionType | string | undefined | null): SecurityPlaybookFinds | undefined;
19
29
  export declare function isSecurityPlaybookStepOutcome(value: unknown): value is SecurityPlaybookStepOutcome;
30
+ export declare function isSecurityPlaybookConditionMatch(value: unknown): value is SecurityPlaybookConditionMatch;
31
+ export declare function isSecurityPlaybookStepConditionGroup(runIf: SecurityPlaybookStepRunIf | undefined | null): runIf is SecurityPlaybookStepConditionGroup;
32
+ export declare function getSecurityPlaybookStepConditions(runIf: SecurityPlaybookStepRunIf | undefined | null): Array<SecurityPlaybookStepCondition>;
33
+ export declare function getSecurityPlaybookConditionMatch(runIf: SecurityPlaybookStepRunIf | undefined | null): SecurityPlaybookConditionMatch;
34
+ export declare function buildSecurityPlaybookStepRunIf(conditions: ReadonlyArray<SecurityPlaybookStepCondition>, match?: SecurityPlaybookConditionMatch): SecurityPlaybookStepRunIf | undefined;
20
35
  export declare function getSecurityPlaybookStepOutcomes(step: {
21
36
  action: SecurityPlaybookActionType | string;
22
37
  continueOnFailure: boolean;
23
38
  }): Array<SecurityPlaybookStepOutcome>;
24
39
  export declare function describeSecurityPlaybookStepOutcome(action: SecurityPlaybookActionType | string, outcome: SecurityPlaybookStepOutcome): string;
25
- export declare function readSecurityPlaybookStepCondition(value: JSONValue | undefined, label: string): SecurityPlaybookStepCondition | undefined;
40
+ export declare function readSecurityPlaybookStepCondition(value: JSONValue | undefined, label: string): SecurityPlaybookStepRunIf | undefined;
26
41
  export declare function doesStepResultMeetOutcome(result: {
27
42
  status: SecurityPlaybookStepStatus | string | undefined;
28
43
  found?: boolean | undefined;
29
44
  }, outcome: SecurityPlaybookStepOutcome): boolean;
30
45
  export declare function evaluateSecurityPlaybookStepCondition(data: {
31
- condition: SecurityPlaybookStepCondition | undefined;
46
+ condition: SecurityPlaybookStepRunIf | undefined;
32
47
  index: number;
33
48
  steps: ReadonlyArray<{
34
49
  id: string;
@@ -11,24 +11,39 @@ export interface SecurityPlaybookStepCondition {
11
11
  stepId: string;
12
12
  outcome: SecurityPlaybookStepOutcome;
13
13
  }
14
+ export declare enum SecurityPlaybookConditionMatch {
15
+ All = "All",
16
+ Any = "Any"
17
+ }
18
+ export interface SecurityPlaybookStepConditionGroup {
19
+ match: SecurityPlaybookConditionMatch;
20
+ conditions: Array<SecurityPlaybookStepCondition>;
21
+ }
22
+ export type SecurityPlaybookStepRunIf = SecurityPlaybookStepCondition | SecurityPlaybookStepConditionGroup;
23
+ export declare const SECURITY_PLAYBOOK_MAX_CONDITIONS_PER_STEP: number;
14
24
  export interface SecurityPlaybookFinds {
15
25
  found: string;
16
26
  foundNothing: string;
17
27
  }
18
28
  export declare function getSecurityPlaybookFinds(action: SecurityPlaybookActionType | string | undefined | null): SecurityPlaybookFinds | undefined;
19
29
  export declare function isSecurityPlaybookStepOutcome(value: unknown): value is SecurityPlaybookStepOutcome;
30
+ export declare function isSecurityPlaybookConditionMatch(value: unknown): value is SecurityPlaybookConditionMatch;
31
+ export declare function isSecurityPlaybookStepConditionGroup(runIf: SecurityPlaybookStepRunIf | undefined | null): runIf is SecurityPlaybookStepConditionGroup;
32
+ export declare function getSecurityPlaybookStepConditions(runIf: SecurityPlaybookStepRunIf | undefined | null): Array<SecurityPlaybookStepCondition>;
33
+ export declare function getSecurityPlaybookConditionMatch(runIf: SecurityPlaybookStepRunIf | undefined | null): SecurityPlaybookConditionMatch;
34
+ export declare function buildSecurityPlaybookStepRunIf(conditions: ReadonlyArray<SecurityPlaybookStepCondition>, match?: SecurityPlaybookConditionMatch): SecurityPlaybookStepRunIf | undefined;
20
35
  export declare function getSecurityPlaybookStepOutcomes(step: {
21
36
  action: SecurityPlaybookActionType | string;
22
37
  continueOnFailure: boolean;
23
38
  }): Array<SecurityPlaybookStepOutcome>;
24
39
  export declare function describeSecurityPlaybookStepOutcome(action: SecurityPlaybookActionType | string, outcome: SecurityPlaybookStepOutcome): string;
25
- export declare function readSecurityPlaybookStepCondition(value: JSONValue | undefined, label: string): SecurityPlaybookStepCondition | undefined;
40
+ export declare function readSecurityPlaybookStepCondition(value: JSONValue | undefined, label: string): SecurityPlaybookStepRunIf | undefined;
26
41
  export declare function doesStepResultMeetOutcome(result: {
27
42
  status: SecurityPlaybookStepStatus | string | undefined;
28
43
  found?: boolean | undefined;
29
44
  }, outcome: SecurityPlaybookStepOutcome): boolean;
30
45
  export declare function evaluateSecurityPlaybookStepCondition(data: {
31
- condition: SecurityPlaybookStepCondition | undefined;
46
+ condition: SecurityPlaybookStepRunIf | undefined;
32
47
  index: number;
33
48
  steps: ReadonlyArray<{
34
49
  id: string;
@@ -3,9 +3,14 @@ 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
- exports.SecurityPlaybookStepOutcome = void 0;
6
+ exports.SECURITY_PLAYBOOK_MAX_CONDITIONS_PER_STEP = exports.SecurityPlaybookConditionMatch = exports.SecurityPlaybookStepOutcome = void 0;
7
7
  exports.getSecurityPlaybookFinds = getSecurityPlaybookFinds;
8
8
  exports.isSecurityPlaybookStepOutcome = isSecurityPlaybookStepOutcome;
9
+ exports.isSecurityPlaybookConditionMatch = isSecurityPlaybookConditionMatch;
10
+ exports.isSecurityPlaybookStepConditionGroup = isSecurityPlaybookStepConditionGroup;
11
+ exports.getSecurityPlaybookStepConditions = getSecurityPlaybookStepConditions;
12
+ exports.getSecurityPlaybookConditionMatch = getSecurityPlaybookConditionMatch;
13
+ exports.buildSecurityPlaybookStepRunIf = buildSecurityPlaybookStepRunIf;
9
14
  exports.getSecurityPlaybookStepOutcomes = getSecurityPlaybookStepOutcomes;
10
15
  exports.describeSecurityPlaybookStepOutcome = describeSecurityPlaybookStepOutcome;
11
16
  exports.readSecurityPlaybookStepCondition = readSecurityPlaybookStepCondition;
@@ -15,10 +20,10 @@ const BadDataException_1 = __importDefault(require("../Exception/BadDataExceptio
15
20
  const SecurityPlaybookAction_1 = require("./SecurityPlaybookAction");
16
21
  const SecurityPlaybookRunStatus_1 = require("./SecurityPlaybookRunStatus");
17
22
  /*
18
- * BRANCHING: a step that runs only after an earlier step's result.
23
+ * BRANCHING: a step that runs only after earlier steps' results.
19
24
  *
20
- * A playbook stays a list read top to bottom; a step may wait on one
21
- * earlier step of the same playbook (`runIf`) and run only when that step:
25
+ * A playbook stays a list read top to bottom; a step may wait on earlier
26
+ * steps of the same playbook (`runIf`) and run only when one of them:
22
27
  *
23
28
  * - succeeded, or failed (a step that fails stops the run unless it
24
29
  * carries on, so "failed" can be waited on only for one that does);
@@ -26,15 +31,21 @@ const SecurityPlaybookRunStatus_1 = require("./SecurityPlaybookRunStatus");
26
31
  * something, or found nothing - "contain only what threat intel knows
27
32
  * is bad", and its else: "if it found nothing, leave a task to check".
28
33
  *
34
+ * A step may wait on one result, or on several - all of them, or any one
35
+ * (SecurityPlaybookStepConditionGroup): "contain only when threat intel
36
+ * knows the user AND the sign-in was confirmed", "page on-call when either
37
+ * lookup found something". One result is stored as it always was, so a
38
+ * playbook saved before groups came reads, and saves, unchanged.
39
+ *
29
40
  * Two steps waiting on opposite results of one step are an if and an else.
30
- * A step whose condition does not hold is skipped, saying which result it
41
+ * A step whose condition does not hold is skipped, saying which results it
31
42
  * waited on, before it asks for an approval or acts on anything. A step
32
43
  * the one it waits on never reached (it was skipped, or the run ended
33
44
  * first) does not run either: nothing is contained on a result nobody saw.
34
45
  *
35
- * The condition names the earlier step by its id, so moving steps keeps
36
- * what each waits on; a playbook is refused on save when a step waits on
37
- * one that is not before it, on a result that step cannot have, or on the
46
+ * A condition names an earlier step by its id, so moving steps keeps what
47
+ * each waits on; a playbook is refused on save when a step waits on one
48
+ * that is not before it, on a result that step cannot have, or on the
38
49
  * failure of a step that stops the run (assertSecurityPlaybookStepConditions).
39
50
  */
40
51
  var SecurityPlaybookStepOutcome;
@@ -46,6 +57,16 @@ var SecurityPlaybookStepOutcome;
46
57
  // ...or looked, and found nothing.
47
58
  SecurityPlaybookStepOutcome["FoundNothing"] = "Found Nothing";
48
59
  })(SecurityPlaybookStepOutcome || (exports.SecurityPlaybookStepOutcome = SecurityPlaybookStepOutcome = {}));
60
+ // How a step that waits on several results reads them.
61
+ var SecurityPlaybookConditionMatch;
62
+ (function (SecurityPlaybookConditionMatch) {
63
+ // It runs when every one of them happened.
64
+ SecurityPlaybookConditionMatch["All"] = "All";
65
+ // ...or when any one of them did.
66
+ SecurityPlaybookConditionMatch["Any"] = "Any";
67
+ })(SecurityPlaybookConditionMatch || (exports.SecurityPlaybookConditionMatch = SecurityPlaybookConditionMatch = {}));
68
+ // The most results one step waits on.
69
+ exports.SECURITY_PLAYBOOK_MAX_CONDITIONS_PER_STEP = 5;
49
70
  const FINDS_BY_ACTION = {
50
71
  [SecurityPlaybookAction_1.SecurityPlaybookActionType.CheckThreatIntel]: {
51
72
  found: "found a known-bad entity",
@@ -72,13 +93,65 @@ function isSecurityPlaybookStepOutcome(value) {
72
93
  return (typeof value === "string" &&
73
94
  Object.values(SecurityPlaybookStepOutcome).includes(value));
74
95
  }
96
+ function isSecurityPlaybookConditionMatch(value) {
97
+ return (typeof value === "string" &&
98
+ Object.values(SecurityPlaybookConditionMatch).includes(value));
99
+ }
100
+ function isSecurityPlaybookStepConditionGroup(runIf) {
101
+ return Boolean(runIf &&
102
+ Array.isArray(runIf.conditions));
103
+ }
104
+ // The results a step waits on, in the order they were picked: none for a step that always runs.
105
+ function getSecurityPlaybookStepConditions(runIf) {
106
+ if (!runIf) {
107
+ return [];
108
+ }
109
+ return isSecurityPlaybookStepConditionGroup(runIf)
110
+ ? runIf.conditions
111
+ : [runIf];
112
+ }
113
+ // How a step reads the results it waits on: all of them, unless it said any.
114
+ function getSecurityPlaybookConditionMatch(runIf) {
115
+ return isSecurityPlaybookStepConditionGroup(runIf)
116
+ ? runIf.match
117
+ : SecurityPlaybookConditionMatch.All;
118
+ }
119
+ function sameCondition(a, b) {
120
+ return a.stepId === b.stepId && a.outcome === b.outcome;
121
+ }
122
+ /*
123
+ * What a step waits on, from the results picked: none (it always runs),
124
+ * one - stored as a step always stored it - or a group of two or more, the
125
+ * same result never twice.
126
+ */
127
+ function buildSecurityPlaybookStepRunIf(conditions, match = SecurityPlaybookConditionMatch.All) {
128
+ const unique = [];
129
+ for (const condition of conditions) {
130
+ if (!unique.some((kept) => {
131
+ return sameCondition(kept, condition);
132
+ })) {
133
+ unique.push({ stepId: condition.stepId, outcome: condition.outcome });
134
+ }
135
+ }
136
+ if (unique.length === 0) {
137
+ return undefined;
138
+ }
139
+ if (unique.length === 1) {
140
+ return unique[0];
141
+ }
142
+ return { match, conditions: unique };
143
+ }
75
144
  /*
76
145
  * The results a later step can wait on for a step of this action: found or
77
146
  * found nothing for one that looks something up, succeeded otherwise - and
78
147
  * failed for one that carries on when it fails, the only kind a later step
79
- * ever sees fail.
148
+ * ever sees fail. A step that stops the run has none: nothing after it
149
+ * runs.
80
150
  */
81
151
  function getSecurityPlaybookStepOutcomes(step) {
152
+ if (step.action === SecurityPlaybookAction_1.SecurityPlaybookActionType.StopRun) {
153
+ return [];
154
+ }
82
155
  const outcomes = getSecurityPlaybookFinds(step.action)
83
156
  ? [
84
157
  SecurityPlaybookStepOutcome.Found,
@@ -108,13 +181,10 @@ function describeSecurityPlaybookStepOutcome(action, outcome) {
108
181
  }
109
182
  }
110
183
  /*
111
- * A stored or posted condition, read. None (undefined) for a step that runs
112
- * always: no condition, null, or an empty one. One that is there but does
113
- * not read - no step, or a result that is not one - is refused, naming the
114
- * step: dropped instead, the step would run always, and a containment step
115
- * meant to wait on threat intel would contain on its own.
184
+ * One stored condition, read: the earlier step and the result. Refused,
185
+ * naming the step, when it does not read.
116
186
  */
117
- function readSecurityPlaybookStepCondition(value, label) {
187
+ function readOneCondition(value, label) {
118
188
  if (value === undefined || value === null || value === "") {
119
189
  return undefined;
120
190
  }
@@ -136,6 +206,50 @@ function readSecurityPlaybookStepCondition(value, label) {
136
206
  }
137
207
  return { stepId, outcome };
138
208
  }
209
+ /*
210
+ * A stored or posted condition, read: one result, or a group of results
211
+ * with how they are read (all of them, or any). None (undefined) for a step
212
+ * that runs always: no condition, null, an empty one, or a group with
213
+ * nothing in it. One that is there but does not read - no step, a result
214
+ * that is not one, a group that cannot say how it reads - is refused,
215
+ * naming the step: dropped instead, the step would run always, and a
216
+ * containment step meant to wait on threat intel would contain on its own.
217
+ * A group of one is that one result.
218
+ */
219
+ function readSecurityPlaybookStepCondition(value, label) {
220
+ if (value &&
221
+ typeof value === "object" &&
222
+ !Array.isArray(value) &&
223
+ value["conditions"] !== undefined) {
224
+ const record = value;
225
+ const items = record["conditions"];
226
+ if (!Array.isArray(items)) {
227
+ throw new BadDataException_1.default(`${label}: when it runs is not something a playbook can read. Choose again when it runs.`);
228
+ }
229
+ const match = record["match"];
230
+ if (match !== undefined &&
231
+ match !== null &&
232
+ !isSecurityPlaybookConditionMatch(match)) {
233
+ throw new BadDataException_1.default(`${label}: choose whether it runs after all of the results it waits on, or any one of them.`);
234
+ }
235
+ const conditions = [];
236
+ for (const item of items) {
237
+ const condition = readOneCondition(item, label);
238
+ if (condition) {
239
+ conditions.push(condition);
240
+ }
241
+ }
242
+ const runIf = buildSecurityPlaybookStepRunIf(conditions, isSecurityPlaybookConditionMatch(match)
243
+ ? match
244
+ : SecurityPlaybookConditionMatch.All);
245
+ if (getSecurityPlaybookStepConditions(runIf).length >
246
+ exports.SECURITY_PLAYBOOK_MAX_CONDITIONS_PER_STEP) {
247
+ throw new BadDataException_1.default(`${label}: a step waits on at most ${exports.SECURITY_PLAYBOOK_MAX_CONDITIONS_PER_STEP} results of earlier steps.`);
248
+ }
249
+ return runIf;
250
+ }
251
+ return readOneCondition(value, label);
252
+ }
139
253
  /*
140
254
  * Whether an earlier step's result is the one a condition waits on. A step
141
255
  * that never ran to an end - skipped, rejected, still pending - has no
@@ -155,34 +269,61 @@ function doesStepResultMeetOutcome(result, outcome) {
155
269
  return result.status === SecurityPlaybookRunStatus_1.SecurityPlaybookStepStatus.Succeeded;
156
270
  }
157
271
  }
272
+ /*
273
+ * Clauses joined the way a sentence lists them: "a", "a and b", "a, b and
274
+ * c" - or with "or".
275
+ */
276
+ function joinClauses(clauses, word) {
277
+ if (clauses.length <= 1) {
278
+ return clauses.join("");
279
+ }
280
+ return `${clauses.slice(0, -1).join(", ")} ${word} ${clauses[clauses.length - 1]}`;
281
+ }
158
282
  /*
159
283
  * A step's condition, read against the run so far. `steps` and `results`
160
284
  * are the run's, in step order; `index` is the step's own place. Holds when
161
- * the step waits on nothing; otherwise when the step it waits on, before
162
- * it, ended with the result it waits on. `reason` says why it does not, in
163
- * a sentence a run shows under the skipped step.
285
+ * the step waits on nothing; otherwise when the steps it waits on, before
286
+ * it, ended with the results it waits on - every one of them, or any one
287
+ * for a step that said any. `reason` says why it does not, in a sentence a
288
+ * run shows under the skipped step.
164
289
  */
165
290
  function evaluateSecurityPlaybookStepCondition(data) {
166
- const condition = data.condition;
167
- if (!condition) {
291
+ const conditions = getSecurityPlaybookStepConditions(data.condition);
292
+ if (conditions.length === 0) {
168
293
  return { holds: true };
169
294
  }
170
- const waitedOn = data.steps.findIndex((step) => {
171
- return step.id === condition.stepId;
172
- });
173
- if (waitedOn < 0 || waitedOn >= data.index) {
174
- return {
175
- holds: false,
176
- reason: "Skipped: the step it runs after is not before it in this run.",
177
- };
178
- }
179
- const waitedOnStep = data.steps[waitedOn];
180
- const definition = (0, SecurityPlaybookAction_1.getSecurityPlaybookAction)(waitedOnStep.action);
181
- if (doesStepResultMeetOutcome(data.results[waitedOn] || { status: SecurityPlaybookRunStatus_1.SecurityPlaybookStepStatus.Pending }, condition.outcome)) {
295
+ const match = getSecurityPlaybookConditionMatch(data.condition);
296
+ const clauses = [];
297
+ let held = 0;
298
+ for (const condition of conditions) {
299
+ const waitedOn = data.steps.findIndex((step) => {
300
+ return step.id === condition.stepId;
301
+ });
302
+ if (waitedOn < 0 || waitedOn >= data.index) {
303
+ return {
304
+ holds: false,
305
+ reason: conditions.length === 1
306
+ ? "Skipped: the step it runs after is not before it in this run."
307
+ : "Skipped: a step it runs after is not before it in this run.",
308
+ };
309
+ }
310
+ const waitedOnStep = data.steps[waitedOn];
311
+ const definition = (0, SecurityPlaybookAction_1.getSecurityPlaybookAction)(waitedOnStep.action);
312
+ if (doesStepResultMeetOutcome(data.results[waitedOn] || {
313
+ status: SecurityPlaybookRunStatus_1.SecurityPlaybookStepStatus.Pending,
314
+ }, condition.outcome)) {
315
+ held++;
316
+ }
317
+ clauses.push(`step ${waitedOn + 1} (${(definition === null || definition === void 0 ? void 0 : definition.title) || waitedOnStep.action}) ${describeSecurityPlaybookStepOutcome(waitedOnStep.action, condition.outcome)}`);
318
+ }
319
+ const holds = match === SecurityPlaybookConditionMatch.Any
320
+ ? held > 0
321
+ : held === conditions.length;
322
+ if (holds) {
182
323
  return { holds: true };
183
324
  }
184
325
  return {
185
326
  holds: false,
186
- reason: `Skipped: it runs only if step ${waitedOn + 1} (${(definition === null || definition === void 0 ? void 0 : definition.title) || waitedOnStep.action}) ${describeSecurityPlaybookStepOutcome(waitedOnStep.action, condition.outcome)}.`,
327
+ reason: `Skipped: it runs only if ${joinClauses(clauses, match === SecurityPlaybookConditionMatch.Any ? "or" : "and")}.`,
187
328
  };
188
329
  }
@@ -1,9 +1,16 @@
1
1
  import commonJsModule from "./SecurityPlaybookStepCondition.js";
2
+ export const SECURITY_PLAYBOOK_MAX_CONDITIONS_PER_STEP = commonJsModule.SECURITY_PLAYBOOK_MAX_CONDITIONS_PER_STEP;
3
+ export const SecurityPlaybookConditionMatch = commonJsModule.SecurityPlaybookConditionMatch;
2
4
  export const SecurityPlaybookStepOutcome = commonJsModule.SecurityPlaybookStepOutcome;
5
+ export const buildSecurityPlaybookStepRunIf = commonJsModule.buildSecurityPlaybookStepRunIf;
3
6
  export const describeSecurityPlaybookStepOutcome = commonJsModule.describeSecurityPlaybookStepOutcome;
4
7
  export const doesStepResultMeetOutcome = commonJsModule.doesStepResultMeetOutcome;
5
8
  export const evaluateSecurityPlaybookStepCondition = commonJsModule.evaluateSecurityPlaybookStepCondition;
9
+ export const getSecurityPlaybookConditionMatch = commonJsModule.getSecurityPlaybookConditionMatch;
6
10
  export const getSecurityPlaybookFinds = commonJsModule.getSecurityPlaybookFinds;
11
+ export const getSecurityPlaybookStepConditions = commonJsModule.getSecurityPlaybookStepConditions;
7
12
  export const getSecurityPlaybookStepOutcomes = commonJsModule.getSecurityPlaybookStepOutcomes;
13
+ export const isSecurityPlaybookConditionMatch = commonJsModule.isSecurityPlaybookConditionMatch;
14
+ export const isSecurityPlaybookStepConditionGroup = commonJsModule.isSecurityPlaybookStepConditionGroup;
8
15
  export const isSecurityPlaybookStepOutcome = commonJsModule.isSecurityPlaybookStepOutcome;
9
16
  export const readSecurityPlaybookStepCondition = commonJsModule.readSecurityPlaybookStepCondition;
@@ -0,0 +1,30 @@
1
+ export declare const SERVERLESS_FUNCTION_NO_RECENT_INVOCATIONS_AFTER_MINUTES: number;
2
+ export declare enum ServerlessFunctionStatus {
3
+ ReceivingData = "receiving-data",
4
+ NoRecentInvocations = "no-recent-invocations",
5
+ WaitingForData = "waiting-for-data"
6
+ }
7
+ export type ServerlessFunctionStatusTone = "positive" | "neutral";
8
+ export interface ServerlessFunctionStatusWords {
9
+ label: string;
10
+ description: string;
11
+ tone: ServerlessFunctionStatusTone;
12
+ }
13
+ export interface ServerlessFunctionStatusInput {
14
+ otelCollectorStatus: string | null | undefined;
15
+ lastSeenAt: Date | string | null | undefined;
16
+ }
17
+ export declare const SERVERLESS_FUNCTION_RECEIVING_DATA_LABEL: string;
18
+ export declare const SERVERLESS_FUNCTION_NO_RECENT_INVOCATIONS_LABEL: string;
19
+ export declare const SERVERLESS_FUNCTION_WAITING_FOR_DATA_LABEL: string;
20
+ export declare const SERVERLESS_FUNCTION_RECEIVING_DATA_DESCRIPTION: string;
21
+ export declare const SERVERLESS_FUNCTION_NO_RECENT_INVOCATIONS_DESCRIPTION: string;
22
+ export declare const SERVERLESS_FUNCTION_WAITING_FOR_DATA_DESCRIPTION: string;
23
+ export declare const isServerlessFunctionStatusReceiving: (otelCollectorStatus: string | null | undefined) => boolean;
24
+ export declare const getServerlessFunctionLastDataAt: (lastSeenAt: Date | string | null | undefined) => Date | null;
25
+ export declare const getServerlessFunctionStatus: (input: ServerlessFunctionStatusInput) => ServerlessFunctionStatus;
26
+ export declare const getServerlessFunctionStatusWords: (status: ServerlessFunctionStatus) => ServerlessFunctionStatusWords;
27
+ export interface ServerlessFunctionStatusDescription extends ServerlessFunctionStatusWords {
28
+ status: ServerlessFunctionStatus;
29
+ }
30
+ export declare const describeServerlessFunctionStatus: (input: ServerlessFunctionStatusInput) => ServerlessFunctionStatusDescription;