@oneuptime/common 14.0.97 → 14.0.99

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 (593) hide show
  1. package/Models/DatabaseModels/CloudAccount.d.mts +8 -0
  2. package/Models/DatabaseModels/CloudAccount.d.ts +8 -0
  3. package/Models/DatabaseModels/CloudAccount.js +167 -0
  4. package/Models/DatabaseModels/CloudAccountFeed.d.mts +27 -0
  5. package/Models/DatabaseModels/CloudAccountFeed.d.ts +27 -0
  6. package/Models/DatabaseModels/CloudAccountFeed.js +557 -0
  7. package/Models/DatabaseModels/CloudAccountFeed.mjs +3 -0
  8. package/Models/DatabaseModels/CodeRepository.d.mts +3 -0
  9. package/Models/DatabaseModels/CodeRepository.d.ts +3 -0
  10. package/Models/DatabaseModels/CodeRepository.js +104 -0
  11. package/Models/DatabaseModels/DataSecurityCheckSetting.d.mts +17 -0
  12. package/Models/DatabaseModels/DataSecurityCheckSetting.d.ts +17 -0
  13. package/Models/DatabaseModels/DataSecurityCheckSetting.js +304 -0
  14. package/Models/DatabaseModels/DataSecurityCheckSetting.mjs +2 -0
  15. package/Models/DatabaseModels/DataSecurityCustomDataType.d.mts +25 -0
  16. package/Models/DatabaseModels/DataSecurityCustomDataType.d.ts +25 -0
  17. package/Models/DatabaseModels/DataSecurityCustomDataType.js +431 -0
  18. package/Models/DatabaseModels/DataSecurityCustomDataType.mjs +2 -0
  19. package/Models/DatabaseModels/DataSecurityFlow.d.mts +26 -0
  20. package/Models/DatabaseModels/DataSecurityFlow.d.ts +26 -0
  21. package/Models/DatabaseModels/DataSecurityFlow.js +456 -0
  22. package/Models/DatabaseModels/DataSecurityFlow.mjs +2 -0
  23. package/Models/DatabaseModels/DataSecurityIssue.d.mts +49 -0
  24. package/Models/DatabaseModels/DataSecurityIssue.d.ts +49 -0
  25. package/Models/DatabaseModels/DataSecurityIssue.js +797 -0
  26. package/Models/DatabaseModels/DataSecurityIssue.mjs +2 -0
  27. package/Models/DatabaseModels/DataSecurityIssueFeed.d.mts +43 -0
  28. package/Models/DatabaseModels/DataSecurityIssueFeed.d.ts +43 -0
  29. package/Models/DatabaseModels/DataSecurityIssueFeed.js +382 -0
  30. package/Models/DatabaseModels/DataSecurityIssueFeed.mjs +3 -0
  31. package/Models/DatabaseModels/DataSecurityResidencyRule.d.mts +18 -0
  32. package/Models/DatabaseModels/DataSecurityResidencyRule.d.ts +18 -0
  33. package/Models/DatabaseModels/DataSecurityResidencyRule.js +331 -0
  34. package/Models/DatabaseModels/DataSecurityResidencyRule.mjs +2 -0
  35. package/Models/DatabaseModels/DataSecurityScan.d.mts +29 -0
  36. package/Models/DatabaseModels/DataSecurityScan.d.ts +29 -0
  37. package/Models/DatabaseModels/DataSecurityScan.js +520 -0
  38. package/Models/DatabaseModels/DataSecurityScan.mjs +2 -0
  39. package/Models/DatabaseModels/DataSecuritySetting.d.mts +35 -0
  40. package/Models/DatabaseModels/DataSecuritySetting.d.ts +35 -0
  41. package/Models/DatabaseModels/DataSecuritySetting.js +631 -0
  42. package/Models/DatabaseModels/DataSecuritySetting.mjs +2 -0
  43. package/Models/DatabaseModels/DataStore.d.mts +83 -0
  44. package/Models/DatabaseModels/DataStore.d.ts +83 -0
  45. package/Models/DatabaseModels/DataStore.js +1343 -0
  46. package/Models/DatabaseModels/DataStore.mjs +2 -0
  47. package/Models/DatabaseModels/DataStoreAccess.d.mts +22 -0
  48. package/Models/DatabaseModels/DataStoreAccess.d.ts +22 -0
  49. package/Models/DatabaseModels/DataStoreAccess.js +407 -0
  50. package/Models/DatabaseModels/DataStoreAccess.mjs +2 -0
  51. package/Models/DatabaseModels/DataStoreFeed.d.mts +36 -0
  52. package/Models/DatabaseModels/DataStoreFeed.d.ts +36 -0
  53. package/Models/DatabaseModels/DataStoreFeed.js +613 -0
  54. package/Models/DatabaseModels/DataStoreFeed.mjs +3 -0
  55. package/Models/DatabaseModels/DataStoreFinding.d.mts +38 -0
  56. package/Models/DatabaseModels/DataStoreFinding.d.ts +38 -0
  57. package/Models/DatabaseModels/DataStoreFinding.js +683 -0
  58. package/Models/DatabaseModels/DataStoreFinding.mjs +2 -0
  59. package/Models/DatabaseModels/DataStoreLabelRule.d.mts +21 -0
  60. package/Models/DatabaseModels/DataStoreLabelRule.d.ts +21 -0
  61. package/Models/DatabaseModels/DataStoreLabelRule.js +623 -0
  62. package/Models/DatabaseModels/DataStoreLabelRule.mjs +2 -0
  63. package/Models/DatabaseModels/DataStoreOwnerRule.d.mts +24 -0
  64. package/Models/DatabaseModels/DataStoreOwnerRule.d.ts +24 -0
  65. package/Models/DatabaseModels/DataStoreOwnerRule.js +714 -0
  66. package/Models/DatabaseModels/DataStoreOwnerRule.mjs +2 -0
  67. package/Models/DatabaseModels/DataStoreOwnerTeam.d.mts +19 -0
  68. package/Models/DatabaseModels/DataStoreOwnerTeam.d.ts +19 -0
  69. package/Models/DatabaseModels/DataStoreOwnerTeam.js +477 -0
  70. package/Models/DatabaseModels/DataStoreOwnerTeam.mjs +2 -0
  71. package/Models/DatabaseModels/DataStoreOwnerUser.d.mts +18 -0
  72. package/Models/DatabaseModels/DataStoreOwnerUser.d.ts +18 -0
  73. package/Models/DatabaseModels/DataStoreOwnerUser.js +476 -0
  74. package/Models/DatabaseModels/DataStoreOwnerUser.mjs +2 -0
  75. package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
  76. package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
  77. package/Models/DatabaseModels/GlobalConfig.js +110 -0
  78. package/Models/DatabaseModels/Index.js +37 -0
  79. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +1 -0
  80. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +1 -0
  81. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +43 -0
  82. package/Models/DatabaseModels/ResourceAiAgent.js +3 -1
  83. package/Models/DatabaseModels/SecurityCaseEvidence.d.mts +4 -0
  84. package/Models/DatabaseModels/SecurityCaseEvidence.d.ts +4 -0
  85. package/Models/DatabaseModels/SecurityCaseEvidence.js +64 -5
  86. package/Models/DatabaseModels/SecurityEntityCriticality.js +7 -6
  87. package/Models/DatabaseModels/SecurityEntityRisk.js +2 -2
  88. package/Models/DatabaseModels/SecurityHunt.d.mts +34 -0
  89. package/Models/DatabaseModels/SecurityHunt.d.ts +34 -0
  90. package/Models/DatabaseModels/SecurityHunt.js +608 -0
  91. package/Models/DatabaseModels/SecurityHunt.mjs +2 -0
  92. package/Models/DatabaseModels/TelemetryException.d.mts +5 -0
  93. package/Models/DatabaseModels/TelemetryException.d.ts +5 -0
  94. package/Models/DatabaseModels/TelemetryException.js +170 -8
  95. package/Types/AI/AIChatPageContext.d.mts +4 -1
  96. package/Types/AI/AIChatPageContext.d.ts +4 -1
  97. package/Types/AI/AIChatPageContext.js +7 -0
  98. package/Types/AI/AIChatTypes.d.mts +7 -1
  99. package/Types/AI/AIChatTypes.d.ts +7 -1
  100. package/Types/AI/AIChatTypes.js +9 -0
  101. package/Types/AI/AIRunEventType.d.mts +1 -0
  102. package/Types/AI/AIRunEventType.d.ts +1 -0
  103. package/Types/AI/AIRunEventType.js +8 -0
  104. package/Types/AI/AiAffectedResources.js +5 -3
  105. package/Types/AI/AiTokenCount.d.mts +22 -1
  106. package/Types/AI/AiTokenCount.d.ts +22 -1
  107. package/Types/AI/AiTokenCount.js +126 -57
  108. package/Types/AI/AiTokenCount.mjs +2 -0
  109. package/Types/AI/CodeFixTaskContext.d.mts +22 -0
  110. package/Types/AI/CodeFixTaskContext.d.ts +22 -0
  111. package/Types/AI/CodeFixTaskContext.js +61 -4
  112. package/Types/AI/CodeFixTaskContext.mjs +2 -0
  113. package/Types/AI/CodeTask.d.mts +2 -0
  114. package/Types/AI/CodeTask.d.ts +2 -0
  115. package/Types/AI/CodeTask.js +4 -0
  116. package/Types/AI/ResourceAiAccessApi.d.mts +1 -0
  117. package/Types/AI/ResourceAiAccessApi.d.ts +1 -0
  118. package/Types/AI/ResourceAiAccessPermissions.js +6 -0
  119. package/Types/AutoRemediation/AiRemediationCommandPlan.d.mts +19 -0
  120. package/Types/AutoRemediation/AiRemediationCommandPlan.d.ts +19 -0
  121. package/Types/AutoRemediation/AiRemediationCommandPlan.js +85 -10
  122. package/Types/AutoRemediation/AiRemediationCommandPlan.mjs +4 -0
  123. package/Types/AutoRemediation/RemediationTryAgain.d.mts +17 -0
  124. package/Types/AutoRemediation/RemediationTryAgain.d.ts +17 -0
  125. package/Types/AutoRemediation/RemediationTryAgain.js +104 -0
  126. package/Types/AutoRemediation/RemediationTryAgain.mjs +6 -0
  127. package/Types/CloudConnection/CloudAiAgentCost.d.mts +19 -0
  128. package/Types/CloudConnection/CloudAiAgentCost.d.ts +19 -0
  129. package/Types/CloudConnection/CloudAiAgentCost.js +95 -0
  130. package/Types/CloudConnection/CloudAiAgentCost.mjs +15 -0
  131. package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +70 -0
  132. package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +70 -0
  133. package/Types/CloudConnection/CloudAiAgentSetupCommands.js +1107 -0
  134. package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +37 -0
  135. package/Types/CloudConnection/CloudConnectionCatalog.d.mts +8 -0
  136. package/Types/CloudConnection/CloudConnectionCatalog.d.ts +8 -0
  137. package/Types/CloudConnection/CloudConnectionCatalog.js +75 -1
  138. package/Types/CloudConnection/CloudConnectionCatalog.mjs +6 -0
  139. package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +48 -4
  140. package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +48 -4
  141. package/Types/CloudConnection/CloudConnectionSetupCommands.js +410 -16
  142. package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +21 -0
  143. package/Types/CodeRepository/CodeHost.d.mts +2 -1
  144. package/Types/CodeRepository/CodeHost.d.ts +2 -1
  145. package/Types/CodeRepository/CodeHost.js +12 -5
  146. package/Types/CodeRepository/CodeRepositorySetting.d.mts +1 -0
  147. package/Types/CodeRepository/CodeRepositorySetting.d.ts +1 -0
  148. package/Types/CodeRepository/CodeRepositorySetting.js +2 -0
  149. package/Types/CodeRepository/ProductionReview.d.mts +7 -0
  150. package/Types/CodeRepository/ProductionReview.d.ts +7 -0
  151. package/Types/CodeRepository/ProductionReview.js +67 -1
  152. package/Types/CodeRepository/ProductionReview.mjs +1 -0
  153. package/Types/DataSecurity/ComplianceFramework.d.mts +21 -0
  154. package/Types/DataSecurity/ComplianceFramework.d.ts +21 -0
  155. package/Types/DataSecurity/ComplianceFramework.js +97 -0
  156. package/Types/DataSecurity/ComplianceFramework.mjs +5 -0
  157. package/Types/DataSecurity/ComplianceRequirementCatalog.d.mts +41 -0
  158. package/Types/DataSecurity/ComplianceRequirementCatalog.d.ts +41 -0
  159. package/Types/DataSecurity/ComplianceRequirementCatalog.js +199 -0
  160. package/Types/DataSecurity/ComplianceRequirementCatalog.mjs +7 -0
  161. package/Types/DataSecurity/DataCategory.d.mts +15 -0
  162. package/Types/DataSecurity/DataCategory.d.ts +15 -0
  163. package/Types/DataSecurity/DataCategory.js +61 -0
  164. package/Types/DataSecurity/DataCategory.mjs +7 -0
  165. package/Types/DataSecurity/DataConfidence.d.mts +11 -0
  166. package/Types/DataSecurity/DataConfidence.d.ts +11 -0
  167. package/Types/DataSecurity/DataConfidence.js +49 -0
  168. package/Types/DataSecurity/DataConfidence.mjs +7 -0
  169. package/Types/DataSecurity/DataSecurityApiTypes.d.mts +106 -0
  170. package/Types/DataSecurity/DataSecurityApiTypes.d.ts +106 -0
  171. package/Types/DataSecurity/DataSecurityApiTypes.js +53 -0
  172. package/Types/DataSecurity/DataSecurityApiTypes.mjs +3 -0
  173. package/Types/DataSecurity/DataSecurityCheckCatalog.d.mts +93 -0
  174. package/Types/DataSecurity/DataSecurityCheckCatalog.d.ts +93 -0
  175. package/Types/DataSecurity/DataSecurityCheckCatalog.js +1183 -0
  176. package/Types/DataSecurity/DataSecurityCheckCatalog.mjs +10 -0
  177. package/Types/DataSecurity/DataSecurityIssueStatus.d.mts +10 -0
  178. package/Types/DataSecurity/DataSecurityIssueStatus.d.ts +10 -0
  179. package/Types/DataSecurity/DataSecurityIssueStatus.js +38 -0
  180. package/Types/DataSecurity/DataSecurityIssueStatus.mjs +5 -0
  181. package/Types/DataSecurity/DataSecurityResidency.d.mts +21 -0
  182. package/Types/DataSecurity/DataSecurityResidency.d.ts +21 -0
  183. package/Types/DataSecurity/DataSecurityResidency.js +92 -0
  184. package/Types/DataSecurity/DataSecurityResidency.mjs +5 -0
  185. package/Types/DataSecurity/DataSecurityResponseAction.d.mts +14 -0
  186. package/Types/DataSecurity/DataSecurityResponseAction.d.ts +14 -0
  187. package/Types/DataSecurity/DataSecurityResponseAction.js +115 -0
  188. package/Types/DataSecurity/DataSecurityResponseAction.mjs +11 -0
  189. package/Types/DataSecurity/DataSecurityRisk.d.mts +38 -0
  190. package/Types/DataSecurity/DataSecurityRisk.d.ts +38 -0
  191. package/Types/DataSecurity/DataSecurityRisk.js +138 -0
  192. package/Types/DataSecurity/DataSecurityRisk.mjs +7 -0
  193. package/Types/DataSecurity/DataSensitivity.d.mts +13 -0
  194. package/Types/DataSecurity/DataSensitivity.d.ts +13 -0
  195. package/Types/DataSecurity/DataSensitivity.js +68 -0
  196. package/Types/DataSecurity/DataSensitivity.mjs +8 -0
  197. package/Types/DataSecurity/DataStoreAccess.d.mts +27 -0
  198. package/Types/DataSecurity/DataStoreAccess.d.ts +27 -0
  199. package/Types/DataSecurity/DataStoreAccess.js +35 -0
  200. package/Types/DataSecurity/DataStoreAccess.mjs +4 -0
  201. package/Types/DataSecurity/DataStoreEnvironment.d.mts +11 -0
  202. package/Types/DataSecurity/DataStoreEnvironment.d.ts +11 -0
  203. package/Types/DataSecurity/DataStoreEnvironment.js +80 -0
  204. package/Types/DataSecurity/DataStoreEnvironment.mjs +5 -0
  205. package/Types/DataSecurity/DataStoreKey.d.mts +18 -0
  206. package/Types/DataSecurity/DataStoreKey.d.ts +18 -0
  207. package/Types/DataSecurity/DataStoreKey.js +49 -0
  208. package/Types/DataSecurity/DataStoreKey.mjs +7 -0
  209. package/Types/DataSecurity/DataStoreKind.d.mts +67 -0
  210. package/Types/DataSecurity/DataStoreKind.d.ts +67 -0
  211. package/Types/DataSecurity/DataStoreKind.js +230 -0
  212. package/Types/DataSecurity/DataStoreKind.mjs +10 -0
  213. package/Types/DataSecurity/DataStorePosture.d.mts +40 -0
  214. package/Types/DataSecurity/DataStorePosture.d.ts +40 -0
  215. package/Types/DataSecurity/DataStorePosture.js +100 -0
  216. package/Types/DataSecurity/DataStorePosture.mjs +7 -0
  217. package/Types/DataSecurity/DataTypeCatalog.d.mts +17 -0
  218. package/Types/DataSecurity/DataTypeCatalog.d.ts +17 -0
  219. package/Types/DataSecurity/DataTypeCatalog.js +434 -0
  220. package/Types/DataSecurity/DataTypeCatalog.mjs +4 -0
  221. package/Types/Email/EmailTemplateType.d.mts +2 -0
  222. package/Types/Email/EmailTemplateType.d.ts +2 -0
  223. package/Types/Email/EmailTemplateType.js +8 -0
  224. package/Types/Link.d.mts +1 -0
  225. package/Types/Link.d.ts +1 -0
  226. package/Types/Monitor/CephAlertTemplates.d.mts +2 -1
  227. package/Types/Monitor/CephAlertTemplates.d.ts +2 -1
  228. package/Types/Monitor/CephAlertTemplates.js +49 -0
  229. package/Types/Monitor/CephAlertTemplates.mjs +1 -0
  230. package/Types/Monitor/DockerAlertTemplates.d.mts +2 -1
  231. package/Types/Monitor/DockerAlertTemplates.d.ts +2 -1
  232. package/Types/Monitor/DockerAlertTemplates.js +109 -37
  233. package/Types/Monitor/DockerAlertTemplates.mjs +1 -0
  234. package/Types/Monitor/DockerMetricCatalog.d.mts +1 -0
  235. package/Types/Monitor/DockerMetricCatalog.d.ts +1 -0
  236. package/Types/Monitor/DockerMetricCatalog.js +26 -52
  237. package/Types/Monitor/DockerSwarmAlertTemplates.d.mts +1 -0
  238. package/Types/Monitor/DockerSwarmAlertTemplates.d.ts +1 -0
  239. package/Types/Monitor/DockerSwarmAlertTemplates.js +65 -8
  240. package/Types/Monitor/DockerSwarmAlertTemplates.mjs +1 -0
  241. package/Types/Monitor/DockerSwarmMetricCatalog.js +7 -4
  242. package/Types/Monitor/HostAlertTemplates.d.mts +2 -1
  243. package/Types/Monitor/HostAlertTemplates.d.ts +2 -1
  244. package/Types/Monitor/HostAlertTemplates.js +48 -0
  245. package/Types/Monitor/HostAlertTemplates.mjs +1 -0
  246. package/Types/Monitor/IotAlertTemplates.d.mts +1 -0
  247. package/Types/Monitor/IotAlertTemplates.d.ts +1 -0
  248. package/Types/Monitor/IotAlertTemplates.js +11 -0
  249. package/Types/Monitor/IotAlertTemplates.mjs +1 -0
  250. package/Types/Monitor/KubernetesAlertTemplates.d.mts +49 -1
  251. package/Types/Monitor/KubernetesAlertTemplates.d.ts +49 -1
  252. package/Types/Monitor/KubernetesAlertTemplates.js +392 -75
  253. package/Types/Monitor/KubernetesAlertTemplates.mjs +2 -0
  254. package/Types/Monitor/KubernetesMetricCatalog.js +12 -2
  255. package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.mts +4 -4
  256. package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.ts +4 -4
  257. package/Types/Monitor/MonitorCriteriaInstance.js +107 -10
  258. package/Types/Monitor/MonitorStep.js +50 -3
  259. package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.mts +33 -11
  260. package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.ts +33 -11
  261. package/Types/Monitor/MonitorStepDockerSwarmMonitor.js +65 -0
  262. package/Types/Monitor/MonitorStepKubernetesMonitor.d.mts +6 -0
  263. package/Types/Monitor/MonitorStepKubernetesMonitor.d.ts +6 -0
  264. package/Types/Monitor/MonitorStepKubernetesMonitor.js +38 -1
  265. package/Types/Monitor/MonitorStepKubernetesMonitor.mjs +2 -0
  266. package/Types/Monitor/MonitorType.d.mts +1 -0
  267. package/Types/Monitor/MonitorType.d.ts +1 -0
  268. package/Types/Monitor/MonitorType.js +18 -0
  269. package/Types/Monitor/PodmanAlertTemplates.d.mts +12 -1
  270. package/Types/Monitor/PodmanAlertTemplates.d.ts +12 -1
  271. package/Types/Monitor/PodmanAlertTemplates.js +161 -33
  272. package/Types/Monitor/PodmanAlertTemplates.mjs +2 -0
  273. package/Types/Monitor/PodmanMetricCatalog.d.mts +1 -0
  274. package/Types/Monitor/PodmanMetricCatalog.d.ts +1 -0
  275. package/Types/Monitor/PodmanMetricCatalog.js +26 -52
  276. package/Types/Monitor/ProxmoxAlertTemplates.d.mts +1 -0
  277. package/Types/Monitor/ProxmoxAlertTemplates.d.ts +1 -0
  278. package/Types/Monitor/ProxmoxAlertTemplates.js +49 -0
  279. package/Types/Monitor/ProxmoxAlertTemplates.mjs +1 -0
  280. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.mts +19 -0
  281. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.ts +19 -0
  282. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.js +50 -2
  283. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.mjs +2 -0
  284. package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.mts +2 -0
  285. package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.ts +2 -0
  286. package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.js +31 -2
  287. package/Types/Monitor/StorageArrayAlertTemplates.d.mts +2 -1
  288. package/Types/Monitor/StorageArrayAlertTemplates.d.ts +2 -1
  289. package/Types/Monitor/StorageArrayAlertTemplates.js +69 -0
  290. package/Types/Monitor/StorageArrayAlertTemplates.mjs +1 -0
  291. package/Types/Monitor/VMwareAlertTemplates.d.mts +2 -1
  292. package/Types/Monitor/VMwareAlertTemplates.d.ts +2 -1
  293. package/Types/Monitor/VMwareAlertTemplates.js +50 -0
  294. package/Types/Monitor/VMwareAlertTemplates.mjs +1 -0
  295. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.mts +1 -0
  296. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.ts +1 -0
  297. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +9 -0
  298. package/Types/NotificationSetting/NotificationSettingEventType.d.mts +1 -0
  299. package/Types/NotificationSetting/NotificationSettingEventType.d.ts +1 -0
  300. package/Types/NotificationSetting/NotificationSettingEventType.js +6 -0
  301. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +44 -0
  302. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +44 -0
  303. package/Types/OnCallDutyPolicy/OnCallPersonPage.js +171 -0
  304. package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +14 -0
  305. package/Types/Permission.d.mts +51 -0
  306. package/Types/Permission.d.ts +51 -0
  307. package/Types/Permission.js +542 -0
  308. package/Types/Probe/ProbeCapability.d.mts +2 -1
  309. package/Types/Probe/ProbeCapability.d.ts +2 -1
  310. package/Types/Probe/ProbeCapability.js +8 -0
  311. package/Types/ProviderLogo/ProviderLogo.d.mts +2 -0
  312. package/Types/ProviderLogo/ProviderLogo.d.ts +2 -0
  313. package/Types/ProviderLogo/ProviderLogo.js +4 -0
  314. package/Types/ResourceAiAgent/AiResourceType.d.mts +7 -1
  315. package/Types/ResourceAiAgent/AiResourceType.d.ts +7 -1
  316. package/Types/ResourceAiAgent/AiResourceType.js +76 -2
  317. package/Types/ResourceAiAgent/AiResourceType.mjs +3 -0
  318. package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +19 -0
  319. package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +19 -0
  320. package/Types/ResourceAiAgent/CloudAiAgentNames.js +75 -0
  321. package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +16 -0
  322. package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +12 -1
  323. package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +12 -1
  324. package/Types/ResourceAiAgent/ResourceAiAccess.js +28 -1
  325. package/Types/ResourceAiAgent/ResourceAiAccess.mjs +6 -0
  326. package/Types/Rules/RuleCriteriaFieldRegistry.js +13 -0
  327. package/Types/Rules/RuleCriteriaSubject.d.mts +2 -1
  328. package/Types/Rules/RuleCriteriaSubject.d.ts +2 -1
  329. package/Types/Rules/RuleCriteriaSubject.js +3 -0
  330. package/Types/Rules/RuleRun.d.mts +2 -0
  331. package/Types/Rules/RuleRun.d.ts +2 -0
  332. package/Types/Rules/RuleRun.js +4 -0
  333. package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +67 -0
  334. package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +67 -0
  335. package/Types/SecurityCase/SecurityCaseEventEvidence.js +271 -0
  336. package/Types/SecurityCase/SecurityCaseEventEvidence.mjs +13 -0
  337. package/Types/SecurityCase/SecurityCaseEvidenceKind.d.mts +2 -1
  338. package/Types/SecurityCase/SecurityCaseEvidenceKind.d.ts +2 -1
  339. package/Types/SecurityCase/SecurityCaseEvidenceKind.js +11 -1
  340. package/Types/SecurityCase/SecurityDetectionSource.d.mts +2 -1
  341. package/Types/SecurityCase/SecurityDetectionSource.d.ts +2 -1
  342. package/Types/SecurityCase/SecurityDetectionSource.js +5 -2
  343. package/Types/SecurityCase/SecurityEntity.d.mts +5 -0
  344. package/Types/SecurityCase/SecurityEntity.d.ts +5 -0
  345. package/Types/SecurityCase/SecurityEntity.js +39 -1
  346. package/Types/SecurityCase/SecurityEntity.mjs +4 -0
  347. package/Types/SecurityCase/SecurityEntityRisk.js +14 -6
  348. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.mts +2 -0
  349. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.ts +2 -0
  350. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +124 -1
  351. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.mjs +2 -0
  352. package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.mts +3 -1
  353. package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.ts +3 -1
  354. package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.js +4 -0
  355. package/Types/SecurityEvent/DataSecuritySignal.d.mts +33 -0
  356. package/Types/SecurityEvent/DataSecuritySignal.d.ts +33 -0
  357. package/Types/SecurityEvent/DataSecuritySignal.js +114 -0
  358. package/Types/SecurityEvent/DataSecuritySignal.mjs +14 -0
  359. package/Types/SecurityEvent/DetectionRuleDataKind.d.mts +7 -1
  360. package/Types/SecurityEvent/DetectionRuleDataKind.d.ts +7 -1
  361. package/Types/SecurityEvent/DetectionRuleDataKind.js +74 -0
  362. package/Types/SecurityEvent/DetectionRuleLibrary.d.mts +2 -1
  363. package/Types/SecurityEvent/DetectionRuleLibrary.d.ts +2 -1
  364. package/Types/SecurityEvent/DetectionRuleLibrary.js +730 -0
  365. package/Types/SecurityEvent/OcsfEventClass.js +31 -2
  366. package/Types/SecurityEvent/SecurityHunt.d.mts +122 -0
  367. package/Types/SecurityEvent/SecurityHunt.d.ts +122 -0
  368. package/Types/SecurityEvent/SecurityHunt.js +391 -0
  369. package/Types/SecurityEvent/SecurityHunt.mjs +32 -0
  370. package/Types/SecurityEvent/SecurityLogFormat.d.mts +15 -0
  371. package/Types/SecurityEvent/SecurityLogFormat.d.ts +15 -0
  372. package/Types/SecurityEvent/SecurityLogFormat.js +123 -10
  373. package/Types/SecurityEvent/SecurityLogFormat.mjs +4 -0
  374. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +3 -0
  375. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +3 -0
  376. package/Types/SecurityPlaybook/SecurityPlaybookAction.js +37 -0
  377. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +3 -0
  378. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +3 -0
  379. package/Types/SecurityPlaybook/SecurityPlaybookStep.js +9 -0
  380. package/Types/SecurityPlaybook/SecurityProtectedEntity.js +8 -1
  381. package/Types/Telemetry/ExceptionAIDigest.d.mts +31 -0
  382. package/Types/Telemetry/ExceptionAIDigest.d.ts +31 -0
  383. package/Types/Telemetry/ExceptionAIDigest.js +131 -0
  384. package/Types/Telemetry/ExceptionAIDigest.mjs +13 -0
  385. package/Types/Telemetry/ExceptionAIExplanation.d.mts +37 -0
  386. package/Types/Telemetry/ExceptionAIExplanation.d.ts +37 -0
  387. package/Types/Telemetry/ExceptionAIExplanation.js +110 -0
  388. package/Types/Telemetry/ExceptionAIExplanation.mjs +12 -0
  389. package/Types/Telemetry/TraceSpanType.d.mts +1 -1
  390. package/Types/Telemetry/TraceSpanType.d.ts +1 -1
  391. package/Types/Telemetry/TraceSpanType.js +33 -8
  392. package/Types/Telemetry/TraceSpanType.mjs +1 -1
  393. package/Types/UpdateCheck/SecurityAdvisory.d.mts +39 -0
  394. package/Types/UpdateCheck/SecurityAdvisory.d.ts +39 -0
  395. package/Types/UpdateCheck/SecurityAdvisory.js +221 -0
  396. package/Types/UpdateCheck/SecurityAdvisory.mjs +7 -0
  397. package/Types/UpdateCheck/UpdateCheckFailure.d.mts +9 -0
  398. package/Types/UpdateCheck/UpdateCheckFailure.d.ts +9 -0
  399. package/Types/UpdateCheck/UpdateCheckFailure.js +32 -0
  400. package/Types/UpdateCheck/UpdateCheckFailure.mjs +3 -0
  401. package/Types/UpdateCheck/UpdateStatus.d.mts +44 -0
  402. package/Types/UpdateCheck/UpdateStatus.d.ts +44 -0
  403. package/Types/UpdateCheck/UpdateStatus.js +195 -0
  404. package/Types/UpdateCheck/UpdateStatus.mjs +3 -0
  405. package/Types/Workflow/RunRecord.d.mts +3 -14
  406. package/Types/Workflow/RunRecord.d.ts +3 -14
  407. package/Types/Workflow/RunRecord.js +10 -51
  408. package/Types/Workspace/WorkspaceMessagePayload.d.mts +1 -0
  409. package/Types/Workspace/WorkspaceMessagePayload.d.ts +1 -0
  410. package/Utils/AI/InvestigationLogStall.d.mts +38 -0
  411. package/Utils/AI/InvestigationLogStall.d.ts +38 -0
  412. package/Utils/AI/InvestigationLogStall.js +163 -0
  413. package/Utils/AI/InvestigationLogStall.mjs +11 -0
  414. package/Utils/AiRemediation/CloudChangeDryRunPlan.d.mts +17 -0
  415. package/Utils/AiRemediation/CloudChangeDryRunPlan.d.ts +17 -0
  416. package/Utils/AiRemediation/CloudChangeDryRunPlan.js +122 -0
  417. package/Utils/AiRemediation/CloudChangeDryRunPlan.mjs +7 -0
  418. package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.mts +4 -0
  419. package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.ts +4 -0
  420. package/Utils/AiRemediation/Resource/CloudCommandPolicy.js +177 -0
  421. package/Utils/AiRemediation/Resource/CloudCommandPolicy.mjs +4 -0
  422. package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +144 -0
  423. package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +144 -0
  424. package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +1964 -0
  425. package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +48 -0
  426. package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +4 -0
  427. package/Utils/DataSecurity/CustomDataTypeDetector.d.mts +23 -0
  428. package/Utils/DataSecurity/CustomDataTypeDetector.d.ts +23 -0
  429. package/Utils/DataSecurity/CustomDataTypeDetector.js +130 -0
  430. package/Utils/DataSecurity/CustomDataTypeDetector.mjs +8 -0
  431. package/Utils/DataSecurity/Detector.d.mts +26 -0
  432. package/Utils/DataSecurity/Detector.d.ts +26 -0
  433. package/Utils/DataSecurity/Detector.js +83 -0
  434. package/Utils/DataSecurity/Detector.mjs +8 -0
  435. package/Utils/DataSecurity/Detectors/ContactDetectors.d.mts +12 -0
  436. package/Utils/DataSecurity/Detectors/ContactDetectors.d.ts +12 -0
  437. package/Utils/DataSecurity/Detectors/ContactDetectors.js +915 -0
  438. package/Utils/DataSecurity/Detectors/ContactDetectors.mjs +12 -0
  439. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.mts +3 -0
  440. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.ts +3 -0
  441. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.js +52 -0
  442. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.mjs +3 -0
  443. package/Utils/DataSecurity/Detectors/FinancialDetectors.d.mts +8 -0
  444. package/Utils/DataSecurity/Detectors/FinancialDetectors.d.ts +8 -0
  445. package/Utils/DataSecurity/Detectors/FinancialDetectors.js +566 -0
  446. package/Utils/DataSecurity/Detectors/FinancialDetectors.mjs +8 -0
  447. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.mts +3 -0
  448. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.ts +3 -0
  449. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.js +2415 -0
  450. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.mjs +3 -0
  451. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.mts +3 -0
  452. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.ts +3 -0
  453. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.js +258 -0
  454. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.mjs +3 -0
  455. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.mts +3 -0
  456. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.ts +3 -0
  457. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.js +115 -0
  458. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.mjs +3 -0
  459. package/Utils/DataSecurity/Detectors/Index.d.mts +4 -0
  460. package/Utils/DataSecurity/Detectors/Index.d.ts +4 -0
  461. package/Utils/DataSecurity/Detectors/Index.js +47 -0
  462. package/Utils/DataSecurity/Detectors/Index.mjs +4 -0
  463. package/Utils/DataSecurity/Detectors/SecretDetectors.d.mts +11 -0
  464. package/Utils/DataSecurity/Detectors/SecretDetectors.d.ts +11 -0
  465. package/Utils/DataSecurity/Detectors/SecretDetectors.js +1733 -0
  466. package/Utils/DataSecurity/Detectors/SecretDetectors.mjs +11 -0
  467. package/Utils/DataSecurity/FieldClassifier.d.mts +20 -0
  468. package/Utils/DataSecurity/FieldClassifier.d.ts +20 -0
  469. package/Utils/DataSecurity/FieldClassifier.js +247 -0
  470. package/Utils/DataSecurity/FieldClassifier.mjs +5 -0
  471. package/Utils/DataSecurity/FieldCollector.d.mts +23 -0
  472. package/Utils/DataSecurity/FieldCollector.d.ts +23 -0
  473. package/Utils/DataSecurity/FieldCollector.js +81 -0
  474. package/Utils/DataSecurity/FieldCollector.mjs +3 -0
  475. package/Utils/DataSecurity/FieldNameHints.d.mts +9 -0
  476. package/Utils/DataSecurity/FieldNameHints.d.ts +9 -0
  477. package/Utils/DataSecurity/FieldNameHints.js +184 -0
  478. package/Utils/DataSecurity/FieldNameHints.mjs +6 -0
  479. package/Utils/DataSecurity/FindingTally.d.mts +44 -0
  480. package/Utils/DataSecurity/FindingTally.d.ts +44 -0
  481. package/Utils/DataSecurity/FindingTally.js +138 -0
  482. package/Utils/DataSecurity/FindingTally.mjs +6 -0
  483. package/Utils/DataSecurity/Masking.d.mts +6 -0
  484. package/Utils/DataSecurity/Masking.d.ts +6 -0
  485. package/Utils/DataSecurity/Masking.js +159 -0
  486. package/Utils/DataSecurity/Masking.mjs +7 -0
  487. package/Utils/DataSecurity/PathPattern.d.mts +3 -0
  488. package/Utils/DataSecurity/PathPattern.d.ts +3 -0
  489. package/Utils/DataSecurity/PathPattern.js +55 -0
  490. package/Utils/DataSecurity/PathPattern.mjs +4 -0
  491. package/Utils/DataSecurity/Sha256.d.mts +1 -0
  492. package/Utils/DataSecurity/Sha256.d.ts +1 -0
  493. package/Utils/DataSecurity/Sha256.js +94 -0
  494. package/Utils/DataSecurity/Sha256.mjs +2 -0
  495. package/Utils/DataSecurity/TextScanner.d.mts +35 -0
  496. package/Utils/DataSecurity/TextScanner.d.ts +35 -0
  497. package/Utils/DataSecurity/TextScanner.js +303 -0
  498. package/Utils/DataSecurity/TextScanner.mjs +8 -0
  499. package/Utils/DataSecurity/Validators.d.mts +16 -0
  500. package/Utils/DataSecurity/Validators.d.ts +16 -0
  501. package/Utils/DataSecurity/Validators.js +339 -0
  502. package/Utils/DataSecurity/Validators.mjs +17 -0
  503. package/Utils/Exceptions/ExceptionIssueState.d.mts +18 -0
  504. package/Utils/Exceptions/ExceptionIssueState.d.ts +18 -0
  505. package/Utils/Exceptions/ExceptionIssueState.js +131 -0
  506. package/Utils/Exceptions/ExceptionIssueState.mjs +8 -0
  507. package/Utils/HostCollector/HostCollectorDefaultConfig.d.mts +2 -0
  508. package/Utils/HostCollector/HostCollectorDefaultConfig.d.ts +2 -0
  509. package/Utils/HostCollector/HostCollectorDefaultConfig.js +39 -1
  510. package/Utils/HostCollector/HostCollectorDefaultConfig.mjs +2 -0
  511. package/Utils/LabelRuleImportExport.js +17 -3
  512. package/Utils/Monitor/PlatformResourceIdentity.js +7 -4
  513. package/Utils/Project/RecordNumber.d.mts +43 -0
  514. package/Utils/Project/RecordNumber.d.ts +43 -0
  515. package/Utils/Project/RecordNumber.js +151 -0
  516. package/Utils/Project/RecordNumber.mjs +6 -0
  517. package/Utils/SecurityAdvisoryMatcher.d.mts +33 -0
  518. package/Utils/SecurityAdvisoryMatcher.d.ts +33 -0
  519. package/Utils/SecurityAdvisoryMatcher.js +291 -0
  520. package/Utils/SecurityAdvisoryMatcher.mjs +2 -0
  521. package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +9 -0
  522. package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +9 -0
  523. package/Utils/SecurityCase/SecurityCaseMarkdown.js +20 -0
  524. package/Utils/SecurityCase/SecurityCaseMarkdown.mjs +2 -0
  525. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.mts +24 -0
  526. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.ts +24 -0
  527. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.js +380 -0
  528. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.mjs +15 -0
  529. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.mts +29 -0
  530. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.ts +29 -0
  531. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.js +527 -0
  532. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.mjs +13 -0
  533. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.mts +21 -0
  534. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.ts +21 -0
  535. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.js +365 -0
  536. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.mjs +11 -0
  537. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.mts +17 -0
  538. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.ts +17 -0
  539. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +344 -0
  540. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.mjs +12 -0
  541. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.mts +27 -0
  542. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.ts +27 -0
  543. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.js +326 -0
  544. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.mjs +10 -0
  545. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.mts +38 -0
  546. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.ts +38 -0
  547. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.js +629 -0
  548. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.mjs +13 -0
  549. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +9 -0
  550. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +9 -0
  551. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +63 -3
  552. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +4 -0
  553. package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +54 -0
  554. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.mts +26 -0
  555. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.ts +26 -0
  556. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.js +1046 -0
  557. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.mjs +11 -0
  558. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.mts +19 -0
  559. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.ts +19 -0
  560. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.js +724 -0
  561. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.mjs +7 -0
  562. package/Utils/SecurityEvent/SecurityEventSearch.d.mts +56 -0
  563. package/Utils/SecurityEvent/SecurityEventSearch.d.ts +56 -0
  564. package/Utils/SecurityEvent/SecurityEventSearch.js +422 -0
  565. package/Utils/SecurityEvent/SecurityEventSearch.mjs +21 -0
  566. package/Utils/SecurityEvent/SecurityHuntSearch.d.mts +12 -0
  567. package/Utils/SecurityEvent/SecurityHuntSearch.d.ts +12 -0
  568. package/Utils/SecurityEvent/SecurityHuntSearch.js +51 -0
  569. package/Utils/SecurityEvent/SecurityHuntSearch.mjs +3 -0
  570. package/Utils/SecurityEvent/SecurityRecordReading.d.mts +32 -0
  571. package/Utils/SecurityEvent/SecurityRecordReading.d.ts +32 -0
  572. package/Utils/SecurityEvent/SecurityRecordReading.js +78 -0
  573. package/Utils/SecurityEvent/SecurityRecordReading.mjs +2 -0
  574. package/Utils/Sms/OnCallPageSms.d.mts +1 -0
  575. package/Utils/Sms/OnCallPageSms.d.ts +1 -0
  576. package/Utils/Sms/OnCallPageSms.js +16 -2
  577. package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.mts +44 -0
  578. package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.ts +44 -0
  579. package/Utils/Suggestions/InvestigationCodeFixSuggestion.js +223 -0
  580. package/Utils/Suggestions/InvestigationCodeFixSuggestion.mjs +8 -0
  581. package/Utils/Suggestions/TracePerformanceFixSuggestion.d.mts +9 -0
  582. package/Utils/Suggestions/TracePerformanceFixSuggestion.d.ts +9 -0
  583. package/Utils/Suggestions/TracePerformanceFixSuggestion.js +69 -1
  584. package/Utils/Suggestions/TracePerformanceFixSuggestion.mjs +4 -0
  585. package/Utils/Syslog/LeefParser.d.mts +28 -0
  586. package/Utils/Syslog/LeefParser.d.ts +28 -0
  587. package/Utils/Syslog/LeefParser.js +326 -0
  588. package/Utils/Syslog/LeefParser.mjs +10 -0
  589. package/Utils/VersionRange.d.mts +34 -0
  590. package/Utils/VersionRange.d.ts +34 -0
  591. package/Utils/VersionRange.js +422 -0
  592. package/Utils/VersionRange.mjs +5 -0
  593. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import commonJsModule from "./WindowsEventRecord.js";
2
+ export const MAX_WINDOWS_EVENT_FIELDS = commonJsModule.MAX_WINDOWS_EVENT_FIELDS;
3
+ export const MAX_WINDOWS_FIELD_VALUE_LENGTH = commonJsModule.MAX_WINDOWS_FIELD_VALUE_LENGTH;
4
+ export const STRING_INSERT_FIELDS = commonJsModule.STRING_INSERT_FIELDS;
5
+ export const decodeXmlText = commonJsModule.decodeXmlText;
6
+ export const readOtlpAnyValue = commonJsModule.readOtlpAnyValue;
7
+ export const readWindowsEventRecord = commonJsModule.readWindowsEventRecord;
@@ -0,0 +1,56 @@
1
+ import SecurityEvent from "../../Models/AnalyticsModels/SecurityEvent.mjs";
2
+ import Query from "../../Types/BaseDatabase/Query.mjs";
3
+ import { SearchQueryValue } from "../../Types/Telemetry/TelemetrySearchQuery.mjs";
4
+ export declare const SECURITY_EVENT_FIELD_ALIASES: Readonly<Record<string, string>>;
5
+ export declare const SECURITY_EVENT_SEARCH_FIELD_KEYS: Set<string>;
6
+ export declare const SECURITY_EVENT_NUMERIC_FIELDS: ReadonlySet<string>;
7
+ export declare const SECURITY_EVENT_CONTAINS_FIELDS: ReadonlySet<string>;
8
+ export interface SecurityEventSearchFilters {
9
+ freeText: string | null;
10
+ /** Column -> compiled predicate. */
11
+ fields: Record<string, SearchQueryValue | number>;
12
+ /** Source attribute key -> compiled predicate. */
13
+ attributes: Record<string, SearchQueryValue>;
14
+ }
15
+ export declare const EMPTY_SECURITY_EVENT_SEARCH_FILTERS: SecurityEventSearchFilters;
16
+ /**
17
+ * Parse a search string into the predicates it stands for.
18
+ *
19
+ * Later tokens on the same key win — a user editing `severity:Low` into
20
+ * `severity:Low severity:High` means the second one.
21
+ */
22
+ export declare function parseSecurityEventSearch(raw: string): SecurityEventSearchFilters;
23
+ /**
24
+ * Lay the parsed search over a query.
25
+ *
26
+ * Returns a new object: the caller's base query (project + window + the
27
+ * page's own scope) is never mutated. Attribute predicates MERGE into any
28
+ * attributes already on the query rather than replacing the map, so a
29
+ * chip and a typed `@key:value` can coexist.
30
+ */
31
+ export declare function applySecurityEventSearchToQuery(data: {
32
+ query: Query<SecurityEvent>;
33
+ filters: SecurityEventSearchFilters;
34
+ }): Query<SecurityEvent>;
35
+ /** True when the string holds anything the parser would turn into a filter. */
36
+ export declare function hasSecurityEventSearch(raw: string): boolean;
37
+ export declare const SECURITY_EVENT_ATTRIBUTE_FACET_PREFIX: string;
38
+ export declare const SECURITY_EVENT_EXCLUDE_FACET_PREFIX: string;
39
+ export declare function isSecurityEventExcludeFacetKey(facetKey: string): boolean;
40
+ export declare function toSecurityEventExcludeFacetKey(facetKey: string): string;
41
+ /** The plain facet key an include-or-exclude key stands for. */
42
+ export declare function getSecurityEventBaseFacetKey(facetKey: string): string;
43
+ export declare function isSecurityEventAttributeFacetKey(facetKey: string): boolean;
44
+ export declare function getSecurityEventAttributeKey(facetKey: string): string;
45
+ export declare const SECURITY_EVENT_SOURCE_FACET_KEY: string;
46
+ export declare const SECURITY_EVENT_FACET_COLUMNS: ReadonlyArray<string>;
47
+ export declare function isSecurityEventChipKey(facetKey: string): boolean;
48
+ export declare function applySecurityEventFacetFiltersToQuery(data: {
49
+ query: Query<SecurityEvent>;
50
+ filters: Map<string, Set<string>>;
51
+ }): Query<SecurityEvent>;
52
+ export declare function buildSecurityEventSearchQuery(data: {
53
+ base: Query<SecurityEvent>;
54
+ search: string;
55
+ filters: Map<string, Set<string>>;
56
+ }): Query<SecurityEvent>;
@@ -0,0 +1,56 @@
1
+ import SecurityEvent from "../../Models/AnalyticsModels/SecurityEvent";
2
+ import Query from "../../Types/BaseDatabase/Query";
3
+ import { SearchQueryValue } from "../../Types/Telemetry/TelemetrySearchQuery";
4
+ export declare const SECURITY_EVENT_FIELD_ALIASES: Readonly<Record<string, string>>;
5
+ export declare const SECURITY_EVENT_SEARCH_FIELD_KEYS: Set<string>;
6
+ export declare const SECURITY_EVENT_NUMERIC_FIELDS: ReadonlySet<string>;
7
+ export declare const SECURITY_EVENT_CONTAINS_FIELDS: ReadonlySet<string>;
8
+ export interface SecurityEventSearchFilters {
9
+ freeText: string | null;
10
+ /** Column -> compiled predicate. */
11
+ fields: Record<string, SearchQueryValue | number>;
12
+ /** Source attribute key -> compiled predicate. */
13
+ attributes: Record<string, SearchQueryValue>;
14
+ }
15
+ export declare const EMPTY_SECURITY_EVENT_SEARCH_FILTERS: SecurityEventSearchFilters;
16
+ /**
17
+ * Parse a search string into the predicates it stands for.
18
+ *
19
+ * Later tokens on the same key win — a user editing `severity:Low` into
20
+ * `severity:Low severity:High` means the second one.
21
+ */
22
+ export declare function parseSecurityEventSearch(raw: string): SecurityEventSearchFilters;
23
+ /**
24
+ * Lay the parsed search over a query.
25
+ *
26
+ * Returns a new object: the caller's base query (project + window + the
27
+ * page's own scope) is never mutated. Attribute predicates MERGE into any
28
+ * attributes already on the query rather than replacing the map, so a
29
+ * chip and a typed `@key:value` can coexist.
30
+ */
31
+ export declare function applySecurityEventSearchToQuery(data: {
32
+ query: Query<SecurityEvent>;
33
+ filters: SecurityEventSearchFilters;
34
+ }): Query<SecurityEvent>;
35
+ /** True when the string holds anything the parser would turn into a filter. */
36
+ export declare function hasSecurityEventSearch(raw: string): boolean;
37
+ export declare const SECURITY_EVENT_ATTRIBUTE_FACET_PREFIX: string;
38
+ export declare const SECURITY_EVENT_EXCLUDE_FACET_PREFIX: string;
39
+ export declare function isSecurityEventExcludeFacetKey(facetKey: string): boolean;
40
+ export declare function toSecurityEventExcludeFacetKey(facetKey: string): string;
41
+ /** The plain facet key an include-or-exclude key stands for. */
42
+ export declare function getSecurityEventBaseFacetKey(facetKey: string): string;
43
+ export declare function isSecurityEventAttributeFacetKey(facetKey: string): boolean;
44
+ export declare function getSecurityEventAttributeKey(facetKey: string): string;
45
+ export declare const SECURITY_EVENT_SOURCE_FACET_KEY: string;
46
+ export declare const SECURITY_EVENT_FACET_COLUMNS: ReadonlyArray<string>;
47
+ export declare function isSecurityEventChipKey(facetKey: string): boolean;
48
+ export declare function applySecurityEventFacetFiltersToQuery(data: {
49
+ query: Query<SecurityEvent>;
50
+ filters: Map<string, Set<string>>;
51
+ }): Query<SecurityEvent>;
52
+ export declare function buildSecurityEventSearchQuery(data: {
53
+ base: Query<SecurityEvent>;
54
+ search: string;
55
+ filters: Map<string, Set<string>>;
56
+ }): Query<SecurityEvent>;
@@ -0,0 +1,422 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SECURITY_EVENT_FACET_COLUMNS = exports.SECURITY_EVENT_SOURCE_FACET_KEY = exports.SECURITY_EVENT_EXCLUDE_FACET_PREFIX = exports.SECURITY_EVENT_ATTRIBUTE_FACET_PREFIX = exports.EMPTY_SECURITY_EVENT_SEARCH_FILTERS = exports.SECURITY_EVENT_CONTAINS_FIELDS = exports.SECURITY_EVENT_NUMERIC_FIELDS = exports.SECURITY_EVENT_SEARCH_FIELD_KEYS = exports.SECURITY_EVENT_FIELD_ALIASES = void 0;
7
+ exports.parseSecurityEventSearch = parseSecurityEventSearch;
8
+ exports.applySecurityEventSearchToQuery = applySecurityEventSearchToQuery;
9
+ exports.hasSecurityEventSearch = hasSecurityEventSearch;
10
+ exports.isSecurityEventExcludeFacetKey = isSecurityEventExcludeFacetKey;
11
+ exports.toSecurityEventExcludeFacetKey = toSecurityEventExcludeFacetKey;
12
+ exports.getSecurityEventBaseFacetKey = getSecurityEventBaseFacetKey;
13
+ exports.isSecurityEventAttributeFacetKey = isSecurityEventAttributeFacetKey;
14
+ exports.getSecurityEventAttributeKey = getSecurityEventAttributeKey;
15
+ exports.isSecurityEventChipKey = isSecurityEventChipKey;
16
+ exports.applySecurityEventFacetFiltersToQuery = applySecurityEventFacetFiltersToQuery;
17
+ exports.buildSecurityEventSearchQuery = buildSecurityEventSearchQuery;
18
+ const Includes_1 = __importDefault(require("../../Types/BaseDatabase/Includes"));
19
+ const IncludesNone_1 = __importDefault(require("../../Types/BaseDatabase/IncludesNone"));
20
+ const NotEqual_1 = __importDefault(require("../../Types/BaseDatabase/NotEqual"));
21
+ const Search_1 = __importDefault(require("../../Types/BaseDatabase/Search"));
22
+ const TelemetrySearchQuery_1 = require("../../Types/Telemetry/TelemetrySearchQuery");
23
+ /*
24
+ * THE SECURITY EVENTS SEARCH, COMPILED: the search bar's text and the facet
25
+ * sidebar's chips, as the query a read of the SecurityEvent table sends.
26
+ *
27
+ * One compile for every reader: the Events page lists, charts and counts
28
+ * with it, and a saved hunt's scheduled run (SecurityHuntScheduler) counts
29
+ * with it on the server, so a hunt finds on its schedule exactly what its
30
+ * page shows. Pure and React-free.
31
+ *
32
+ * The search speaks the shared telemetry grammar
33
+ * (Types/Telemetry/TelemetrySearchQuery), so `severity:High`,
34
+ * `-@threat.matched:true`, `user:(alice OR bob)` and `@device.hostname:web-*`
35
+ * mean here exactly what their counterparts mean in the logs, traces and
36
+ * exceptions explorers. This module only supplies the three things the
37
+ * grammar cannot know - which field names this signal has, which of its
38
+ * columns are numeric, and how a parsed token lands on a SecurityEvent
39
+ * query - and how a chip compiles.
40
+ */
41
+ /*
42
+ * What a user may type on the left of the colon -> the column it filters.
43
+ *
44
+ * Both the friendly name and the column's own name are accepted: `severity:`
45
+ * is what somebody types, `severityName:` is what they see in the detail
46
+ * panel and copy. Looked up lowercased by the shared parser.
47
+ */
48
+ exports.SECURITY_EVENT_FIELD_ALIASES = {
49
+ severity: "severityName",
50
+ severityname: "severityName",
51
+ severityid: "severityId",
52
+ class: "className",
53
+ eventclass: "className",
54
+ classname: "className",
55
+ classuid: "classUid",
56
+ category: "categoryName",
57
+ categoryname: "categoryName",
58
+ categoryuid: "categoryUid",
59
+ activity: "activityName",
60
+ activityname: "activityName",
61
+ status: "statusName",
62
+ outcome: "statusName",
63
+ statusname: "statusName",
64
+ message: "message",
65
+ vendor: "vendorName",
66
+ vendorname: "vendorName",
67
+ product: "productName",
68
+ productname: "productName",
69
+ rule: "ruleName",
70
+ rulename: "ruleName",
71
+ ruleid: "ruleId",
72
+ user: "principalUser",
73
+ principaluser: "principalUser",
74
+ host: "principalHost",
75
+ principalhost: "principalHost",
76
+ ip: "principalIp",
77
+ principalip: "principalIp",
78
+ process: "principalProcess",
79
+ principalprocess: "principalProcess",
80
+ /*
81
+ * The process the event is about and its parent, by their own names and
82
+ * by Sigma's: `image:` is the executable's path and `commandline:` its
83
+ * command line, as in a detection rule. `process:` stays the acting
84
+ * process (principalProcess) the searches written before read.
85
+ */
86
+ processname: "processName",
87
+ image: "processPath",
88
+ processpath: "processPath",
89
+ commandline: "processCommandLine",
90
+ cmdline: "processCommandLine",
91
+ processcommandline: "processCommandLine",
92
+ parentprocessname: "parentProcessName",
93
+ parentimage: "parentProcessPath",
94
+ parentprocesspath: "parentProcessPath",
95
+ parentcommandline: "parentProcessCommandLine",
96
+ parentprocesscommandline: "parentProcessCommandLine",
97
+ targetuser: "targetUser",
98
+ targethost: "targetHost",
99
+ targetip: "targetIp",
100
+ targetport: "targetPort",
101
+ resource: "targetResource",
102
+ targetresource: "targetResource",
103
+ observable: "observables",
104
+ observables: "observables",
105
+ tactic: "mitreTactics",
106
+ mitretactics: "mitreTactics",
107
+ technique: "mitreTechniques",
108
+ mitretechniques: "mitreTechniques",
109
+ uid: "eventUid",
110
+ eventuid: "eventUid",
111
+ /*
112
+ * The request an event happened in, and how far it got. `trace:` and
113
+ * `session:` are what a person pastes from the trace or session they came
114
+ * from; `outcome:` stays the OCSF status it always was.
115
+ */
116
+ trace: "traceId",
117
+ traceid: "traceId",
118
+ span: "spanId",
119
+ spanid: "spanId",
120
+ session: "sessionId",
121
+ sessionid: "sessionId",
122
+ requestoutcome: "requestOutcome",
123
+ };
124
+ /*
125
+ * The field names the parser will glue back together across a space — the
126
+ * difference between `severity: High` being a filter and `note: check this`
127
+ * staying prose. Every alias key is one; nothing else is.
128
+ */
129
+ exports.SECURITY_EVENT_SEARCH_FIELD_KEYS = new Set(Object.keys(exports.SECURITY_EVENT_FIELD_ALIASES));
130
+ /*
131
+ * Columns stored as numbers. An equality typed against one of these has to
132
+ * reach ClickHouse as a number: the column is UInt/Int, and comparing it to
133
+ * the string "443" is a type error rather than a miss.
134
+ *
135
+ * Only equality needs the coercion — every comparison operator
136
+ * (`>`, `<=`, ...) is already parsed numerically by the shared grammar.
137
+ */
138
+ exports.SECURITY_EVENT_NUMERIC_FIELDS = new Set(["severityId", "categoryUid", "classUid", "targetPort"]);
139
+ /*
140
+ * Columns whose free-text-ish nature makes an exact match almost always the
141
+ * wrong reading of what the user typed.
142
+ *
143
+ * `message` is a sentence — `message:refused` means "mentions refused".
144
+ * `observables`, `mitreTactics` and `mitreTechniques` are arrays, where the
145
+ * analytics compiler's substring match over the joined array is how "this
146
+ * event mentions X" is asked (the same predicate the Correlate page pivots
147
+ * on). A command line or a path is searched for a part of it:
148
+ * `commandline:-enc`, `image:powershell.exe`. An explicit operator the user
149
+ * typed (`!`, `~`, `>`, a glob, a list) always wins over this default.
150
+ */
151
+ exports.SECURITY_EVENT_CONTAINS_FIELDS = new Set([
152
+ "message",
153
+ "observables",
154
+ "mitreTactics",
155
+ "mitreTechniques",
156
+ "principalProcess",
157
+ "processPath",
158
+ "processCommandLine",
159
+ "parentProcessPath",
160
+ "parentProcessCommandLine",
161
+ "targetResource",
162
+ ]);
163
+ exports.EMPTY_SECURITY_EVENT_SEARCH_FILTERS = {
164
+ freeText: null,
165
+ fields: {},
166
+ attributes: {},
167
+ };
168
+ function compileFieldValue(column, token) {
169
+ const compiled = (0, TelemetrySearchQuery_1.predicateToQueryValue)(token.predicate);
170
+ /*
171
+ * Only a bare equality is re-read here; every other operator already
172
+ * carries its own type decision out of the shared grammar.
173
+ */
174
+ if (typeof compiled !== "string") {
175
+ return compiled;
176
+ }
177
+ if (exports.SECURITY_EVENT_NUMERIC_FIELDS.has(column)) {
178
+ const numeric = Number(compiled);
179
+ return Number.isFinite(numeric) ? numeric : compiled;
180
+ }
181
+ if (exports.SECURITY_EVENT_CONTAINS_FIELDS.has(column) &&
182
+ token.predicate.operator === TelemetrySearchQuery_1.SearchValueOperator.Equals &&
183
+ !token.negated) {
184
+ return new Search_1.default(compiled);
185
+ }
186
+ return compiled;
187
+ }
188
+ /**
189
+ * Parse a search string into the predicates it stands for.
190
+ *
191
+ * Later tokens on the same key win — a user editing `severity:Low` into
192
+ * `severity:Low severity:High` means the second one.
193
+ */
194
+ function parseSecurityEventSearch(raw) {
195
+ const tokens = (0, TelemetrySearchQuery_1.parseSearchQuery)(raw || "", {
196
+ knownFieldKeys: exports.SECURITY_EVENT_SEARCH_FIELD_KEYS,
197
+ fieldAliases: exports.SECURITY_EVENT_FIELD_ALIASES,
198
+ });
199
+ const fields = {};
200
+ const attributes = {};
201
+ const freeTextParts = [];
202
+ for (const token of tokens) {
203
+ if (token.type === TelemetrySearchQuery_1.SearchTokenType.FreeText) {
204
+ const text = token.predicate.value.trim();
205
+ if (text.length > 0) {
206
+ freeTextParts.push(text);
207
+ }
208
+ continue;
209
+ }
210
+ if (token.type === TelemetrySearchQuery_1.SearchTokenType.Attribute) {
211
+ if (token.key.length === 0) {
212
+ continue;
213
+ }
214
+ attributes[token.key] = (0, TelemetrySearchQuery_1.predicateToQueryValue)(token.predicate);
215
+ continue;
216
+ }
217
+ /*
218
+ * A field the parser did not recognise is not a column of this table.
219
+ * Dropping it would silently widen the list; treating it as an attribute
220
+ * is what the user almost certainly meant, since every un-typed source
221
+ * field lands in the attributes map.
222
+ */
223
+ const column = exports.SECURITY_EVENT_FIELD_ALIASES[token.key.toLowerCase()];
224
+ if (!column) {
225
+ attributes[token.key] = (0, TelemetrySearchQuery_1.predicateToQueryValue)(token.predicate);
226
+ continue;
227
+ }
228
+ fields[column] = compileFieldValue(column, token);
229
+ }
230
+ return {
231
+ freeText: freeTextParts.length > 0 ? freeTextParts.join(" ") : null,
232
+ fields: fields,
233
+ attributes: attributes,
234
+ };
235
+ }
236
+ /**
237
+ * Lay the parsed search over a query.
238
+ *
239
+ * Returns a new object: the caller's base query (project + window + the
240
+ * page's own scope) is never mutated. Attribute predicates MERGE into any
241
+ * attributes already on the query rather than replacing the map, so a
242
+ * chip and a typed `@key:value` can coexist.
243
+ */
244
+ function applySecurityEventSearchToQuery(data) {
245
+ const query = Object.assign({}, data.query);
246
+ if (data.filters.freeText) {
247
+ query["message"] = new Search_1.default(data.filters.freeText);
248
+ }
249
+ for (const column of Object.keys(data.filters.fields)) {
250
+ query[column] = data.filters.fields[column];
251
+ }
252
+ const attributeKeys = Object.keys(data.filters.attributes);
253
+ if (attributeKeys.length > 0) {
254
+ const attributes = Object.assign({}, (query["attributes"] || {}));
255
+ for (const key of attributeKeys) {
256
+ attributes[key] = data.filters.attributes[key];
257
+ }
258
+ query["attributes"] = attributes;
259
+ }
260
+ return query;
261
+ }
262
+ /** True when the string holds anything the parser would turn into a filter. */
263
+ function hasSecurityEventSearch(raw) {
264
+ const filters = parseSecurityEventSearch(raw);
265
+ return (filters.freeText !== null ||
266
+ Object.keys(filters.fields).length > 0 ||
267
+ Object.keys(filters.attributes).length > 0);
268
+ }
269
+ /*
270
+ * THE CHIPS.
271
+ *
272
+ * Chips for arbitrary source attributes are keyed `attributes.<key>`, the
273
+ * same grammar the logs, traces and exceptions explorers use, so the shared
274
+ * sidebar and chip row need no special case for them.
275
+ */
276
+ exports.SECURITY_EVENT_ATTRIBUTE_FACET_PREFIX = "attributes.";
277
+ /*
278
+ * A chip the sidebar's "exclude" action created, marked on the KEY rather
279
+ * than the value: `!severityName` / `!attributes.threat.matched`.
280
+ *
281
+ * On the key because a value is data — a hostname, a rule name, a flattened
282
+ * attribute — and any marker put on it could be part of a real value. No
283
+ * column name or attribute key starts with `!`, so the marker is
284
+ * unambiguous, and it survives the `[[key, value], ...]` URL grammar the
285
+ * other explorers already use without a second param. It is the shared facet
286
+ * sidebar's marker (FacetSelection's FACET_EXCLUDE_KEY_PREFIX), which a test
287
+ * holds this one to.
288
+ */
289
+ exports.SECURITY_EVENT_EXCLUDE_FACET_PREFIX = "!";
290
+ function isSecurityEventExcludeFacetKey(facetKey) {
291
+ return facetKey.startsWith(exports.SECURITY_EVENT_EXCLUDE_FACET_PREFIX);
292
+ }
293
+ function toSecurityEventExcludeFacetKey(facetKey) {
294
+ return isSecurityEventExcludeFacetKey(facetKey)
295
+ ? facetKey
296
+ : `${exports.SECURITY_EVENT_EXCLUDE_FACET_PREFIX}${facetKey}`;
297
+ }
298
+ /** The plain facet key an include-or-exclude key stands for. */
299
+ function getSecurityEventBaseFacetKey(facetKey) {
300
+ return isSecurityEventExcludeFacetKey(facetKey)
301
+ ? facetKey.substring(exports.SECURITY_EVENT_EXCLUDE_FACET_PREFIX.length)
302
+ : facetKey;
303
+ }
304
+ function isSecurityEventAttributeFacetKey(facetKey) {
305
+ return getSecurityEventBaseFacetKey(facetKey).startsWith(exports.SECURITY_EVENT_ATTRIBUTE_FACET_PREFIX);
306
+ }
307
+ function getSecurityEventAttributeKey(facetKey) {
308
+ return getSecurityEventBaseFacetKey(facetKey).substring(exports.SECURITY_EVENT_ATTRIBUTE_FACET_PREFIX.length);
309
+ }
310
+ /*
311
+ * Which OneUptime source the event was attributed to — a Telemetry Service
312
+ * standing for the SIEM or connector it arrived from. It is also the column
313
+ * @OwnedThrough narrows on.
314
+ */
315
+ exports.SECURITY_EVENT_SOURCE_FACET_KEY = "primaryEntityId";
316
+ /*
317
+ * The columns the facet sidebar offers, in its order (the Dashboard's
318
+ * SECURITY_EVENT_FACETS gives each its title). A chip names one of them, or
319
+ * a source attribute.
320
+ */
321
+ exports.SECURITY_EVENT_FACET_COLUMNS = [
322
+ exports.SECURITY_EVENT_SOURCE_FACET_KEY,
323
+ "severityName",
324
+ "requestOutcome",
325
+ "className",
326
+ "categoryName",
327
+ "activityName",
328
+ "statusName",
329
+ "vendorName",
330
+ "productName",
331
+ "ruleName",
332
+ "principalUser",
333
+ "principalHost",
334
+ "processName",
335
+ "parentProcessName",
336
+ ];
337
+ /*
338
+ * Whether a chip's key is one the sidebar can make: a facet column or a
339
+ * source attribute with a key, either one included or excluded.
340
+ */
341
+ function isSecurityEventChipKey(facetKey) {
342
+ const baseKey = getSecurityEventBaseFacetKey(facetKey);
343
+ if (isSecurityEventAttributeFacetKey(baseKey)) {
344
+ return getSecurityEventAttributeKey(baseKey).length > 0;
345
+ }
346
+ return exports.SECURITY_EVENT_FACET_COLUMNS.includes(baseKey);
347
+ }
348
+ function compileFacetSelection(values, isExcluded) {
349
+ if (isExcluded) {
350
+ return values.length === 1
351
+ ? new NotEqual_1.default(values[0])
352
+ : new IncludesNone_1.default(values);
353
+ }
354
+ /*
355
+ * A single value compiles to a bare string so ClickHouse gets the plain
356
+ * equality — and with it the column's Set / bloom skip index. More than
357
+ * one becomes an `Includes`, which is an `IN`.
358
+ */
359
+ return values.length === 1 ? values[0] : new Includes_1.default(values);
360
+ }
361
+ /*
362
+ * Compile the sidebar's selections into the list query.
363
+ *
364
+ * Attribute chips land in `attributes[<key>]`. Their values come from the
365
+ * data — an attribute copied off a row, a facet value clicked — so they are
366
+ * compiled as equality, which is both exact and the fast
367
+ * `attributes['k'] = 'v'` map-subscript path.
368
+ *
369
+ * Exclusions are written FIRST so that an include on the same column wins:
370
+ * holding both is a transient state the sidebar cannot reach on purpose,
371
+ * and a list narrowed to a value is a more useful reading of the two chips
372
+ * than one that excludes what it also requires and returns nothing.
373
+ */
374
+ function applySecurityEventFacetFiltersToQuery(data) {
375
+ const query = Object.assign({}, data.query);
376
+ const attributes = Object.assign({}, (query["attributes"] || {}));
377
+ const entries = Array.from(data.filters.entries()).sort((a, b) => {
378
+ const aExcluded = isSecurityEventExcludeFacetKey(a[0]) ? 0 : 1;
379
+ const bExcluded = isSecurityEventExcludeFacetKey(b[0]) ? 0 : 1;
380
+ return aExcluded - bExcluded;
381
+ });
382
+ for (const [facetKey, valueSet] of entries) {
383
+ const values = Array.from(valueSet).filter((value) => {
384
+ return value.length > 0;
385
+ });
386
+ if (values.length === 0) {
387
+ continue;
388
+ }
389
+ const isExcluded = isSecurityEventExcludeFacetKey(facetKey);
390
+ const compiled = compileFacetSelection(values, isExcluded);
391
+ if (isSecurityEventAttributeFacetKey(facetKey)) {
392
+ const attributeKey = getSecurityEventAttributeKey(facetKey);
393
+ if (attributeKey.length === 0) {
394
+ continue;
395
+ }
396
+ attributes[attributeKey] = compiled;
397
+ continue;
398
+ }
399
+ query[getSecurityEventBaseFacetKey(facetKey)] =
400
+ compiled;
401
+ }
402
+ if (Object.keys(attributes).length > 0) {
403
+ query["attributes"] = attributes;
404
+ }
405
+ return query;
406
+ }
407
+ /*
408
+ * The search and the chips over a base query (the project and the window),
409
+ * in the order the Events page lays them: the search first, the chips
410
+ * second - a chip is an explicit click on a value the person can see and
411
+ * take off, so when both name the same column the chip is the one they are
412
+ * steering with.
413
+ */
414
+ function buildSecurityEventSearchQuery(data) {
415
+ return applySecurityEventFacetFiltersToQuery({
416
+ query: applySecurityEventSearchToQuery({
417
+ query: data.base,
418
+ filters: parseSecurityEventSearch(data.search),
419
+ }),
420
+ filters: data.filters,
421
+ });
422
+ }
@@ -0,0 +1,21 @@
1
+ import commonJsModule from "./SecurityEventSearch.js";
2
+ export const EMPTY_SECURITY_EVENT_SEARCH_FILTERS = commonJsModule.EMPTY_SECURITY_EVENT_SEARCH_FILTERS;
3
+ export const SECURITY_EVENT_ATTRIBUTE_FACET_PREFIX = commonJsModule.SECURITY_EVENT_ATTRIBUTE_FACET_PREFIX;
4
+ export const SECURITY_EVENT_CONTAINS_FIELDS = commonJsModule.SECURITY_EVENT_CONTAINS_FIELDS;
5
+ export const SECURITY_EVENT_EXCLUDE_FACET_PREFIX = commonJsModule.SECURITY_EVENT_EXCLUDE_FACET_PREFIX;
6
+ export const SECURITY_EVENT_FACET_COLUMNS = commonJsModule.SECURITY_EVENT_FACET_COLUMNS;
7
+ export const SECURITY_EVENT_FIELD_ALIASES = commonJsModule.SECURITY_EVENT_FIELD_ALIASES;
8
+ export const SECURITY_EVENT_NUMERIC_FIELDS = commonJsModule.SECURITY_EVENT_NUMERIC_FIELDS;
9
+ export const SECURITY_EVENT_SEARCH_FIELD_KEYS = commonJsModule.SECURITY_EVENT_SEARCH_FIELD_KEYS;
10
+ export const SECURITY_EVENT_SOURCE_FACET_KEY = commonJsModule.SECURITY_EVENT_SOURCE_FACET_KEY;
11
+ export const applySecurityEventFacetFiltersToQuery = commonJsModule.applySecurityEventFacetFiltersToQuery;
12
+ export const applySecurityEventSearchToQuery = commonJsModule.applySecurityEventSearchToQuery;
13
+ export const buildSecurityEventSearchQuery = commonJsModule.buildSecurityEventSearchQuery;
14
+ export const getSecurityEventAttributeKey = commonJsModule.getSecurityEventAttributeKey;
15
+ export const getSecurityEventBaseFacetKey = commonJsModule.getSecurityEventBaseFacetKey;
16
+ export const hasSecurityEventSearch = commonJsModule.hasSecurityEventSearch;
17
+ export const isSecurityEventAttributeFacetKey = commonJsModule.isSecurityEventAttributeFacetKey;
18
+ export const isSecurityEventChipKey = commonJsModule.isSecurityEventChipKey;
19
+ export const isSecurityEventExcludeFacetKey = commonJsModule.isSecurityEventExcludeFacetKey;
20
+ export const parseSecurityEventSearch = commonJsModule.parseSecurityEventSearch;
21
+ export const toSecurityEventExcludeFacetKey = commonJsModule.toSecurityEventExcludeFacetKey;
@@ -0,0 +1,12 @@
1
+ import SecurityEvent from "../../Models/AnalyticsModels/SecurityEvent.mjs";
2
+ import Query from "../../Types/BaseDatabase/Query.mjs";
3
+ import ObjectID from "../../Types/ObjectID.mjs";
4
+ import { SecurityHuntFilters } from "../../Types/SecurityEvent/SecurityHunt.mjs";
5
+ export declare function getSecurityHuntFiltersProblem(value: unknown): string | null;
6
+ export declare function buildSecurityHuntQuery(data: {
7
+ projectId: ObjectID;
8
+ searchQuery: string | undefined | null;
9
+ filters: SecurityHuntFilters | undefined | null;
10
+ startTime: Date;
11
+ endTime: Date;
12
+ }): Query<SecurityEvent>;
@@ -0,0 +1,12 @@
1
+ import SecurityEvent from "../../Models/AnalyticsModels/SecurityEvent";
2
+ import Query from "../../Types/BaseDatabase/Query";
3
+ import ObjectID from "../../Types/ObjectID";
4
+ import { SecurityHuntFilters } from "../../Types/SecurityEvent/SecurityHunt";
5
+ export declare function getSecurityHuntFiltersProblem(value: unknown): string | null;
6
+ export declare function buildSecurityHuntQuery(data: {
7
+ projectId: ObjectID;
8
+ searchQuery: string | undefined | null;
9
+ filters: SecurityHuntFilters | undefined | null;
10
+ startTime: Date;
11
+ endTime: Date;
12
+ }): Query<SecurityEvent>;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getSecurityHuntFiltersProblem = getSecurityHuntFiltersProblem;
7
+ exports.buildSecurityHuntQuery = buildSecurityHuntQuery;
8
+ const InBetween_1 = __importDefault(require("../../Types/BaseDatabase/InBetween"));
9
+ const SecurityHunt_1 = require("../../Types/SecurityEvent/SecurityHunt");
10
+ const SecurityEventSearch_1 = require("./SecurityEventSearch");
11
+ /*
12
+ * A hunt's search, as a read of the SecurityEvent table: its text and its
13
+ * chips over a project and a window, compiled exactly as the Events page
14
+ * compiles them (SecurityEventSearch), so a scheduled run counts what the
15
+ * hunt's page lists for the same window.
16
+ */
17
+ /*
18
+ * What is wrong with a hunt's chips, in the shared words: a key the Events
19
+ * sidebar cannot make, more values than a hunt keeps, or a value too long.
20
+ * Null when they are fine.
21
+ */
22
+ function getSecurityHuntFiltersProblem(value) {
23
+ const filters = (0, SecurityHunt_1.readSecurityHuntFilters)(value);
24
+ let count = 0;
25
+ for (const [key, values] of Object.entries(filters)) {
26
+ if (!(0, SecurityEventSearch_1.isSecurityEventChipKey)(key)) {
27
+ return SecurityHunt_1.SECURITY_HUNT_MESSAGES.unknownFilter.message;
28
+ }
29
+ for (const item of values) {
30
+ if (item.length > SecurityHunt_1.SECURITY_HUNT_FILTER_VALUE_MAX_LENGTH) {
31
+ return SecurityHunt_1.SECURITY_HUNT_MESSAGES.filterValueTooLong.message;
32
+ }
33
+ }
34
+ count += values.length;
35
+ }
36
+ if (count > SecurityHunt_1.SECURITY_HUNT_FILTER_VALUES_MAX) {
37
+ return SecurityHunt_1.SECURITY_HUNT_MESSAGES.tooManyFilterValues.message;
38
+ }
39
+ return null;
40
+ }
41
+ // The read of a hunt's search over one project and one window.
42
+ function buildSecurityHuntQuery(data) {
43
+ return (0, SecurityEventSearch_1.buildSecurityEventSearchQuery)({
44
+ base: {
45
+ projectId: data.projectId,
46
+ time: new InBetween_1.default(data.startTime, data.endTime),
47
+ },
48
+ search: data.searchQuery || "",
49
+ filters: (0, SecurityHunt_1.securityHuntFiltersToMap)(data.filters),
50
+ });
51
+ }
@@ -0,0 +1,3 @@
1
+ import commonJsModule from "./SecurityHuntSearch.js";
2
+ export const buildSecurityHuntQuery = commonJsModule.buildSecurityHuntQuery;
3
+ export const getSecurityHuntFiltersProblem = commonJsModule.getSecurityHuntFiltersProblem;