@oneuptime/common 17.0.0 → 17.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1035) hide show
  1. package/Models/AnalyticsModels/AuditLog.d.mts +10 -0
  2. package/Models/AnalyticsModels/AuditLog.d.ts +10 -0
  3. package/Models/AnalyticsModels/AuditLog.js +110 -0
  4. package/Models/AnalyticsModels/KubernetesCostAllocation.d.mts +14 -0
  5. package/Models/AnalyticsModels/KubernetesCostAllocation.d.ts +14 -0
  6. package/Models/AnalyticsModels/KubernetesCostAllocation.js +169 -0
  7. package/Models/DatabaseModels/AIPostmortemRule.js +1 -1
  8. package/Models/DatabaseModels/AIRun.d.mts +3 -0
  9. package/Models/DatabaseModels/AIRun.d.ts +3 -0
  10. package/Models/DatabaseModels/AIRun.js +64 -0
  11. package/Models/DatabaseModels/AlertGroupingRule.js +1 -1
  12. package/Models/DatabaseModels/AlertIncidentRule.js +1 -1
  13. package/Models/DatabaseModels/AlertMeasurement.js +1 -1
  14. package/Models/DatabaseModels/AlertReminderRule.js +1 -1
  15. package/Models/DatabaseModels/AlertSeverity.js +1 -1
  16. package/Models/DatabaseModels/AlertState.js +1 -1
  17. package/Models/DatabaseModels/CloudConnection.d.mts +1 -0
  18. package/Models/DatabaseModels/CloudConnection.d.ts +1 -0
  19. package/Models/DatabaseModels/CloudConnection.js +20 -0
  20. package/Models/DatabaseModels/DataAsset.d.mts +1 -0
  21. package/Models/DatabaseModels/DataAsset.d.ts +1 -0
  22. package/Models/DatabaseModels/DataAsset.js +17 -0
  23. package/Models/DatabaseModels/DataBiConnection.d.mts +1 -0
  24. package/Models/DatabaseModels/DataBiConnection.d.ts +1 -0
  25. package/Models/DatabaseModels/DataBiConnection.js +23 -0
  26. package/Models/DatabaseModels/DataPipeline.d.mts +5 -0
  27. package/Models/DatabaseModels/DataPipeline.d.ts +5 -0
  28. package/Models/DatabaseModels/DataPipeline.js +88 -0
  29. package/Models/DatabaseModels/DataPipelineOwnerRule.d.mts +21 -0
  30. package/Models/DatabaseModels/DataPipelineOwnerRule.d.ts +21 -0
  31. package/Models/DatabaseModels/DataPipelineOwnerRule.js +635 -0
  32. package/Models/DatabaseModels/DataPipelineOwnerRule.mjs +2 -0
  33. package/Models/DatabaseModels/DataSecurityComplianceSetting.d.mts +24 -0
  34. package/Models/DatabaseModels/DataSecurityComplianceSetting.d.ts +24 -0
  35. package/Models/DatabaseModels/DataSecurityComplianceSetting.js +454 -0
  36. package/Models/DatabaseModels/DataSecurityComplianceSetting.mjs +2 -0
  37. package/Models/DatabaseModels/DataStore.d.mts +1 -0
  38. package/Models/DatabaseModels/DataStore.d.ts +1 -0
  39. package/Models/DatabaseModels/DataStore.js +24 -0
  40. package/Models/DatabaseModels/DetectionRule.d.mts +2 -0
  41. package/Models/DatabaseModels/DetectionRule.d.ts +2 -0
  42. package/Models/DatabaseModels/DetectionRule.js +29 -0
  43. package/Models/DatabaseModels/DeviceManagementConnection.d.mts +25 -0
  44. package/Models/DatabaseModels/DeviceManagementConnection.d.ts +25 -0
  45. package/Models/DatabaseModels/DeviceManagementConnection.js +438 -0
  46. package/Models/DatabaseModels/DeviceManagementConnection.mjs +2 -0
  47. package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
  48. package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
  49. package/Models/DatabaseModels/GlobalConfig.js +31 -0
  50. package/Models/DatabaseModels/GlobalSso.d.mts +2 -0
  51. package/Models/DatabaseModels/GlobalSso.d.ts +2 -0
  52. package/Models/DatabaseModels/GlobalSso.js +56 -0
  53. package/Models/DatabaseModels/HostCollectorConfig.js +1 -1
  54. package/Models/DatabaseModels/HostLogSession.d.mts +22 -0
  55. package/Models/DatabaseModels/HostLogSession.d.ts +22 -0
  56. package/Models/DatabaseModels/HostLogSession.js +352 -0
  57. package/Models/DatabaseModels/HostLogSession.mjs +2 -0
  58. package/Models/DatabaseModels/IncidentCustomField.js +1 -1
  59. package/Models/DatabaseModels/IncidentFeed.d.mts +1 -0
  60. package/Models/DatabaseModels/IncidentFeed.d.ts +1 -0
  61. package/Models/DatabaseModels/IncidentFeed.js +6 -0
  62. package/Models/DatabaseModels/IncidentGroupingRule.js +1 -1
  63. package/Models/DatabaseModels/IncidentMeasurement.js +1 -1
  64. package/Models/DatabaseModels/IncidentPostmortemStatus.js +1 -1
  65. package/Models/DatabaseModels/IncidentReminderRule.js +1 -1
  66. package/Models/DatabaseModels/IncidentSeverity.js +1 -1
  67. package/Models/DatabaseModels/IncidentSlaRule.js +1 -1
  68. package/Models/DatabaseModels/IncidentState.js +1 -1
  69. package/Models/DatabaseModels/IncidentTemplateOwnerTeam.d.mts +0 -1
  70. package/Models/DatabaseModels/IncidentTemplateOwnerTeam.d.ts +0 -1
  71. package/Models/DatabaseModels/IncidentTemplateOwnerTeam.js +0 -35
  72. package/Models/DatabaseModels/IncidentTemplateOwnerUser.d.mts +0 -1
  73. package/Models/DatabaseModels/IncidentTemplateOwnerUser.d.ts +0 -1
  74. package/Models/DatabaseModels/IncidentTemplateOwnerUser.js +0 -40
  75. package/Models/DatabaseModels/IncidentVideoCall.d.mts +3 -0
  76. package/Models/DatabaseModels/IncidentVideoCall.d.ts +3 -0
  77. package/Models/DatabaseModels/IncidentVideoCall.js +105 -0
  78. package/Models/DatabaseModels/IncomingCallPolicyEscalationRule.js +1 -1
  79. package/Models/DatabaseModels/Index.js +16 -0
  80. package/Models/DatabaseModels/InstanceSamlSigningKey.d.mts +5 -0
  81. package/Models/DatabaseModels/InstanceSamlSigningKey.d.ts +5 -0
  82. package/Models/DatabaseModels/InstanceSamlSigningKey.js +108 -0
  83. package/Models/DatabaseModels/InstanceSamlSigningKey.mjs +2 -0
  84. package/Models/DatabaseModels/KubernetesResource.d.mts +9 -0
  85. package/Models/DatabaseModels/KubernetesResource.d.ts +9 -0
  86. package/Models/DatabaseModels/KubernetesResource.js +233 -1
  87. package/Models/DatabaseModels/LogDropFilter.js +1 -1
  88. package/Models/DatabaseModels/LogPipeline.js +1 -1
  89. package/Models/DatabaseModels/LogPipelineProcessor.js +1 -1
  90. package/Models/DatabaseModels/LogScrubRule.js +1 -1
  91. package/Models/DatabaseModels/ManagedDevice.d.mts +44 -0
  92. package/Models/DatabaseModels/ManagedDevice.d.ts +44 -0
  93. package/Models/DatabaseModels/ManagedDevice.js +698 -0
  94. package/Models/DatabaseModels/ManagedDevice.mjs +2 -0
  95. package/Models/DatabaseModels/ManagedDeviceApp.d.mts +20 -0
  96. package/Models/DatabaseModels/ManagedDeviceApp.d.ts +20 -0
  97. package/Models/DatabaseModels/ManagedDeviceApp.js +320 -0
  98. package/Models/DatabaseModels/ManagedDeviceApp.mjs +2 -0
  99. package/Models/DatabaseModels/MarketplaceSubscription.js +1 -1
  100. package/Models/DatabaseModels/MetricPipelineRule.js +1 -1
  101. package/Models/DatabaseModels/Monitor.d.mts +2 -0
  102. package/Models/DatabaseModels/Monitor.d.ts +2 -0
  103. package/Models/DatabaseModels/Monitor.js +127 -0
  104. package/Models/DatabaseModels/MonitorSecret.d.mts +2 -0
  105. package/Models/DatabaseModels/MonitorSecret.d.ts +2 -0
  106. package/Models/DatabaseModels/MonitorSecret.js +51 -1
  107. package/Models/DatabaseModels/MonitorStatus.js +1 -1
  108. package/Models/DatabaseModels/NetworkDevice.js +2 -1
  109. package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.mts +1 -0
  110. package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.ts +1 -0
  111. package/Models/DatabaseModels/NetworkDeviceNamingRule.js +1 -1
  112. package/Models/DatabaseModels/NetworkDeviceRole.js +1 -1
  113. package/Models/DatabaseModels/NetworkSiteAssignmentRule.js +1 -1
  114. package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +28 -1
  115. package/Models/DatabaseModels/Probe.d.mts +1 -0
  116. package/Models/DatabaseModels/Probe.d.ts +1 -0
  117. package/Models/DatabaseModels/Probe.js +32 -0
  118. package/Models/DatabaseModels/Project.d.mts +3 -0
  119. package/Models/DatabaseModels/Project.d.ts +3 -0
  120. package/Models/DatabaseModels/Project.js +131 -0
  121. package/Models/DatabaseModels/ProjectOidc.d.mts +2 -0
  122. package/Models/DatabaseModels/ProjectOidc.d.ts +2 -0
  123. package/Models/DatabaseModels/ProjectOidc.js +57 -0
  124. package/Models/DatabaseModels/ProjectSso.d.mts +4 -0
  125. package/Models/DatabaseModels/ProjectSso.d.ts +4 -0
  126. package/Models/DatabaseModels/ProjectSso.js +147 -0
  127. package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
  128. package/Models/DatabaseModels/RumApplication.d.mts +3 -0
  129. package/Models/DatabaseModels/RumApplication.d.ts +3 -0
  130. package/Models/DatabaseModels/RumApplication.js +154 -0
  131. package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +1 -1
  132. package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +1 -1
  133. package/Models/DatabaseModels/ScheduledMaintenanceState.js +1 -1
  134. package/Models/DatabaseModels/SecurityCasePriority.js +1 -1
  135. package/Models/DatabaseModels/SecurityCaseStatus.js +1 -1
  136. package/Models/DatabaseModels/SecurityDetection.d.mts +2 -1
  137. package/Models/DatabaseModels/SecurityDetection.d.ts +2 -1
  138. package/Models/DatabaseModels/SecurityDetection.js +32 -0
  139. package/Models/DatabaseModels/ServiceAINote.d.mts +22 -0
  140. package/Models/DatabaseModels/ServiceAINote.d.ts +22 -0
  141. package/Models/DatabaseModels/ServiceAINote.js +331 -0
  142. package/Models/DatabaseModels/ServiceAINote.mjs +7 -0
  143. package/Models/DatabaseModels/ServiceOwnerTeam.d.mts +1 -0
  144. package/Models/DatabaseModels/ServiceOwnerTeam.d.ts +1 -0
  145. package/Models/DatabaseModels/ServiceOwnerTeam.js +40 -0
  146. package/Models/DatabaseModels/ServiceOwnerUser.d.mts +1 -0
  147. package/Models/DatabaseModels/ServiceOwnerUser.d.ts +1 -0
  148. package/Models/DatabaseModels/ServiceOwnerUser.js +40 -0
  149. package/Models/DatabaseModels/StatusPageFooterLink.js +1 -1
  150. package/Models/DatabaseModels/StatusPageHeaderLink.js +1 -1
  151. package/Models/DatabaseModels/StatusPageHistoryChartBarColorRule.js +1 -1
  152. package/Models/DatabaseModels/StorageArrayResource.js +2 -1
  153. package/Models/DatabaseModels/Team.d.mts +1 -0
  154. package/Models/DatabaseModels/Team.d.ts +1 -0
  155. package/Models/DatabaseModels/Team.js +42 -0
  156. package/Models/DatabaseModels/TeamMember.d.mts +1 -0
  157. package/Models/DatabaseModels/TeamMember.d.ts +1 -0
  158. package/Models/DatabaseModels/TeamMember.js +47 -0
  159. package/Models/DatabaseModels/TraceDropFilter.js +1 -1
  160. package/Models/DatabaseModels/TracePipeline.js +1 -1
  161. package/Models/DatabaseModels/TracePipelineProcessor.js +1 -1
  162. package/Models/DatabaseModels/TraceScrubRule.js +1 -1
  163. package/Models/DatabaseModels/UserSession.js +12 -8
  164. package/Models/DatabaseModels/Workflow.d.mts +11 -0
  165. package/Models/DatabaseModels/Workflow.d.ts +11 -0
  166. package/Models/DatabaseModels/Workflow.js +316 -0
  167. package/Models/DatabaseModels/WorkflowLog.d.mts +7 -0
  168. package/Models/DatabaseModels/WorkflowLog.d.ts +7 -0
  169. package/Models/DatabaseModels/WorkflowLog.js +211 -0
  170. package/Server/Services/DatabaseService.d.mts +26 -0
  171. package/Server/Services/DatabaseService.d.ts +26 -0
  172. package/Server/Types/Database/DeleteById.d.mts +2 -0
  173. package/Server/Types/Database/DeleteById.d.ts +2 -0
  174. package/Server/Types/Database/DeleteOneBy.d.mts +2 -0
  175. package/Server/Types/Database/DeleteOneBy.d.ts +2 -0
  176. package/Server/Utils/Workspace/WorkspaceBase.d.mts +6 -0
  177. package/Server/Utils/Workspace/WorkspaceBase.d.ts +6 -0
  178. package/Types/AI/AIActionWords.d.mts +35 -0
  179. package/Types/AI/AIActionWords.d.ts +35 -0
  180. package/Types/AI/AIActionWords.js +133 -1
  181. package/Types/AI/AIActionWords.mjs +2 -0
  182. package/Types/AI/AIAgentRunLimits.d.mts +7 -0
  183. package/Types/AI/AIAgentRunLimits.d.ts +7 -0
  184. package/Types/AI/AIAgentRunLimits.js +39 -2
  185. package/Types/AI/AIAgentRunLimits.mjs +3 -0
  186. package/Types/AI/AIChatTestPage.d.mts +11 -0
  187. package/Types/AI/AIChatTestPage.d.ts +11 -0
  188. package/Types/AI/AIChatTestPage.js +107 -0
  189. package/Types/AI/AIChatTestPage.mjs +6 -0
  190. package/Types/AI/AIChatTypes.d.mts +6 -0
  191. package/Types/AI/AIChatTypes.d.ts +6 -0
  192. package/Types/AI/AIReadTableWords.d.mts +6 -0
  193. package/Types/AI/AIReadTableWords.d.ts +6 -0
  194. package/Types/AI/AIReadTableWords.js +13 -0
  195. package/Types/AI/AIRunAttempt.d.mts +2 -0
  196. package/Types/AI/AIRunAttempt.d.ts +2 -0
  197. package/Types/AI/AIRunAttempt.js +14 -1
  198. package/Types/AI/AIRunAttempt.mjs +1 -0
  199. package/Types/AI/AISetupActions.d.mts +17 -0
  200. package/Types/AI/AISetupActions.d.ts +17 -0
  201. package/Types/AI/AISetupActions.js +55 -2
  202. package/Types/AI/AISetupActions.mjs +7 -0
  203. package/Types/AI/AiActivityInsights.d.mts +11 -0
  204. package/Types/AI/AiActivityInsights.d.ts +11 -0
  205. package/Types/AI/AiActivityInsights.js +7 -2
  206. package/Types/AI/AiActivityInsights.mjs +1 -0
  207. package/Types/AI/AiOutcomes.d.mts +61 -0
  208. package/Types/AI/AiOutcomes.d.ts +61 -0
  209. package/Types/AI/AiOutcomes.js +71 -2
  210. package/Types/AI/AiOutcomes.mjs +12 -0
  211. package/Types/AI/CodeAgentRunLimits.d.mts +1 -0
  212. package/Types/AI/CodeAgentRunLimits.d.ts +1 -0
  213. package/Types/AI/CodeAgentRunLimits.js +6 -1
  214. package/Types/AI/CodeFixTaskType.d.mts +3 -0
  215. package/Types/AI/CodeFixTaskType.d.ts +3 -0
  216. package/Types/AI/CodeFixTaskType.js +43 -0
  217. package/Types/AI/CodeTask.d.mts +8 -0
  218. package/Types/AI/CodeTask.d.ts +8 -0
  219. package/Types/AI/CodeTask.js +3 -1
  220. package/Types/AI/CodeTask.mjs +1 -0
  221. package/Types/AI/CodeTaskTryAgain.d.mts +9 -0
  222. package/Types/AI/CodeTaskTryAgain.d.ts +9 -0
  223. package/Types/AI/CodeTaskTryAgain.js +56 -0
  224. package/Types/AI/CodeTaskTryAgain.mjs +10 -0
  225. package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.d.mts +10 -0
  226. package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.d.ts +10 -0
  227. package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.js +33 -0
  228. package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.mjs +2 -0
  229. package/Types/AI/InvestigationRecording.d.mts +1 -0
  230. package/Types/AI/InvestigationRecording.d.ts +1 -0
  231. package/Types/AI/ProjectAiRunLimits.d.mts +4 -1
  232. package/Types/AI/ProjectAiRunLimits.d.ts +4 -1
  233. package/Types/AI/ProjectAiRunLimits.js +26 -5
  234. package/Types/AI/ProjectAiRunLimits.mjs +2 -0
  235. package/Types/AI/ServiceKnowledgeSummary.d.mts +27 -0
  236. package/Types/AI/ServiceKnowledgeSummary.d.ts +27 -0
  237. package/Types/AI/ServiceKnowledgeSummary.js +68 -0
  238. package/Types/AI/ServiceKnowledgeSummary.mjs +4 -0
  239. package/Types/Accounts/SecondStepEnrolment.d.mts +16 -0
  240. package/Types/Accounts/SecondStepEnrolment.d.ts +16 -0
  241. package/Types/Accounts/SecondStepEnrolment.js +96 -0
  242. package/Types/Accounts/SecondStepEnrolment.mjs +14 -0
  243. package/Types/Accounts/SecurityKeySignIn.d.mts +1 -0
  244. package/Types/Accounts/SecurityKeySignIn.d.ts +1 -0
  245. package/Types/Accounts/SecurityKeySignIn.js +33 -0
  246. package/Types/Accounts/SecurityKeySignIn.mjs +2 -0
  247. package/Types/Accounts/SignInMessages.d.mts +1 -0
  248. package/Types/Accounts/SignInMessages.d.ts +1 -0
  249. package/Types/Accounts/SignInMessages.js +14 -2
  250. package/Types/Accounts/SignInMessages.mjs +1 -0
  251. package/Types/Accounts/SignUpInvitation.d.mts +5 -0
  252. package/Types/Accounts/SignUpInvitation.d.ts +5 -0
  253. package/Types/Accounts/SignUpInvitation.js +26 -0
  254. package/Types/Analytics/ProductEvent.d.mts +2 -0
  255. package/Types/Analytics/ProductEvent.d.ts +2 -0
  256. package/Types/Analytics/ProductEvent.js +17 -1
  257. package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
  258. package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
  259. package/Types/AuditLog/AuditLogCoverage.js +14 -2
  260. package/Types/AuditLog/AuditLogCoverage.mjs +1 -0
  261. package/Types/AuditLog/AuditLogSessionEvent.js +1 -0
  262. package/Types/AuditLog/AuditLogSignInSettingsCleared.d.mts +17 -0
  263. package/Types/AuditLog/AuditLogSignInSettingsCleared.d.ts +17 -0
  264. package/Types/AuditLog/AuditLogSignInSettingsCleared.js +87 -0
  265. package/Types/AuditLog/AuditLogSignInSettingsCleared.mjs +4 -0
  266. package/Types/AuditLog/Export/AuditLogExportRecord.d.mts +9 -1
  267. package/Types/AuditLog/Export/AuditLogExportRecord.d.ts +9 -1
  268. package/Types/AuditLog/Export/AuditLogExportRecord.js +55 -9
  269. package/Types/AuditLog/Export/AuditLogExportRecord.mjs +3 -0
  270. package/Types/AutoRemediation/RemediationRound.d.mts +10 -1
  271. package/Types/AutoRemediation/RemediationRound.d.ts +10 -1
  272. package/Types/AutoRemediation/RemediationRound.js +37 -6
  273. package/Types/AutoRemediation/RemediationRound.mjs +3 -0
  274. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +3 -0
  275. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +3 -0
  276. package/Types/Call/CallStatus.d.mts +2 -1
  277. package/Types/Call/CallStatus.d.ts +2 -1
  278. package/Types/Call/CallStatus.js +6 -0
  279. package/Types/Cloud/CloudAddedMetrics.d.mts +68 -0
  280. package/Types/Cloud/CloudAddedMetrics.d.ts +68 -0
  281. package/Types/Cloud/CloudAddedMetrics.js +402 -0
  282. package/Types/Cloud/CloudAddedMetrics.mjs +18 -0
  283. package/Types/Cloud/CloudKeyMetricCondition.d.mts +10 -0
  284. package/Types/Cloud/CloudKeyMetricCondition.d.ts +10 -0
  285. package/Types/Cloud/CloudKeyMetricCondition.js +65 -0
  286. package/Types/Cloud/CloudKeyMetricCondition.mjs +4 -0
  287. package/Types/Cloud/CloudKeyMetrics.d.mts +53 -4
  288. package/Types/Cloud/CloudKeyMetrics.d.ts +53 -4
  289. package/Types/Cloud/CloudKeyMetrics.js +781 -211
  290. package/Types/Cloud/CloudKeyMetrics.mjs +19 -0
  291. package/Types/Cloud/CloudMonitoredResource.js +16 -2
  292. package/Types/Cloud/CloudPublishedMetrics.d.mts +40 -0
  293. package/Types/Cloud/CloudPublishedMetrics.d.ts +40 -0
  294. package/Types/Cloud/CloudPublishedMetrics.js +165 -0
  295. package/Types/Cloud/CloudPublishedMetrics.mjs +6 -0
  296. package/Types/Cloud/CloudReadingKeys.d.mts +10 -0
  297. package/Types/Cloud/CloudReadingKeys.d.ts +10 -0
  298. package/Types/Cloud/CloudReadingKeys.js +37 -0
  299. package/Types/Cloud/CloudReadingKeys.mjs +3 -0
  300. package/Types/Cloud/CloudResourceCatalog.d.mts +1 -0
  301. package/Types/Cloud/CloudResourceCatalog.d.ts +1 -0
  302. package/Types/Cloud/CloudResourceCatalog.js +33 -2
  303. package/Types/Cloud/CloudResourceHealth.d.mts +93 -1
  304. package/Types/Cloud/CloudResourceHealth.d.ts +93 -1
  305. package/Types/Cloud/CloudResourceHealth.js +671 -33
  306. package/Types/Cloud/CloudResourceHealth.mjs +41 -0
  307. package/Types/Cloud/CloudRightSizing.js +9 -3
  308. package/Types/Cloud/CloudUnreportedKeyMetrics.d.mts +84 -0
  309. package/Types/Cloud/CloudUnreportedKeyMetrics.d.ts +84 -0
  310. package/Types/Cloud/CloudUnreportedKeyMetrics.js +448 -0
  311. package/Types/Cloud/CloudUnreportedKeyMetrics.mjs +15 -0
  312. package/Types/CloudConnection/CloudConnectionCost.d.mts +18 -0
  313. package/Types/CloudConnection/CloudConnectionCost.d.ts +18 -0
  314. package/Types/CloudConnection/CloudConnectionCost.js +89 -4
  315. package/Types/CloudConnection/CloudConnectionCost.mjs +3 -0
  316. package/Types/CloudConnection/CloudConnectionSetupCommands.js +14 -0
  317. package/Types/CloudConnection/CloudStream.d.mts +5 -0
  318. package/Types/CloudConnection/CloudStream.d.ts +5 -0
  319. package/Types/CloudConnection/CloudStream.js +46 -2
  320. package/Types/CloudConnection/CloudStream.mjs +3 -0
  321. package/Types/CloudConnection/CloudStreamOrganization.d.mts +6 -0
  322. package/Types/CloudConnection/CloudStreamOrganization.d.ts +6 -0
  323. package/Types/CloudConnection/CloudStreamOrganization.js +36 -1
  324. package/Types/CloudConnection/CloudStreamOrganization.mjs +2 -0
  325. package/Types/CloudConnection/CloudStreamStack.d.mts +48 -0
  326. package/Types/CloudConnection/CloudStreamStack.d.ts +48 -0
  327. package/Types/CloudConnection/CloudStreamStack.js +198 -0
  328. package/Types/CloudConnection/CloudStreamStack.mjs +15 -0
  329. package/Types/CloudConnection/CloudStreamTemplate.d.mts +14 -1
  330. package/Types/CloudConnection/CloudStreamTemplate.d.ts +14 -1
  331. package/Types/CloudConnection/CloudStreamTemplate.js +147 -16
  332. package/Types/CloudConnection/CloudStreamTemplate.mjs +10 -0
  333. package/Types/DataObservability/DataBiLineage.d.mts +5 -0
  334. package/Types/DataObservability/DataBiLineage.d.ts +5 -0
  335. package/Types/DataObservability/DataBiLineage.js +29 -1
  336. package/Types/DataObservability/DataCircuitBreaker.d.mts +78 -0
  337. package/Types/DataObservability/DataCircuitBreaker.d.ts +78 -0
  338. package/Types/DataObservability/DataCircuitBreaker.js +262 -0
  339. package/Types/DataObservability/DataCircuitBreaker.mjs +12 -0
  340. package/Types/DataObservability/DataLineageMap.d.mts +3 -0
  341. package/Types/DataObservability/DataLineageMap.d.ts +3 -0
  342. package/Types/DataObservability/DataLineageMap.js +22 -0
  343. package/Types/DataObservability/DataLineageMap.mjs +2 -0
  344. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +18 -0
  345. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +18 -0
  346. package/Types/DataObservability/DataObservabilityApiTypes.js +10 -0
  347. package/Types/DataObservability/DataObservabilityAttention.d.mts +1 -0
  348. package/Types/DataObservability/DataObservabilityAttention.d.ts +1 -0
  349. package/Types/DataObservability/DataObservabilityAttention.js +12 -6
  350. package/Types/DataObservability/DataPipelineMetric.d.mts +2 -1
  351. package/Types/DataObservability/DataPipelineMetric.d.ts +2 -1
  352. package/Types/DataObservability/DataPipelineMetric.js +12 -2
  353. package/Types/DataObservability/SkippedTables.d.mts +24 -0
  354. package/Types/DataObservability/SkippedTables.d.ts +24 -0
  355. package/Types/DataObservability/SkippedTables.js +147 -0
  356. package/Types/DataObservability/SkippedTables.mjs +9 -0
  357. package/Types/DataSecurity/ComplianceRequirementCatalog.d.mts +9 -2
  358. package/Types/DataSecurity/ComplianceRequirementCatalog.d.ts +9 -2
  359. package/Types/DataSecurity/ComplianceRequirementCatalog.js +46 -10
  360. package/Types/DataSecurity/ComplianceRequirementCatalog.mjs +1 -0
  361. package/Types/DataSecurity/ComplianceScope.d.mts +29 -0
  362. package/Types/DataSecurity/ComplianceScope.d.ts +29 -0
  363. package/Types/DataSecurity/ComplianceScope.js +120 -0
  364. package/Types/DataSecurity/ComplianceScope.mjs +7 -0
  365. package/Types/DataSecurity/ComplianceSettingFramework.d.mts +5 -0
  366. package/Types/DataSecurity/ComplianceSettingFramework.d.ts +5 -0
  367. package/Types/DataSecurity/ComplianceSettingFramework.js +10 -0
  368. package/Types/DataSecurity/ComplianceSettingFramework.mjs +3 -0
  369. package/Types/DataSecurity/DataSecurityApiTypes.d.mts +77 -2
  370. package/Types/DataSecurity/DataSecurityApiTypes.d.ts +77 -2
  371. package/Types/DataSecurity/DataSecurityApiTypes.js +45 -1
  372. package/Types/DataSecurity/DataSecurityApiTypes.mjs +3 -0
  373. package/Types/DataSecurity/DataSecurityCheckCatalog.js +2 -2
  374. package/Types/DataSecurity/DataStoreKind.d.mts +2 -1
  375. package/Types/DataSecurity/DataStoreKind.d.ts +2 -1
  376. package/Types/DataSecurity/DataStoreKind.js +8 -1
  377. package/Types/DataSecurity/DataStoreResource.d.mts +32 -0
  378. package/Types/DataSecurity/DataStoreResource.d.ts +32 -0
  379. package/Types/DataSecurity/DataStoreResource.js +142 -0
  380. package/Types/DataSecurity/DataStoreResource.mjs +11 -0
  381. package/Types/DataSecurity/FindingSampleRecord.d.mts +5 -0
  382. package/Types/DataSecurity/FindingSampleRecord.d.ts +5 -0
  383. package/Types/DataSecurity/FindingSampleRecord.js +62 -11
  384. package/Types/DataSecurity/FindingSampleRecord.mjs +1 -0
  385. package/Types/DataSecurity/TelemetryScrubTarget.d.mts +28 -0
  386. package/Types/DataSecurity/TelemetryScrubTarget.d.ts +28 -0
  387. package/Types/DataSecurity/TelemetryScrubTarget.js +125 -0
  388. package/Types/DataSecurity/TelemetryScrubTarget.mjs +12 -0
  389. package/Types/Database/AccessControl/AccountDateColumns.d.mts +3 -0
  390. package/Types/Database/AccessControl/AccountDateColumns.d.ts +3 -0
  391. package/Types/Database/AccessControl/AccountDateColumns.js +32 -0
  392. package/Types/Database/AccessControl/AccountDateColumns.mjs +4 -0
  393. package/Types/Database/AccessControl/PermissionScopeNarrowing.js +9 -0
  394. package/Types/Database/MoveInList.d.mts +11 -2
  395. package/Types/Database/MoveInList.d.ts +11 -2
  396. package/Types/Database/MoveInList.js +74 -23
  397. package/Types/Database/MoveInList.mjs +2 -0
  398. package/Types/Database/SharedNames.d.mts +15 -0
  399. package/Types/Database/SharedNames.d.ts +15 -0
  400. package/Types/Database/SharedNames.js +80 -0
  401. package/Types/Database/SharedNames.mjs +8 -0
  402. package/Types/Database/TableColumn.d.mts +1 -0
  403. package/Types/Database/TableColumn.d.ts +1 -0
  404. package/Types/Database/UniqueName.d.mts +41 -0
  405. package/Types/Database/UniqueName.d.ts +41 -0
  406. package/Types/Database/UniqueName.js +242 -0
  407. package/Types/Database/UniqueName.mjs +25 -0
  408. package/Types/DeviceManagement/DeviceManagementConnectionHealth.d.mts +25 -0
  409. package/Types/DeviceManagement/DeviceManagementConnectionHealth.d.ts +25 -0
  410. package/Types/DeviceManagement/DeviceManagementConnectionHealth.js +98 -0
  411. package/Types/DeviceManagement/DeviceManagementConnectionHealth.mjs +5 -0
  412. package/Types/DeviceManagement/DeviceManagementConnectionSettings.d.mts +27 -0
  413. package/Types/DeviceManagement/DeviceManagementConnectionSettings.d.ts +27 -0
  414. package/Types/DeviceManagement/DeviceManagementConnectionSettings.js +254 -0
  415. package/Types/DeviceManagement/DeviceManagementConnectionSettings.mjs +21 -0
  416. package/Types/DeviceManagement/DeviceManagementConnectionTest.d.mts +14 -0
  417. package/Types/DeviceManagement/DeviceManagementConnectionTest.d.ts +14 -0
  418. package/Types/DeviceManagement/DeviceManagementConnectionTest.js +5 -0
  419. package/Types/DeviceManagement/DeviceManagementConnectionTest.mjs +2 -0
  420. package/Types/DeviceManagement/DeviceManagementProvider.d.mts +7 -0
  421. package/Types/DeviceManagement/DeviceManagementProvider.d.ts +7 -0
  422. package/Types/DeviceManagement/DeviceManagementProvider.js +37 -0
  423. package/Types/DeviceManagement/DeviceManagementProvider.mjs +5 -0
  424. package/Types/DeviceManagement/DeviceManagementReadSummary.d.mts +28 -0
  425. package/Types/DeviceManagement/DeviceManagementReadSummary.d.ts +28 -0
  426. package/Types/DeviceManagement/DeviceManagementReadSummary.js +67 -0
  427. package/Types/DeviceManagement/DeviceManagementReadSummary.mjs +4 -0
  428. package/Types/DeviceManagement/ManagedDeviceCheckIn.d.mts +43 -0
  429. package/Types/DeviceManagement/ManagedDeviceCheckIn.d.ts +43 -0
  430. package/Types/DeviceManagement/ManagedDeviceCheckIn.js +173 -0
  431. package/Types/DeviceManagement/ManagedDeviceCheckIn.mjs +8 -0
  432. package/Types/DeviceManagement/ManagedDeviceIdentity.d.mts +23 -0
  433. package/Types/DeviceManagement/ManagedDeviceIdentity.d.ts +23 -0
  434. package/Types/DeviceManagement/ManagedDeviceIdentity.js +148 -0
  435. package/Types/DeviceManagement/ManagedDeviceIdentity.mjs +16 -0
  436. package/Types/DeviceManagement/ManagedDeviceStatus.d.mts +45 -0
  437. package/Types/DeviceManagement/ManagedDeviceStatus.d.ts +45 -0
  438. package/Types/DeviceManagement/ManagedDeviceStatus.js +161 -0
  439. package/Types/DeviceManagement/ManagedDeviceStatus.mjs +9 -0
  440. package/Types/DockerSwarm/DockerSwarmInventoryExtractor.js +20 -1
  441. package/Types/Domain.d.mts +1 -0
  442. package/Types/Domain.d.ts +1 -0
  443. package/Types/Domain.js +30 -0
  444. package/Types/Email/EmailTemplateType.d.mts +8 -0
  445. package/Types/Email/EmailTemplateType.d.ts +8 -0
  446. package/Types/Email/EmailTemplateType.js +27 -0
  447. package/Types/HeldPermissions.d.mts +10 -0
  448. package/Types/HeldPermissions.d.ts +10 -0
  449. package/Types/HeldPermissions.js +63 -0
  450. package/Types/Host/HostHealth.d.mts +2 -0
  451. package/Types/Host/HostHealth.d.ts +2 -0
  452. package/Types/Host/HostHealth.js +10 -1
  453. package/Types/Host/HostHealth.mjs +1 -0
  454. package/Types/Host/HostLogSession.d.mts +30 -0
  455. package/Types/Host/HostLogSession.d.ts +30 -0
  456. package/Types/Host/HostLogSession.js +117 -0
  457. package/Types/Host/HostLogSession.mjs +12 -0
  458. package/Types/HostCollector/HostCollector.js +1 -1
  459. package/Types/Icon/IconProp.d.mts +1 -0
  460. package/Types/Icon/IconProp.d.ts +1 -0
  461. package/Types/Icon/IconProp.js +2 -0
  462. package/Types/IncomingCall/IncomingCallEscalationOrder.d.mts +16 -0
  463. package/Types/IncomingCall/IncomingCallEscalationOrder.d.ts +16 -0
  464. package/Types/IncomingCall/IncomingCallEscalationOrder.js +59 -0
  465. package/Types/IncomingCall/IncomingCallEscalationOrder.mjs +3 -0
  466. package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.d.mts +26 -0
  467. package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.d.ts +26 -0
  468. package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.js +482 -0
  469. package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.mjs +12 -0
  470. package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.d.mts +32 -0
  471. package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.d.ts +32 -0
  472. package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.js +14 -0
  473. package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.mjs +2 -0
  474. package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.d.mts +35 -0
  475. package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.d.ts +35 -0
  476. package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.js +470 -0
  477. package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.mjs +13 -0
  478. package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.d.mts +24 -0
  479. package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.d.ts +24 -0
  480. package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.js +17 -0
  481. package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.mjs +3 -0
  482. package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.d.mts +8 -0
  483. package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.d.ts +8 -0
  484. package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.js +38 -0
  485. package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.mjs +5 -0
  486. package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.d.mts +50 -0
  487. package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.d.ts +50 -0
  488. package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.js +318 -0
  489. package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.mjs +6 -0
  490. package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.d.mts +39 -0
  491. package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.d.ts +39 -0
  492. package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.js +13 -0
  493. package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.mjs +2 -0
  494. package/Types/Kubernetes/Compliance/KubernetesRbac.d.mts +43 -0
  495. package/Types/Kubernetes/Compliance/KubernetesRbac.d.ts +43 -0
  496. package/Types/Kubernetes/Compliance/KubernetesRbac.js +165 -0
  497. package/Types/Kubernetes/Compliance/KubernetesRbac.mjs +20 -0
  498. package/Types/Kubernetes/Compliance/KubernetesVersion.d.mts +11 -0
  499. package/Types/Kubernetes/Compliance/KubernetesVersion.d.ts +11 -0
  500. package/Types/Kubernetes/Compliance/KubernetesVersion.js +79 -0
  501. package/Types/Kubernetes/Compliance/KubernetesVersion.mjs +8 -0
  502. package/Types/Kubernetes/Compliance/PodSecurityStandards.d.mts +58 -0
  503. package/Types/Kubernetes/Compliance/PodSecurityStandards.d.ts +58 -0
  504. package/Types/Kubernetes/Compliance/PodSecurityStandards.js +638 -0
  505. package/Types/Kubernetes/Compliance/PodSecurityStandards.mjs +20 -0
  506. package/Types/Kubernetes/KubernetesCostEfficiency.d.mts +16 -0
  507. package/Types/Kubernetes/KubernetesCostEfficiency.d.ts +16 -0
  508. package/Types/Kubernetes/KubernetesCostEfficiency.js +74 -0
  509. package/Types/Kubernetes/KubernetesCostEfficiency.mjs +7 -0
  510. package/Types/Kubernetes/KubernetesCostIngest.d.mts +5 -0
  511. package/Types/Kubernetes/KubernetesCostIngest.d.ts +5 -0
  512. package/Types/Kubernetes/KubernetesCostIngest.js +14 -16
  513. package/Types/Kubernetes/KubernetesCostIngest.mjs +3 -0
  514. package/Types/Kubernetes/KubernetesCostMetrics.d.mts +47 -0
  515. package/Types/Kubernetes/KubernetesCostMetrics.d.ts +47 -0
  516. package/Types/Kubernetes/KubernetesCostMetrics.js +296 -0
  517. package/Types/Kubernetes/KubernetesCostMetrics.mjs +19 -0
  518. package/Types/Kubernetes/KubernetesCostPricing.d.mts +20 -0
  519. package/Types/Kubernetes/KubernetesCostPricing.d.ts +20 -0
  520. package/Types/Kubernetes/KubernetesCostPricing.js +114 -0
  521. package/Types/Kubernetes/KubernetesCostPricing.mjs +7 -0
  522. package/Types/Kubernetes/KubernetesHealth.d.mts +26 -3
  523. package/Types/Kubernetes/KubernetesHealth.d.ts +26 -3
  524. package/Types/Kubernetes/KubernetesHealth.js +424 -37
  525. package/Types/Kubernetes/KubernetesHealth.mjs +2 -0
  526. package/Types/Kubernetes/KubernetesInventoryExtractor.js +11 -3
  527. package/Types/Kubernetes/KubernetesObjectParser.d.mts +8 -0
  528. package/Types/Kubernetes/KubernetesObjectParser.d.ts +8 -0
  529. package/Types/Kubernetes/KubernetesObjectParser.js +45 -0
  530. package/Types/Kubernetes/KubernetesObjectParser.mjs +1 -0
  531. package/Types/Kubernetes/KubernetesPodSecurity.d.mts +63 -0
  532. package/Types/Kubernetes/KubernetesPodSecurity.d.ts +63 -0
  533. package/Types/Kubernetes/KubernetesPodSecurity.js +399 -0
  534. package/Types/Kubernetes/KubernetesPodSecurity.mjs +6 -0
  535. package/Types/Kubernetes/KubernetesPolicyObjects.d.mts +62 -0
  536. package/Types/Kubernetes/KubernetesPolicyObjects.d.ts +62 -0
  537. package/Types/Kubernetes/KubernetesPolicyObjects.js +239 -0
  538. package/Types/Kubernetes/KubernetesPolicyObjects.mjs +16 -0
  539. package/Types/Kubernetes/KubernetesStorageHealth.d.mts +52 -0
  540. package/Types/Kubernetes/KubernetesStorageHealth.d.ts +52 -0
  541. package/Types/Kubernetes/KubernetesStorageHealth.js +353 -0
  542. package/Types/Kubernetes/KubernetesStorageHealth.mjs +17 -0
  543. package/Types/MeaningKeys.js +33 -0
  544. package/Types/Monitor/CloudAlertTemplates.d.mts +23 -0
  545. package/Types/Monitor/CloudAlertTemplates.d.ts +23 -0
  546. package/Types/Monitor/CloudAlertTemplates.js +575 -4
  547. package/Types/Monitor/CloudAlertTemplates.mjs +11 -0
  548. package/Types/Monitor/CriteriaFilter.d.mts +2 -0
  549. package/Types/Monitor/CriteriaFilter.d.ts +2 -0
  550. package/Types/Monitor/CriteriaFilter.js +9 -0
  551. package/Types/Monitor/CriteriaFilterTerms.js +2 -0
  552. package/Types/Monitor/DataPipelineAlertTemplates.js +34 -1
  553. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.mts +7 -0
  554. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.ts +7 -0
  555. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.js +45 -2
  556. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.mjs +3 -0
  557. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.mts +3 -0
  558. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.ts +3 -0
  559. package/Types/Monitor/HostAlertTemplates.d.mts +13 -0
  560. package/Types/Monitor/HostAlertTemplates.d.ts +13 -0
  561. package/Types/Monitor/HostAlertTemplates.js +352 -2
  562. package/Types/Monitor/HostAlertTemplates.mjs +4 -0
  563. package/Types/Monitor/KubernetesAlertTemplates.d.mts +5 -1
  564. package/Types/Monitor/KubernetesAlertTemplates.d.ts +5 -1
  565. package/Types/Monitor/KubernetesAlertTemplates.js +317 -27
  566. package/Types/Monitor/KubernetesAlertTemplates.mjs +3 -0
  567. package/Types/Monitor/KubernetesMetricCatalog.d.mts +1 -1
  568. package/Types/Monitor/KubernetesMetricCatalog.d.ts +1 -1
  569. package/Types/Monitor/KubernetesMetricCatalog.js +105 -1
  570. package/Types/Monitor/ManagedDeviceAlertTemplates.d.mts +33 -0
  571. package/Types/Monitor/ManagedDeviceAlertTemplates.d.ts +33 -0
  572. package/Types/Monitor/ManagedDeviceAlertTemplates.js +191 -0
  573. package/Types/Monitor/ManagedDeviceAlertTemplates.mjs +8 -0
  574. package/Types/Monitor/MonitorSecretType.d.mts +11 -0
  575. package/Types/Monitor/MonitorSecretType.d.ts +11 -0
  576. package/Types/Monitor/MonitorSecretType.js +37 -0
  577. package/Types/Monitor/MonitorSecretType.mjs +3 -0
  578. package/Types/Monitor/MonitorStep.d.mts +4 -0
  579. package/Types/Monitor/MonitorStep.d.ts +4 -0
  580. package/Types/Monitor/MonitorStep.js +27 -1
  581. package/Types/Monitor/MonitorStepExceptionMonitor.d.mts +7 -0
  582. package/Types/Monitor/MonitorStepExceptionMonitor.d.ts +7 -0
  583. package/Types/Monitor/MonitorStepExceptionMonitor.js +82 -3
  584. package/Types/Monitor/MonitorStepIoTMonitor.js +4 -17
  585. package/Types/Monitor/MonitorStepMetricMonitor.d.mts +2 -0
  586. package/Types/Monitor/MonitorStepMetricMonitor.d.ts +2 -0
  587. package/Types/Monitor/MonitorStepMetricMonitor.js +4 -0
  588. package/Types/Monitor/MonitorStepTraceMonitor.d.mts +4 -0
  589. package/Types/Monitor/MonitorStepTraceMonitor.d.ts +4 -0
  590. package/Types/Monitor/MonitorStepTraceMonitor.js +50 -0
  591. package/Types/Monitor/MonitorSteps.d.mts +1 -0
  592. package/Types/Monitor/MonitorSteps.d.ts +1 -0
  593. package/Types/Monitor/MonitorSteps.js +22 -1
  594. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.mts +1 -1
  595. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.ts +1 -1
  596. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +70 -9
  597. package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.d.mts +38 -0
  598. package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.d.ts +38 -0
  599. package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.js +168 -0
  600. package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.mjs +2 -0
  601. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +11 -1
  602. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +11 -1
  603. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +8 -0
  604. package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +37 -0
  605. package/Types/Monitor/RumAlertTemplates.d.mts +23 -1
  606. package/Types/Monitor/RumAlertTemplates.d.ts +23 -1
  607. package/Types/Monitor/RumAlertTemplates.js +658 -12
  608. package/Types/Monitor/RumAlertTemplates.mjs +11 -0
  609. package/Types/Monitor/SeriesContext/SeriesDebugHints.d.mts +5 -0
  610. package/Types/Monitor/SeriesContext/SeriesDebugHints.d.ts +5 -0
  611. package/Types/Monitor/SeriesContext/SeriesDebugHints.js +207 -5
  612. package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +32 -0
  613. package/Types/Monitor/TelemetryAlertRule.js +4 -3
  614. package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.d.mts +16 -0
  615. package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.d.ts +16 -0
  616. package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.js +2 -0
  617. package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.mjs +1 -0
  618. package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.mts +6 -0
  619. package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.ts +6 -0
  620. package/Types/NetworkDevice/DiscoveredDevice.d.mts +1 -0
  621. package/Types/NetworkDevice/DiscoveredDevice.d.ts +1 -0
  622. package/Types/NetworkDevice/DiscoveredDevice.js +4 -0
  623. package/Types/NetworkDevice/DiscoveryImport.d.mts +1 -0
  624. package/Types/NetworkDevice/DiscoveryImport.d.ts +1 -0
  625. package/Types/NetworkDevice/DiscoveryImport.js +11 -1
  626. package/Types/NetworkDevice/DiscoveryImport.mjs +1 -0
  627. package/Types/Notification/OwnerNotificationDelivery.d.mts +28 -0
  628. package/Types/Notification/OwnerNotificationDelivery.d.ts +28 -0
  629. package/Types/Notification/OwnerNotificationDelivery.js +47 -1
  630. package/Types/Notification/WhoWasTold.js +5 -3
  631. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.mts +4 -0
  632. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.ts +4 -0
  633. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +44 -0
  634. package/Types/NotificationSetting/NotificationEmailRollupPolicy.js +10 -1
  635. package/Types/NotificationSetting/NotificationSettingEventType.d.mts +12 -0
  636. package/Types/NotificationSetting/NotificationSettingEventType.d.ts +12 -0
  637. package/Types/NotificationSetting/NotificationSettingEventType.js +39 -0
  638. package/Types/NotificationSetting/RoutineEmailEvents.js +12 -0
  639. package/Types/OnCallDutyPolicy/OnCallPageChannel.d.mts +2 -0
  640. package/Types/OnCallDutyPolicy/OnCallPageChannel.d.ts +2 -0
  641. package/Types/OnCallDutyPolicy/OnCallSentLine.d.mts +10 -1
  642. package/Types/OnCallDutyPolicy/OnCallSentLine.d.ts +10 -1
  643. package/Types/OnCallDutyPolicy/OnCallSentLine.js +50 -1
  644. package/Types/OnCallDutyPolicy/OnCallSentLine.mjs +6 -0
  645. package/Types/OnCallDutyPolicy/PagedFirst.d.mts +55 -0
  646. package/Types/OnCallDutyPolicy/PagedFirst.d.ts +55 -0
  647. package/Types/OnCallDutyPolicy/PagedFirst.js +205 -0
  648. package/Types/OnCallDutyPolicy/PagedFirst.mjs +8 -0
  649. package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.d.mts +22 -0
  650. package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.d.ts +22 -0
  651. package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.js +135 -0
  652. package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.mjs +9 -0
  653. package/Types/OpenStack/OpenStackBareMetal.d.mts +3 -0
  654. package/Types/OpenStack/OpenStackBareMetal.d.ts +3 -0
  655. package/Types/OpenStack/OpenStackBareMetal.js +8 -1
  656. package/Types/OpenStack/OpenStackBareMetal.mjs +2 -0
  657. package/Types/OpenStack/OpenStackHealthRules.d.mts +11 -0
  658. package/Types/OpenStack/OpenStackHealthRules.d.ts +11 -0
  659. package/Types/OpenStack/OpenStackHealthRules.js +41 -1
  660. package/Types/OpenStack/OpenStackHealthRules.mjs +4 -0
  661. package/Types/Permission.d.mts +9 -0
  662. package/Types/Permission.d.ts +9 -0
  663. package/Types/Permission.js +104 -0
  664. package/Types/Probe/ProbeCapability.d.mts +3 -1
  665. package/Types/Probe/ProbeCapability.d.ts +3 -1
  666. package/Types/Probe/ProbeCapability.js +21 -1
  667. package/Types/Probe/ProbeCapability.mjs +1 -0
  668. package/Types/Probe/ProbeReportedVersion.d.mts +48 -0
  669. package/Types/Probe/ProbeReportedVersion.d.ts +48 -0
  670. package/Types/Probe/ProbeReportedVersion.js +280 -0
  671. package/Types/Probe/ProbeReportedVersion.mjs +9 -0
  672. package/Types/Product/ProductRecordTables.js +14 -0
  673. package/Types/ProviderLogo/AllProviderLogoMarks.js +2 -0
  674. package/Types/ProviderLogo/Marks/android.d.mts +3 -0
  675. package/Types/ProviderLogo/Marks/android.d.ts +3 -0
  676. package/Types/ProviderLogo/Marks/android.js +15 -0
  677. package/Types/ProviderLogo/Marks/android.mjs +2 -0
  678. package/Types/ProviderLogo/ProviderLogo.d.mts +1 -0
  679. package/Types/ProviderLogo/ProviderLogo.d.ts +1 -0
  680. package/Types/ProviderLogo/ProviderLogo.js +3 -0
  681. package/Types/ProviderLogo/ProviderLogoMarks.js +1 -0
  682. package/Types/Rules/RuleCriteriaFieldRegistry.js +2 -0
  683. package/Types/Rules/RuleCriteriaSubject.d.mts +1 -0
  684. package/Types/Rules/RuleCriteriaSubject.d.ts +1 -0
  685. package/Types/Rules/RuleCriteriaSubject.js +2 -0
  686. package/Types/Rules/RuleRun.d.mts +1 -0
  687. package/Types/Rules/RuleRun.d.ts +1 -0
  688. package/Types/Rules/RuleRun.js +2 -0
  689. package/Types/Rum/MobileAppTelemetry.d.mts +28 -0
  690. package/Types/Rum/MobileAppTelemetry.d.ts +28 -0
  691. package/Types/Rum/MobileAppTelemetry.js +120 -0
  692. package/Types/Rum/MobileAppTelemetry.mjs +21 -0
  693. package/Types/Rum/RumClientKind.d.mts +5 -0
  694. package/Types/Rum/RumClientKind.d.ts +5 -0
  695. package/Types/Rum/RumClientKind.js +57 -0
  696. package/Types/Rum/RumClientKind.mjs +5 -0
  697. package/Types/Rum/SessionReplay.d.mts +3 -0
  698. package/Types/Rum/SessionReplay.d.ts +3 -0
  699. package/Types/Rum/SessionReplay.js +1 -1
  700. package/Types/Rum/SessionReplayFrustrationSignals.d.mts +3 -1
  701. package/Types/Rum/SessionReplayFrustrationSignals.d.ts +3 -1
  702. package/Types/Rum/SessionReplayFrustrationSignals.js +32 -2
  703. package/Types/Rum/SessionReplayFrustrationSignals.mjs +2 -0
  704. package/Types/Rum/SessionReplayPageRules.d.mts +10 -0
  705. package/Types/Rum/SessionReplayPageRules.d.ts +10 -0
  706. package/Types/Rum/SessionReplayPageRules.js +115 -0
  707. package/Types/Rum/SessionReplayPageRules.mjs +7 -0
  708. package/Types/Rum/SessionReplayReadableProperties.d.mts +4 -0
  709. package/Types/Rum/SessionReplayReadableProperties.d.ts +4 -0
  710. package/Types/Rum/SessionReplayReadableProperties.js +64 -0
  711. package/Types/Rum/SessionReplayReadableProperties.mjs +5 -0
  712. package/Types/Rum/SessionReplaySignalMetric.d.mts +10 -0
  713. package/Types/Rum/SessionReplaySignalMetric.d.ts +10 -0
  714. package/Types/Rum/SessionReplaySignalMetric.js +62 -0
  715. package/Types/Rum/SessionReplaySignalMetric.mjs +8 -0
  716. package/Types/SSO/IdentityProviderSignOut.d.mts +17 -1
  717. package/Types/SSO/IdentityProviderSignOut.d.ts +17 -1
  718. package/Types/SSO/IdentityProviderSignOut.js +120 -11
  719. package/Types/SSO/IdentityProviderSignOut.mjs +6 -0
  720. package/Types/SSO/LocalSignInClearing.d.mts +35 -0
  721. package/Types/SSO/LocalSignInClearing.d.ts +35 -0
  722. package/Types/SSO/LocalSignInClearing.js +166 -0
  723. package/Types/SSO/LocalSignInClearing.mjs +19 -0
  724. package/Types/SSO/SignInMethods.d.mts +5 -0
  725. package/Types/SSO/SignInMethods.d.ts +5 -0
  726. package/Types/SSO/SignInMethods.js +29 -1
  727. package/Types/SSO/SignInMethods.mjs +4 -0
  728. package/Types/SSO/SignInSettingsClearedEmail.d.mts +33 -0
  729. package/Types/SSO/SignInSettingsClearedEmail.d.ts +33 -0
  730. package/Types/SSO/SignInSettingsClearedEmail.js +144 -0
  731. package/Types/SSO/SignInSettingsClearedEmail.mjs +8 -0
  732. package/Types/SSO/SsoManagedSignIn.d.mts +23 -0
  733. package/Types/SSO/SsoManagedSignIn.d.ts +23 -0
  734. package/Types/SSO/SsoManagedSignIn.js +205 -0
  735. package/Types/SSO/SsoManagedSignIn.mjs +9 -0
  736. package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.d.mts +50 -0
  737. package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.d.ts +50 -0
  738. package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.js +230 -0
  739. package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.mjs +4 -0
  740. package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +6 -0
  741. package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +6 -0
  742. package/Types/SecurityCase/SecurityCaseEventEvidence.js +17 -1
  743. package/Types/SecurityCase/SecurityCaseMatches.d.mts +8 -1
  744. package/Types/SecurityCase/SecurityCaseMatches.d.ts +8 -1
  745. package/Types/SecurityCase/SecurityCaseMatches.js +8 -1
  746. package/Types/SecurityCase/SecurityConnection.d.mts +7 -0
  747. package/Types/SecurityCase/SecurityConnection.d.ts +7 -0
  748. package/Types/SecurityCase/SecurityConnection.js +45 -2
  749. package/Types/SecurityCase/SecurityConnection.mjs +6 -0
  750. package/Types/SecurityCase/SecurityDetectionMatchedEvents.d.mts +43 -0
  751. package/Types/SecurityCase/SecurityDetectionMatchedEvents.d.ts +43 -0
  752. package/Types/SecurityCase/SecurityDetectionMatchedEvents.js +365 -0
  753. package/Types/SecurityCase/SecurityDetectionMatchedEvents.mjs +20 -0
  754. package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.d.mts +8 -0
  755. package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.d.ts +8 -0
  756. package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.js +1400 -0
  757. package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.mjs +7 -0
  758. package/Types/SecurityEvent/DetectionRuleResponseSteps.d.mts +26 -0
  759. package/Types/SecurityEvent/DetectionRuleResponseSteps.d.ts +26 -0
  760. package/Types/SecurityEvent/DetectionRuleResponseSteps.js +184 -0
  761. package/Types/SecurityEvent/DetectionRuleResponseSteps.mjs +14 -0
  762. package/Types/StatusPage/AnnouncementReach.d.mts +16 -0
  763. package/Types/StatusPage/AnnouncementReach.d.ts +16 -0
  764. package/Types/StatusPage/AnnouncementReach.js +62 -0
  765. package/Types/StatusPage/AnnouncementReach.mjs +2 -0
  766. package/Types/StatusPage/AnnouncementUpdateNotification.d.mts +15 -0
  767. package/Types/StatusPage/AnnouncementUpdateNotification.d.ts +15 -0
  768. package/Types/StatusPage/AnnouncementUpdateNotification.js +92 -0
  769. package/Types/StatusPage/AnnouncementUpdateNotification.mjs +4 -0
  770. package/Types/StatusPage/PickedStatusPagesReach.d.mts +13 -0
  771. package/Types/StatusPage/PickedStatusPagesReach.d.ts +13 -0
  772. package/Types/StatusPage/PickedStatusPagesReach.js +73 -0
  773. package/Types/StatusPage/PickedStatusPagesReach.mjs +2 -0
  774. package/Types/StatusPage/PublicNoteApproval.d.mts +2 -1
  775. package/Types/StatusPage/PublicNoteApproval.d.ts +2 -1
  776. package/Types/StatusPage/PublicNoteApproval.js +11 -5
  777. package/Types/StatusPage/PublicNoteReach.d.mts +26 -0
  778. package/Types/StatusPage/PublicNoteReach.d.ts +26 -0
  779. package/Types/StatusPage/PublicNoteReach.js +144 -0
  780. package/Types/StatusPage/PublicNoteReach.mjs +4 -0
  781. package/Types/StatusPage/SubscriberNotificationPreview.js +9 -3
  782. package/Types/Team/CustomRole.d.mts +5 -0
  783. package/Types/Team/CustomRole.d.ts +5 -0
  784. package/Types/Team/CustomRole.js +19 -2
  785. package/Types/Team/CustomRole.mjs +1 -0
  786. package/Types/Team/InviteSuggestions.d.mts +36 -0
  787. package/Types/Team/InviteSuggestions.d.ts +36 -0
  788. package/Types/Team/InviteSuggestions.js +203 -0
  789. package/Types/Team/InviteSuggestions.mjs +13 -0
  790. package/Types/Telemetry/InventoryLiveness.d.mts +11 -3
  791. package/Types/Telemetry/InventoryLiveness.d.ts +11 -3
  792. package/Types/Telemetry/InventoryLiveness.js +19 -6
  793. package/Types/Telemetry/InventoryLiveness.mjs +1 -0
  794. package/Types/Telemetry/ServiceType.d.mts +1 -0
  795. package/Types/Telemetry/ServiceType.d.ts +1 -0
  796. package/Types/Telemetry/ServiceType.js +8 -0
  797. package/Types/Telemetry/TelemetryIngestSurface.d.mts +2 -1
  798. package/Types/Telemetry/TelemetryIngestSurface.d.ts +2 -1
  799. package/Types/Telemetry/TelemetryIngestSurface.js +9 -0
  800. package/Types/Timezone.d.mts +1 -0
  801. package/Types/Timezone.d.ts +1 -0
  802. package/Types/Timezone.js +1 -0
  803. package/Types/TimezoneAlias.js +11 -6
  804. package/Types/ToolImport/ToolImportNote.d.mts +1 -0
  805. package/Types/ToolImport/ToolImportNote.d.ts +1 -0
  806. package/Types/ToolImport/ToolImportNote.js +5 -0
  807. package/Types/TwoFactorAuthSetup.d.mts +16 -0
  808. package/Types/TwoFactorAuthSetup.d.ts +16 -0
  809. package/Types/TwoFactorAuthSetup.js +64 -0
  810. package/Types/TwoFactorAuthSetup.mjs +6 -0
  811. package/Types/UserAuthenticationStatus.d.mts +3 -0
  812. package/Types/UserAuthenticationStatus.d.ts +3 -0
  813. package/Types/UserSession/SessionEndCause.d.mts +1 -0
  814. package/Types/UserSession/SessionEndCause.d.ts +1 -0
  815. package/Types/UserSession/SessionEndCause.js +10 -2
  816. package/Types/VideoCall/CallSummaryPosts.d.mts +18 -0
  817. package/Types/VideoCall/CallSummaryPosts.d.ts +18 -0
  818. package/Types/VideoCall/CallSummaryPosts.js +106 -0
  819. package/Types/VideoCall/CallSummaryPosts.mjs +2 -0
  820. package/Types/WhatsApp/WhatsAppEventTemplates.d.mts +9 -0
  821. package/Types/WhatsApp/WhatsAppEventTemplates.d.ts +9 -0
  822. package/Types/WhatsApp/WhatsAppEventTemplates.js +117 -0
  823. package/Types/WhatsApp/WhatsAppEventTemplates.mjs +5 -0
  824. package/Types/Workflow/WorkflowRunAs.d.mts +99 -0
  825. package/Types/Workflow/WorkflowRunAs.d.ts +99 -0
  826. package/Types/Workflow/WorkflowRunAs.js +411 -0
  827. package/Types/Workflow/WorkflowRunAs.mjs +39 -0
  828. package/Types/Workspace/WorkspacePostedMessage.d.mts +12 -0
  829. package/Types/Workspace/WorkspacePostedMessage.d.ts +12 -0
  830. package/Types/Workspace/WorkspacePostedMessage.js +57 -0
  831. package/Types/Workspace/WorkspacePostedMessage.mjs +3 -0
  832. package/Utils/AI/MeaningMatch.d.mts +7 -0
  833. package/Utils/AI/MeaningMatch.d.ts +7 -0
  834. package/Utils/AI/MeaningMatch.js +49 -1
  835. package/Utils/AI/MeaningMatch.mjs +1 -0
  836. package/Utils/AiRemediation/KubectlWaitBudget.d.mts +1 -0
  837. package/Utils/AiRemediation/KubectlWaitBudget.d.ts +1 -0
  838. package/Utils/AiRemediation/KubectlWaitBudget.js +19 -0
  839. package/Utils/DataSecurity/OccurrenceExcerpt.d.mts +4 -0
  840. package/Utils/DataSecurity/OccurrenceExcerpt.d.ts +4 -0
  841. package/Utils/DataSecurity/OccurrenceExcerpt.js +30 -0
  842. package/Utils/DataSecurity/OccurrenceExcerpt.mjs +1 -0
  843. package/Utils/DeveloperDocs/AiAssistantExamples.d.mts +2 -1
  844. package/Utils/DeveloperDocs/AiAssistantExamples.d.ts +2 -1
  845. package/Utils/DeveloperDocs/AiAssistantExamples.js +38 -1
  846. package/Utils/DeveloperDocs/AiAssistantExamples.mjs +1 -0
  847. package/Utils/DeveloperDocs/CliCommands.d.mts +14 -0
  848. package/Utils/DeveloperDocs/CliCommands.d.ts +14 -0
  849. package/Utils/DeveloperDocs/CliCommands.js +36 -0
  850. package/Utils/DeveloperDocs/CliCommands.mjs +2 -0
  851. package/Utils/DeveloperDocs/DeleteChoices.d.mts +47 -0
  852. package/Utils/DeveloperDocs/DeleteChoices.d.ts +47 -0
  853. package/Utils/DeveloperDocs/DeleteChoices.js +296 -0
  854. package/Utils/DeveloperDocs/DeleteChoices.mjs +10 -0
  855. package/Utils/DeveloperDocs/ListOrderFacts.d.mts +27 -0
  856. package/Utils/DeveloperDocs/ListOrderFacts.d.ts +27 -0
  857. package/Utils/DeveloperDocs/ListOrderFacts.js +106 -0
  858. package/Utils/DeveloperDocs/ListOrderFacts.mjs +4 -0
  859. package/Utils/DeveloperDocs/TerraformSchema.d.mts +6 -0
  860. package/Utils/DeveloperDocs/TerraformSchema.d.ts +6 -0
  861. package/Utils/DeveloperDocs/TerraformSchema.js +20 -1
  862. package/Utils/DeveloperDocs/TerraformSchema.mjs +1 -0
  863. package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +36 -0
  864. package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +36 -0
  865. package/Utils/GuidedSetup/OnCallPolicyRecords.js +101 -1
  866. package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +8 -0
  867. package/Utils/GuidedSetup/ServiceMonitorRecords.d.mts +58 -0
  868. package/Utils/GuidedSetup/ServiceMonitorRecords.d.ts +58 -0
  869. package/Utils/GuidedSetup/ServiceMonitorRecords.js +163 -0
  870. package/Utils/GuidedSetup/ServiceMonitorRecords.mjs +11 -0
  871. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +12 -0
  872. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +12 -0
  873. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +33 -1
  874. package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +3 -0
  875. package/Utils/Host/AndroidAgentLogSessions.d.mts +63 -0
  876. package/Utils/Host/AndroidAgentLogSessions.d.ts +63 -0
  877. package/Utils/Host/AndroidAgentLogSessions.js +245 -0
  878. package/Utils/Host/AndroidAgentLogSessions.mjs +9 -0
  879. package/Utils/Host/HostOperatingSystem.d.mts +29 -0
  880. package/Utils/Host/HostOperatingSystem.d.ts +29 -0
  881. package/Utils/Host/HostOperatingSystem.js +95 -0
  882. package/Utils/Host/HostOperatingSystem.mjs +4 -0
  883. package/Utils/HostCollector/HostCollectorConfigResolution.d.mts +1 -1
  884. package/Utils/HostCollector/HostCollectorConfigResolution.d.ts +1 -1
  885. package/Utils/HostCollector/HostCollectorConfigResolution.js +12 -2
  886. package/Utils/HostCollector/HostCollectorDefaultConfig.d.mts +5 -0
  887. package/Utils/HostCollector/HostCollectorDefaultConfig.d.ts +5 -0
  888. package/Utils/HostCollector/HostCollectorDefaultConfig.js +90 -4
  889. package/Utils/HostCollector/HostCollectorDefaultConfig.mjs +5 -0
  890. package/Utils/Inventory/InventoryAssetDetails.d.mts +4 -3
  891. package/Utils/Inventory/InventoryAssetDetails.d.ts +4 -3
  892. package/Utils/Inventory/InventoryAssetDetails.js +16 -29
  893. package/Utils/ListOrder.d.mts +71 -11
  894. package/Utils/ListOrder.d.ts +71 -11
  895. package/Utils/ListOrder.js +135 -20
  896. package/Utils/ListOrder.mjs +3 -1
  897. package/Utils/Metrics/MetricLatestReading.d.mts +15 -0
  898. package/Utils/Metrics/MetricLatestReading.d.ts +15 -0
  899. package/Utils/Metrics/MetricLatestReading.js +49 -0
  900. package/Utils/Metrics/MetricLatestReading.mjs +2 -0
  901. package/Utils/Metrics/MetricQueryOverlay.d.mts +24 -0
  902. package/Utils/Metrics/MetricQueryOverlay.d.ts +24 -0
  903. package/Utils/Metrics/MetricQueryOverlay.js +169 -0
  904. package/Utils/Metrics/MetricQueryOverlay.mjs +3 -0
  905. package/Utils/Metrics/RetiredCloudMetricChartMoves.d.mts +11 -0
  906. package/Utils/Metrics/RetiredCloudMetricChartMoves.d.ts +11 -0
  907. package/Utils/Metrics/RetiredCloudMetricChartMoves.js +337 -0
  908. package/Utils/Metrics/RetiredCloudMetricChartMoves.mjs +5 -0
  909. package/Utils/Metrics/RetiredCloudMetricMoves.d.mts +126 -0
  910. package/Utils/Metrics/RetiredCloudMetricMoves.d.ts +126 -0
  911. package/Utils/Metrics/RetiredCloudMetricMoves.js +681 -0
  912. package/Utils/Metrics/RetiredCloudMetricMoves.mjs +26 -0
  913. package/Utils/Metrics/RetiredCloudMetricReads.d.mts +13 -0
  914. package/Utils/Metrics/RetiredCloudMetricReads.d.ts +13 -0
  915. package/Utils/Metrics/RetiredCloudMetricReads.js +176 -0
  916. package/Utils/Metrics/RetiredCloudMetricReads.mjs +12 -0
  917. package/Utils/ModelImportExport.js +9 -0
  918. package/Utils/Monitor/DeviceMonitorDuplicates.js +22 -3
  919. package/Utils/Monitor/DeviceMonitorTemplateUtil.d.mts +11 -1
  920. package/Utils/Monitor/DeviceMonitorTemplateUtil.d.ts +11 -1
  921. package/Utils/Monitor/DeviceMonitorTemplateUtil.js +173 -44
  922. package/Utils/Monitor/DeviceMonitorTemplateUtil.mjs +5 -0
  923. package/Utils/Monitor/DeviceUrlTarget.d.mts +35 -0
  924. package/Utils/Monitor/DeviceUrlTarget.d.ts +35 -0
  925. package/Utils/Monitor/DeviceUrlTarget.js +254 -0
  926. package/Utils/Monitor/DeviceUrlTarget.mjs +9 -0
  927. package/Utils/Monitor/MonitorSecretReferences.d.mts +21 -0
  928. package/Utils/Monitor/MonitorSecretReferences.d.ts +21 -0
  929. package/Utils/Monitor/MonitorSecretReferences.js +162 -0
  930. package/Utils/Monitor/MonitorSecretReferences.mjs +10 -0
  931. package/Utils/Monitor/MonitorSecretTotp.d.mts +40 -0
  932. package/Utils/Monitor/MonitorSecretTotp.d.ts +40 -0
  933. package/Utils/Monitor/MonitorSecretTotp.js +313 -0
  934. package/Utils/Monitor/MonitorSecretTotp.mjs +15 -0
  935. package/Utils/Monitor/MonitorStatusReason.d.mts +44 -0
  936. package/Utils/Monitor/MonitorStatusReason.d.ts +44 -0
  937. package/Utils/Monitor/MonitorStatusReason.js +446 -0
  938. package/Utils/Monitor/MonitorStatusReason.mjs +12 -0
  939. package/Utils/Monitor/MonitorUptimeSummaryUtil.js +7 -6
  940. package/Utils/Monitor/ProbeFailureCauses.d.mts +3 -1
  941. package/Utils/Monitor/ProbeFailureCauses.d.ts +3 -1
  942. package/Utils/Monitor/ProbeFailureCauses.js +14 -3
  943. package/Utils/Monitor/StatusChangeCauseWording.d.mts +15 -0
  944. package/Utils/Monitor/StatusChangeCauseWording.d.ts +15 -0
  945. package/Utils/Monitor/StatusChangeCauseWording.js +129 -0
  946. package/Utils/Monitor/StatusChangeCauseWording.mjs +5 -0
  947. package/Utils/Monitor/StatusChangeNotes.d.mts +15 -0
  948. package/Utils/Monitor/StatusChangeNotes.d.ts +15 -0
  949. package/Utils/Monitor/StatusChangeNotes.js +144 -0
  950. package/Utils/Monitor/StatusChangeNotes.mjs +15 -0
  951. package/Utils/NetworkDevice/DeviceAddressScope.d.mts +71 -0
  952. package/Utils/NetworkDevice/DeviceAddressScope.d.ts +71 -0
  953. package/Utils/NetworkDevice/DeviceAddressScope.js +286 -0
  954. package/Utils/NetworkDevice/DeviceAddressScope.mjs +12 -0
  955. package/Utils/NetworkDevice/MonitorCheckedHost.d.mts +9 -0
  956. package/Utils/NetworkDevice/MonitorCheckedHost.d.ts +9 -0
  957. package/Utils/NetworkDevice/MonitorCheckedHost.js +114 -0
  958. package/Utils/NetworkDevice/MonitorCheckedHost.mjs +4 -0
  959. package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.js +8 -6
  960. package/Utils/NetworkSite/CidrMatchUtil.js +10 -4
  961. package/Utils/Project/ProjectBilling.js +1 -0
  962. package/Utils/Rum/SessionIdentity.d.mts +0 -8
  963. package/Utils/Rum/SessionIdentity.d.ts +0 -8
  964. package/Utils/Rum/SessionIdentity.js +4 -105
  965. package/Utils/Rum/SessionReplayFrustrationSettingsValidation.js +15 -1
  966. package/Utils/Rum/SessionReplayIngestBounds.d.mts +10 -0
  967. package/Utils/Rum/SessionReplayIngestBounds.d.ts +10 -0
  968. package/Utils/Rum/SessionReplayIngestBounds.js +121 -0
  969. package/Utils/Rum/SessionReplayIngestBounds.mjs +2 -0
  970. package/Utils/Rum/SessionReplayPolicyValidation.d.mts +9 -0
  971. package/Utils/Rum/SessionReplayPolicyValidation.d.ts +9 -0
  972. package/Utils/Rum/SessionReplayPolicyValidation.js +97 -0
  973. package/Utils/Rum/SessionReplayPolicyValidation.mjs +6 -0
  974. package/Utils/Schema/ModelSchema.js +20 -4
  975. package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +1 -0
  976. package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +1 -0
  977. package/Utils/SecurityCase/SecurityCaseMarkdown.js +5 -2
  978. package/Utils/SecurityCase/SecurityConnectionMatch.js +23 -8
  979. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +7 -0
  980. package/Utils/SecurityEvent/LogParsers/CloudAuditResources.d.mts +93 -0
  981. package/Utils/SecurityEvent/LogParsers/CloudAuditResources.d.ts +93 -0
  982. package/Utils/SecurityEvent/LogParsers/CloudAuditResources.js +1363 -0
  983. package/Utils/SecurityEvent/LogParsers/CloudAuditResources.mjs +26 -0
  984. package/Utils/SecurityEvent/LogParsers/CloudTrailLogParser.js +3 -0
  985. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.js +7 -0
  986. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +5 -0
  987. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +5 -0
  988. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +79 -1
  989. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +4 -0
  990. package/Utils/SecurityEvent/SecurityRecordReading.d.mts +3 -0
  991. package/Utils/SecurityEvent/SecurityRecordReading.d.ts +3 -0
  992. package/Utils/SecurityEvent/SecurityRecordReading.js +21 -0
  993. package/Utils/SecurityEvent/SecurityRecordReading.mjs +2 -0
  994. package/Utils/SecurityEvent/SecurityTemplateRecords.js +7 -1
  995. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.mts +1 -0
  996. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.ts +1 -0
  997. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.js +31 -4
  998. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.mjs +1 -0
  999. package/Utils/StateOrder.d.mts +25 -7
  1000. package/Utils/StateOrder.d.ts +25 -7
  1001. package/Utils/StateOrder.js +33 -19
  1002. package/Utils/StateOrder.mjs +1 -0
  1003. package/Utils/Storage/StorageUsage.d.mts +31 -0
  1004. package/Utils/Storage/StorageUsage.d.ts +31 -0
  1005. package/Utils/Storage/StorageUsage.js +179 -0
  1006. package/Utils/Storage/StorageUsage.mjs +10 -0
  1007. package/Utils/Suggestions/CodeFixSuggestion.js +3 -2
  1008. package/Utils/Telemetry/CrossSignalScope.d.mts +6 -1
  1009. package/Utils/Telemetry/CrossSignalScope.d.ts +6 -1
  1010. package/Utils/Telemetry/CrossSignalScope.js +19 -1
  1011. package/Utils/Telemetry/CrossSignalScope.mjs +2 -0
  1012. package/Utils/Telemetry/MetricKitCallStack.d.mts +33 -0
  1013. package/Utils/Telemetry/MetricKitCallStack.d.ts +33 -0
  1014. package/Utils/Telemetry/MetricKitCallStack.js +253 -0
  1015. package/Utils/Telemetry/MetricKitCallStack.mjs +4 -0
  1016. package/Utils/Telemetry/MobileAppFaults.d.mts +14 -1
  1017. package/Utils/Telemetry/MobileAppFaults.d.ts +14 -1
  1018. package/Utils/Telemetry/MobileAppFaults.js +149 -15
  1019. package/Utils/Telemetry/MobileAppFaults.mjs +12 -0
  1020. package/Utils/Telemetry/OtlpAnyValue.d.mts +5 -0
  1021. package/Utils/Telemetry/OtlpAnyValue.d.ts +5 -0
  1022. package/Utils/Telemetry/OtlpAnyValue.js +86 -0
  1023. package/Utils/Telemetry/OtlpAnyValue.mjs +5 -0
  1024. package/Utils/Totp/TotpParameters.d.mts +25 -0
  1025. package/Utils/Totp/TotpParameters.d.ts +25 -0
  1026. package/Utils/Totp/TotpParameters.js +99 -0
  1027. package/Utils/Totp/TotpParameters.mjs +14 -0
  1028. package/Utils/Totp/TotpSecret.d.mts +42 -0
  1029. package/Utils/Totp/TotpSecret.d.ts +42 -0
  1030. package/Utils/Totp/TotpSecret.js +327 -0
  1031. package/Utils/Totp/TotpSecret.mjs +21 -0
  1032. package/Utils/VersionUtil.d.mts +1 -0
  1033. package/Utils/VersionUtil.d.ts +1 -0
  1034. package/Utils/VersionUtil.js +26 -0
  1035. package/package.json +3 -2
@@ -0,0 +1,1363 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLOUDTRAIL_EKS_CLUSTER_FIELDS = exports.EC2_RESOURCE_ID_KINDS = exports.CLOUDTRAIL_RESOURCE_FIELDS = exports.MAX_CLOUD_AUDIT_RESOURCE_IDS = void 0;
4
+ exports.isKmsKeyId = isKmsKeyId;
5
+ exports.isCloudFrontDistributionId = isCloudFrontDistributionId;
6
+ exports.buildInventoryAwsArn = buildInventoryAwsArn;
7
+ exports.isEc2ResourceId = isEc2ResourceId;
8
+ exports.buildCatalogAwsArn = buildCatalogAwsArn;
9
+ exports.normalizeAwsArn = normalizeAwsArn;
10
+ exports.readLambdaFunctionName = readLambdaFunctionName;
11
+ exports.readSqsQueueUrl = readSqsQueueUrl;
12
+ exports.readCloudTrailResourceIds = readCloudTrailResourceIds;
13
+ exports.normalizeAzureResourceId = normalizeAzureResourceId;
14
+ exports.getAzureTopLevelResourceId = getAzureTopLevelResourceId;
15
+ exports.readAzureActivityResourceIds = readAzureActivityResourceIds;
16
+ exports.isGoogleApiServiceName = isGoogleApiServiceName;
17
+ exports.normalizeGoogleResourceName = normalizeGoogleResourceName;
18
+ exports.getGoogleTopLevelResourceName = getGoogleTopLevelResourceName;
19
+ exports.getGoogleMonitoredResourceName = getGoogleMonitoredResourceName;
20
+ exports.readGoogleCloudAuditResourceIds = readGoogleCloudAuditResourceIds;
21
+ exports.canServerlessFunctionBeNamedByAuditLog = canServerlessFunctionBeNamedByAuditLog;
22
+ exports.getServerlessFunctionCloudResourceId = getServerlessFunctionCloudResourceId;
23
+ exports.canCloudResourceHaveSecurityEvents = canCloudResourceHaveSecurityEvents;
24
+ exports.isCloudResourceNamedByItsId = isCloudResourceNamedByItsId;
25
+ const AwsRegionCode_1 = require("../../../Types/Cloud/AwsRegionCode");
26
+ const CloudPlatform_1 = require("../../../Types/Cloud/CloudPlatform");
27
+ const CloudLogGroups_1 = require("../../../Types/Cloud/CloudLogGroups");
28
+ const CloudResourceCatalog_1 = require("../../../Types/Cloud/CloudResourceCatalog");
29
+ const CloudMonitoredResource_1 = require("../../../Types/Cloud/CloudMonitoredResource");
30
+ const LookupTable_1 = require("../../LookupTable");
31
+ const SecurityConnectionMatch_1 = require("../../SecurityCase/SecurityConnectionMatch");
32
+ const SecurityRecordReading_1 = require("../SecurityRecordReading");
33
+ /*
34
+ * THE CLOUD RESOURCES AN AUDIT RECORD IS ABOUT (#9779), by the id their
35
+ * Cloud Resource keeps (CloudResource.providerResourceId): an AWS ARN, an
36
+ * Azure resource ID, a Google Cloud full resource name.
37
+ *
38
+ * A cloud's audit log keeps the resource a call was made on, each cloud its
39
+ * own way, and none where a record's scope reads it:
40
+ *
41
+ * - CloudTrail lists some of it in `resources[].ARN`, and names the rest
42
+ * in the call's own parameters - a bucket by `bucketName`, an instance
43
+ * by its id, a function by its name or its ARN - and in what AWS
44
+ * answered (RunInstances' new instances, CreateFunction's ARN);
45
+ * - the Azure Activity Log keeps it in `resourceId`, in whatever case the
46
+ * writer chose (the export writes it in capitals);
47
+ * - Google Cloud's audit logs keep it in `protoPayload.resourceName`,
48
+ * relative to the API that wrote it, and file the entry under the
49
+ * monitored resource it is about (`resource.type` and its labels).
50
+ *
51
+ * Read here into the ids OneUptime keeps, so a parser puts them among the
52
+ * event's observables - what a record's Security card and Security Events
53
+ * page search (Types/SecurityEvent/SecurityEventScope) - and the event
54
+ * reaches the resource's page, its open cases and its risk:
55
+ *
56
+ * - AWS: an ARN as AWS writes it, and the ARN built from a name or an id
57
+ * the way the resource's own row got its - by the cloud catalog
58
+ * (CloudResourceCatalog, through resolveCloudMonitoredResource), or as
59
+ * the inventory builds a VPC's, a subnet's, a security group's and an
60
+ * EKS cluster's - so the two can only be equal for the same resource;
61
+ * - Azure: the resource ID in lower case - Azure's own resource IDs are
62
+ * case-insensitive, and a record's search reads its own ID in lower
63
+ * case among its spellings;
64
+ * - Google Cloud: `//<service>/<resource name>`, and the full resource
65
+ * name the catalog builds from the monitored resource, as the
66
+ * resource's own row and its streamed logs got theirs.
67
+ *
68
+ * A record about a part of a resource is also about the resource: an S3
69
+ * object's bucket, a Lambda version's function, a DynamoDB index's table,
70
+ * a container of an Azure storage account, a role assigned on a Key Vault,
71
+ * a BigQuery table's dataset. That resource is named too.
72
+ *
73
+ * Only an exact id is ever named. A bare name - a bucket called "logs", a
74
+ * function called "api" - is never put among the observables: it could be
75
+ * any resource of that name, in any account, or a host or a user of the
76
+ * same name. A name becomes an ARN only with the account and the Region the
77
+ * record was written in, through the catalog's own template.
78
+ *
79
+ * Every value here was written outside OneUptime - a request parameter is
80
+ * whatever the caller typed - so each is read with loops and slices, never
81
+ * a regular expression, and each walk is bounded.
82
+ */
83
+ // The most cloud resources one record names among its observables.
84
+ exports.MAX_CLOUD_AUDIT_RESOURCE_IDS = SecurityRecordReading_1.MAX_EVENT_RESOURCE_IDS;
85
+ /*
86
+ * The deepest a record's parameters are walked, the most text values read
87
+ * of them and the most objects, lists and values looked at in all.
88
+ */
89
+ const MAX_WALK_DEPTH = 8;
90
+ const MAX_WALK_VALUES = 500;
91
+ const MAX_WALK_NODES = 2000;
92
+ function text(value) {
93
+ if (value === null || value === undefined || typeof value === "object") {
94
+ return "";
95
+ }
96
+ return String(value).trim();
97
+ }
98
+ function asObject(value) {
99
+ return value && typeof value === "object" && !Array.isArray(value)
100
+ ? value
101
+ : null;
102
+ }
103
+ // The ids collected for one record: each once, in order, at most the cap.
104
+ class ResourceIds {
105
+ constructor() {
106
+ this.ids = [];
107
+ this.seen = new Set();
108
+ }
109
+ add(id) {
110
+ const value = (id || "").trim();
111
+ if (!value ||
112
+ value.length > SecurityConnectionMatch_1.MAX_RESOURCE_ID_LENGTH ||
113
+ this.ids.length >= exports.MAX_CLOUD_AUDIT_RESOURCE_IDS ||
114
+ !(0, SecurityConnectionMatch_1.isCloudResourceIdLike)(value) ||
115
+ this.seen.has(value)) {
116
+ return;
117
+ }
118
+ this.seen.add(value);
119
+ this.ids.push(value);
120
+ }
121
+ isFull() {
122
+ return this.ids.length >= exports.MAX_CLOUD_AUDIT_RESOURCE_IDS;
123
+ }
124
+ toArray() {
125
+ return [...this.ids];
126
+ }
127
+ }
128
+ // A KMS key's own id: a UUID, or a multi-Region key's mrk- and 32 hex digits.
129
+ function isKmsKeyId(value) {
130
+ if (value.startsWith("mrk-")) {
131
+ return value.length === 36 && isLowerHex(value.slice(4));
132
+ }
133
+ if (value.length !== 36) {
134
+ return false;
135
+ }
136
+ for (let index = 0; index < value.length; index++) {
137
+ const isDash = value.charCodeAt(index) === 45;
138
+ const shouldBeDash = index === 8 || index === 13 || index === 18 || index === 23;
139
+ if (isDash !== shouldBeDash) {
140
+ return false;
141
+ }
142
+ }
143
+ return isLowerHex(value.split("-").join(""));
144
+ }
145
+ // A CloudFront distribution's id: E and 12 to 13 capital letters and digits.
146
+ function isCloudFrontDistributionId(value) {
147
+ if (!value.startsWith("E") || value.length < 13 || value.length > 14) {
148
+ return false;
149
+ }
150
+ for (let index = 1; index < value.length; index++) {
151
+ const code = value.charCodeAt(index);
152
+ if (!((code >= 48 && code <= 57) || (code >= 65 && code <= 90))) {
153
+ return false;
154
+ }
155
+ }
156
+ return true;
157
+ }
158
+ /*
159
+ * The names and ids CloudTrail records for the resources OneUptime's cloud
160
+ * catalog lists. A resource whose calls always carry its ARN - an SNS
161
+ * topic, an ELBv2 load balancer, a Step Functions state machine, a
162
+ * certificate, an accelerator, an App Runner service, an MSK cluster - is
163
+ * read from that ARN (readCloudTrailArns), and needs no field here.
164
+ */
165
+ exports.CLOUDTRAIL_RESOURCE_FIELDS = [
166
+ {
167
+ eventSource: "s3.amazonaws.com",
168
+ field: "bucketName",
169
+ namespace: "AWS/S3",
170
+ dimension: "BucketName",
171
+ type: "AWS::S3::Bucket",
172
+ },
173
+ {
174
+ eventSource: "rds.amazonaws.com",
175
+ field: "dBInstanceIdentifier",
176
+ namespace: "AWS/RDS",
177
+ dimension: "DBInstanceIdentifier",
178
+ type: "AWS::RDS::DBInstance",
179
+ isLowerCase: true,
180
+ },
181
+ {
182
+ eventSource: "rds.amazonaws.com",
183
+ field: "dBClusterIdentifier",
184
+ namespace: "AWS/RDS",
185
+ dimension: "DBClusterIdentifier",
186
+ type: "AWS::RDS::DBCluster",
187
+ isLowerCase: true,
188
+ },
189
+ {
190
+ eventSource: "dynamodb.amazonaws.com",
191
+ field: "tableName",
192
+ namespace: "AWS/DynamoDB",
193
+ dimension: "TableName",
194
+ type: "AWS::DynamoDB::Table",
195
+ },
196
+ {
197
+ eventSource: "sqs.amazonaws.com",
198
+ field: "queueName",
199
+ namespace: "AWS/SQS",
200
+ dimension: "QueueName",
201
+ type: "AWS::SQS::Queue",
202
+ },
203
+ {
204
+ eventSource: "elasticloadbalancing.amazonaws.com",
205
+ field: "loadBalancerName",
206
+ namespace: "AWS/ELB",
207
+ dimension: "LoadBalancerName",
208
+ type: "AWS::ElasticLoadBalancing::LoadBalancer",
209
+ },
210
+ {
211
+ eventSource: "kinesis.amazonaws.com",
212
+ field: "streamName",
213
+ namespace: "AWS/Kinesis",
214
+ dimension: "StreamName",
215
+ type: "AWS::Kinesis::Stream",
216
+ },
217
+ {
218
+ eventSource: "firehose.amazonaws.com",
219
+ field: "deliveryStreamName",
220
+ namespace: "AWS/Firehose",
221
+ dimension: "DeliveryStreamName",
222
+ type: "AWS::KinesisFirehose::DeliveryStream",
223
+ },
224
+ {
225
+ eventSource: "elasticache.amazonaws.com",
226
+ field: "cacheClusterId",
227
+ namespace: "AWS/ElastiCache",
228
+ dimension: "CacheClusterId",
229
+ type: "AWS::ElastiCache::CacheCluster",
230
+ isLowerCase: true,
231
+ },
232
+ {
233
+ eventSource: "elasticache.amazonaws.com",
234
+ field: "replicationGroupId",
235
+ namespace: "AWS/ElastiCache",
236
+ dimension: "ReplicationGroupId",
237
+ type: "AWS::ElastiCache::ReplicationGroup",
238
+ isLowerCase: true,
239
+ },
240
+ {
241
+ eventSource: "elasticache.amazonaws.com",
242
+ field: "serverlessCacheName",
243
+ namespace: "AWS/ElastiCache",
244
+ dimension: "clusterId",
245
+ type: "AWS::ElastiCache::ServerlessCache",
246
+ isLowerCase: true,
247
+ },
248
+ {
249
+ eventSource: "memorydb.amazonaws.com",
250
+ field: "clusterName",
251
+ namespace: "AWS/MemoryDB",
252
+ dimension: "ClusterName",
253
+ type: "AWS::MemoryDB::Cluster",
254
+ },
255
+ {
256
+ eventSource: "redshift.amazonaws.com",
257
+ field: "clusterIdentifier",
258
+ namespace: "AWS/Redshift",
259
+ dimension: "ClusterIdentifier",
260
+ type: "AWS::Redshift::Cluster",
261
+ isLowerCase: true,
262
+ },
263
+ {
264
+ eventSource: "es.amazonaws.com",
265
+ field: "domainName",
266
+ namespace: "AWS/ES",
267
+ dimension: "DomainName",
268
+ type: "AWS::OpenSearchService::Domain",
269
+ },
270
+ {
271
+ eventSource: "ecs.amazonaws.com",
272
+ field: "cluster",
273
+ namespace: "AWS/ECS",
274
+ dimension: "ClusterName",
275
+ type: "AWS::ECS::Cluster",
276
+ },
277
+ {
278
+ eventSource: "ecs.amazonaws.com",
279
+ field: "clusterName",
280
+ namespace: "AWS/ECS",
281
+ dimension: "ClusterName",
282
+ type: "AWS::ECS::Cluster",
283
+ },
284
+ {
285
+ eventSource: "ecs.amazonaws.com",
286
+ field: "service",
287
+ namespace: "AWS/ECS",
288
+ dimension: "ServiceName",
289
+ type: "AWS::ECS::Service",
290
+ companions: { ClusterName: { field: "cluster", isRequired: true } },
291
+ },
292
+ {
293
+ eventSource: "cloudfront.amazonaws.com",
294
+ field: "distributionId",
295
+ namespace: "AWS/CloudFront",
296
+ dimension: "DistributionId",
297
+ type: "AWS::CloudFront::Distribution",
298
+ accepts: isCloudFrontDistributionId,
299
+ },
300
+ {
301
+ eventSource: "cloudfront.amazonaws.com",
302
+ field: "id",
303
+ namespace: "AWS/CloudFront",
304
+ dimension: "DistributionId",
305
+ type: "AWS::CloudFront::Distribution",
306
+ eventNameIncludes: "Distribution",
307
+ accepts: isCloudFrontDistributionId,
308
+ },
309
+ {
310
+ eventSource: "elasticfilesystem.amazonaws.com",
311
+ field: "fileSystemId",
312
+ namespace: "AWS/EFS",
313
+ dimension: "FileSystemId",
314
+ type: "AWS::EFS::FileSystem",
315
+ },
316
+ {
317
+ eventSource: "fsx.amazonaws.com",
318
+ field: "fileSystemId",
319
+ namespace: "AWS/FSx",
320
+ dimension: "FileSystemId",
321
+ type: "AWS::FSx::FileSystem",
322
+ },
323
+ {
324
+ eventSource: "route53.amazonaws.com",
325
+ field: "healthCheckId",
326
+ namespace: "AWS/Route53",
327
+ dimension: "HealthCheckId",
328
+ type: "AWS::Route53::HealthCheck",
329
+ },
330
+ {
331
+ eventSource: "network-firewall.amazonaws.com",
332
+ field: "firewallName",
333
+ namespace: "AWS/NetworkFirewall",
334
+ dimension: "FirewallName",
335
+ type: "AWS::NetworkFirewall::Firewall",
336
+ },
337
+ {
338
+ eventSource: "glue.amazonaws.com",
339
+ field: "jobName",
340
+ namespace: "Glue",
341
+ dimension: "JobName",
342
+ type: "AWS::Glue::Job",
343
+ fixedDimensions: { JobRunId: "ALL" },
344
+ },
345
+ {
346
+ eventSource: "athena.amazonaws.com",
347
+ field: "workGroup",
348
+ namespace: "AWS/Athena",
349
+ dimension: "WorkGroup",
350
+ type: "AWS::Athena::WorkGroup",
351
+ },
352
+ {
353
+ eventSource: "apigateway.amazonaws.com",
354
+ field: "apiId",
355
+ namespace: "AWS/ApiGateway",
356
+ dimension: "ApiId",
357
+ type: "AWS::ApiGatewayV2::Api",
358
+ },
359
+ {
360
+ eventSource: "appsync.amazonaws.com",
361
+ field: "apiId",
362
+ namespace: "AWS/AppSync",
363
+ dimension: "GraphQLAPIId",
364
+ type: "AWS::AppSync::GraphQLApi",
365
+ },
366
+ {
367
+ eventSource: "kms.amazonaws.com",
368
+ field: "keyId",
369
+ namespace: "AWS/KMS",
370
+ dimension: "KeyId",
371
+ type: "AWS::KMS::Key",
372
+ accepts: isKmsKeyId,
373
+ },
374
+ {
375
+ eventSource: "cognito-idp.amazonaws.com",
376
+ field: "userPoolId",
377
+ namespace: "AWS/Cognito",
378
+ dimension: "UserPool",
379
+ type: "AWS::Cognito::UserPool",
380
+ },
381
+ {
382
+ eventSource: "sagemaker.amazonaws.com",
383
+ field: "endpointName",
384
+ namespace: "AWS/SageMaker",
385
+ dimension: "EndpointName",
386
+ type: "AWS::SageMaker::Endpoint",
387
+ },
388
+ {
389
+ eventSource: "events.amazonaws.com",
390
+ field: "name",
391
+ namespace: "AWS/Events",
392
+ dimension: "RuleName",
393
+ type: "AWS::Events::Rule",
394
+ eventNameIncludes: "Rule",
395
+ companions: {
396
+ EventBusName: { field: "eventBusName", isRequired: false },
397
+ },
398
+ },
399
+ {
400
+ eventSource: "events.amazonaws.com",
401
+ field: "rule",
402
+ namespace: "AWS/Events",
403
+ dimension: "RuleName",
404
+ type: "AWS::Events::Rule",
405
+ companions: {
406
+ EventBusName: { field: "eventBusName", isRequired: false },
407
+ },
408
+ },
409
+ {
410
+ eventSource: "logs.amazonaws.com",
411
+ field: "logGroupName",
412
+ namespace: "AWS/Logs",
413
+ dimension: "LogGroupName",
414
+ type: "AWS::Logs::LogGroup",
415
+ },
416
+ {
417
+ eventSource: "directconnect.amazonaws.com",
418
+ field: "connectionId",
419
+ namespace: "AWS/DX",
420
+ dimension: "ConnectionId",
421
+ type: "AWS::DirectConnect::Connection",
422
+ },
423
+ ];
424
+ /*
425
+ * The ARN of a resource the AWS inventory lists without metrics - a VPC, a
426
+ * subnet, a security group, an EKS cluster - built as the inventory builds
427
+ * it (AwsInventoryCatalog), in the record's account and Region. Null when
428
+ * either is not known.
429
+ */
430
+ function buildInventoryAwsArn(data) {
431
+ const region = data.place.region;
432
+ const accountId = data.place.accountId;
433
+ if (!(0, AwsRegionCode_1.isAwsRegion)(region) || accountId.length !== 12 || !isDigits(accountId)) {
434
+ return null;
435
+ }
436
+ return `arn:${(0, CloudResourceCatalog_1.getAwsPartitionForRegion)(region)}:${data.service}:${region}:${accountId}:${data.resource}`;
437
+ }
438
+ function catalogEc2Kind(data) {
439
+ return {
440
+ prefix: data.prefix,
441
+ type: data.type,
442
+ arn: (id, place) => {
443
+ return buildCatalogAwsArn({
444
+ namespace: data.namespace,
445
+ dimensions: { [data.dimension]: id },
446
+ place,
447
+ type: data.type,
448
+ });
449
+ },
450
+ };
451
+ }
452
+ function inventoryEc2Kind(data) {
453
+ return {
454
+ prefix: data.prefix,
455
+ type: data.type,
456
+ arn: (id, place) => {
457
+ return buildInventoryAwsArn({
458
+ service: "ec2",
459
+ resource: `${data.resource}/${id}`,
460
+ place,
461
+ });
462
+ },
463
+ };
464
+ }
465
+ /*
466
+ * The EC2 ids a record names, in any service's call - an instance a
467
+ * Systems Manager command ran on is named by its id there too, and a
468
+ * security group an RDS database was moved into by its id: the id's
469
+ * prefix says what it is, and its ARN is built as its Cloud Resource's
470
+ * was, by the cloud catalog or the inventory.
471
+ */
472
+ exports.EC2_RESOURCE_ID_KINDS = [
473
+ catalogEc2Kind({
474
+ prefix: "i-",
475
+ namespace: "AWS/EC2",
476
+ dimension: "InstanceId",
477
+ type: "AWS::EC2::Instance",
478
+ }),
479
+ catalogEc2Kind({
480
+ prefix: "vol-",
481
+ namespace: "AWS/EBS",
482
+ dimension: "VolumeId",
483
+ type: "AWS::EC2::Volume",
484
+ }),
485
+ catalogEc2Kind({
486
+ prefix: "nat-",
487
+ namespace: "AWS/NATGateway",
488
+ dimension: "NatGatewayId",
489
+ type: "AWS::EC2::NatGateway",
490
+ }),
491
+ catalogEc2Kind({
492
+ prefix: "tgw-",
493
+ namespace: "AWS/TransitGateway",
494
+ dimension: "TransitGateway",
495
+ type: "AWS::EC2::TransitGateway",
496
+ }),
497
+ catalogEc2Kind({
498
+ prefix: "vpn-",
499
+ namespace: "AWS/VPN",
500
+ dimension: "VpnId",
501
+ type: "AWS::EC2::VPNConnection",
502
+ }),
503
+ inventoryEc2Kind({
504
+ prefix: "sg-",
505
+ type: "AWS::EC2::SecurityGroup",
506
+ resource: "security-group",
507
+ }),
508
+ inventoryEc2Kind({ prefix: "vpc-", type: "AWS::EC2::VPC", resource: "vpc" }),
509
+ inventoryEc2Kind({
510
+ prefix: "subnet-",
511
+ type: "AWS::EC2::Subnet",
512
+ resource: "subnet",
513
+ }),
514
+ ];
515
+ /*
516
+ * The EKS cluster a call names (#9375 lists them): by `name` on the
517
+ * cluster's own calls - UpdateClusterConfig opening its API to the
518
+ * internet - and by `clusterName` on everything inside it - an access
519
+ * entry, a node group, an identity provider.
520
+ */
521
+ exports.CLOUDTRAIL_EKS_CLUSTER_FIELDS = [
522
+ { field: "name", eventNameIncludes: "Cluster" },
523
+ { field: "clusterName" },
524
+ ];
525
+ // An EKS cluster's name: 1 to 100 letters, digits, hyphens and underscores, a letter or digit first.
526
+ function isEksClusterName(value) {
527
+ if (value.length < 1 || value.length > 100) {
528
+ return false;
529
+ }
530
+ for (let index = 0; index < value.length; index++) {
531
+ const code = value.charCodeAt(index);
532
+ const isLetterOrDigit = (code >= 48 && code <= 57) ||
533
+ (code >= 65 && code <= 90) ||
534
+ (code >= 97 && code <= 122);
535
+ if (!isLetterOrDigit && (index === 0 || (code !== 45 && code !== 95))) {
536
+ return false;
537
+ }
538
+ }
539
+ return true;
540
+ }
541
+ function isLowerHex(value) {
542
+ for (let index = 0; index < value.length; index++) {
543
+ const code = value.charCodeAt(index);
544
+ if (!((code >= 48 && code <= 57) || (code >= 97 && code <= 102))) {
545
+ return false;
546
+ }
547
+ }
548
+ return true;
549
+ }
550
+ /*
551
+ * Whether a value is an EC2 id with this prefix: the prefix, then 8 or 17
552
+ * lowercase hex digits, and nothing else - "tgw-attach-..." is an
553
+ * attachment, not a transit gateway.
554
+ */
555
+ function isEc2ResourceId(value, prefix) {
556
+ if (!value.startsWith(prefix)) {
557
+ return false;
558
+ }
559
+ const rest = value.slice(prefix.length);
560
+ return (rest.length === 8 || rest.length === 17) && isLowerHex(rest);
561
+ }
562
+ /*
563
+ * The ARN the cloud catalog builds for a resource of this namespace and
564
+ * these dimensions, in this account and Region - the one its Cloud
565
+ * Resource keeps - or null when the catalog builds none (a resource whose
566
+ * ARN carries an id no call names) or it is not of the type expected.
567
+ */
568
+ function buildCatalogAwsArn(data) {
569
+ const attributes = {
570
+ [CloudMonitoredResource_1.AWS_CLOUDWATCH_NAMESPACE_ATTRIBUTE]: data.namespace,
571
+ };
572
+ if (data.place.accountId) {
573
+ attributes[CloudMonitoredResource_1.CLOUD_ACCOUNT_ID_ATTRIBUTE] = data.place.accountId;
574
+ }
575
+ if (data.place.region) {
576
+ attributes[CloudMonitoredResource_1.CLOUD_REGION_ATTRIBUTE] = data.place.region;
577
+ }
578
+ for (const name of Object.keys(data.dimensions)) {
579
+ const value = (data.dimensions[name] || "").trim();
580
+ if (!value) {
581
+ return null;
582
+ }
583
+ attributes[`${CloudMonitoredResource_1.AWS_CLOUDWATCH_DIMENSION_PREFIX}${name}`] = value;
584
+ }
585
+ const resource = (0, CloudMonitoredResource_1.resolveCloudMonitoredResource)({
586
+ metricName: `${CloudMonitoredResource_1.AWS_CLOUDWATCH_METRIC_NAME_PREFIX}${data.namespace}/CloudTrail`,
587
+ attributes,
588
+ });
589
+ if (!resource ||
590
+ resource.resourceType !== data.type ||
591
+ !(0, CloudMonitoredResource_1.isCloudProviderOwnResourceId)(CloudPlatform_1.CloudProvider.AWS, resource.providerResourceId)) {
592
+ return null;
593
+ }
594
+ return resource.providerResourceId;
595
+ }
596
+ // The ARN's parts: arn, partition, service, region, account and the resource, which may hold colons.
597
+ function splitArn(arn) {
598
+ const parts = [];
599
+ let start = 0;
600
+ for (let index = 0; index < arn.length && parts.length < 5; index++) {
601
+ if (arn.charCodeAt(index) === 58) {
602
+ parts.push(arn.slice(start, index));
603
+ start = index + 1;
604
+ }
605
+ }
606
+ if (parts.length < 5 || parts[0] !== "arn") {
607
+ return null;
608
+ }
609
+ parts.push(arn.slice(start));
610
+ return parts[5] ? parts : null;
611
+ }
612
+ function joinArn(parts, resource) {
613
+ return `${parts.slice(0, 5).join(":")}:${resource}`;
614
+ }
615
+ // The resource part cut at the first `separator` after `from`, or as it is.
616
+ function cutAt(value, separator, from = 0) {
617
+ const at = value.indexOf(separator, from);
618
+ return at === -1 ? value : value.slice(0, at);
619
+ }
620
+ /*
621
+ * An ARN a record names, as the resource OneUptime keeps it: a part of a
622
+ * resource as the resource itself (an S3 object as its bucket, a Lambda
623
+ * version as its function, a DynamoDB index or stream as its table, a
624
+ * Kinesis consumer as its stream, an SNS subscription as its topic, a
625
+ * load balancer's listener or rule as the load balancer, a log group's
626
+ * stream as the log group), any other ARN as it is. Null for an ARN that
627
+ * names no resource - a signed-in session (sts) - or is no ARN.
628
+ */
629
+ function normalizeAwsArn(value) {
630
+ const arn = value.trim();
631
+ if (!(0, SecurityConnectionMatch_1.isCloudResourceIdLike)(arn) || !arn.toLowerCase().startsWith("arn:")) {
632
+ return null;
633
+ }
634
+ const parts = splitArn(arn);
635
+ if (!parts) {
636
+ return null;
637
+ }
638
+ const service = parts[2] || "";
639
+ const resource = parts[5] || "";
640
+ switch (service) {
641
+ case "sts":
642
+ return null;
643
+ case "s3": {
644
+ // An object, or a bucket's own path: the bucket. An access point keeps its Region.
645
+ if (parts[3] || parts[4]) {
646
+ return arn;
647
+ }
648
+ const bucket = cutAt(resource, "/");
649
+ return bucket ? joinArn(parts, bucket) : null;
650
+ }
651
+ case "lambda": {
652
+ // function:<name>[:<version or alias>]
653
+ if (resource.startsWith("function:")) {
654
+ return joinArn(parts, cutAt(resource, ":", "function:".length));
655
+ }
656
+ return arn;
657
+ }
658
+ case "dynamodb": {
659
+ // table/<name>[/index/... | /stream/... | /backup/... | /export/...]
660
+ if (resource.startsWith("table/")) {
661
+ return joinArn(parts, cutAt(resource, "/", "table/".length));
662
+ }
663
+ return arn;
664
+ }
665
+ case "kinesis": {
666
+ if (resource.startsWith("stream/")) {
667
+ return joinArn(parts, cutAt(resource, "/", "stream/".length));
668
+ }
669
+ return arn;
670
+ }
671
+ case "sns": {
672
+ // <topic>[:<subscription id>]
673
+ return joinArn(parts, cutAt(resource, ":"));
674
+ }
675
+ case "logs": {
676
+ // log-group:<name>[:*][:log-stream:<name>]
677
+ if (resource.startsWith("log-group:")) {
678
+ return joinArn(parts, cutAt(resource, ":", "log-group:".length));
679
+ }
680
+ return arn;
681
+ }
682
+ case "elasticloadbalancing": {
683
+ // listener/<type>/<name>/<id>/<listener id>, listener-rule/.../<rule id>
684
+ for (const child of ["listener/", "listener-rule/"]) {
685
+ if (resource.startsWith(child)) {
686
+ const pieces = resource.slice(child.length).split("/");
687
+ return pieces.length >= 3 && pieces[0] && pieces[1] && pieces[2]
688
+ ? joinArn(parts, `loadbalancer/${pieces[0]}/${pieces[1]}/${pieces[2]}`)
689
+ : null;
690
+ }
691
+ }
692
+ return arn;
693
+ }
694
+ default:
695
+ return arn;
696
+ }
697
+ }
698
+ /*
699
+ * A Lambda function's name, from what a call gives in `functionName`: the
700
+ * name, the name with a version or alias, the partial ARN
701
+ * (<account>:function:<name>) or the full ARN. With the account the partial
702
+ * ARN names, when it names one. Null for anything that is not a function's
703
+ * name: 1 to 64 letters, digits, hyphens and underscores.
704
+ */
705
+ function readLambdaFunctionName(value) {
706
+ let rest = value.trim();
707
+ let accountId = "";
708
+ if (rest.startsWith("arn:")) {
709
+ return null;
710
+ }
711
+ const marker = ":function:";
712
+ const at = rest.indexOf(marker);
713
+ if (at !== -1) {
714
+ accountId = rest.slice(0, at);
715
+ rest = rest.slice(at + marker.length);
716
+ if (accountId.length !== 12 || !isDigits(accountId)) {
717
+ return null;
718
+ }
719
+ }
720
+ const name = cutAt(rest, ":");
721
+ if (name.length < 1 || name.length > 64) {
722
+ return null;
723
+ }
724
+ for (let index = 0; index < name.length; index++) {
725
+ const code = name.charCodeAt(index);
726
+ const isAllowed = (code >= 48 && code <= 57) ||
727
+ (code >= 65 && code <= 90) ||
728
+ (code >= 97 && code <= 122) ||
729
+ code === 45 ||
730
+ code === 95;
731
+ if (!isAllowed) {
732
+ return null;
733
+ }
734
+ }
735
+ return { name, accountId };
736
+ }
737
+ function isDigits(value) {
738
+ if (!value) {
739
+ return false;
740
+ }
741
+ for (let index = 0; index < value.length; index++) {
742
+ const code = value.charCodeAt(index);
743
+ if (code < 48 || code > 57) {
744
+ return false;
745
+ }
746
+ }
747
+ return true;
748
+ }
749
+ /*
750
+ * An SQS queue's URL as its name, account and Region:
751
+ * https://sqs.<region>.amazonaws.com/<account>/<name>, the legacy
752
+ * https://<region>.queue.amazonaws.com/... and https://queue.amazonaws.com/...
753
+ * (us-east-1). Null for anything else.
754
+ */
755
+ function readSqsQueueUrl(value) {
756
+ const url = value.trim();
757
+ const scheme = "https://";
758
+ if (!url.toLowerCase().startsWith(scheme) || url.length > 512) {
759
+ return null;
760
+ }
761
+ const rest = url.slice(scheme.length);
762
+ const slash = rest.indexOf("/");
763
+ if (slash === -1) {
764
+ return null;
765
+ }
766
+ const host = rest.slice(0, slash).toLowerCase();
767
+ const path = rest
768
+ .slice(slash + 1)
769
+ .split("/")
770
+ .filter((segment) => {
771
+ return segment.length > 0;
772
+ });
773
+ if (path.length !== 2 || !isDigits(path[0]) || path[0].length !== 12) {
774
+ return null;
775
+ }
776
+ let region = "";
777
+ if (host.startsWith("sqs.")) {
778
+ region = cutAt(host.slice("sqs.".length), ".");
779
+ }
780
+ else if (host === "queue.amazonaws.com") {
781
+ region = "us-east-1";
782
+ }
783
+ else if (host.endsWith(".queue.amazonaws.com")) {
784
+ region = host.slice(0, host.length - ".queue.amazonaws.com".length);
785
+ }
786
+ else {
787
+ return null;
788
+ }
789
+ return region ? { name: path[1], accountId: path[0], region } : null;
790
+ }
791
+ // A value that may be an ARN: its last part, else the value.
792
+ function arnTail(value) {
793
+ if (!value.startsWith("arn:")) {
794
+ return value;
795
+ }
796
+ const slash = value.lastIndexOf("/");
797
+ const colon = value.lastIndexOf(":");
798
+ const cut = Math.max(slash, colon);
799
+ return cut >= 0 ? value.slice(cut + 1) : value;
800
+ }
801
+ /*
802
+ * Every text value of a record's parameters, with the field it is in,
803
+ * nearest first: at most MAX_WALK_VALUES of them, at most MAX_WALK_DEPTH
804
+ * deep, and no more than MAX_WALK_NODES looked at in all, however the
805
+ * record nests.
806
+ */
807
+ function walkValues(root) {
808
+ const values = [];
809
+ const queue = [];
810
+ if (root !== undefined && root !== null) {
811
+ queue.push({ value: root, field: "", depth: 0 });
812
+ }
813
+ for (let next = 0; next < queue.length && values.length < MAX_WALK_VALUES; next++) {
814
+ const { value, field, depth } = queue[next];
815
+ if (typeof value === "string") {
816
+ values.push({ field, value });
817
+ continue;
818
+ }
819
+ if (!value || typeof value !== "object" || depth >= MAX_WALK_DEPTH) {
820
+ continue;
821
+ }
822
+ const children = Array.isArray(value)
823
+ ? value
824
+ .slice(0, MAX_WALK_NODES)
825
+ .map((item) => {
826
+ return { value: item, field };
827
+ })
828
+ : Object.keys(value)
829
+ .slice(0, MAX_WALK_NODES)
830
+ .map((key) => {
831
+ return {
832
+ value: value[key],
833
+ field: key,
834
+ };
835
+ });
836
+ for (const child of children) {
837
+ if (queue.length >= MAX_WALK_NODES) {
838
+ break;
839
+ }
840
+ queue.push({ ...child, depth: depth + 1 });
841
+ }
842
+ }
843
+ return values;
844
+ }
845
+ // A field's value among a record's walked values: the first, of any case of its name.
846
+ function companionValue(values, field) {
847
+ const lower = field.toLowerCase();
848
+ for (const walked of values) {
849
+ if (walked.field.toLowerCase() === lower && walked.value.trim()) {
850
+ return arnTail(walked.value.trim());
851
+ }
852
+ }
853
+ return undefined;
854
+ }
855
+ /*
856
+ * The resources one walked value names, as ARNs: an ARN as the resource it
857
+ * is of, an EC2 id by its prefix, and a field of the table by its name.
858
+ */
859
+ function readValueArns(data) {
860
+ const value = data.walked.value.trim();
861
+ if (!value || value.length > SecurityConnectionMatch_1.MAX_RESOURCE_ID_LENGTH) {
862
+ return [];
863
+ }
864
+ if (value.startsWith("arn:")) {
865
+ const arn = normalizeAwsArn(value);
866
+ return arn ? [arn] : [];
867
+ }
868
+ const arns = [];
869
+ for (const ec2 of exports.EC2_RESOURCE_ID_KINDS) {
870
+ if (isEc2ResourceId(value, ec2.prefix)) {
871
+ const arn = ec2.arn(value, data.place);
872
+ if (arn) {
873
+ arns.push(arn);
874
+ }
875
+ }
876
+ }
877
+ const field = data.walked.field.toLowerCase();
878
+ if (data.eventSource === "eks.amazonaws.com" && isEksClusterName(value)) {
879
+ for (const eks of exports.CLOUDTRAIL_EKS_CLUSTER_FIELDS) {
880
+ if (eks.field.toLowerCase() === field &&
881
+ (!eks.eventNameIncludes ||
882
+ data.eventName.indexOf(eks.eventNameIncludes) !== -1)) {
883
+ const arn = buildInventoryAwsArn({
884
+ service: "eks",
885
+ resource: `cluster/${value}`,
886
+ place: data.place,
887
+ });
888
+ if (arn) {
889
+ arns.push(arn);
890
+ }
891
+ }
892
+ }
893
+ }
894
+ if (data.eventSource === "lambda.amazonaws.com" && field === "functionname") {
895
+ const named = readLambdaFunctionName(value);
896
+ const arn = named
897
+ ? buildCatalogAwsArn({
898
+ namespace: "AWS/Lambda",
899
+ dimensions: { FunctionName: named.name },
900
+ place: {
901
+ accountId: named.accountId || data.place.accountId,
902
+ region: data.place.region,
903
+ },
904
+ type: "AWS::Lambda::Function",
905
+ })
906
+ : null;
907
+ if (arn) {
908
+ arns.push(arn);
909
+ }
910
+ }
911
+ if (data.eventSource === "sqs.amazonaws.com" && field === "queueurl") {
912
+ const queue = readSqsQueueUrl(value);
913
+ const arn = queue
914
+ ? buildCatalogAwsArn({
915
+ namespace: "AWS/SQS",
916
+ dimensions: { QueueName: queue.name },
917
+ place: { accountId: queue.accountId, region: queue.region },
918
+ type: "AWS::SQS::Queue",
919
+ })
920
+ : null;
921
+ if (arn) {
922
+ arns.push(arn);
923
+ }
924
+ }
925
+ for (const entry of exports.CLOUDTRAIL_RESOURCE_FIELDS) {
926
+ if (entry.eventSource !== data.eventSource ||
927
+ entry.field.toLowerCase() !== field ||
928
+ (entry.eventNameIncludes &&
929
+ data.eventName.indexOf(entry.eventNameIncludes) === -1) ||
930
+ (entry.accepts && !entry.accepts(value))) {
931
+ continue;
932
+ }
933
+ const dimensions = {
934
+ ...(entry.fixedDimensions || {}),
935
+ [entry.dimension]: entry.isLowerCase ? value.toLowerCase() : value,
936
+ };
937
+ let isComplete = true;
938
+ for (const [dimension, companion] of Object.entries(entry.companions || {})) {
939
+ const companionText = companionValue(data.all, companion.field);
940
+ if (companionText) {
941
+ dimensions[dimension] = companionText;
942
+ }
943
+ else if (companion.isRequired) {
944
+ isComplete = false;
945
+ }
946
+ }
947
+ const arn = isComplete
948
+ ? buildCatalogAwsArn({
949
+ namespace: entry.namespace,
950
+ dimensions,
951
+ place: data.place,
952
+ type: entry.type,
953
+ })
954
+ : null;
955
+ if (arn) {
956
+ arns.push(arn);
957
+ }
958
+ }
959
+ return arns;
960
+ }
961
+ /*
962
+ * The cloud resources a CloudTrail record is about, as ARNs: the ones it
963
+ * lists in `resources`, then the ones its call names - by ARN, by EC2 id,
964
+ * by a name or an id the cloud catalog knows - then the ones in what AWS
965
+ * answered. Each in the account the call was received in
966
+ * (recipientAccountId) and its Region.
967
+ */
968
+ function readCloudTrailResourceIds(record) {
969
+ const ids = new ResourceIds();
970
+ const eventSource = text(record["eventSource"]).toLowerCase();
971
+ const eventName = text(record["eventName"]);
972
+ const userIdentity = asObject(record["userIdentity"]);
973
+ const place = {
974
+ accountId: text(record["recipientAccountId"]) ||
975
+ text(userIdentity ? userIdentity["accountId"] : undefined),
976
+ region: text(record["awsRegion"]).toLowerCase(),
977
+ };
978
+ const resources = record["resources"];
979
+ if (Array.isArray(resources)) {
980
+ for (const item of resources.slice(0, MAX_WALK_VALUES)) {
981
+ const resource = asObject(item);
982
+ const arn = resource
983
+ ? text(resource["ARN"]) || text(resource["arn"])
984
+ : "";
985
+ ids.add(arn ? normalizeAwsArn(arn) : null);
986
+ }
987
+ }
988
+ for (const part of ["requestParameters", "responseElements"]) {
989
+ if (ids.isFull()) {
990
+ break;
991
+ }
992
+ const walked = walkValues(record[part]);
993
+ for (const value of walked) {
994
+ if (ids.isFull()) {
995
+ break;
996
+ }
997
+ for (const arn of readValueArns({
998
+ walked: value,
999
+ all: walked,
1000
+ eventSource,
1001
+ eventName,
1002
+ place,
1003
+ })) {
1004
+ ids.add(arn);
1005
+ }
1006
+ }
1007
+ }
1008
+ return ids.toArray();
1009
+ }
1010
+ // ---------- Azure: the Activity Log ----------
1011
+ /*
1012
+ * An Azure resource ID as OneUptime compares it: trimmed, without a
1013
+ * trailing slash, in lower case - Azure's resource IDs are
1014
+ * case-insensitive, and the Activity Log's export writes them in capitals.
1015
+ * Null for anything that is not a resource ID under a subscription.
1016
+ */
1017
+ function normalizeAzureResourceId(value) {
1018
+ let id = value.trim();
1019
+ while (id.endsWith("/")) {
1020
+ id = id.slice(0, -1);
1021
+ }
1022
+ const lower = id.toLowerCase();
1023
+ return lower.startsWith("/subscriptions/") && (0, SecurityConnectionMatch_1.isCloudResourceIdLike)(lower)
1024
+ ? lower
1025
+ : null;
1026
+ }
1027
+ /*
1028
+ * The resource an Azure resource ID is a part of, or an extension of: the
1029
+ * first type and name after its first provider - a storage account for its
1030
+ * blob container, a SQL server for its database, a Key Vault for a role
1031
+ * assigned on it. Null when the ID is that resource itself, or names none
1032
+ * (a subscription, a resource group).
1033
+ */
1034
+ function getAzureTopLevelResourceId(id) {
1035
+ // ["", "subscriptions", <id>, ("resourceGroups", <name>,) "providers", ...]
1036
+ const segments = id.split("/");
1037
+ const providers = (segments[3] || "").toLowerCase() === "resourcegroups" ? 5 : 3;
1038
+ // providers/<namespace>/<type>/<name>
1039
+ if ((segments[providers] || "").toLowerCase() !== "providers" ||
1040
+ !segments[providers + 1] ||
1041
+ !segments[providers + 2] ||
1042
+ !segments[providers + 3]) {
1043
+ return null;
1044
+ }
1045
+ const top = segments.slice(0, providers + 4).join("/");
1046
+ return top.length < id.length ? top : null;
1047
+ }
1048
+ /*
1049
+ * The cloud resources an Activity Log record is about, as Azure resource
1050
+ * IDs in lower case: its resourceId, the resource that is a part of, and -
1051
+ * for a Defender for Cloud alert - the resource it was raised on, when the
1052
+ * alert names it by its ID.
1053
+ */
1054
+ function readAzureActivityResourceIds(record) {
1055
+ const ids = new ResourceIds();
1056
+ const properties = asObject(record["properties"]);
1057
+ const candidates = [
1058
+ text(record["resourceId"]),
1059
+ ...(properties
1060
+ ? [
1061
+ text(properties["resourceId"]),
1062
+ text(properties["ResourceId"]),
1063
+ text(properties["compromisedEntity"]),
1064
+ ]
1065
+ : []),
1066
+ ];
1067
+ for (const candidate of candidates) {
1068
+ const id = candidate
1069
+ ? normalizeAzureResourceId(candidate)
1070
+ : null;
1071
+ if (id) {
1072
+ ids.add(id);
1073
+ ids.add(getAzureTopLevelResourceId(id));
1074
+ }
1075
+ }
1076
+ return ids.toArray();
1077
+ }
1078
+ // ---------- Google Cloud: the audit logs ----------
1079
+ // Whether a value is an API's service name: letters, digits, dots and hyphens, ending in .googleapis.com.
1080
+ function isGoogleApiServiceName(value) {
1081
+ if (!value.endsWith(".googleapis.com") ||
1082
+ value.length <= ".googleapis.com".length ||
1083
+ value.length > 253) {
1084
+ return false;
1085
+ }
1086
+ for (let index = 0; index < value.length; index++) {
1087
+ const code = value.charCodeAt(index);
1088
+ const isAllowed = (code >= 48 && code <= 57) ||
1089
+ (code >= 97 && code <= 122) ||
1090
+ code === 45 ||
1091
+ code === 46;
1092
+ if (!isAllowed) {
1093
+ return false;
1094
+ }
1095
+ }
1096
+ return true;
1097
+ }
1098
+ /*
1099
+ * A resource name as the API's full resource name would write it, from
1100
+ * what the audit entry also says of the resource:
1101
+ *
1102
+ * - the project by its id, where the API wrote its number
1103
+ * ("projects/123456789012/secrets/x") and the entry's resource names the
1104
+ * project's id;
1105
+ * - a GKE cluster under its location, as Cloud Asset Inventory names it,
1106
+ * where the older API wrote its zone;
1107
+ * - a Cloud Run service by its project and location, where the Knative
1108
+ * API wrote its namespace ("namespaces/<project>/services/<name>").
1109
+ *
1110
+ * Null for a name that is no single resource's: a project of "-" stands
1111
+ * for any project.
1112
+ */
1113
+ function normalizeGoogleResourceName(data) {
1114
+ const segments = data.resourceName
1115
+ .split("/")
1116
+ .filter((segment) => {
1117
+ return segment.length > 0;
1118
+ });
1119
+ if (segments.length < 2) {
1120
+ return null;
1121
+ }
1122
+ const projectId = data.labels["project_id"] || "";
1123
+ if (segments[1] === "-") {
1124
+ return null;
1125
+ }
1126
+ // The project by its id, where the API wrote its number.
1127
+ if ((segments[0] === "projects" || segments[0] === "namespaces") &&
1128
+ isDigits(segments[1]) &&
1129
+ projectId &&
1130
+ !isDigits(projectId)) {
1131
+ segments[1] = projectId;
1132
+ }
1133
+ if (segments[0] === "projects" &&
1134
+ data.serviceName === "container.googleapis.com" &&
1135
+ segments[2] === "zones") {
1136
+ segments[2] = "locations";
1137
+ }
1138
+ // Knative's namespace is the project: no other API writes one.
1139
+ if (segments[0] === "namespaces") {
1140
+ const location = data.labels["location"] || "";
1141
+ if (data.serviceName !== "run.googleapis.com" || !location) {
1142
+ return null;
1143
+ }
1144
+ return [
1145
+ "projects",
1146
+ segments[1],
1147
+ "locations",
1148
+ location,
1149
+ ...segments.slice(2),
1150
+ ].join("/");
1151
+ }
1152
+ return segments.join("/");
1153
+ }
1154
+ const GOOGLE_LOCATION_COLLECTIONS = [
1155
+ "locations",
1156
+ "zones",
1157
+ "regions",
1158
+ ];
1159
+ /*
1160
+ * The resource a Google Cloud resource name is a part of: its project (or
1161
+ * App Engine app), its location, and the first collection and id after
1162
+ * them - a BigQuery table's dataset, a Spanner database's instance, a Cloud
1163
+ * Storage object's bucket, an App Engine version's service. Null when the
1164
+ * name is that resource itself, or names none (a project).
1165
+ */
1166
+ function getGoogleTopLevelResourceName(name) {
1167
+ const segments = name.split("/");
1168
+ if ((segments[0] !== "projects" && segments[0] !== "apps") || !segments[1]) {
1169
+ return null;
1170
+ }
1171
+ let index = 2;
1172
+ if (GOOGLE_LOCATION_COLLECTIONS.includes(segments[index] || "") &&
1173
+ segments[index + 1]) {
1174
+ index += 2;
1175
+ }
1176
+ else if (segments[index] === "global") {
1177
+ index += 1;
1178
+ }
1179
+ if (!segments[index] || !segments[index + 1]) {
1180
+ return null;
1181
+ }
1182
+ const top = segments.slice(0, index + 2).join("/");
1183
+ return top.length < name.length ? top : null;
1184
+ }
1185
+ // A LogEntry's monitored resource labels, as text, each key the label's own.
1186
+ function readLabels(value) {
1187
+ const labels = {};
1188
+ const object = asObject(value);
1189
+ if (!object) {
1190
+ return labels;
1191
+ }
1192
+ for (const key of Object.keys(object).slice(0, 50)) {
1193
+ const item = text(object[key]);
1194
+ if (item && key.length <= 256) {
1195
+ (0, LookupTable_1.writeOwnValue)(labels, key, item);
1196
+ }
1197
+ }
1198
+ return labels;
1199
+ }
1200
+ /*
1201
+ * The full resource name the cloud catalog gives the monitored resource an
1202
+ * entry is filed under - the one its Cloud Resource and its streamed logs
1203
+ * carry - or null for a type the catalog has no full name for.
1204
+ */
1205
+ function getGoogleMonitoredResourceName(data) {
1206
+ if (!data.type) {
1207
+ return null;
1208
+ }
1209
+ const attributes = {
1210
+ [CloudMonitoredResource_1.GCP_RESOURCE_TYPE_ATTRIBUTE]: data.type,
1211
+ };
1212
+ for (const key of Object.keys(data.labels)) {
1213
+ attributes[`resource.${key}`] = data.labels[key];
1214
+ }
1215
+ const resource = (0, CloudMonitoredResource_1.resolveCloudMonitoredResource)({
1216
+ metricName: `logging.googleapis.com/${data.type}`,
1217
+ attributes,
1218
+ });
1219
+ return resource &&
1220
+ (0, CloudMonitoredResource_1.isCloudProviderOwnResourceId)(CloudPlatform_1.CloudProvider.GCP, resource.providerResourceId)
1221
+ ? resource.providerResourceId
1222
+ : null;
1223
+ }
1224
+ /*
1225
+ * The cloud resources a Google Cloud audit entry is about, as full
1226
+ * resource names: its resourceName under its API's service
1227
+ * (//<service>/<name>), the resource that is a part of, and the monitored
1228
+ * resource the entry is filed under, as the catalog names it.
1229
+ */
1230
+ function readGoogleCloudAuditResourceIds(data) {
1231
+ const ids = new ResourceIds();
1232
+ const serviceName = text(data.payload["serviceName"]).toLowerCase();
1233
+ const resourceName = text(data.payload["resourceName"]);
1234
+ const monitored = asObject(data.entry["resource"]);
1235
+ const labels = readLabels(monitored ? monitored["labels"] : undefined);
1236
+ if (resourceName.startsWith("//")) {
1237
+ ids.add(resourceName);
1238
+ }
1239
+ else if (resourceName && isGoogleApiServiceName(serviceName)) {
1240
+ const name = normalizeGoogleResourceName({
1241
+ serviceName,
1242
+ resourceName,
1243
+ labels,
1244
+ });
1245
+ if (name) {
1246
+ ids.add(`//${serviceName}/${name}`);
1247
+ const top = getGoogleTopLevelResourceName(name);
1248
+ if (top) {
1249
+ ids.add(`//${serviceName}/${top}`);
1250
+ }
1251
+ }
1252
+ }
1253
+ ids.add(getGoogleMonitoredResourceName({
1254
+ type: text(monitored ? monitored["type"] : undefined),
1255
+ labels,
1256
+ }));
1257
+ return ids.toArray();
1258
+ }
1259
+ // ---------- A serverless function's own id ----------
1260
+ // A Lambda function: by its platform, or an AWS function whose platform was not reported.
1261
+ function isLambdaFunction(data) {
1262
+ const platform = (0, CloudPlatform_1.normalizeCloudPlatform)(data.cloudPlatform) || "";
1263
+ const provider = (data.cloudProvider || "").trim().toLowerCase();
1264
+ return (platform === CloudPlatform_1.FaasCloudPlatform.AwsLambda ||
1265
+ (!platform && provider === CloudPlatform_1.CloudProvider.AWS));
1266
+ }
1267
+ /*
1268
+ * Whether a function's cloud's audit log can name it once its telemetry
1269
+ * says its account and Region: an AWS Lambda function's or a Google Cloud
1270
+ * function's, never an Azure function's (getServerlessFunctionCloudResourceId).
1271
+ */
1272
+ function canServerlessFunctionBeNamedByAuditLog(data) {
1273
+ return (isLambdaFunction(data) ||
1274
+ (0, CloudPlatform_1.normalizeCloudPlatform)(data.cloudPlatform) ===
1275
+ CloudPlatform_1.FaasCloudPlatform.GcpCloudFunctions);
1276
+ }
1277
+ /*
1278
+ * A serverless function's id at its cloud, the way an audit record names
1279
+ * it (#9780) - or null where its telemetry does not say it in full:
1280
+ *
1281
+ * - an AWS Lambda function: its ARN, from its account, its Region and
1282
+ * its name (faas.name), through the cloud catalog's own template, as
1283
+ * its Cloud Resource keeps it. A Lambda layer that reports no account
1284
+ * id leaves it unsaid, and nothing is guessed;
1285
+ * - a Google Cloud function: its full resource name, from its project,
1286
+ * its Region and its name;
1287
+ * - an Azure function: none. Its resource ID holds its resource group,
1288
+ * which no telemetry of a function reports, so the Activity Log's
1289
+ * records about it reach its Function App's own page in Cloud.
1290
+ */
1291
+ function getServerlessFunctionCloudResourceId(data) {
1292
+ const name = (data.functionIdentifier || "").trim();
1293
+ const platform = (0, CloudPlatform_1.normalizeCloudPlatform)(data.cloudPlatform) || "";
1294
+ const region = (data.cloudRegion || "").trim().toLowerCase();
1295
+ const accountId = (data.cloudAccountId || "").trim();
1296
+ if (!name || !region || !accountId) {
1297
+ return null;
1298
+ }
1299
+ if (isLambdaFunction(data)) {
1300
+ const named = readLambdaFunctionName(name);
1301
+ if (!named ||
1302
+ named.accountId ||
1303
+ named.name !== name ||
1304
+ accountId.length !== 12 ||
1305
+ !isDigits(accountId) ||
1306
+ !(0, AwsRegionCode_1.isAwsRegion)(region)) {
1307
+ return null;
1308
+ }
1309
+ return buildCatalogAwsArn({
1310
+ namespace: "AWS/Lambda",
1311
+ dimensions: { FunctionName: named.name },
1312
+ place: { accountId, region },
1313
+ type: "AWS::Lambda::Function",
1314
+ });
1315
+ }
1316
+ if (platform === CloudPlatform_1.FaasCloudPlatform.GcpCloudFunctions) {
1317
+ return getGoogleMonitoredResourceName({
1318
+ type: "cloud_function",
1319
+ labels: { project_id: accountId, region, function_name: name },
1320
+ });
1321
+ }
1322
+ return null;
1323
+ }
1324
+ // ---------- Which cloud resources have security events of their own ----------
1325
+ /*
1326
+ * Whether a cloud resource can have security events of its own (#9779),
1327
+ * and so a Security Events page - by the identities its Security card
1328
+ * counts by (ResourceSecurity):
1329
+ *
1330
+ * - an ID its cloud's audit log names it by: an ARN, an Azure resource
1331
+ * ID, a Google Cloud full resource name (isCloudResourceNamedByItsId);
1332
+ * - logs of its own, which its connection's stream files under it,
1333
+ * stamped with its ID;
1334
+ * - a name or address it answers on (its endpoints), which any source
1335
+ * can name it by.
1336
+ *
1337
+ * A resource OneUptime knows only by a readable stand-in its metrics give
1338
+ * it ("AWS/AmazonMQ Broker=orders", a Google Cloud VPN gateway's labels),
1339
+ * that sends no logs of its own and answers on no name or address of its
1340
+ * own, has none of them: no record names the stand-in, and nothing else is
1341
+ * its. It has no page, rather than one that would always be empty.
1342
+ */
1343
+ function canCloudResourceHaveSecurityEvents(data) {
1344
+ const provider = (data.provider || "").toLowerCase();
1345
+ const id = (data.providerResourceId || "").trim();
1346
+ const endpoints = (0, SecurityConnectionMatch_1.readCloudEndpointHosts)(data.cloudEndpoints);
1347
+ if (endpoints.names.length > 0 || endpoints.addresses.length > 0) {
1348
+ return true;
1349
+ }
1350
+ if (!id) {
1351
+ return false;
1352
+ }
1353
+ return (isCloudResourceNamedByItsId(id) ||
1354
+ (0, CloudLogGroups_1.canCloudResourceHaveStreamedLogs)({ provider, type: data.type }));
1355
+ }
1356
+ /*
1357
+ * Whether a cloud resource's audit log can name it: its row keeps its own
1358
+ * ID at its cloud, as ResourceSecurity searches for it, not a readable
1359
+ * stand-in no record names.
1360
+ */
1361
+ function isCloudResourceNamedByItsId(providerResourceId) {
1362
+ return (0, SecurityConnectionMatch_1.isCloudResourceIdLike)(providerResourceId);
1363
+ }