@oneuptime/common 14.0.97 → 14.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (593) hide show
  1. package/Models/DatabaseModels/CloudAccount.d.mts +8 -0
  2. package/Models/DatabaseModels/CloudAccount.d.ts +8 -0
  3. package/Models/DatabaseModels/CloudAccount.js +167 -0
  4. package/Models/DatabaseModels/CloudAccountFeed.d.mts +27 -0
  5. package/Models/DatabaseModels/CloudAccountFeed.d.ts +27 -0
  6. package/Models/DatabaseModels/CloudAccountFeed.js +557 -0
  7. package/Models/DatabaseModels/CloudAccountFeed.mjs +3 -0
  8. package/Models/DatabaseModels/CodeRepository.d.mts +3 -0
  9. package/Models/DatabaseModels/CodeRepository.d.ts +3 -0
  10. package/Models/DatabaseModels/CodeRepository.js +104 -0
  11. package/Models/DatabaseModels/DataSecurityCheckSetting.d.mts +17 -0
  12. package/Models/DatabaseModels/DataSecurityCheckSetting.d.ts +17 -0
  13. package/Models/DatabaseModels/DataSecurityCheckSetting.js +304 -0
  14. package/Models/DatabaseModels/DataSecurityCheckSetting.mjs +2 -0
  15. package/Models/DatabaseModels/DataSecurityCustomDataType.d.mts +25 -0
  16. package/Models/DatabaseModels/DataSecurityCustomDataType.d.ts +25 -0
  17. package/Models/DatabaseModels/DataSecurityCustomDataType.js +431 -0
  18. package/Models/DatabaseModels/DataSecurityCustomDataType.mjs +2 -0
  19. package/Models/DatabaseModels/DataSecurityFlow.d.mts +26 -0
  20. package/Models/DatabaseModels/DataSecurityFlow.d.ts +26 -0
  21. package/Models/DatabaseModels/DataSecurityFlow.js +456 -0
  22. package/Models/DatabaseModels/DataSecurityFlow.mjs +2 -0
  23. package/Models/DatabaseModels/DataSecurityIssue.d.mts +49 -0
  24. package/Models/DatabaseModels/DataSecurityIssue.d.ts +49 -0
  25. package/Models/DatabaseModels/DataSecurityIssue.js +797 -0
  26. package/Models/DatabaseModels/DataSecurityIssue.mjs +2 -0
  27. package/Models/DatabaseModels/DataSecurityIssueFeed.d.mts +43 -0
  28. package/Models/DatabaseModels/DataSecurityIssueFeed.d.ts +43 -0
  29. package/Models/DatabaseModels/DataSecurityIssueFeed.js +382 -0
  30. package/Models/DatabaseModels/DataSecurityIssueFeed.mjs +3 -0
  31. package/Models/DatabaseModels/DataSecurityResidencyRule.d.mts +18 -0
  32. package/Models/DatabaseModels/DataSecurityResidencyRule.d.ts +18 -0
  33. package/Models/DatabaseModels/DataSecurityResidencyRule.js +331 -0
  34. package/Models/DatabaseModels/DataSecurityResidencyRule.mjs +2 -0
  35. package/Models/DatabaseModels/DataSecurityScan.d.mts +29 -0
  36. package/Models/DatabaseModels/DataSecurityScan.d.ts +29 -0
  37. package/Models/DatabaseModels/DataSecurityScan.js +520 -0
  38. package/Models/DatabaseModels/DataSecurityScan.mjs +2 -0
  39. package/Models/DatabaseModels/DataSecuritySetting.d.mts +35 -0
  40. package/Models/DatabaseModels/DataSecuritySetting.d.ts +35 -0
  41. package/Models/DatabaseModels/DataSecuritySetting.js +631 -0
  42. package/Models/DatabaseModels/DataSecuritySetting.mjs +2 -0
  43. package/Models/DatabaseModels/DataStore.d.mts +83 -0
  44. package/Models/DatabaseModels/DataStore.d.ts +83 -0
  45. package/Models/DatabaseModels/DataStore.js +1343 -0
  46. package/Models/DatabaseModels/DataStore.mjs +2 -0
  47. package/Models/DatabaseModels/DataStoreAccess.d.mts +22 -0
  48. package/Models/DatabaseModels/DataStoreAccess.d.ts +22 -0
  49. package/Models/DatabaseModels/DataStoreAccess.js +407 -0
  50. package/Models/DatabaseModels/DataStoreAccess.mjs +2 -0
  51. package/Models/DatabaseModels/DataStoreFeed.d.mts +36 -0
  52. package/Models/DatabaseModels/DataStoreFeed.d.ts +36 -0
  53. package/Models/DatabaseModels/DataStoreFeed.js +613 -0
  54. package/Models/DatabaseModels/DataStoreFeed.mjs +3 -0
  55. package/Models/DatabaseModels/DataStoreFinding.d.mts +38 -0
  56. package/Models/DatabaseModels/DataStoreFinding.d.ts +38 -0
  57. package/Models/DatabaseModels/DataStoreFinding.js +683 -0
  58. package/Models/DatabaseModels/DataStoreFinding.mjs +2 -0
  59. package/Models/DatabaseModels/DataStoreLabelRule.d.mts +21 -0
  60. package/Models/DatabaseModels/DataStoreLabelRule.d.ts +21 -0
  61. package/Models/DatabaseModels/DataStoreLabelRule.js +623 -0
  62. package/Models/DatabaseModels/DataStoreLabelRule.mjs +2 -0
  63. package/Models/DatabaseModels/DataStoreOwnerRule.d.mts +24 -0
  64. package/Models/DatabaseModels/DataStoreOwnerRule.d.ts +24 -0
  65. package/Models/DatabaseModels/DataStoreOwnerRule.js +714 -0
  66. package/Models/DatabaseModels/DataStoreOwnerRule.mjs +2 -0
  67. package/Models/DatabaseModels/DataStoreOwnerTeam.d.mts +19 -0
  68. package/Models/DatabaseModels/DataStoreOwnerTeam.d.ts +19 -0
  69. package/Models/DatabaseModels/DataStoreOwnerTeam.js +477 -0
  70. package/Models/DatabaseModels/DataStoreOwnerTeam.mjs +2 -0
  71. package/Models/DatabaseModels/DataStoreOwnerUser.d.mts +18 -0
  72. package/Models/DatabaseModels/DataStoreOwnerUser.d.ts +18 -0
  73. package/Models/DatabaseModels/DataStoreOwnerUser.js +476 -0
  74. package/Models/DatabaseModels/DataStoreOwnerUser.mjs +2 -0
  75. package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
  76. package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
  77. package/Models/DatabaseModels/GlobalConfig.js +110 -0
  78. package/Models/DatabaseModels/Index.js +37 -0
  79. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +1 -0
  80. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +1 -0
  81. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +43 -0
  82. package/Models/DatabaseModels/ResourceAiAgent.js +3 -1
  83. package/Models/DatabaseModels/SecurityCaseEvidence.d.mts +4 -0
  84. package/Models/DatabaseModels/SecurityCaseEvidence.d.ts +4 -0
  85. package/Models/DatabaseModels/SecurityCaseEvidence.js +64 -5
  86. package/Models/DatabaseModels/SecurityEntityCriticality.js +7 -6
  87. package/Models/DatabaseModels/SecurityEntityRisk.js +2 -2
  88. package/Models/DatabaseModels/SecurityHunt.d.mts +34 -0
  89. package/Models/DatabaseModels/SecurityHunt.d.ts +34 -0
  90. package/Models/DatabaseModels/SecurityHunt.js +608 -0
  91. package/Models/DatabaseModels/SecurityHunt.mjs +2 -0
  92. package/Models/DatabaseModels/TelemetryException.d.mts +5 -0
  93. package/Models/DatabaseModels/TelemetryException.d.ts +5 -0
  94. package/Models/DatabaseModels/TelemetryException.js +170 -8
  95. package/Types/AI/AIChatPageContext.d.mts +4 -1
  96. package/Types/AI/AIChatPageContext.d.ts +4 -1
  97. package/Types/AI/AIChatPageContext.js +7 -0
  98. package/Types/AI/AIChatTypes.d.mts +7 -1
  99. package/Types/AI/AIChatTypes.d.ts +7 -1
  100. package/Types/AI/AIChatTypes.js +9 -0
  101. package/Types/AI/AIRunEventType.d.mts +1 -0
  102. package/Types/AI/AIRunEventType.d.ts +1 -0
  103. package/Types/AI/AIRunEventType.js +8 -0
  104. package/Types/AI/AiAffectedResources.js +5 -3
  105. package/Types/AI/AiTokenCount.d.mts +22 -1
  106. package/Types/AI/AiTokenCount.d.ts +22 -1
  107. package/Types/AI/AiTokenCount.js +126 -57
  108. package/Types/AI/AiTokenCount.mjs +2 -0
  109. package/Types/AI/CodeFixTaskContext.d.mts +22 -0
  110. package/Types/AI/CodeFixTaskContext.d.ts +22 -0
  111. package/Types/AI/CodeFixTaskContext.js +61 -4
  112. package/Types/AI/CodeFixTaskContext.mjs +2 -0
  113. package/Types/AI/CodeTask.d.mts +2 -0
  114. package/Types/AI/CodeTask.d.ts +2 -0
  115. package/Types/AI/CodeTask.js +4 -0
  116. package/Types/AI/ResourceAiAccessApi.d.mts +1 -0
  117. package/Types/AI/ResourceAiAccessApi.d.ts +1 -0
  118. package/Types/AI/ResourceAiAccessPermissions.js +6 -0
  119. package/Types/AutoRemediation/AiRemediationCommandPlan.d.mts +19 -0
  120. package/Types/AutoRemediation/AiRemediationCommandPlan.d.ts +19 -0
  121. package/Types/AutoRemediation/AiRemediationCommandPlan.js +85 -10
  122. package/Types/AutoRemediation/AiRemediationCommandPlan.mjs +4 -0
  123. package/Types/AutoRemediation/RemediationTryAgain.d.mts +17 -0
  124. package/Types/AutoRemediation/RemediationTryAgain.d.ts +17 -0
  125. package/Types/AutoRemediation/RemediationTryAgain.js +104 -0
  126. package/Types/AutoRemediation/RemediationTryAgain.mjs +6 -0
  127. package/Types/CloudConnection/CloudAiAgentCost.d.mts +19 -0
  128. package/Types/CloudConnection/CloudAiAgentCost.d.ts +19 -0
  129. package/Types/CloudConnection/CloudAiAgentCost.js +95 -0
  130. package/Types/CloudConnection/CloudAiAgentCost.mjs +15 -0
  131. package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +70 -0
  132. package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +70 -0
  133. package/Types/CloudConnection/CloudAiAgentSetupCommands.js +1107 -0
  134. package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +37 -0
  135. package/Types/CloudConnection/CloudConnectionCatalog.d.mts +8 -0
  136. package/Types/CloudConnection/CloudConnectionCatalog.d.ts +8 -0
  137. package/Types/CloudConnection/CloudConnectionCatalog.js +75 -1
  138. package/Types/CloudConnection/CloudConnectionCatalog.mjs +6 -0
  139. package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +48 -4
  140. package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +48 -4
  141. package/Types/CloudConnection/CloudConnectionSetupCommands.js +410 -16
  142. package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +21 -0
  143. package/Types/CodeRepository/CodeHost.d.mts +2 -1
  144. package/Types/CodeRepository/CodeHost.d.ts +2 -1
  145. package/Types/CodeRepository/CodeHost.js +12 -5
  146. package/Types/CodeRepository/CodeRepositorySetting.d.mts +1 -0
  147. package/Types/CodeRepository/CodeRepositorySetting.d.ts +1 -0
  148. package/Types/CodeRepository/CodeRepositorySetting.js +2 -0
  149. package/Types/CodeRepository/ProductionReview.d.mts +7 -0
  150. package/Types/CodeRepository/ProductionReview.d.ts +7 -0
  151. package/Types/CodeRepository/ProductionReview.js +67 -1
  152. package/Types/CodeRepository/ProductionReview.mjs +1 -0
  153. package/Types/DataSecurity/ComplianceFramework.d.mts +21 -0
  154. package/Types/DataSecurity/ComplianceFramework.d.ts +21 -0
  155. package/Types/DataSecurity/ComplianceFramework.js +97 -0
  156. package/Types/DataSecurity/ComplianceFramework.mjs +5 -0
  157. package/Types/DataSecurity/ComplianceRequirementCatalog.d.mts +41 -0
  158. package/Types/DataSecurity/ComplianceRequirementCatalog.d.ts +41 -0
  159. package/Types/DataSecurity/ComplianceRequirementCatalog.js +199 -0
  160. package/Types/DataSecurity/ComplianceRequirementCatalog.mjs +7 -0
  161. package/Types/DataSecurity/DataCategory.d.mts +15 -0
  162. package/Types/DataSecurity/DataCategory.d.ts +15 -0
  163. package/Types/DataSecurity/DataCategory.js +61 -0
  164. package/Types/DataSecurity/DataCategory.mjs +7 -0
  165. package/Types/DataSecurity/DataConfidence.d.mts +11 -0
  166. package/Types/DataSecurity/DataConfidence.d.ts +11 -0
  167. package/Types/DataSecurity/DataConfidence.js +49 -0
  168. package/Types/DataSecurity/DataConfidence.mjs +7 -0
  169. package/Types/DataSecurity/DataSecurityApiTypes.d.mts +106 -0
  170. package/Types/DataSecurity/DataSecurityApiTypes.d.ts +106 -0
  171. package/Types/DataSecurity/DataSecurityApiTypes.js +53 -0
  172. package/Types/DataSecurity/DataSecurityApiTypes.mjs +3 -0
  173. package/Types/DataSecurity/DataSecurityCheckCatalog.d.mts +93 -0
  174. package/Types/DataSecurity/DataSecurityCheckCatalog.d.ts +93 -0
  175. package/Types/DataSecurity/DataSecurityCheckCatalog.js +1183 -0
  176. package/Types/DataSecurity/DataSecurityCheckCatalog.mjs +10 -0
  177. package/Types/DataSecurity/DataSecurityIssueStatus.d.mts +10 -0
  178. package/Types/DataSecurity/DataSecurityIssueStatus.d.ts +10 -0
  179. package/Types/DataSecurity/DataSecurityIssueStatus.js +38 -0
  180. package/Types/DataSecurity/DataSecurityIssueStatus.mjs +5 -0
  181. package/Types/DataSecurity/DataSecurityResidency.d.mts +21 -0
  182. package/Types/DataSecurity/DataSecurityResidency.d.ts +21 -0
  183. package/Types/DataSecurity/DataSecurityResidency.js +92 -0
  184. package/Types/DataSecurity/DataSecurityResidency.mjs +5 -0
  185. package/Types/DataSecurity/DataSecurityResponseAction.d.mts +14 -0
  186. package/Types/DataSecurity/DataSecurityResponseAction.d.ts +14 -0
  187. package/Types/DataSecurity/DataSecurityResponseAction.js +115 -0
  188. package/Types/DataSecurity/DataSecurityResponseAction.mjs +11 -0
  189. package/Types/DataSecurity/DataSecurityRisk.d.mts +38 -0
  190. package/Types/DataSecurity/DataSecurityRisk.d.ts +38 -0
  191. package/Types/DataSecurity/DataSecurityRisk.js +138 -0
  192. package/Types/DataSecurity/DataSecurityRisk.mjs +7 -0
  193. package/Types/DataSecurity/DataSensitivity.d.mts +13 -0
  194. package/Types/DataSecurity/DataSensitivity.d.ts +13 -0
  195. package/Types/DataSecurity/DataSensitivity.js +68 -0
  196. package/Types/DataSecurity/DataSensitivity.mjs +8 -0
  197. package/Types/DataSecurity/DataStoreAccess.d.mts +27 -0
  198. package/Types/DataSecurity/DataStoreAccess.d.ts +27 -0
  199. package/Types/DataSecurity/DataStoreAccess.js +35 -0
  200. package/Types/DataSecurity/DataStoreAccess.mjs +4 -0
  201. package/Types/DataSecurity/DataStoreEnvironment.d.mts +11 -0
  202. package/Types/DataSecurity/DataStoreEnvironment.d.ts +11 -0
  203. package/Types/DataSecurity/DataStoreEnvironment.js +80 -0
  204. package/Types/DataSecurity/DataStoreEnvironment.mjs +5 -0
  205. package/Types/DataSecurity/DataStoreKey.d.mts +18 -0
  206. package/Types/DataSecurity/DataStoreKey.d.ts +18 -0
  207. package/Types/DataSecurity/DataStoreKey.js +49 -0
  208. package/Types/DataSecurity/DataStoreKey.mjs +7 -0
  209. package/Types/DataSecurity/DataStoreKind.d.mts +67 -0
  210. package/Types/DataSecurity/DataStoreKind.d.ts +67 -0
  211. package/Types/DataSecurity/DataStoreKind.js +230 -0
  212. package/Types/DataSecurity/DataStoreKind.mjs +10 -0
  213. package/Types/DataSecurity/DataStorePosture.d.mts +40 -0
  214. package/Types/DataSecurity/DataStorePosture.d.ts +40 -0
  215. package/Types/DataSecurity/DataStorePosture.js +100 -0
  216. package/Types/DataSecurity/DataStorePosture.mjs +7 -0
  217. package/Types/DataSecurity/DataTypeCatalog.d.mts +17 -0
  218. package/Types/DataSecurity/DataTypeCatalog.d.ts +17 -0
  219. package/Types/DataSecurity/DataTypeCatalog.js +434 -0
  220. package/Types/DataSecurity/DataTypeCatalog.mjs +4 -0
  221. package/Types/Email/EmailTemplateType.d.mts +2 -0
  222. package/Types/Email/EmailTemplateType.d.ts +2 -0
  223. package/Types/Email/EmailTemplateType.js +8 -0
  224. package/Types/Link.d.mts +1 -0
  225. package/Types/Link.d.ts +1 -0
  226. package/Types/Monitor/CephAlertTemplates.d.mts +2 -1
  227. package/Types/Monitor/CephAlertTemplates.d.ts +2 -1
  228. package/Types/Monitor/CephAlertTemplates.js +49 -0
  229. package/Types/Monitor/CephAlertTemplates.mjs +1 -0
  230. package/Types/Monitor/DockerAlertTemplates.d.mts +2 -1
  231. package/Types/Monitor/DockerAlertTemplates.d.ts +2 -1
  232. package/Types/Monitor/DockerAlertTemplates.js +109 -37
  233. package/Types/Monitor/DockerAlertTemplates.mjs +1 -0
  234. package/Types/Monitor/DockerMetricCatalog.d.mts +1 -0
  235. package/Types/Monitor/DockerMetricCatalog.d.ts +1 -0
  236. package/Types/Monitor/DockerMetricCatalog.js +26 -52
  237. package/Types/Monitor/DockerSwarmAlertTemplates.d.mts +1 -0
  238. package/Types/Monitor/DockerSwarmAlertTemplates.d.ts +1 -0
  239. package/Types/Monitor/DockerSwarmAlertTemplates.js +65 -8
  240. package/Types/Monitor/DockerSwarmAlertTemplates.mjs +1 -0
  241. package/Types/Monitor/DockerSwarmMetricCatalog.js +7 -4
  242. package/Types/Monitor/HostAlertTemplates.d.mts +2 -1
  243. package/Types/Monitor/HostAlertTemplates.d.ts +2 -1
  244. package/Types/Monitor/HostAlertTemplates.js +48 -0
  245. package/Types/Monitor/HostAlertTemplates.mjs +1 -0
  246. package/Types/Monitor/IotAlertTemplates.d.mts +1 -0
  247. package/Types/Monitor/IotAlertTemplates.d.ts +1 -0
  248. package/Types/Monitor/IotAlertTemplates.js +11 -0
  249. package/Types/Monitor/IotAlertTemplates.mjs +1 -0
  250. package/Types/Monitor/KubernetesAlertTemplates.d.mts +49 -1
  251. package/Types/Monitor/KubernetesAlertTemplates.d.ts +49 -1
  252. package/Types/Monitor/KubernetesAlertTemplates.js +392 -75
  253. package/Types/Monitor/KubernetesAlertTemplates.mjs +2 -0
  254. package/Types/Monitor/KubernetesMetricCatalog.js +12 -2
  255. package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.mts +4 -4
  256. package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.ts +4 -4
  257. package/Types/Monitor/MonitorCriteriaInstance.js +107 -10
  258. package/Types/Monitor/MonitorStep.js +50 -3
  259. package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.mts +33 -11
  260. package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.ts +33 -11
  261. package/Types/Monitor/MonitorStepDockerSwarmMonitor.js +65 -0
  262. package/Types/Monitor/MonitorStepKubernetesMonitor.d.mts +6 -0
  263. package/Types/Monitor/MonitorStepKubernetesMonitor.d.ts +6 -0
  264. package/Types/Monitor/MonitorStepKubernetesMonitor.js +38 -1
  265. package/Types/Monitor/MonitorStepKubernetesMonitor.mjs +2 -0
  266. package/Types/Monitor/MonitorType.d.mts +1 -0
  267. package/Types/Monitor/MonitorType.d.ts +1 -0
  268. package/Types/Monitor/MonitorType.js +18 -0
  269. package/Types/Monitor/PodmanAlertTemplates.d.mts +12 -1
  270. package/Types/Monitor/PodmanAlertTemplates.d.ts +12 -1
  271. package/Types/Monitor/PodmanAlertTemplates.js +161 -33
  272. package/Types/Monitor/PodmanAlertTemplates.mjs +2 -0
  273. package/Types/Monitor/PodmanMetricCatalog.d.mts +1 -0
  274. package/Types/Monitor/PodmanMetricCatalog.d.ts +1 -0
  275. package/Types/Monitor/PodmanMetricCatalog.js +26 -52
  276. package/Types/Monitor/ProxmoxAlertTemplates.d.mts +1 -0
  277. package/Types/Monitor/ProxmoxAlertTemplates.d.ts +1 -0
  278. package/Types/Monitor/ProxmoxAlertTemplates.js +49 -0
  279. package/Types/Monitor/ProxmoxAlertTemplates.mjs +1 -0
  280. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.mts +19 -0
  281. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.ts +19 -0
  282. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.js +50 -2
  283. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.mjs +2 -0
  284. package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.mts +2 -0
  285. package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.ts +2 -0
  286. package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.js +31 -2
  287. package/Types/Monitor/StorageArrayAlertTemplates.d.mts +2 -1
  288. package/Types/Monitor/StorageArrayAlertTemplates.d.ts +2 -1
  289. package/Types/Monitor/StorageArrayAlertTemplates.js +69 -0
  290. package/Types/Monitor/StorageArrayAlertTemplates.mjs +1 -0
  291. package/Types/Monitor/VMwareAlertTemplates.d.mts +2 -1
  292. package/Types/Monitor/VMwareAlertTemplates.d.ts +2 -1
  293. package/Types/Monitor/VMwareAlertTemplates.js +50 -0
  294. package/Types/Monitor/VMwareAlertTemplates.mjs +1 -0
  295. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.mts +1 -0
  296. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.ts +1 -0
  297. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +9 -0
  298. package/Types/NotificationSetting/NotificationSettingEventType.d.mts +1 -0
  299. package/Types/NotificationSetting/NotificationSettingEventType.d.ts +1 -0
  300. package/Types/NotificationSetting/NotificationSettingEventType.js +6 -0
  301. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +44 -0
  302. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +44 -0
  303. package/Types/OnCallDutyPolicy/OnCallPersonPage.js +171 -0
  304. package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +14 -0
  305. package/Types/Permission.d.mts +51 -0
  306. package/Types/Permission.d.ts +51 -0
  307. package/Types/Permission.js +542 -0
  308. package/Types/Probe/ProbeCapability.d.mts +2 -1
  309. package/Types/Probe/ProbeCapability.d.ts +2 -1
  310. package/Types/Probe/ProbeCapability.js +8 -0
  311. package/Types/ProviderLogo/ProviderLogo.d.mts +2 -0
  312. package/Types/ProviderLogo/ProviderLogo.d.ts +2 -0
  313. package/Types/ProviderLogo/ProviderLogo.js +4 -0
  314. package/Types/ResourceAiAgent/AiResourceType.d.mts +7 -1
  315. package/Types/ResourceAiAgent/AiResourceType.d.ts +7 -1
  316. package/Types/ResourceAiAgent/AiResourceType.js +76 -2
  317. package/Types/ResourceAiAgent/AiResourceType.mjs +3 -0
  318. package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +19 -0
  319. package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +19 -0
  320. package/Types/ResourceAiAgent/CloudAiAgentNames.js +75 -0
  321. package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +16 -0
  322. package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +12 -1
  323. package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +12 -1
  324. package/Types/ResourceAiAgent/ResourceAiAccess.js +28 -1
  325. package/Types/ResourceAiAgent/ResourceAiAccess.mjs +6 -0
  326. package/Types/Rules/RuleCriteriaFieldRegistry.js +13 -0
  327. package/Types/Rules/RuleCriteriaSubject.d.mts +2 -1
  328. package/Types/Rules/RuleCriteriaSubject.d.ts +2 -1
  329. package/Types/Rules/RuleCriteriaSubject.js +3 -0
  330. package/Types/Rules/RuleRun.d.mts +2 -0
  331. package/Types/Rules/RuleRun.d.ts +2 -0
  332. package/Types/Rules/RuleRun.js +4 -0
  333. package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +67 -0
  334. package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +67 -0
  335. package/Types/SecurityCase/SecurityCaseEventEvidence.js +271 -0
  336. package/Types/SecurityCase/SecurityCaseEventEvidence.mjs +13 -0
  337. package/Types/SecurityCase/SecurityCaseEvidenceKind.d.mts +2 -1
  338. package/Types/SecurityCase/SecurityCaseEvidenceKind.d.ts +2 -1
  339. package/Types/SecurityCase/SecurityCaseEvidenceKind.js +11 -1
  340. package/Types/SecurityCase/SecurityDetectionSource.d.mts +2 -1
  341. package/Types/SecurityCase/SecurityDetectionSource.d.ts +2 -1
  342. package/Types/SecurityCase/SecurityDetectionSource.js +5 -2
  343. package/Types/SecurityCase/SecurityEntity.d.mts +5 -0
  344. package/Types/SecurityCase/SecurityEntity.d.ts +5 -0
  345. package/Types/SecurityCase/SecurityEntity.js +39 -1
  346. package/Types/SecurityCase/SecurityEntity.mjs +4 -0
  347. package/Types/SecurityCase/SecurityEntityRisk.js +14 -6
  348. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.mts +2 -0
  349. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.ts +2 -0
  350. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +124 -1
  351. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.mjs +2 -0
  352. package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.mts +3 -1
  353. package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.ts +3 -1
  354. package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.js +4 -0
  355. package/Types/SecurityEvent/DataSecuritySignal.d.mts +33 -0
  356. package/Types/SecurityEvent/DataSecuritySignal.d.ts +33 -0
  357. package/Types/SecurityEvent/DataSecuritySignal.js +114 -0
  358. package/Types/SecurityEvent/DataSecuritySignal.mjs +14 -0
  359. package/Types/SecurityEvent/DetectionRuleDataKind.d.mts +7 -1
  360. package/Types/SecurityEvent/DetectionRuleDataKind.d.ts +7 -1
  361. package/Types/SecurityEvent/DetectionRuleDataKind.js +74 -0
  362. package/Types/SecurityEvent/DetectionRuleLibrary.d.mts +2 -1
  363. package/Types/SecurityEvent/DetectionRuleLibrary.d.ts +2 -1
  364. package/Types/SecurityEvent/DetectionRuleLibrary.js +730 -0
  365. package/Types/SecurityEvent/OcsfEventClass.js +31 -2
  366. package/Types/SecurityEvent/SecurityHunt.d.mts +122 -0
  367. package/Types/SecurityEvent/SecurityHunt.d.ts +122 -0
  368. package/Types/SecurityEvent/SecurityHunt.js +391 -0
  369. package/Types/SecurityEvent/SecurityHunt.mjs +32 -0
  370. package/Types/SecurityEvent/SecurityLogFormat.d.mts +15 -0
  371. package/Types/SecurityEvent/SecurityLogFormat.d.ts +15 -0
  372. package/Types/SecurityEvent/SecurityLogFormat.js +123 -10
  373. package/Types/SecurityEvent/SecurityLogFormat.mjs +4 -0
  374. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +3 -0
  375. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +3 -0
  376. package/Types/SecurityPlaybook/SecurityPlaybookAction.js +37 -0
  377. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +3 -0
  378. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +3 -0
  379. package/Types/SecurityPlaybook/SecurityPlaybookStep.js +9 -0
  380. package/Types/SecurityPlaybook/SecurityProtectedEntity.js +8 -1
  381. package/Types/Telemetry/ExceptionAIDigest.d.mts +31 -0
  382. package/Types/Telemetry/ExceptionAIDigest.d.ts +31 -0
  383. package/Types/Telemetry/ExceptionAIDigest.js +131 -0
  384. package/Types/Telemetry/ExceptionAIDigest.mjs +13 -0
  385. package/Types/Telemetry/ExceptionAIExplanation.d.mts +37 -0
  386. package/Types/Telemetry/ExceptionAIExplanation.d.ts +37 -0
  387. package/Types/Telemetry/ExceptionAIExplanation.js +110 -0
  388. package/Types/Telemetry/ExceptionAIExplanation.mjs +12 -0
  389. package/Types/Telemetry/TraceSpanType.d.mts +1 -1
  390. package/Types/Telemetry/TraceSpanType.d.ts +1 -1
  391. package/Types/Telemetry/TraceSpanType.js +33 -8
  392. package/Types/Telemetry/TraceSpanType.mjs +1 -1
  393. package/Types/UpdateCheck/SecurityAdvisory.d.mts +39 -0
  394. package/Types/UpdateCheck/SecurityAdvisory.d.ts +39 -0
  395. package/Types/UpdateCheck/SecurityAdvisory.js +221 -0
  396. package/Types/UpdateCheck/SecurityAdvisory.mjs +7 -0
  397. package/Types/UpdateCheck/UpdateCheckFailure.d.mts +9 -0
  398. package/Types/UpdateCheck/UpdateCheckFailure.d.ts +9 -0
  399. package/Types/UpdateCheck/UpdateCheckFailure.js +32 -0
  400. package/Types/UpdateCheck/UpdateCheckFailure.mjs +3 -0
  401. package/Types/UpdateCheck/UpdateStatus.d.mts +44 -0
  402. package/Types/UpdateCheck/UpdateStatus.d.ts +44 -0
  403. package/Types/UpdateCheck/UpdateStatus.js +195 -0
  404. package/Types/UpdateCheck/UpdateStatus.mjs +3 -0
  405. package/Types/Workflow/RunRecord.d.mts +3 -14
  406. package/Types/Workflow/RunRecord.d.ts +3 -14
  407. package/Types/Workflow/RunRecord.js +10 -51
  408. package/Types/Workspace/WorkspaceMessagePayload.d.mts +1 -0
  409. package/Types/Workspace/WorkspaceMessagePayload.d.ts +1 -0
  410. package/Utils/AI/InvestigationLogStall.d.mts +38 -0
  411. package/Utils/AI/InvestigationLogStall.d.ts +38 -0
  412. package/Utils/AI/InvestigationLogStall.js +163 -0
  413. package/Utils/AI/InvestigationLogStall.mjs +11 -0
  414. package/Utils/AiRemediation/CloudChangeDryRunPlan.d.mts +17 -0
  415. package/Utils/AiRemediation/CloudChangeDryRunPlan.d.ts +17 -0
  416. package/Utils/AiRemediation/CloudChangeDryRunPlan.js +122 -0
  417. package/Utils/AiRemediation/CloudChangeDryRunPlan.mjs +7 -0
  418. package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.mts +4 -0
  419. package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.ts +4 -0
  420. package/Utils/AiRemediation/Resource/CloudCommandPolicy.js +177 -0
  421. package/Utils/AiRemediation/Resource/CloudCommandPolicy.mjs +4 -0
  422. package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +144 -0
  423. package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +144 -0
  424. package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +1964 -0
  425. package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +48 -0
  426. package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +4 -0
  427. package/Utils/DataSecurity/CustomDataTypeDetector.d.mts +23 -0
  428. package/Utils/DataSecurity/CustomDataTypeDetector.d.ts +23 -0
  429. package/Utils/DataSecurity/CustomDataTypeDetector.js +130 -0
  430. package/Utils/DataSecurity/CustomDataTypeDetector.mjs +8 -0
  431. package/Utils/DataSecurity/Detector.d.mts +26 -0
  432. package/Utils/DataSecurity/Detector.d.ts +26 -0
  433. package/Utils/DataSecurity/Detector.js +83 -0
  434. package/Utils/DataSecurity/Detector.mjs +8 -0
  435. package/Utils/DataSecurity/Detectors/ContactDetectors.d.mts +12 -0
  436. package/Utils/DataSecurity/Detectors/ContactDetectors.d.ts +12 -0
  437. package/Utils/DataSecurity/Detectors/ContactDetectors.js +915 -0
  438. package/Utils/DataSecurity/Detectors/ContactDetectors.mjs +12 -0
  439. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.mts +3 -0
  440. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.ts +3 -0
  441. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.js +52 -0
  442. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.mjs +3 -0
  443. package/Utils/DataSecurity/Detectors/FinancialDetectors.d.mts +8 -0
  444. package/Utils/DataSecurity/Detectors/FinancialDetectors.d.ts +8 -0
  445. package/Utils/DataSecurity/Detectors/FinancialDetectors.js +566 -0
  446. package/Utils/DataSecurity/Detectors/FinancialDetectors.mjs +8 -0
  447. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.mts +3 -0
  448. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.ts +3 -0
  449. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.js +2415 -0
  450. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.mjs +3 -0
  451. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.mts +3 -0
  452. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.ts +3 -0
  453. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.js +258 -0
  454. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.mjs +3 -0
  455. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.mts +3 -0
  456. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.ts +3 -0
  457. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.js +115 -0
  458. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.mjs +3 -0
  459. package/Utils/DataSecurity/Detectors/Index.d.mts +4 -0
  460. package/Utils/DataSecurity/Detectors/Index.d.ts +4 -0
  461. package/Utils/DataSecurity/Detectors/Index.js +47 -0
  462. package/Utils/DataSecurity/Detectors/Index.mjs +4 -0
  463. package/Utils/DataSecurity/Detectors/SecretDetectors.d.mts +11 -0
  464. package/Utils/DataSecurity/Detectors/SecretDetectors.d.ts +11 -0
  465. package/Utils/DataSecurity/Detectors/SecretDetectors.js +1733 -0
  466. package/Utils/DataSecurity/Detectors/SecretDetectors.mjs +11 -0
  467. package/Utils/DataSecurity/FieldClassifier.d.mts +20 -0
  468. package/Utils/DataSecurity/FieldClassifier.d.ts +20 -0
  469. package/Utils/DataSecurity/FieldClassifier.js +247 -0
  470. package/Utils/DataSecurity/FieldClassifier.mjs +5 -0
  471. package/Utils/DataSecurity/FieldCollector.d.mts +23 -0
  472. package/Utils/DataSecurity/FieldCollector.d.ts +23 -0
  473. package/Utils/DataSecurity/FieldCollector.js +81 -0
  474. package/Utils/DataSecurity/FieldCollector.mjs +3 -0
  475. package/Utils/DataSecurity/FieldNameHints.d.mts +9 -0
  476. package/Utils/DataSecurity/FieldNameHints.d.ts +9 -0
  477. package/Utils/DataSecurity/FieldNameHints.js +184 -0
  478. package/Utils/DataSecurity/FieldNameHints.mjs +6 -0
  479. package/Utils/DataSecurity/FindingTally.d.mts +44 -0
  480. package/Utils/DataSecurity/FindingTally.d.ts +44 -0
  481. package/Utils/DataSecurity/FindingTally.js +138 -0
  482. package/Utils/DataSecurity/FindingTally.mjs +6 -0
  483. package/Utils/DataSecurity/Masking.d.mts +6 -0
  484. package/Utils/DataSecurity/Masking.d.ts +6 -0
  485. package/Utils/DataSecurity/Masking.js +159 -0
  486. package/Utils/DataSecurity/Masking.mjs +7 -0
  487. package/Utils/DataSecurity/PathPattern.d.mts +3 -0
  488. package/Utils/DataSecurity/PathPattern.d.ts +3 -0
  489. package/Utils/DataSecurity/PathPattern.js +55 -0
  490. package/Utils/DataSecurity/PathPattern.mjs +4 -0
  491. package/Utils/DataSecurity/Sha256.d.mts +1 -0
  492. package/Utils/DataSecurity/Sha256.d.ts +1 -0
  493. package/Utils/DataSecurity/Sha256.js +94 -0
  494. package/Utils/DataSecurity/Sha256.mjs +2 -0
  495. package/Utils/DataSecurity/TextScanner.d.mts +35 -0
  496. package/Utils/DataSecurity/TextScanner.d.ts +35 -0
  497. package/Utils/DataSecurity/TextScanner.js +303 -0
  498. package/Utils/DataSecurity/TextScanner.mjs +8 -0
  499. package/Utils/DataSecurity/Validators.d.mts +16 -0
  500. package/Utils/DataSecurity/Validators.d.ts +16 -0
  501. package/Utils/DataSecurity/Validators.js +339 -0
  502. package/Utils/DataSecurity/Validators.mjs +17 -0
  503. package/Utils/Exceptions/ExceptionIssueState.d.mts +18 -0
  504. package/Utils/Exceptions/ExceptionIssueState.d.ts +18 -0
  505. package/Utils/Exceptions/ExceptionIssueState.js +131 -0
  506. package/Utils/Exceptions/ExceptionIssueState.mjs +8 -0
  507. package/Utils/HostCollector/HostCollectorDefaultConfig.d.mts +2 -0
  508. package/Utils/HostCollector/HostCollectorDefaultConfig.d.ts +2 -0
  509. package/Utils/HostCollector/HostCollectorDefaultConfig.js +39 -1
  510. package/Utils/HostCollector/HostCollectorDefaultConfig.mjs +2 -0
  511. package/Utils/LabelRuleImportExport.js +17 -3
  512. package/Utils/Monitor/PlatformResourceIdentity.js +7 -4
  513. package/Utils/Project/RecordNumber.d.mts +43 -0
  514. package/Utils/Project/RecordNumber.d.ts +43 -0
  515. package/Utils/Project/RecordNumber.js +151 -0
  516. package/Utils/Project/RecordNumber.mjs +6 -0
  517. package/Utils/SecurityAdvisoryMatcher.d.mts +33 -0
  518. package/Utils/SecurityAdvisoryMatcher.d.ts +33 -0
  519. package/Utils/SecurityAdvisoryMatcher.js +291 -0
  520. package/Utils/SecurityAdvisoryMatcher.mjs +2 -0
  521. package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +9 -0
  522. package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +9 -0
  523. package/Utils/SecurityCase/SecurityCaseMarkdown.js +20 -0
  524. package/Utils/SecurityCase/SecurityCaseMarkdown.mjs +2 -0
  525. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.mts +24 -0
  526. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.ts +24 -0
  527. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.js +380 -0
  528. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.mjs +15 -0
  529. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.mts +29 -0
  530. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.ts +29 -0
  531. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.js +527 -0
  532. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.mjs +13 -0
  533. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.mts +21 -0
  534. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.ts +21 -0
  535. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.js +365 -0
  536. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.mjs +11 -0
  537. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.mts +17 -0
  538. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.ts +17 -0
  539. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +344 -0
  540. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.mjs +12 -0
  541. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.mts +27 -0
  542. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.ts +27 -0
  543. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.js +326 -0
  544. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.mjs +10 -0
  545. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.mts +38 -0
  546. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.ts +38 -0
  547. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.js +629 -0
  548. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.mjs +13 -0
  549. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +9 -0
  550. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +9 -0
  551. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +63 -3
  552. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +4 -0
  553. package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +54 -0
  554. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.mts +26 -0
  555. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.ts +26 -0
  556. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.js +1046 -0
  557. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.mjs +11 -0
  558. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.mts +19 -0
  559. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.ts +19 -0
  560. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.js +724 -0
  561. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.mjs +7 -0
  562. package/Utils/SecurityEvent/SecurityEventSearch.d.mts +56 -0
  563. package/Utils/SecurityEvent/SecurityEventSearch.d.ts +56 -0
  564. package/Utils/SecurityEvent/SecurityEventSearch.js +422 -0
  565. package/Utils/SecurityEvent/SecurityEventSearch.mjs +21 -0
  566. package/Utils/SecurityEvent/SecurityHuntSearch.d.mts +12 -0
  567. package/Utils/SecurityEvent/SecurityHuntSearch.d.ts +12 -0
  568. package/Utils/SecurityEvent/SecurityHuntSearch.js +51 -0
  569. package/Utils/SecurityEvent/SecurityHuntSearch.mjs +3 -0
  570. package/Utils/SecurityEvent/SecurityRecordReading.d.mts +32 -0
  571. package/Utils/SecurityEvent/SecurityRecordReading.d.ts +32 -0
  572. package/Utils/SecurityEvent/SecurityRecordReading.js +78 -0
  573. package/Utils/SecurityEvent/SecurityRecordReading.mjs +2 -0
  574. package/Utils/Sms/OnCallPageSms.d.mts +1 -0
  575. package/Utils/Sms/OnCallPageSms.d.ts +1 -0
  576. package/Utils/Sms/OnCallPageSms.js +16 -2
  577. package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.mts +44 -0
  578. package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.ts +44 -0
  579. package/Utils/Suggestions/InvestigationCodeFixSuggestion.js +223 -0
  580. package/Utils/Suggestions/InvestigationCodeFixSuggestion.mjs +8 -0
  581. package/Utils/Suggestions/TracePerformanceFixSuggestion.d.mts +9 -0
  582. package/Utils/Suggestions/TracePerformanceFixSuggestion.d.ts +9 -0
  583. package/Utils/Suggestions/TracePerformanceFixSuggestion.js +69 -1
  584. package/Utils/Suggestions/TracePerformanceFixSuggestion.mjs +4 -0
  585. package/Utils/Syslog/LeefParser.d.mts +28 -0
  586. package/Utils/Syslog/LeefParser.d.ts +28 -0
  587. package/Utils/Syslog/LeefParser.js +326 -0
  588. package/Utils/Syslog/LeefParser.mjs +10 -0
  589. package/Utils/VersionRange.d.mts +34 -0
  590. package/Utils/VersionRange.d.ts +34 -0
  591. package/Utils/VersionRange.js +422 -0
  592. package/Utils/VersionRange.mjs +5 -0
  593. package/package.json +1 -1
@@ -0,0 +1,1343 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const CloudAccount_1 = __importDefault(require("./CloudAccount"));
16
+ const CloudConnection_1 = __importDefault(require("./CloudConnection"));
17
+ const CloudResource_1 = __importDefault(require("./CloudResource"));
18
+ const DatabaseServer_1 = __importDefault(require("./DatabaseServer"));
19
+ const Label_1 = __importDefault(require("./Label"));
20
+ const Probe_1 = __importDefault(require("./Probe"));
21
+ const Project_1 = __importDefault(require("./Project"));
22
+ const Service_1 = __importDefault(require("./Service"));
23
+ const User_1 = __importDefault(require("./User"));
24
+ const DatabaseBaseModel_1 = __importDefault(require("./DatabaseBaseModel/DatabaseBaseModel"));
25
+ const Route_1 = __importDefault(require("../../Types/API/Route"));
26
+ const ColumnAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/ColumnAccessControl"));
27
+ const TableAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableAccessControl"));
28
+ const TableBillingAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableBillingAccessControl"));
29
+ const ColumnType_1 = __importDefault(require("../../Types/Database/ColumnType"));
30
+ const CrudApiEndpoint_1 = __importDefault(require("../../Types/Database/CrudApiEndpoint"));
31
+ const EnableDocumentation_1 = __importDefault(require("../../Types/Database/EnableDocumentation"));
32
+ const TableColumn_1 = __importDefault(require("../../Types/Database/TableColumn"));
33
+ const TableColumnType_1 = __importDefault(require("../../Types/Database/TableColumnType"));
34
+ const TableMetadata_1 = __importDefault(require("../../Types/Database/TableMetadata"));
35
+ const TenantColumn_1 = __importDefault(require("../../Types/Database/TenantColumn"));
36
+ const IconProp_1 = __importDefault(require("../../Types/Icon/IconProp"));
37
+ const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
38
+ const Permission_1 = __importDefault(require("../../Types/Permission"));
39
+ const SubscriptionPlan_1 = require("../../Types/Billing/SubscriptionPlan");
40
+ const EnableMCP_1 = __importDefault(require("../../Types/Database/EnableMCP"));
41
+ const EnableAuditLog_1 = __importDefault(require("../../Types/Database/EnableAuditLog"));
42
+ const EnableWorkflow_1 = __importDefault(require("../../Types/Database/EnableWorkflow"));
43
+ const AccessControlColumn_1 = __importDefault(require("../../Types/Database/AccessControlColumn"));
44
+ const DataStoreKind_1 = require("../../Types/DataSecurity/DataStoreKind");
45
+ const DataStoreEnvironment_1 = __importDefault(require("../../Types/DataSecurity/DataStoreEnvironment"));
46
+ const DataSensitivity_1 = __importDefault(require("../../Types/DataSecurity/DataSensitivity"));
47
+ const DataStorePosture_1 = require("../../Types/DataSecurity/DataStorePosture");
48
+ const SecuritySeverity_1 = __importDefault(require("../../Types/SecuritySeverity"));
49
+ const ColumnLength_1 = __importDefault(require("../../Types/Database/ColumnLength"));
50
+ const typeorm_1 = require("typeorm");
51
+ /*
52
+ * One place data lives: a bucket, a database, a warehouse, or a service's
53
+ * logs, traces, exceptions, replays or AI conversations in OneUptime itself.
54
+ *
55
+ * OneUptime discovers stores from cloud inventory, the Database product,
56
+ * telemetry and the service map (DataSecurityDiscovery), reads their
57
+ * configuration and access, samples their content, and keeps here what that
58
+ * found: how sensitive the store is, which data types it holds, how exposed
59
+ * it is, and the posture facts every check reads
60
+ * (Types/DataSecurity/DataStorePosture). People add stores the scans cannot
61
+ * find on their own, name owners, and say how a store may be scanned; the
62
+ * rest is OneUptime's to write.
63
+ *
64
+ * It is security data, so the Security tiers read it and nobody else - which
65
+ * buckets hold card numbers is exactly what an attacker wants to know.
66
+ */
67
+ const readPermissions = [
68
+ Permission_1.default.ProjectOwner,
69
+ Permission_1.default.ProjectAdmin,
70
+ Permission_1.default.SecurityAdmin,
71
+ Permission_1.default.SecurityMember,
72
+ Permission_1.default.SecurityViewer,
73
+ Permission_1.default.ReadDataStore,
74
+ ];
75
+ const createPermissions = [
76
+ Permission_1.default.ProjectOwner,
77
+ Permission_1.default.ProjectAdmin,
78
+ Permission_1.default.SecurityAdmin,
79
+ Permission_1.default.SecurityMember,
80
+ Permission_1.default.CreateDataStore,
81
+ ];
82
+ const updatePermissions = [
83
+ Permission_1.default.ProjectOwner,
84
+ Permission_1.default.ProjectAdmin,
85
+ Permission_1.default.SecurityAdmin,
86
+ Permission_1.default.SecurityMember,
87
+ Permission_1.default.EditDataStore,
88
+ ];
89
+ const deletePermissions = [
90
+ Permission_1.default.ProjectOwner,
91
+ Permission_1.default.ProjectAdmin,
92
+ Permission_1.default.SecurityAdmin,
93
+ Permission_1.default.DeleteDataStore,
94
+ ];
95
+ // Columns OneUptime writes; people read them.
96
+ const serverWrittenColumnAccess = {
97
+ create: [],
98
+ read: readPermissions,
99
+ update: [],
100
+ };
101
+ const editableColumnAccess = {
102
+ create: createPermissions,
103
+ read: readPermissions,
104
+ update: updatePermissions,
105
+ };
106
+ const createOnlyColumnAccess = {
107
+ create: createPermissions,
108
+ read: readPermissions,
109
+ update: [],
110
+ };
111
+ // Written by people, never read back through the API.
112
+ const secretColumnAccess = {
113
+ create: createPermissions,
114
+ read: [],
115
+ update: updatePermissions,
116
+ };
117
+ // Working state of OneUptime's own jobs: nobody reads it through the API.
118
+ const hiddenColumnAccess = {
119
+ create: [],
120
+ read: [],
121
+ update: [],
122
+ };
123
+ // Counts and sizes run past 2^31, so the columns are bigint, read back as numbers.
124
+ const bigNumberTransformer = {
125
+ to: (value) => {
126
+ if (value === undefined) {
127
+ return undefined;
128
+ }
129
+ if (value === null) {
130
+ return null;
131
+ }
132
+ return Math.trunc(value).toString();
133
+ },
134
+ from: (value) => {
135
+ if (value === undefined || value === null) {
136
+ return value;
137
+ }
138
+ return Number(value);
139
+ },
140
+ };
141
+ let DataStore = class DataStore extends DatabaseBaseModel_1.default {
142
+ constructor() {
143
+ super(...arguments);
144
+ this.project = undefined;
145
+ this.projectId = undefined;
146
+ this.name = undefined;
147
+ this.description = undefined;
148
+ this.storeKey = undefined;
149
+ this.kind = undefined;
150
+ this.provider = undefined;
151
+ this.family = undefined;
152
+ this.discoveredFrom = undefined;
153
+ this.cloudAccount = undefined;
154
+ this.cloudAccountId = undefined;
155
+ this.cloudResource = undefined;
156
+ this.cloudResourceId = undefined;
157
+ this.cloudConnection = undefined;
158
+ this.cloudConnectionId = undefined;
159
+ this.databaseServer = undefined;
160
+ this.databaseServerId = undefined;
161
+ this.service = undefined;
162
+ this.serviceId = undefined;
163
+ this.providerResourceId = undefined;
164
+ this.cloudAccountNumber = undefined;
165
+ this.region = undefined;
166
+ this.environment = undefined;
167
+ this.sensitivity = undefined;
168
+ this.sensitivityOverride = undefined;
169
+ this.dataTypeIds = undefined;
170
+ this.dataCategories = undefined;
171
+ this.subjectCountries = undefined;
172
+ this.exposure = undefined;
173
+ this.posture = undefined;
174
+ this.fingerprints = undefined;
175
+ this.cloudTags = undefined;
176
+ this.sizeInBytes = undefined;
177
+ this.objectCount = undefined;
178
+ this.estimatedRecords = undefined;
179
+ this.lastActivityAt = undefined;
180
+ this.isPublicByDesign = undefined;
181
+ this.isAiData = undefined;
182
+ this.isContentScanEnabled = undefined;
183
+ this.scanProbe = undefined;
184
+ this.scanProbeId = undefined;
185
+ this.probeConnectionVariable = undefined;
186
+ this.connectionString = undefined;
187
+ this.scanExclusions = undefined;
188
+ this.purpose = undefined;
189
+ this.retention = undefined;
190
+ this.configurationReadAt = undefined;
191
+ this.contentScannedAt = undefined;
192
+ this.contentScanStatus = undefined;
193
+ this.nextContentScanAt = undefined;
194
+ this.contentScanState = undefined;
195
+ this.findingCount = undefined;
196
+ this.openIssueCount = undefined;
197
+ this.highestIssueSeverity = undefined;
198
+ this.riskScore = undefined;
199
+ this.isArchived = undefined;
200
+ this.firstSeenAt = undefined;
201
+ this.lastSeenAt = undefined;
202
+ this.labels = undefined;
203
+ this.createdByUser = undefined;
204
+ this.createdByUserId = undefined;
205
+ this.deletedByUser = undefined;
206
+ this.deletedByUserId = undefined;
207
+ }
208
+ };
209
+ __decorate([
210
+ (0, ColumnAccessControl_1.default)(createOnlyColumnAccess),
211
+ (0, TableColumn_1.default)({
212
+ manyToOneRelationColumn: "projectId",
213
+ type: TableColumnType_1.default.Entity,
214
+ modelType: Project_1.default,
215
+ title: "Project",
216
+ description: "Relation to the project this data store belongs to.",
217
+ }),
218
+ (0, typeorm_1.ManyToOne)(() => {
219
+ return Project_1.default;
220
+ }, {
221
+ eager: false,
222
+ nullable: true,
223
+ onDelete: "CASCADE",
224
+ orphanedRowAction: "nullify",
225
+ }),
226
+ (0, typeorm_1.JoinColumn)({ name: "projectId" }),
227
+ __metadata("design:type", Project_1.default)
228
+ ], DataStore.prototype, "project", void 0);
229
+ __decorate([
230
+ (0, ColumnAccessControl_1.default)(createOnlyColumnAccess),
231
+ (0, typeorm_1.Index)(),
232
+ (0, TableColumn_1.default)({
233
+ type: TableColumnType_1.default.ObjectID,
234
+ required: true,
235
+ canReadOnRelationQuery: true,
236
+ title: "Project ID",
237
+ description: "ID of the project this data store belongs to.",
238
+ }),
239
+ (0, typeorm_1.Column)({
240
+ type: ColumnType_1.default.ObjectID,
241
+ nullable: false,
242
+ transformer: ObjectID_1.default.getDatabaseTransformer(),
243
+ }),
244
+ __metadata("design:type", ObjectID_1.default)
245
+ ], DataStore.prototype, "projectId", void 0);
246
+ __decorate([
247
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
248
+ (0, TableColumn_1.default)({
249
+ type: TableColumnType_1.default.LongText,
250
+ required: true,
251
+ canReadOnRelationQuery: true,
252
+ title: "Name",
253
+ description: "The store's name: a bucket, database, dataset or service name.",
254
+ }),
255
+ (0, typeorm_1.Column)({
256
+ type: ColumnType_1.default.LongText,
257
+ length: ColumnLength_1.default.LongText,
258
+ nullable: false,
259
+ }),
260
+ __metadata("design:type", String)
261
+ ], DataStore.prototype, "name", void 0);
262
+ __decorate([
263
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
264
+ (0, TableColumn_1.default)({
265
+ type: TableColumnType_1.default.LongText,
266
+ required: false,
267
+ canReadOnRelationQuery: true,
268
+ title: "Description",
269
+ description: "What the store is for, in your team's words.",
270
+ }),
271
+ (0, typeorm_1.Column)({
272
+ type: ColumnType_1.default.LongText,
273
+ length: ColumnLength_1.default.LongText,
274
+ nullable: true,
275
+ }),
276
+ __metadata("design:type", String)
277
+ ], DataStore.prototype, "description", void 0);
278
+ __decorate([
279
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
280
+ (0, TableColumn_1.default)({
281
+ type: TableColumnType_1.default.LongText,
282
+ required: true,
283
+ computed: true,
284
+ canReadOnRelationQuery: true,
285
+ title: "Store Key",
286
+ description: "What identifies the store within the project: its provider, kind and native id. One row per store, however often it is discovered.",
287
+ }),
288
+ (0, typeorm_1.Column)({
289
+ type: ColumnType_1.default.LongText,
290
+ length: ColumnLength_1.default.LongText,
291
+ nullable: false,
292
+ }),
293
+ __metadata("design:type", String)
294
+ ], DataStore.prototype, "storeKey", void 0);
295
+ __decorate([
296
+ (0, ColumnAccessControl_1.default)(createOnlyColumnAccess),
297
+ (0, TableColumn_1.default)({
298
+ type: TableColumnType_1.default.ShortText,
299
+ required: true,
300
+ canReadOnRelationQuery: true,
301
+ title: "Kind",
302
+ description: "What kind of store it is: an S3 bucket, an RDS instance, a PostgreSQL database, a service's logs.",
303
+ }),
304
+ (0, typeorm_1.Column)({
305
+ type: ColumnType_1.default.ShortText,
306
+ length: ColumnLength_1.default.ShortText,
307
+ nullable: false,
308
+ }),
309
+ __metadata("design:type", String)
310
+ ], DataStore.prototype, "kind", void 0);
311
+ __decorate([
312
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
313
+ (0, TableColumn_1.default)({
314
+ type: TableColumnType_1.default.ShortText,
315
+ required: false,
316
+ computed: true,
317
+ canReadOnRelationQuery: true,
318
+ title: "Provider",
319
+ description: "Where the store lives: aws, azure, gcp, self-managed or oneuptime.",
320
+ }),
321
+ (0, typeorm_1.Column)({
322
+ type: ColumnType_1.default.ShortText,
323
+ length: ColumnLength_1.default.ShortText,
324
+ nullable: true,
325
+ }),
326
+ __metadata("design:type", String)
327
+ ], DataStore.prototype, "provider", void 0);
328
+ __decorate([
329
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
330
+ (0, TableColumn_1.default)({
331
+ type: TableColumnType_1.default.ShortText,
332
+ required: false,
333
+ computed: true,
334
+ canReadOnRelationQuery: true,
335
+ title: "Family",
336
+ description: "The store's family: object storage, database, warehouse, search, cache, file system, snapshot or telemetry.",
337
+ }),
338
+ (0, typeorm_1.Column)({
339
+ type: ColumnType_1.default.ShortText,
340
+ length: ColumnLength_1.default.ShortText,
341
+ nullable: true,
342
+ }),
343
+ __metadata("design:type", String)
344
+ ], DataStore.prototype, "family", void 0);
345
+ __decorate([
346
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
347
+ (0, TableColumn_1.default)({
348
+ type: TableColumnType_1.default.ShortText,
349
+ required: false,
350
+ computed: true,
351
+ canReadOnRelationQuery: true,
352
+ title: "Discovered From",
353
+ description: "How OneUptime found the store: cloud inventory, the Database product, telemetry, the service map, or added by hand.",
354
+ }),
355
+ (0, typeorm_1.Column)({
356
+ type: ColumnType_1.default.ShortText,
357
+ length: ColumnLength_1.default.ShortText,
358
+ nullable: true,
359
+ }),
360
+ __metadata("design:type", String)
361
+ ], DataStore.prototype, "discoveredFrom", void 0);
362
+ __decorate([
363
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
364
+ (0, TableColumn_1.default)({
365
+ manyToOneRelationColumn: "cloudAccountId",
366
+ type: TableColumnType_1.default.Entity,
367
+ modelType: CloudAccount_1.default,
368
+ title: "Cloud Account",
369
+ description: "Relation to the cloud account the store belongs to.",
370
+ }),
371
+ (0, typeorm_1.ManyToOne)(() => {
372
+ return CloudAccount_1.default;
373
+ }, {
374
+ eager: false,
375
+ nullable: true,
376
+ onDelete: "SET NULL",
377
+ orphanedRowAction: "nullify",
378
+ }),
379
+ (0, typeorm_1.JoinColumn)({ name: "cloudAccountId" }),
380
+ __metadata("design:type", CloudAccount_1.default)
381
+ ], DataStore.prototype, "cloudAccount", void 0);
382
+ __decorate([
383
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
384
+ (0, typeorm_1.Index)(),
385
+ (0, TableColumn_1.default)({
386
+ type: TableColumnType_1.default.ObjectID,
387
+ required: false,
388
+ computed: true,
389
+ canReadOnRelationQuery: true,
390
+ title: "Cloud Account ID",
391
+ description: "The cloud account the store belongs to, for a cloud store.",
392
+ }),
393
+ (0, typeorm_1.Column)({
394
+ type: ColumnType_1.default.ObjectID,
395
+ nullable: true,
396
+ transformer: ObjectID_1.default.getDatabaseTransformer(),
397
+ }),
398
+ __metadata("design:type", ObjectID_1.default)
399
+ ], DataStore.prototype, "cloudAccountId", void 0);
400
+ __decorate([
401
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
402
+ (0, TableColumn_1.default)({
403
+ manyToOneRelationColumn: "cloudResourceId",
404
+ type: TableColumnType_1.default.Entity,
405
+ modelType: CloudResource_1.default,
406
+ title: "Cloud Resource",
407
+ description: "Relation to the cloud resource the store was discovered from.",
408
+ }),
409
+ (0, typeorm_1.ManyToOne)(() => {
410
+ return CloudResource_1.default;
411
+ }, {
412
+ eager: false,
413
+ nullable: true,
414
+ onDelete: "SET NULL",
415
+ orphanedRowAction: "nullify",
416
+ }),
417
+ (0, typeorm_1.JoinColumn)({ name: "cloudResourceId" }),
418
+ __metadata("design:type", CloudResource_1.default)
419
+ ], DataStore.prototype, "cloudResource", void 0);
420
+ __decorate([
421
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
422
+ (0, typeorm_1.Index)(),
423
+ (0, TableColumn_1.default)({
424
+ type: TableColumnType_1.default.ObjectID,
425
+ required: false,
426
+ computed: true,
427
+ canReadOnRelationQuery: true,
428
+ title: "Cloud Resource ID",
429
+ description: "The cloud resource the store was discovered from, if any.",
430
+ }),
431
+ (0, typeorm_1.Column)({
432
+ type: ColumnType_1.default.ObjectID,
433
+ nullable: true,
434
+ transformer: ObjectID_1.default.getDatabaseTransformer(),
435
+ }),
436
+ __metadata("design:type", ObjectID_1.default)
437
+ ], DataStore.prototype, "cloudResourceId", void 0);
438
+ __decorate([
439
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
440
+ (0, TableColumn_1.default)({
441
+ manyToOneRelationColumn: "cloudConnectionId",
442
+ type: TableColumnType_1.default.Entity,
443
+ modelType: CloudConnection_1.default,
444
+ title: "Cloud Connection",
445
+ description: "Relation to the cloud connection that reads the store.",
446
+ }),
447
+ (0, typeorm_1.ManyToOne)(() => {
448
+ return CloudConnection_1.default;
449
+ }, {
450
+ eager: false,
451
+ nullable: true,
452
+ onDelete: "SET NULL",
453
+ orphanedRowAction: "nullify",
454
+ }),
455
+ (0, typeorm_1.JoinColumn)({ name: "cloudConnectionId" }),
456
+ __metadata("design:type", CloudConnection_1.default)
457
+ ], DataStore.prototype, "cloudConnection", void 0);
458
+ __decorate([
459
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
460
+ (0, typeorm_1.Index)(),
461
+ (0, TableColumn_1.default)({
462
+ type: TableColumnType_1.default.ObjectID,
463
+ required: false,
464
+ computed: true,
465
+ canReadOnRelationQuery: true,
466
+ title: "Cloud Connection ID",
467
+ description: "The cloud connection that reads the store's configuration, if any.",
468
+ }),
469
+ (0, typeorm_1.Column)({
470
+ type: ColumnType_1.default.ObjectID,
471
+ nullable: true,
472
+ transformer: ObjectID_1.default.getDatabaseTransformer(),
473
+ }),
474
+ __metadata("design:type", ObjectID_1.default)
475
+ ], DataStore.prototype, "cloudConnectionId", void 0);
476
+ __decorate([
477
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
478
+ (0, TableColumn_1.default)({
479
+ manyToOneRelationColumn: "databaseServerId",
480
+ type: TableColumnType_1.default.Entity,
481
+ modelType: DatabaseServer_1.default,
482
+ title: "Database Server",
483
+ description: "Relation to the database server the store is.",
484
+ }),
485
+ (0, typeorm_1.ManyToOne)(() => {
486
+ return DatabaseServer_1.default;
487
+ }, {
488
+ eager: false,
489
+ nullable: true,
490
+ onDelete: "SET NULL",
491
+ orphanedRowAction: "nullify",
492
+ }),
493
+ (0, typeorm_1.JoinColumn)({ name: "databaseServerId" }),
494
+ __metadata("design:type", DatabaseServer_1.default)
495
+ ], DataStore.prototype, "databaseServer", void 0);
496
+ __decorate([
497
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
498
+ (0, typeorm_1.Index)(),
499
+ (0, TableColumn_1.default)({
500
+ type: TableColumnType_1.default.ObjectID,
501
+ required: false,
502
+ computed: true,
503
+ canReadOnRelationQuery: true,
504
+ title: "Database Server ID",
505
+ description: "The Database product server the store is, for a self-managed database.",
506
+ }),
507
+ (0, typeorm_1.Column)({
508
+ type: ColumnType_1.default.ObjectID,
509
+ nullable: true,
510
+ transformer: ObjectID_1.default.getDatabaseTransformer(),
511
+ }),
512
+ __metadata("design:type", ObjectID_1.default)
513
+ ], DataStore.prototype, "databaseServerId", void 0);
514
+ __decorate([
515
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
516
+ (0, TableColumn_1.default)({
517
+ manyToOneRelationColumn: "serviceId",
518
+ type: TableColumnType_1.default.Entity,
519
+ modelType: Service_1.default,
520
+ title: "Service",
521
+ description: "Relation to the service whose telemetry the store is.",
522
+ }),
523
+ (0, typeorm_1.ManyToOne)(() => {
524
+ return Service_1.default;
525
+ }, {
526
+ eager: false,
527
+ nullable: true,
528
+ onDelete: "SET NULL",
529
+ orphanedRowAction: "nullify",
530
+ }),
531
+ (0, typeorm_1.JoinColumn)({ name: "serviceId" }),
532
+ __metadata("design:type", Service_1.default)
533
+ ], DataStore.prototype, "service", void 0);
534
+ __decorate([
535
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
536
+ (0, typeorm_1.Index)(),
537
+ (0, TableColumn_1.default)({
538
+ type: TableColumnType_1.default.ObjectID,
539
+ required: false,
540
+ computed: true,
541
+ canReadOnRelationQuery: true,
542
+ title: "Service ID",
543
+ description: "The telemetry service whose logs, traces, exceptions, replays or AI conversations the store is.",
544
+ }),
545
+ (0, typeorm_1.Column)({
546
+ type: ColumnType_1.default.ObjectID,
547
+ nullable: true,
548
+ transformer: ObjectID_1.default.getDatabaseTransformer(),
549
+ }),
550
+ __metadata("design:type", ObjectID_1.default)
551
+ ], DataStore.prototype, "serviceId", void 0);
552
+ __decorate([
553
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
554
+ (0, TableColumn_1.default)({
555
+ type: TableColumnType_1.default.LongText,
556
+ required: false,
557
+ computed: true,
558
+ canReadOnRelationQuery: true,
559
+ title: "Provider Resource ID",
560
+ description: "The store's id in its cloud: an ARN, an Azure resource id or a Google Cloud resource name.",
561
+ }),
562
+ (0, typeorm_1.Column)({
563
+ type: ColumnType_1.default.LongText,
564
+ length: ColumnLength_1.default.LongText,
565
+ nullable: true,
566
+ }),
567
+ __metadata("design:type", String)
568
+ ], DataStore.prototype, "providerResourceId", void 0);
569
+ __decorate([
570
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
571
+ (0, TableColumn_1.default)({
572
+ type: TableColumnType_1.default.ShortText,
573
+ required: false,
574
+ computed: true,
575
+ canReadOnRelationQuery: true,
576
+ title: "Account",
577
+ description: "The cloud's own id for the account: an AWS account id, an Azure subscription id or a Google Cloud project id.",
578
+ }),
579
+ (0, typeorm_1.Column)({
580
+ type: ColumnType_1.default.ShortText,
581
+ length: ColumnLength_1.default.ShortText,
582
+ nullable: true,
583
+ }),
584
+ __metadata("design:type", String)
585
+ ], DataStore.prototype, "cloudAccountNumber", void 0);
586
+ __decorate([
587
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
588
+ (0, TableColumn_1.default)({
589
+ type: TableColumnType_1.default.ShortText,
590
+ required: false,
591
+ computed: true,
592
+ canReadOnRelationQuery: true,
593
+ title: "Region",
594
+ description: "The region the store lives in.",
595
+ }),
596
+ (0, typeorm_1.Column)({
597
+ type: ColumnType_1.default.ShortText,
598
+ length: ColumnLength_1.default.ShortText,
599
+ nullable: true,
600
+ }),
601
+ __metadata("design:type", String)
602
+ ], DataStore.prototype, "region", void 0);
603
+ __decorate([
604
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
605
+ (0, TableColumn_1.default)({
606
+ type: TableColumnType_1.default.ShortText,
607
+ required: true,
608
+ canReadOnRelationQuery: true,
609
+ title: "Environment",
610
+ description: "Which environment the store serves: Production, Staging, Development, Test or Unknown. Read from its tags and name; people may set it.",
611
+ defaultValue: "Unknown",
612
+ isDefaultValueColumn: true,
613
+ }),
614
+ (0, typeorm_1.Column)({
615
+ type: ColumnType_1.default.ShortText,
616
+ length: ColumnLength_1.default.ShortText,
617
+ nullable: false,
618
+ default: "Unknown",
619
+ }),
620
+ __metadata("design:type", String)
621
+ ], DataStore.prototype, "environment", void 0);
622
+ __decorate([
623
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
624
+ (0, TableColumn_1.default)({
625
+ type: TableColumnType_1.default.ShortText,
626
+ required: true,
627
+ computed: true,
628
+ canReadOnRelationQuery: true,
629
+ title: "Sensitivity",
630
+ description: "How sensitive the store is: Restricted, Confidential, Internal or Public, from the most sensitive data type found in it.",
631
+ defaultValue: "Public",
632
+ isDefaultValueColumn: true,
633
+ }),
634
+ (0, typeorm_1.Column)({
635
+ type: ColumnType_1.default.ShortText,
636
+ length: ColumnLength_1.default.ShortText,
637
+ nullable: false,
638
+ default: "Public",
639
+ }),
640
+ __metadata("design:type", String)
641
+ ], DataStore.prototype, "sensitivity", void 0);
642
+ __decorate([
643
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
644
+ (0, TableColumn_1.default)({
645
+ type: TableColumnType_1.default.ShortText,
646
+ required: false,
647
+ canReadOnRelationQuery: true,
648
+ title: "Sensitivity Override",
649
+ description: "A sensitivity people set by hand, which the store is treated as instead of what the scans found.",
650
+ }),
651
+ (0, typeorm_1.Column)({
652
+ type: ColumnType_1.default.ShortText,
653
+ length: ColumnLength_1.default.ShortText,
654
+ nullable: true,
655
+ }),
656
+ __metadata("design:type", String)
657
+ ], DataStore.prototype, "sensitivityOverride", void 0);
658
+ __decorate([
659
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
660
+ (0, TableColumn_1.default)({
661
+ type: TableColumnType_1.default.JSON,
662
+ required: false,
663
+ computed: true,
664
+ title: "Data Types",
665
+ description: "The data types found in the store with at least Medium confidence.",
666
+ }),
667
+ (0, typeorm_1.Column)({
668
+ type: ColumnType_1.default.JSON,
669
+ nullable: true,
670
+ }),
671
+ __metadata("design:type", Array)
672
+ ], DataStore.prototype, "dataTypeIds", void 0);
673
+ __decorate([
674
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
675
+ (0, TableColumn_1.default)({
676
+ type: TableColumnType_1.default.JSON,
677
+ required: false,
678
+ computed: true,
679
+ title: "Data Categories",
680
+ description: "The categories of those data types.",
681
+ }),
682
+ (0, typeorm_1.Column)({
683
+ type: ColumnType_1.default.JSON,
684
+ nullable: true,
685
+ }),
686
+ __metadata("design:type", Array)
687
+ ], DataStore.prototype, "dataCategories", void 0);
688
+ __decorate([
689
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
690
+ (0, TableColumn_1.default)({
691
+ type: TableColumnType_1.default.JSON,
692
+ required: false,
693
+ computed: true,
694
+ title: "Data Subject Countries",
695
+ description: "Countries whose people's data the store holds, from country-bound data types (ISO 3166-1 alpha-2).",
696
+ }),
697
+ (0, typeorm_1.Column)({
698
+ type: ColumnType_1.default.JSON,
699
+ nullable: true,
700
+ }),
701
+ __metadata("design:type", Array)
702
+ ], DataStore.prototype, "subjectCountries", void 0);
703
+ __decorate([
704
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
705
+ (0, TableColumn_1.default)({
706
+ type: TableColumnType_1.default.ShortText,
707
+ required: true,
708
+ computed: true,
709
+ canReadOnRelationQuery: true,
710
+ title: "Exposure",
711
+ description: "Where the store sits relative to the internet and other organizations: Public, Other accounts, Internet reachable, Private or Unknown.",
712
+ defaultValue: "Unknown",
713
+ isDefaultValueColumn: true,
714
+ }),
715
+ (0, typeorm_1.Column)({
716
+ type: ColumnType_1.default.ShortText,
717
+ length: ColumnLength_1.default.ShortText,
718
+ nullable: false,
719
+ default: "Unknown",
720
+ }),
721
+ __metadata("design:type", String)
722
+ ], DataStore.prototype, "exposure", void 0);
723
+ __decorate([
724
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
725
+ (0, TableColumn_1.default)({
726
+ type: TableColumnType_1.default.JSON,
727
+ required: false,
728
+ computed: true,
729
+ title: "Configuration",
730
+ description: "What the store's configuration says about its safety: public access, encryption, backups, logging and the rest.",
731
+ }),
732
+ (0, typeorm_1.Column)({
733
+ type: ColumnType_1.default.JSON,
734
+ nullable: true,
735
+ }),
736
+ __metadata("design:type", Object)
737
+ ], DataStore.prototype, "posture", void 0);
738
+ __decorate([
739
+ (0, ColumnAccessControl_1.default)(hiddenColumnAccess),
740
+ (0, TableColumn_1.default)({
741
+ type: TableColumnType_1.default.JSON,
742
+ required: false,
743
+ computed: true,
744
+ title: "Fingerprints",
745
+ description: "16-bit MinHash fingerprints of matched values by data type, used to find copies between stores.",
746
+ }),
747
+ (0, typeorm_1.Column)({
748
+ type: ColumnType_1.default.JSON,
749
+ nullable: true,
750
+ }),
751
+ __metadata("design:type", Object)
752
+ ], DataStore.prototype, "fingerprints", void 0);
753
+ __decorate([
754
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
755
+ (0, TableColumn_1.default)({
756
+ type: TableColumnType_1.default.JSON,
757
+ required: false,
758
+ computed: true,
759
+ title: "Tags",
760
+ description: "The store's tags or labels in its cloud.",
761
+ }),
762
+ (0, typeorm_1.Column)({
763
+ type: ColumnType_1.default.JSON,
764
+ nullable: true,
765
+ }),
766
+ __metadata("design:type", Object)
767
+ ], DataStore.prototype, "cloudTags", void 0);
768
+ __decorate([
769
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
770
+ (0, TableColumn_1.default)({
771
+ type: TableColumnType_1.default.BigNumber,
772
+ required: false,
773
+ computed: true,
774
+ canReadOnRelationQuery: true,
775
+ title: "Size (Bytes)",
776
+ description: "How much data the store holds, from the metrics already collected.",
777
+ }),
778
+ (0, typeorm_1.Column)({
779
+ type: ColumnType_1.default.BigNumber,
780
+ nullable: true,
781
+ transformer: bigNumberTransformer,
782
+ }),
783
+ __metadata("design:type", Number)
784
+ ], DataStore.prototype, "sizeInBytes", void 0);
785
+ __decorate([
786
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
787
+ (0, TableColumn_1.default)({
788
+ type: TableColumnType_1.default.BigNumber,
789
+ required: false,
790
+ computed: true,
791
+ canReadOnRelationQuery: true,
792
+ title: "Objects",
793
+ description: "How many objects, rows or documents the store holds, when known.",
794
+ }),
795
+ (0, typeorm_1.Column)({
796
+ type: ColumnType_1.default.BigNumber,
797
+ nullable: true,
798
+ transformer: bigNumberTransformer,
799
+ }),
800
+ __metadata("design:type", Number)
801
+ ], DataStore.prototype, "objectCount", void 0);
802
+ __decorate([
803
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
804
+ (0, TableColumn_1.default)({
805
+ type: TableColumnType_1.default.BigNumber,
806
+ required: false,
807
+ computed: true,
808
+ canReadOnRelationQuery: true,
809
+ title: "Estimated Sensitive Records",
810
+ description: "An estimate of how many records with sensitive data the store holds, from its samples.",
811
+ }),
812
+ (0, typeorm_1.Column)({
813
+ type: ColumnType_1.default.BigNumber,
814
+ nullable: true,
815
+ transformer: bigNumberTransformer,
816
+ }),
817
+ __metadata("design:type", Number)
818
+ ], DataStore.prototype, "estimatedRecords", void 0);
819
+ __decorate([
820
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
821
+ (0, TableColumn_1.default)({
822
+ type: TableColumnType_1.default.Date,
823
+ required: false,
824
+ computed: true,
825
+ canReadOnRelationQuery: true,
826
+ title: "Last Activity At",
827
+ description: "When the store was last read or written, when its metrics or traces say.",
828
+ }),
829
+ (0, typeorm_1.Column)({
830
+ type: ColumnType_1.default.Date,
831
+ nullable: true,
832
+ }),
833
+ __metadata("design:type", Date)
834
+ ], DataStore.prototype, "lastActivityAt", void 0);
835
+ __decorate([
836
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
837
+ (0, TableColumn_1.default)({
838
+ type: TableColumnType_1.default.Boolean,
839
+ required: true,
840
+ canReadOnRelationQuery: true,
841
+ title: "Public By Design",
842
+ description: "The store is meant to be public, such as a website's assets. Public access checks pass for it.",
843
+ defaultValue: false,
844
+ isDefaultValueColumn: true,
845
+ }),
846
+ (0, typeorm_1.Column)({
847
+ type: ColumnType_1.default.Boolean,
848
+ nullable: false,
849
+ default: false,
850
+ }),
851
+ __metadata("design:type", Boolean)
852
+ ], DataStore.prototype, "isPublicByDesign", void 0);
853
+ __decorate([
854
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
855
+ (0, TableColumn_1.default)({
856
+ type: TableColumnType_1.default.Boolean,
857
+ required: true,
858
+ canReadOnRelationQuery: true,
859
+ title: "Used For AI",
860
+ description: "The store holds data used to train or ground an AI model.",
861
+ defaultValue: false,
862
+ isDefaultValueColumn: true,
863
+ }),
864
+ (0, typeorm_1.Column)({
865
+ type: ColumnType_1.default.Boolean,
866
+ nullable: false,
867
+ default: false,
868
+ }),
869
+ __metadata("design:type", Boolean)
870
+ ], DataStore.prototype, "isAiData", void 0);
871
+ __decorate([
872
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
873
+ (0, TableColumn_1.default)({
874
+ type: TableColumnType_1.default.Boolean,
875
+ required: true,
876
+ canReadOnRelationQuery: true,
877
+ title: "Scan Content",
878
+ description: "Whether Data Security samples the store's content. Configuration checks run either way.",
879
+ defaultValue: true,
880
+ isDefaultValueColumn: true,
881
+ }),
882
+ (0, typeorm_1.Column)({
883
+ type: ColumnType_1.default.Boolean,
884
+ nullable: false,
885
+ default: true,
886
+ }),
887
+ __metadata("design:type", Boolean)
888
+ ], DataStore.prototype, "isContentScanEnabled", void 0);
889
+ __decorate([
890
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
891
+ (0, TableColumn_1.default)({
892
+ manyToOneRelationColumn: "scanProbeId",
893
+ type: TableColumnType_1.default.Entity,
894
+ modelType: Probe_1.default,
895
+ title: "Scan From Probe",
896
+ description: "Relation to the probe that scans this store.",
897
+ }),
898
+ (0, typeorm_1.ManyToOne)(() => {
899
+ return Probe_1.default;
900
+ }, {
901
+ eager: false,
902
+ nullable: true,
903
+ onDelete: "SET NULL",
904
+ orphanedRowAction: "nullify",
905
+ }),
906
+ (0, typeorm_1.JoinColumn)({ name: "scanProbeId" }),
907
+ __metadata("design:type", Probe_1.default)
908
+ ], DataStore.prototype, "scanProbe", void 0);
909
+ __decorate([
910
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
911
+ (0, typeorm_1.Index)(),
912
+ (0, TableColumn_1.default)({
913
+ type: TableColumnType_1.default.ObjectID,
914
+ required: false,
915
+ canReadOnRelationQuery: true,
916
+ title: "Scan From Probe ID",
917
+ description: "A probe that scans the store's content from inside your network instead of OneUptime's workers.",
918
+ }),
919
+ (0, typeorm_1.Column)({
920
+ type: ColumnType_1.default.ObjectID,
921
+ nullable: true,
922
+ transformer: ObjectID_1.default.getDatabaseTransformer(),
923
+ }),
924
+ __metadata("design:type", ObjectID_1.default)
925
+ ], DataStore.prototype, "scanProbeId", void 0);
926
+ __decorate([
927
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
928
+ (0, TableColumn_1.default)({
929
+ type: TableColumnType_1.default.ShortText,
930
+ required: false,
931
+ canReadOnRelationQuery: true,
932
+ title: "Probe Connection Variable",
933
+ description: "For a database scanned from a probe: the environment variable on that probe that holds its connection string. The connection string itself never reaches OneUptime.",
934
+ }),
935
+ (0, typeorm_1.Column)({
936
+ type: ColumnType_1.default.ShortText,
937
+ length: ColumnLength_1.default.ShortText,
938
+ nullable: true,
939
+ }),
940
+ __metadata("design:type", String)
941
+ ], DataStore.prototype, "probeConnectionVariable", void 0);
942
+ __decorate([
943
+ (0, ColumnAccessControl_1.default)(secretColumnAccess),
944
+ (0, TableColumn_1.default)({
945
+ type: TableColumnType_1.default.VeryLongText,
946
+ required: false,
947
+ encrypted: true,
948
+ title: "Connection String",
949
+ description: "For a database scanned by OneUptime's workers: a read-only connection string. Encrypted at rest and never returned by the API.",
950
+ }),
951
+ (0, typeorm_1.Column)({
952
+ type: ColumnType_1.default.VeryLongText,
953
+ nullable: true,
954
+ }),
955
+ __metadata("design:type", String)
956
+ ], DataStore.prototype, "connectionString", void 0);
957
+ __decorate([
958
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
959
+ (0, TableColumn_1.default)({
960
+ type: TableColumnType_1.default.JSON,
961
+ required: false,
962
+ title: "Scan Exclusions",
963
+ description: "Path prefixes, tables or attribute keys the content scan skips.",
964
+ }),
965
+ (0, typeorm_1.Column)({
966
+ type: ColumnType_1.default.JSON,
967
+ nullable: true,
968
+ }),
969
+ __metadata("design:type", Array)
970
+ ], DataStore.prototype, "scanExclusions", void 0);
971
+ __decorate([
972
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
973
+ (0, TableColumn_1.default)({
974
+ type: TableColumnType_1.default.LongText,
975
+ required: false,
976
+ canReadOnRelationQuery: true,
977
+ title: "Purpose",
978
+ description: "Why the store holds personal data, for the GDPR record of processing.",
979
+ }),
980
+ (0, typeorm_1.Column)({
981
+ type: ColumnType_1.default.LongText,
982
+ length: ColumnLength_1.default.LongText,
983
+ nullable: true,
984
+ }),
985
+ __metadata("design:type", String)
986
+ ], DataStore.prototype, "purpose", void 0);
987
+ __decorate([
988
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
989
+ (0, TableColumn_1.default)({
990
+ type: TableColumnType_1.default.ShortText,
991
+ required: false,
992
+ canReadOnRelationQuery: true,
993
+ title: "Retention",
994
+ description: "How long data is kept in the store, for the GDPR record of processing.",
995
+ }),
996
+ (0, typeorm_1.Column)({
997
+ type: ColumnType_1.default.ShortText,
998
+ length: ColumnLength_1.default.ShortText,
999
+ nullable: true,
1000
+ }),
1001
+ __metadata("design:type", String)
1002
+ ], DataStore.prototype, "retention", void 0);
1003
+ __decorate([
1004
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1005
+ (0, TableColumn_1.default)({
1006
+ type: TableColumnType_1.default.Date,
1007
+ required: false,
1008
+ computed: true,
1009
+ canReadOnRelationQuery: true,
1010
+ title: "Configuration Read At",
1011
+ description: "When the store's configuration and access were last read.",
1012
+ }),
1013
+ (0, typeorm_1.Column)({
1014
+ type: ColumnType_1.default.Date,
1015
+ nullable: true,
1016
+ }),
1017
+ __metadata("design:type", Date)
1018
+ ], DataStore.prototype, "configurationReadAt", void 0);
1019
+ __decorate([
1020
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1021
+ (0, TableColumn_1.default)({
1022
+ type: TableColumnType_1.default.Date,
1023
+ required: false,
1024
+ computed: true,
1025
+ canReadOnRelationQuery: true,
1026
+ title: "Content Scanned At",
1027
+ description: "When the store's content was last sampled.",
1028
+ }),
1029
+ (0, typeorm_1.Column)({
1030
+ type: ColumnType_1.default.Date,
1031
+ nullable: true,
1032
+ }),
1033
+ __metadata("design:type", Date)
1034
+ ], DataStore.prototype, "contentScannedAt", void 0);
1035
+ __decorate([
1036
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1037
+ (0, TableColumn_1.default)({
1038
+ type: TableColumnType_1.default.ShortText,
1039
+ required: false,
1040
+ computed: true,
1041
+ canReadOnRelationQuery: true,
1042
+ title: "Content Scan Status",
1043
+ description: "How the last content scan ended, or why it could not run.",
1044
+ }),
1045
+ (0, typeorm_1.Column)({
1046
+ type: ColumnType_1.default.ShortText,
1047
+ length: ColumnLength_1.default.ShortText,
1048
+ nullable: true,
1049
+ }),
1050
+ __metadata("design:type", String)
1051
+ ], DataStore.prototype, "contentScanStatus", void 0);
1052
+ __decorate([
1053
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1054
+ (0, typeorm_1.Index)(),
1055
+ (0, TableColumn_1.default)({
1056
+ type: TableColumnType_1.default.Date,
1057
+ required: false,
1058
+ computed: true,
1059
+ canReadOnRelationQuery: true,
1060
+ title: "Next Content Scan At",
1061
+ description: "When the store's content is next sampled.",
1062
+ }),
1063
+ (0, typeorm_1.Column)({
1064
+ type: ColumnType_1.default.Date,
1065
+ nullable: true,
1066
+ }),
1067
+ __metadata("design:type", Date)
1068
+ ], DataStore.prototype, "nextContentScanAt", void 0);
1069
+ __decorate([
1070
+ (0, ColumnAccessControl_1.default)(hiddenColumnAccess),
1071
+ (0, TableColumn_1.default)({
1072
+ type: TableColumnType_1.default.JSON,
1073
+ required: false,
1074
+ computed: true,
1075
+ title: "Content Scan State",
1076
+ description: "Where the last content scan got to, so the next one skips what has not changed.",
1077
+ }),
1078
+ (0, typeorm_1.Column)({
1079
+ type: ColumnType_1.default.JSON,
1080
+ nullable: true,
1081
+ }),
1082
+ __metadata("design:type", Object)
1083
+ ], DataStore.prototype, "contentScanState", void 0);
1084
+ __decorate([
1085
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1086
+ (0, TableColumn_1.default)({
1087
+ type: TableColumnType_1.default.Number,
1088
+ required: true,
1089
+ computed: true,
1090
+ canReadOnRelationQuery: true,
1091
+ title: "Findings",
1092
+ description: "How many data types were found at how many locations.",
1093
+ defaultValue: 0,
1094
+ isDefaultValueColumn: true,
1095
+ }),
1096
+ (0, typeorm_1.Column)({
1097
+ type: ColumnType_1.default.Number,
1098
+ nullable: false,
1099
+ default: 0,
1100
+ }),
1101
+ __metadata("design:type", Number)
1102
+ ], DataStore.prototype, "findingCount", void 0);
1103
+ __decorate([
1104
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1105
+ (0, TableColumn_1.default)({
1106
+ type: TableColumnType_1.default.Number,
1107
+ required: true,
1108
+ computed: true,
1109
+ canReadOnRelationQuery: true,
1110
+ title: "Open Issues",
1111
+ description: "How many of the store's issues are open.",
1112
+ defaultValue: 0,
1113
+ isDefaultValueColumn: true,
1114
+ }),
1115
+ (0, typeorm_1.Column)({
1116
+ type: ColumnType_1.default.Number,
1117
+ nullable: false,
1118
+ default: 0,
1119
+ }),
1120
+ __metadata("design:type", Number)
1121
+ ], DataStore.prototype, "openIssueCount", void 0);
1122
+ __decorate([
1123
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1124
+ (0, TableColumn_1.default)({
1125
+ type: TableColumnType_1.default.ShortText,
1126
+ required: false,
1127
+ computed: true,
1128
+ canReadOnRelationQuery: true,
1129
+ title: "Highest Issue Severity",
1130
+ description: "The severity of the store's worst open issue.",
1131
+ }),
1132
+ (0, typeorm_1.Column)({
1133
+ type: ColumnType_1.default.ShortText,
1134
+ length: ColumnLength_1.default.ShortText,
1135
+ nullable: true,
1136
+ }),
1137
+ __metadata("design:type", String)
1138
+ ], DataStore.prototype, "highestIssueSeverity", void 0);
1139
+ __decorate([
1140
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1141
+ (0, typeorm_1.Index)(),
1142
+ (0, TableColumn_1.default)({
1143
+ type: TableColumnType_1.default.Number,
1144
+ required: true,
1145
+ computed: true,
1146
+ canReadOnRelationQuery: true,
1147
+ title: "Risk Score",
1148
+ description: "The risk score of the store's worst open issue, from 0 to 100.",
1149
+ defaultValue: 0,
1150
+ isDefaultValueColumn: true,
1151
+ }),
1152
+ (0, typeorm_1.Column)({
1153
+ type: ColumnType_1.default.Number,
1154
+ nullable: false,
1155
+ default: 0,
1156
+ }),
1157
+ __metadata("design:type", Number)
1158
+ ], DataStore.prototype, "riskScore", void 0);
1159
+ __decorate([
1160
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1161
+ (0, TableColumn_1.default)({
1162
+ type: TableColumnType_1.default.Boolean,
1163
+ required: true,
1164
+ computed: true,
1165
+ canReadOnRelationQuery: true,
1166
+ title: "Archived",
1167
+ description: "The store is gone from its cloud or source; it is kept with its history.",
1168
+ defaultValue: false,
1169
+ isDefaultValueColumn: true,
1170
+ }),
1171
+ (0, typeorm_1.Column)({
1172
+ type: ColumnType_1.default.Boolean,
1173
+ nullable: false,
1174
+ default: false,
1175
+ }),
1176
+ __metadata("design:type", Boolean)
1177
+ ], DataStore.prototype, "isArchived", void 0);
1178
+ __decorate([
1179
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1180
+ (0, TableColumn_1.default)({
1181
+ type: TableColumnType_1.default.Date,
1182
+ required: false,
1183
+ computed: true,
1184
+ canReadOnRelationQuery: true,
1185
+ title: "First Seen At",
1186
+ description: "When OneUptime first found the store.",
1187
+ }),
1188
+ (0, typeorm_1.Column)({
1189
+ type: ColumnType_1.default.Date,
1190
+ nullable: true,
1191
+ }),
1192
+ __metadata("design:type", Date)
1193
+ ], DataStore.prototype, "firstSeenAt", void 0);
1194
+ __decorate([
1195
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1196
+ (0, TableColumn_1.default)({
1197
+ type: TableColumnType_1.default.Date,
1198
+ required: false,
1199
+ computed: true,
1200
+ canReadOnRelationQuery: true,
1201
+ title: "Last Seen At",
1202
+ description: "When OneUptime last found the store.",
1203
+ }),
1204
+ (0, typeorm_1.Column)({
1205
+ type: ColumnType_1.default.Date,
1206
+ nullable: true,
1207
+ }),
1208
+ __metadata("design:type", Date)
1209
+ ], DataStore.prototype, "lastSeenAt", void 0);
1210
+ __decorate([
1211
+ (0, ColumnAccessControl_1.default)(editableColumnAccess),
1212
+ (0, TableColumn_1.default)({
1213
+ required: false,
1214
+ type: TableColumnType_1.default.EntityArray,
1215
+ modelType: Label_1.default,
1216
+ title: "Labels",
1217
+ description: "Relation to Labels Array where this object is categorized in.",
1218
+ }),
1219
+ (0, typeorm_1.ManyToMany)(() => {
1220
+ return Label_1.default;
1221
+ }, { eager: false }),
1222
+ (0, typeorm_1.JoinTable)({
1223
+ name: "DataStoreLabel",
1224
+ inverseJoinColumn: {
1225
+ name: "labelId",
1226
+ referencedColumnName: "_id",
1227
+ },
1228
+ joinColumn: {
1229
+ name: "dataStoreId",
1230
+ referencedColumnName: "_id",
1231
+ },
1232
+ }),
1233
+ __metadata("design:type", Array)
1234
+ ], DataStore.prototype, "labels", void 0);
1235
+ __decorate([
1236
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1237
+ (0, TableColumn_1.default)({
1238
+ manyToOneRelationColumn: "createdByUserId",
1239
+ type: TableColumnType_1.default.Entity,
1240
+ modelType: User_1.default,
1241
+ title: "Created By User",
1242
+ description: "Relation to the user who created this data store.",
1243
+ }),
1244
+ (0, typeorm_1.ManyToOne)(() => {
1245
+ return User_1.default;
1246
+ }, {
1247
+ eager: false,
1248
+ nullable: true,
1249
+ onDelete: "SET NULL",
1250
+ orphanedRowAction: "nullify",
1251
+ }),
1252
+ (0, typeorm_1.JoinColumn)({ name: "createdByUserId" }),
1253
+ __metadata("design:type", User_1.default)
1254
+ ], DataStore.prototype, "createdByUser", void 0);
1255
+ __decorate([
1256
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1257
+ (0, TableColumn_1.default)({
1258
+ type: TableColumnType_1.default.ObjectID,
1259
+ title: "Created By User ID",
1260
+ description: "ID of the user who created this data store.",
1261
+ }),
1262
+ (0, typeorm_1.Column)({
1263
+ type: ColumnType_1.default.ObjectID,
1264
+ nullable: true,
1265
+ transformer: ObjectID_1.default.getDatabaseTransformer(),
1266
+ }),
1267
+ __metadata("design:type", ObjectID_1.default)
1268
+ ], DataStore.prototype, "createdByUserId", void 0);
1269
+ __decorate([
1270
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1271
+ (0, TableColumn_1.default)({
1272
+ manyToOneRelationColumn: "deletedByUserId",
1273
+ type: TableColumnType_1.default.Entity,
1274
+ modelType: User_1.default,
1275
+ title: "Deleted By User",
1276
+ description: "Relation to the user who deleted this data store.",
1277
+ }),
1278
+ (0, typeorm_1.ManyToOne)(() => {
1279
+ return User_1.default;
1280
+ }, {
1281
+ eager: false,
1282
+ nullable: true,
1283
+ onDelete: "SET NULL",
1284
+ orphanedRowAction: "nullify",
1285
+ }),
1286
+ (0, typeorm_1.JoinColumn)({ name: "deletedByUserId" }),
1287
+ __metadata("design:type", User_1.default)
1288
+ ], DataStore.prototype, "deletedByUser", void 0);
1289
+ __decorate([
1290
+ (0, ColumnAccessControl_1.default)(serverWrittenColumnAccess),
1291
+ (0, TableColumn_1.default)({
1292
+ type: TableColumnType_1.default.ObjectID,
1293
+ title: "Deleted By User ID",
1294
+ description: "ID of the user who deleted this data store.",
1295
+ }),
1296
+ (0, typeorm_1.Column)({
1297
+ type: ColumnType_1.default.ObjectID,
1298
+ nullable: true,
1299
+ transformer: ObjectID_1.default.getDatabaseTransformer(),
1300
+ }),
1301
+ __metadata("design:type", ObjectID_1.default)
1302
+ ], DataStore.prototype, "deletedByUserId", void 0);
1303
+ DataStore = __decorate([
1304
+ (0, AccessControlColumn_1.default)("labels"),
1305
+ (0, EnableDocumentation_1.default)(),
1306
+ (0, EnableMCP_1.default)(),
1307
+ (0, EnableAuditLog_1.default)(),
1308
+ (0, EnableWorkflow_1.default)({
1309
+ create: true,
1310
+ delete: true,
1311
+ update: true,
1312
+ read: true,
1313
+ }),
1314
+ (0, TableBillingAccessControl_1.default)({
1315
+ create: SubscriptionPlan_1.PlanType.Free,
1316
+ read: SubscriptionPlan_1.PlanType.Free,
1317
+ update: SubscriptionPlan_1.PlanType.Free,
1318
+ delete: SubscriptionPlan_1.PlanType.Free,
1319
+ }),
1320
+ (0, TenantColumn_1.default)("projectId"),
1321
+ (0, CrudApiEndpoint_1.default)(new Route_1.default("/data-store")),
1322
+ (0, typeorm_1.Entity)({
1323
+ name: "DataStore",
1324
+ }),
1325
+ (0, TableMetadata_1.default)({
1326
+ tableName: "DataStore",
1327
+ singularName: "Data Store",
1328
+ pluralName: "Data Stores",
1329
+ icon: IconProp_1.default.Database,
1330
+ tableDescription: "Every bucket, database, warehouse and telemetry stream Data Security knows: what sensitive data it holds, who can reach it and how it is configured.",
1331
+ }),
1332
+ (0, TableAccessControl_1.default)({
1333
+ create: createPermissions,
1334
+ read: readPermissions,
1335
+ update: updatePermissions,
1336
+ delete: deletePermissions,
1337
+ }),
1338
+ (0, typeorm_1.Index)(["projectId", "storeKey"], { unique: true }),
1339
+ (0, typeorm_1.Index)(["projectId", "sensitivity"]),
1340
+ (0, typeorm_1.Index)(["projectId", "kind"]),
1341
+ (0, typeorm_1.Index)(["projectId", "isArchived"])
1342
+ ], DataStore);
1343
+ exports.default = DataStore;