@oneuptime/common 14.0.94 → 14.0.96

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 (289) hide show
  1. package/Models/AnalyticsModels/ExceptionInstance.d.mts +2 -0
  2. package/Models/AnalyticsModels/ExceptionInstance.d.ts +2 -0
  3. package/Models/AnalyticsModels/ExceptionInstance.js +7 -0
  4. package/Models/AnalyticsModels/Log.d.mts +2 -0
  5. package/Models/AnalyticsModels/Log.d.ts +2 -0
  6. package/Models/AnalyticsModels/Log.js +7 -0
  7. package/Models/AnalyticsModels/SecurityEvent.d.mts +8 -0
  8. package/Models/AnalyticsModels/SecurityEvent.d.ts +8 -0
  9. package/Models/AnalyticsModels/SecurityEvent.js +55 -0
  10. package/Models/AnalyticsModels/Span.d.mts +4 -0
  11. package/Models/AnalyticsModels/Span.d.ts +4 -0
  12. package/Models/AnalyticsModels/Span.js +63 -0
  13. package/Models/DatabaseModels/CustomNotificationChannel.d.mts +16 -0
  14. package/Models/DatabaseModels/CustomNotificationChannel.d.ts +16 -0
  15. package/Models/DatabaseModels/CustomNotificationChannel.js +337 -0
  16. package/Models/DatabaseModels/CustomNotificationChannel.mjs +2 -0
  17. package/Models/DatabaseModels/DashboardPlaylist.d.mts +16 -0
  18. package/Models/DatabaseModels/DashboardPlaylist.d.ts +16 -0
  19. package/Models/DatabaseModels/DashboardPlaylist.js +314 -0
  20. package/Models/DatabaseModels/DashboardPlaylist.mjs +2 -0
  21. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js +14 -37
  22. package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.d.mts +1 -0
  23. package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.d.ts +1 -0
  24. package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.js +27 -3
  25. package/Models/DatabaseModels/DetectionRuleException.d.mts +25 -0
  26. package/Models/DatabaseModels/DetectionRuleException.d.ts +25 -0
  27. package/Models/DatabaseModels/DetectionRuleException.js +412 -0
  28. package/Models/DatabaseModels/DetectionRuleException.mjs +2 -0
  29. package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
  30. package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
  31. package/Models/DatabaseModels/GlobalConfig.js +107 -0
  32. package/Models/DatabaseModels/Index.js +8 -0
  33. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +2 -0
  34. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +2 -0
  35. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +40 -0
  36. package/Models/DatabaseModels/SecurityTelemetrySource.d.mts +21 -0
  37. package/Models/DatabaseModels/SecurityTelemetrySource.d.ts +21 -0
  38. package/Models/DatabaseModels/SecurityTelemetrySource.js +357 -0
  39. package/Models/DatabaseModels/SecurityTelemetrySource.mjs +2 -0
  40. package/Models/DatabaseModels/TeamComplianceSetting.js +2 -2
  41. package/Models/DatabaseModels/TeamPermission.js +5 -7
  42. package/Models/DatabaseModels/UserNotificationRule.d.mts +3 -0
  43. package/Models/DatabaseModels/UserNotificationRule.d.ts +3 -0
  44. package/Models/DatabaseModels/UserNotificationRule.js +67 -0
  45. package/Models/DatabaseModels/UserNotificationSetting.d.mts +1 -0
  46. package/Models/DatabaseModels/UserNotificationSetting.d.ts +1 -0
  47. package/Models/DatabaseModels/UserNotificationSetting.js +26 -0
  48. package/Models/DatabaseModels/UserOnCallLogTimeline.d.mts +3 -0
  49. package/Models/DatabaseModels/UserOnCallLogTimeline.d.ts +3 -0
  50. package/Models/DatabaseModels/UserOnCallLogTimeline.js +53 -0
  51. package/Types/AI/AIChatPermissionMode.js +11 -5
  52. package/Types/AI/ResourceCardFacts.d.mts +11 -0
  53. package/Types/AI/ResourceCardFacts.d.ts +11 -0
  54. package/Types/AI/ResourceCardFacts.js +80 -0
  55. package/Types/AI/ResourceCardFacts.mjs +4 -0
  56. package/Types/AnalyticsDatabase/TableColumn.d.mts +4 -0
  57. package/Types/AnalyticsDatabase/TableColumn.d.ts +4 -0
  58. package/Types/AnalyticsDatabase/TableColumn.js +7 -0
  59. package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.d.mts +2 -0
  60. package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.d.ts +2 -0
  61. package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.js +4 -0
  62. package/Types/Backup/BackupDestinationCatalog.d.mts +2 -0
  63. package/Types/Backup/BackupDestinationCatalog.d.ts +2 -0
  64. package/Types/Backup/BackupDestinationCatalog.js +8 -0
  65. package/Types/CallAndSMS/CallAndSmsGatewayPayload.d.mts +25 -0
  66. package/Types/CallAndSMS/CallAndSmsGatewayPayload.d.ts +25 -0
  67. package/Types/CallAndSMS/CallAndSmsGatewayPayload.js +86 -0
  68. package/Types/CallAndSMS/CallAndSmsGatewayPayload.mjs +6 -0
  69. package/Types/CallAndSMS/CallAndSmsProvider.d.mts +23 -0
  70. package/Types/CallAndSMS/CallAndSmsProvider.d.ts +23 -0
  71. package/Types/CallAndSMS/CallAndSmsProvider.js +107 -0
  72. package/Types/CallAndSMS/CallAndSmsProvider.mjs +7 -0
  73. package/Types/CloudConnection/CloudConnectionCatalog.d.mts +2 -0
  74. package/Types/CloudConnection/CloudConnectionCatalog.d.ts +2 -0
  75. package/Types/CloudConnection/CloudConnectionCatalog.js +4 -0
  76. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +95 -0
  77. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +95 -0
  78. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +236 -0
  79. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +16 -0
  80. package/Types/Dashboard/DashboardPlaylist.d.mts +21 -0
  81. package/Types/Dashboard/DashboardPlaylist.d.ts +21 -0
  82. package/Types/Dashboard/DashboardPlaylist.js +197 -0
  83. package/Types/Dashboard/DashboardPlaylist.mjs +19 -0
  84. package/Types/Database/TableColumn.d.mts +8 -0
  85. package/Types/Database/TableColumn.d.ts +8 -0
  86. package/Types/Database/TableColumn.js +69 -23
  87. package/Types/Database/TableColumn.mjs +1 -0
  88. package/Types/HeldPermissions.d.mts +2 -0
  89. package/Types/HeldPermissions.d.ts +2 -0
  90. package/Types/HeldPermissions.js +32 -8
  91. package/Types/Icon/IconProp.d.mts +3 -0
  92. package/Types/Icon/IconProp.d.ts +3 -0
  93. package/Types/Icon/IconProp.js +4 -0
  94. package/Types/JSONFunctions.js +16 -1
  95. package/Types/LlmObservability/LlmConnectionCatalog.d.mts +2 -0
  96. package/Types/LlmObservability/LlmConnectionCatalog.d.ts +2 -0
  97. package/Types/LlmObservability/LlmConnectionCatalog.js +8 -0
  98. package/Types/Monitor/MonitorType.js +5 -4
  99. package/Types/Monitor/TelemetryAlertRule.d.mts +111 -0
  100. package/Types/Monitor/TelemetryAlertRule.d.ts +111 -0
  101. package/Types/Monitor/TelemetryAlertRule.js +886 -0
  102. package/Types/Monitor/TelemetryAlertRule.mjs +5 -0
  103. package/Types/Monitor/TelemetryRulePreview.d.mts +57 -0
  104. package/Types/Monitor/TelemetryRulePreview.d.ts +57 -0
  105. package/Types/Monitor/TelemetryRulePreview.js +190 -0
  106. package/Types/Monitor/TelemetryRulePreview.mjs +6 -0
  107. package/Types/OnCallDutyPolicy/EveryNewEventRules.d.mts +23 -0
  108. package/Types/OnCallDutyPolicy/EveryNewEventRules.d.ts +23 -0
  109. package/Types/OnCallDutyPolicy/EveryNewEventRules.js +105 -0
  110. package/Types/OnCallDutyPolicy/EveryNewEventRules.mjs +9 -0
  111. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +3 -0
  112. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +3 -0
  113. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +23 -8
  114. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
  115. package/Types/OnCallDutyPolicy/OnCallPolicyAiHold.d.mts +47 -0
  116. package/Types/OnCallDutyPolicy/OnCallPolicyAiHold.d.ts +47 -0
  117. package/Types/OnCallDutyPolicy/OnCallPolicyAiHold.js +122 -0
  118. package/Types/OnCallDutyPolicy/OnCallPolicyAiHold.mjs +12 -0
  119. package/Types/OnCallDutyPolicy/OnCallRuleWhenToPage.d.mts +2 -1
  120. package/Types/OnCallDutyPolicy/OnCallRuleWhenToPage.d.ts +2 -1
  121. package/Types/OnCallDutyPolicy/OnCallRuleWhenToPage.js +10 -1
  122. package/Types/Permission.d.mts +10 -0
  123. package/Types/Permission.d.ts +10 -0
  124. package/Types/Permission.js +83 -19
  125. package/Types/ProviderLogo/ProviderLogo.d.mts +87 -0
  126. package/Types/ProviderLogo/ProviderLogo.d.ts +87 -0
  127. package/Types/ProviderLogo/ProviderLogo.js +215 -0
  128. package/Types/ProviderLogo/ProviderLogo.mjs +6 -0
  129. package/Types/PushNotification/PushNotificationsTurnedOff.d.mts +3 -0
  130. package/Types/PushNotification/PushNotificationsTurnedOff.d.ts +3 -0
  131. package/Types/PushNotification/PushNotificationsTurnedOff.js +32 -0
  132. package/Types/PushNotification/PushNotificationsTurnedOff.mjs +4 -0
  133. package/Types/RollingTime/RollingTimeUtil.js +20 -10
  134. package/Types/Runbook/RunbookTriggerType.d.mts +2 -1
  135. package/Types/Runbook/RunbookTriggerType.d.ts +2 -1
  136. package/Types/Runbook/RunbookTriggerType.js +5 -1
  137. package/Types/SecurityCase/SecurityCaseContext.d.mts +188 -0
  138. package/Types/SecurityCase/SecurityCaseContext.d.ts +188 -0
  139. package/Types/SecurityCase/SecurityCaseContext.js +165 -0
  140. package/Types/SecurityCase/SecurityCaseContext.mjs +30 -0
  141. package/Types/SecurityCase/SecurityEntityRisk.d.mts +11 -0
  142. package/Types/SecurityCase/SecurityEntityRisk.d.ts +11 -0
  143. package/Types/SecurityCase/SecurityEntityRisk.js +9 -1
  144. package/Types/SecurityCase/SecurityEntityRisk.mjs +1 -0
  145. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.mts +2 -0
  146. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.ts +2 -0
  147. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +9 -0
  148. package/Types/SecurityEvent/Destinations/SecurityEventDestinationCatalog.d.mts +2 -0
  149. package/Types/SecurityEvent/Destinations/SecurityEventDestinationCatalog.d.ts +2 -0
  150. package/Types/SecurityEvent/Destinations/SecurityEventDestinationCatalog.js +5 -0
  151. package/Types/SecurityEvent/DetectionRetrohunt.d.mts +38 -0
  152. package/Types/SecurityEvent/DetectionRetrohunt.d.ts +38 -0
  153. package/Types/SecurityEvent/DetectionRetrohunt.js +147 -0
  154. package/Types/SecurityEvent/DetectionRetrohunt.mjs +10 -0
  155. package/Types/SecurityEvent/DetectionRuleDataKind.d.mts +5 -1
  156. package/Types/SecurityEvent/DetectionRuleDataKind.d.ts +5 -1
  157. package/Types/SecurityEvent/DetectionRuleDataKind.js +42 -0
  158. package/Types/SecurityEvent/DetectionRuleException.d.mts +65 -0
  159. package/Types/SecurityEvent/DetectionRuleException.d.ts +65 -0
  160. package/Types/SecurityEvent/DetectionRuleException.js +441 -0
  161. package/Types/SecurityEvent/DetectionRuleException.mjs +24 -0
  162. package/Types/SecurityEvent/DetectionRuleLibrary.js +330 -0
  163. package/Types/SecurityEvent/NormalizedSecurityEvent.d.mts +5 -0
  164. package/Types/SecurityEvent/NormalizedSecurityEvent.d.ts +5 -0
  165. package/Types/SecurityEvent/SecurityAttackCampaign.d.mts +31 -0
  166. package/Types/SecurityEvent/SecurityAttackCampaign.d.ts +31 -0
  167. package/Types/SecurityEvent/SecurityAttackCampaign.js +81 -0
  168. package/Types/SecurityEvent/SecurityAttackCampaign.mjs +8 -0
  169. package/Types/SecurityEvent/SecurityEventRequestOutcome.d.mts +28 -0
  170. package/Types/SecurityEvent/SecurityEventRequestOutcome.d.ts +28 -0
  171. package/Types/SecurityEvent/SecurityEventRequestOutcome.js +78 -0
  172. package/Types/SecurityEvent/SecurityEventRequestOutcome.mjs +6 -0
  173. package/Types/SecurityEvent/SecurityTelemetrySource.d.mts +39 -0
  174. package/Types/SecurityEvent/SecurityTelemetrySource.d.ts +39 -0
  175. package/Types/SecurityEvent/SecurityTelemetrySource.js +127 -0
  176. package/Types/SecurityEvent/SecurityTelemetrySource.mjs +12 -0
  177. package/Types/SecurityEvent/TurnOnRecommended.d.mts +2 -0
  178. package/Types/SecurityEvent/TurnOnRecommended.d.ts +2 -0
  179. package/Types/SecurityEvent/TurnOnRecommended.js +7 -0
  180. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +7 -1
  181. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +7 -1
  182. package/Types/SecurityPlaybook/SecurityPlaybookAction.js +46 -0
  183. package/Types/SecurityPlaybook/SecurityPlaybookAction.mjs +1 -0
  184. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +10 -0
  185. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +10 -0
  186. package/Types/SecurityPlaybook/SecurityPlaybookStep.js +37 -1
  187. package/Types/SecurityPlaybook/SecurityPlaybookStep.mjs +1 -0
  188. package/Types/SecurityPlaybook/SecurityPlaybookTemplates.js +17 -0
  189. package/Types/Team/ComplianceNotificationChannel.d.mts +2 -1
  190. package/Types/Team/ComplianceNotificationChannel.d.ts +2 -1
  191. package/Types/Team/ComplianceNotificationChannel.js +10 -1
  192. package/Types/Team/ComplianceRule.d.mts +8 -3
  193. package/Types/Team/ComplianceRule.d.ts +8 -3
  194. package/Types/Team/ComplianceRule.js +34 -22
  195. package/Types/Team/TeamComplianceStatus.d.mts +1 -0
  196. package/Types/Team/TeamComplianceStatus.d.ts +1 -0
  197. package/Types/Telemetry/OpenTelemetryGuides.d.mts +52 -0
  198. package/Types/Telemetry/OpenTelemetryGuides.d.ts +52 -0
  199. package/Types/Telemetry/OpenTelemetryGuides.js +419 -0
  200. package/Types/Telemetry/OpenTelemetryGuides.mjs +17 -0
  201. package/Types/Telemetry/TelemetrySavedViewState.d.mts +1 -0
  202. package/Types/Telemetry/TelemetrySavedViewState.d.ts +1 -0
  203. package/Types/Telemetry/TraceHealth.d.mts +24 -0
  204. package/Types/Telemetry/TraceHealth.d.ts +24 -0
  205. package/Types/Telemetry/TraceHealth.js +97 -0
  206. package/Types/Telemetry/TraceHealth.mjs +4 -0
  207. package/Types/Telemetry/TraceSpanType.d.mts +90 -0
  208. package/Types/Telemetry/TraceSpanType.d.ts +90 -0
  209. package/Types/Telemetry/TraceSpanType.js +238 -0
  210. package/Types/Telemetry/TraceSpanType.mjs +19 -0
  211. package/Types/Theme/ThemePreference.d.mts +26 -0
  212. package/Types/Theme/ThemePreference.d.ts +26 -0
  213. package/Types/Theme/ThemePreference.js +104 -0
  214. package/Types/Theme/ThemePreference.mjs +12 -0
  215. package/Types/Workflow/Component.d.mts +3 -0
  216. package/Types/Workflow/Component.d.ts +3 -0
  217. package/Types/Workflow/Components/Discord.js +2 -0
  218. package/Types/Workflow/Components/Mattermost.js +2 -0
  219. package/Types/Workflow/Components/MicrosoftTeams.js +2 -0
  220. package/Types/Workflow/Components/Slack.js +2 -0
  221. package/Types/Workflow/Components/Telegram.js +2 -0
  222. package/Types/Workflow/Components.js +6 -0
  223. package/Types/Workflow/Templates.js +5 -3
  224. package/Utils/ColorContrast.d.mts +0 -3
  225. package/Utils/ColorContrast.d.ts +0 -3
  226. package/Utils/ColorContrast.js +3 -41
  227. package/Utils/ColorContrast.mjs +0 -2
  228. package/Utils/NameInitials.d.mts +5 -0
  229. package/Utils/NameInitials.d.ts +5 -0
  230. package/Utils/NameInitials.js +92 -0
  231. package/Utils/NameInitials.mjs +6 -0
  232. package/Utils/OldestKeyCursor.d.mts +7 -0
  233. package/Utils/OldestKeyCursor.d.ts +7 -0
  234. package/Utils/OldestKeyCursor.js +68 -0
  235. package/Utils/OldestKeyCursor.mjs +2 -0
  236. package/Utils/Schema/OpenApiMetadataRegistry.d.mts +4 -0
  237. package/Utils/Schema/OpenApiMetadataRegistry.d.ts +4 -0
  238. package/Utils/Schema/OpenApiMetadataRegistry.js +20 -0
  239. package/Utils/Schema/OpenApiMetadataRegistry.mjs +2 -0
  240. package/Utils/Schema/Zod.js +6 -0
  241. package/Utils/SecurityCase/SecurityCaseImpactFacts.d.mts +41 -0
  242. package/Utils/SecurityCase/SecurityCaseImpactFacts.d.ts +41 -0
  243. package/Utils/SecurityCase/SecurityCaseImpactFacts.js +215 -0
  244. package/Utils/SecurityCase/SecurityCaseImpactFacts.mjs +6 -0
  245. package/Utils/SecurityCase/SecurityCaseStoryItems.d.mts +46 -0
  246. package/Utils/SecurityCase/SecurityCaseStoryItems.d.ts +46 -0
  247. package/Utils/SecurityCase/SecurityCaseStoryItems.js +327 -0
  248. package/Utils/SecurityCase/SecurityCaseStoryItems.mjs +17 -0
  249. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +5 -0
  250. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +5 -0
  251. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +22 -2
  252. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +2 -0
  253. package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.mts +20 -0
  254. package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.ts +20 -0
  255. package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.js +347 -31
  256. package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.mjs +11 -0
  257. package/Utils/SecurityEvent/RequestFollowUp.d.mts +4 -0
  258. package/Utils/SecurityEvent/RequestFollowUp.d.ts +4 -0
  259. package/Utils/SecurityEvent/RequestFollowUp.js +127 -0
  260. package/Utils/SecurityEvent/RequestFollowUp.mjs +3 -0
  261. package/Utils/SecurityEvent/RequestOutcome.d.mts +80 -0
  262. package/Utils/SecurityEvent/RequestOutcome.d.ts +80 -0
  263. package/Utils/SecurityEvent/RequestOutcome.js +371 -0
  264. package/Utils/SecurityEvent/RequestOutcome.mjs +18 -0
  265. package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.d.mts +76 -0
  266. package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.d.ts +76 -0
  267. package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.js +348 -0
  268. package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.mjs +15 -0
  269. package/Utils/SecurityEvent/TelemetryScan/FlowSignals.d.mts +61 -0
  270. package/Utils/SecurityEvent/TelemetryScan/FlowSignals.d.ts +61 -0
  271. package/Utils/SecurityEvent/TelemetryScan/FlowSignals.js +260 -0
  272. package/Utils/SecurityEvent/TelemetryScan/FlowSignals.mjs +17 -0
  273. package/Utils/SecurityEvent/TelemetryScan/RumSignals.d.mts +30 -0
  274. package/Utils/SecurityEvent/TelemetryScan/RumSignals.d.ts +30 -0
  275. package/Utils/SecurityEvent/TelemetryScan/RumSignals.js +134 -0
  276. package/Utils/SecurityEvent/TelemetryScan/RumSignals.mjs +8 -0
  277. package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.d.mts +40 -0
  278. package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.d.ts +40 -0
  279. package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.js +190 -0
  280. package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.mjs +6 -0
  281. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.mts +57 -0
  282. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.ts +57 -0
  283. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.js +491 -0
  284. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.mjs +27 -0
  285. package/Utils/Telemetry/EntrySpan.d.mts +8 -0
  286. package/Utils/Telemetry/EntrySpan.d.ts +8 -0
  287. package/Utils/Telemetry/EntrySpan.js +53 -0
  288. package/Utils/Telemetry/EntrySpan.mjs +4 -0
  289. package/package.json +1 -1
@@ -0,0 +1,39 @@
1
+ export declare enum SecurityTelemetrySourceKind {
2
+ Traces = "traces",
3
+ NetworkFlows = "network-flows",
4
+ AuditLog = "audit-log",
5
+ RumSessions = "rum-sessions"
6
+ }
7
+ export interface SecurityTelemetrySourceDefinition {
8
+ kind: SecurityTelemetrySourceKind;
9
+ serviceName: string;
10
+ vendorName: string;
11
+ productName: string;
12
+ }
13
+ export declare const SECURITY_TELEMETRY_VENDOR_NAME: string;
14
+ export declare const SECURITY_TELEMETRY_SOURCES: ReadonlyArray<SecurityTelemetrySourceDefinition>;
15
+ export declare const SECURITY_TELEMETRY_SOURCE_KINDS: ReadonlyArray<SecurityTelemetrySourceKind>;
16
+ export declare function isSecurityTelemetrySourceKind(value: unknown): value is SecurityTelemetrySourceKind;
17
+ export declare function getSecurityTelemetrySourceDefinition(kind: SecurityTelemetrySourceKind): SecurityTelemetrySourceDefinition;
18
+ export declare const SECURITY_TELEMETRY_SIGNAL_ATTRIBUTE: string;
19
+ export declare enum SecurityTelemetrySignal {
20
+ WebAttack = "web-attack",
21
+ ServerSideRequestForgery = "ssrf",
22
+ PromptInjection = "prompt-injection",
23
+ PortScan = "port-scan",
24
+ NetworkSweep = "network-sweep",
25
+ ThreatIntelTraffic = "threat-intel-traffic",
26
+ LargeOutboundTransfer = "large-outbound-transfer",
27
+ ApiKeyCreated = "api-key-created",
28
+ ApiKeyDeleted = "api-key-deleted",
29
+ RoleChanged = "role-changed",
30
+ TeamChanged = "team-changed",
31
+ McpClientAuthorized = "mcp-client-authorized",
32
+ PacketCaptureDownloaded = "packet-capture-downloaded",
33
+ SecurityControlChanged = "security-control-changed",
34
+ MassDelete = "mass-delete",
35
+ UserInTwoCountries = "user-in-two-countries"
36
+ }
37
+ export declare const SECURITY_TELEMETRY_SIGNALS: ReadonlyArray<SecurityTelemetrySignal>;
38
+ export declare const SECURITY_TELEMETRY_SIGNAL_SOURCES: Record<SecurityTelemetrySignal, SecurityTelemetrySourceKind>;
39
+ export declare function isSecurityTelemetrySignal(value: unknown): value is SecurityTelemetrySignal;
@@ -0,0 +1,39 @@
1
+ export declare enum SecurityTelemetrySourceKind {
2
+ Traces = "traces",
3
+ NetworkFlows = "network-flows",
4
+ AuditLog = "audit-log",
5
+ RumSessions = "rum-sessions"
6
+ }
7
+ export interface SecurityTelemetrySourceDefinition {
8
+ kind: SecurityTelemetrySourceKind;
9
+ serviceName: string;
10
+ vendorName: string;
11
+ productName: string;
12
+ }
13
+ export declare const SECURITY_TELEMETRY_VENDOR_NAME: string;
14
+ export declare const SECURITY_TELEMETRY_SOURCES: ReadonlyArray<SecurityTelemetrySourceDefinition>;
15
+ export declare const SECURITY_TELEMETRY_SOURCE_KINDS: ReadonlyArray<SecurityTelemetrySourceKind>;
16
+ export declare function isSecurityTelemetrySourceKind(value: unknown): value is SecurityTelemetrySourceKind;
17
+ export declare function getSecurityTelemetrySourceDefinition(kind: SecurityTelemetrySourceKind): SecurityTelemetrySourceDefinition;
18
+ export declare const SECURITY_TELEMETRY_SIGNAL_ATTRIBUTE: string;
19
+ export declare enum SecurityTelemetrySignal {
20
+ WebAttack = "web-attack",
21
+ ServerSideRequestForgery = "ssrf",
22
+ PromptInjection = "prompt-injection",
23
+ PortScan = "port-scan",
24
+ NetworkSweep = "network-sweep",
25
+ ThreatIntelTraffic = "threat-intel-traffic",
26
+ LargeOutboundTransfer = "large-outbound-transfer",
27
+ ApiKeyCreated = "api-key-created",
28
+ ApiKeyDeleted = "api-key-deleted",
29
+ RoleChanged = "role-changed",
30
+ TeamChanged = "team-changed",
31
+ McpClientAuthorized = "mcp-client-authorized",
32
+ PacketCaptureDownloaded = "packet-capture-downloaded",
33
+ SecurityControlChanged = "security-control-changed",
34
+ MassDelete = "mass-delete",
35
+ UserInTwoCountries = "user-in-two-countries"
36
+ }
37
+ export declare const SECURITY_TELEMETRY_SIGNALS: ReadonlyArray<SecurityTelemetrySignal>;
38
+ export declare const SECURITY_TELEMETRY_SIGNAL_SOURCES: Record<SecurityTelemetrySignal, SecurityTelemetrySourceKind>;
39
+ export declare function isSecurityTelemetrySignal(value: unknown): value is SecurityTelemetrySignal;
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SECURITY_TELEMETRY_SIGNAL_SOURCES = exports.SECURITY_TELEMETRY_SIGNALS = exports.SecurityTelemetrySignal = exports.SECURITY_TELEMETRY_SIGNAL_ATTRIBUTE = exports.SECURITY_TELEMETRY_SOURCE_KINDS = exports.SECURITY_TELEMETRY_SOURCES = exports.SECURITY_TELEMETRY_VENDOR_NAME = exports.SecurityTelemetrySourceKind = void 0;
4
+ exports.isSecurityTelemetrySourceKind = isSecurityTelemetrySourceKind;
5
+ exports.getSecurityTelemetrySourceDefinition = getSecurityTelemetrySourceDefinition;
6
+ exports.isSecurityTelemetrySignal = isSecurityTelemetrySignal;
7
+ /*
8
+ * "Your OneUptime data" as security sources: the telemetry beyond logs that
9
+ * OneUptime already holds for a project, read for what an attack leaves in
10
+ * it - the way "Your logs" (SecurityLogFormat) reads the logs.
11
+ *
12
+ * traces requests whose URL carries an attack, requests that
13
+ * send the app to a cloud metadata address, and prompts to
14
+ * an LLM that try to override its instructions;
15
+ * network flows one address scanning ports or hosts, traffic with an
16
+ * address threat intel knows, large transfers out;
17
+ * audit log API keys, roles, teams, MCP clients and packet captures
18
+ * changed in OneUptime itself, and many deletes at once;
19
+ * session replay one signed-in user in two countries within the hour.
20
+ *
21
+ * One switch per kind per project (SecurityTelemetrySource), read every
22
+ * minute by Server/Utils/SecurityEvent/TelemetryScan. Every event a kind
23
+ * finds is attributed to the kind's own "OneUptime ..." service and carries
24
+ * the vendor "OneUptime" and the kind's product, which is how the rule
25
+ * library tells the project sends it (DetectionRuleDataKind).
26
+ */
27
+ var SecurityTelemetrySourceKind;
28
+ (function (SecurityTelemetrySourceKind) {
29
+ SecurityTelemetrySourceKind["Traces"] = "traces";
30
+ SecurityTelemetrySourceKind["NetworkFlows"] = "network-flows";
31
+ SecurityTelemetrySourceKind["AuditLog"] = "audit-log";
32
+ SecurityTelemetrySourceKind["RumSessions"] = "rum-sessions";
33
+ })(SecurityTelemetrySourceKind || (exports.SecurityTelemetrySourceKind = SecurityTelemetrySourceKind = {}));
34
+ exports.SECURITY_TELEMETRY_VENDOR_NAME = "OneUptime";
35
+ exports.SECURITY_TELEMETRY_SOURCES = [
36
+ {
37
+ kind: SecurityTelemetrySourceKind.Traces,
38
+ serviceName: "OneUptime Traces",
39
+ vendorName: exports.SECURITY_TELEMETRY_VENDOR_NAME,
40
+ productName: "OneUptime Traces",
41
+ },
42
+ {
43
+ kind: SecurityTelemetrySourceKind.NetworkFlows,
44
+ serviceName: "OneUptime Network Flows",
45
+ vendorName: exports.SECURITY_TELEMETRY_VENDOR_NAME,
46
+ productName: "OneUptime Network Flows",
47
+ },
48
+ {
49
+ kind: SecurityTelemetrySourceKind.AuditLog,
50
+ serviceName: "OneUptime Audit Log",
51
+ vendorName: exports.SECURITY_TELEMETRY_VENDOR_NAME,
52
+ productName: "OneUptime Audit Log",
53
+ },
54
+ {
55
+ kind: SecurityTelemetrySourceKind.RumSessions,
56
+ serviceName: "OneUptime Session Replay",
57
+ vendorName: exports.SECURITY_TELEMETRY_VENDOR_NAME,
58
+ productName: "OneUptime Session Replay",
59
+ },
60
+ ];
61
+ exports.SECURITY_TELEMETRY_SOURCE_KINDS = exports.SECURITY_TELEMETRY_SOURCES.map((definition) => {
62
+ return definition.kind;
63
+ });
64
+ function isSecurityTelemetrySourceKind(value) {
65
+ return (typeof value === "string" &&
66
+ exports.SECURITY_TELEMETRY_SOURCE_KINDS.includes(value));
67
+ }
68
+ function getSecurityTelemetrySourceDefinition(kind) {
69
+ return exports.SECURITY_TELEMETRY_SOURCES.find((definition) => {
70
+ return definition.kind === kind;
71
+ });
72
+ }
73
+ /*
74
+ * What an event of a telemetry source is, on every one it stores: the rule
75
+ * library's rules for these sources match it, and a search reads it
76
+ * (`@oneuptime.signal:port-scan`). The source itself goes under the key
77
+ * "Your logs" uses (SECURITY_LOG_SOURCE_ATTRIBUTE, "oneuptime.source"), with
78
+ * the kind as its value.
79
+ */
80
+ exports.SECURITY_TELEMETRY_SIGNAL_ATTRIBUTE = "oneuptime.signal";
81
+ var SecurityTelemetrySignal;
82
+ (function (SecurityTelemetrySignal) {
83
+ // Traces.
84
+ SecurityTelemetrySignal["WebAttack"] = "web-attack";
85
+ SecurityTelemetrySignal["ServerSideRequestForgery"] = "ssrf";
86
+ SecurityTelemetrySignal["PromptInjection"] = "prompt-injection";
87
+ // Network flows.
88
+ SecurityTelemetrySignal["PortScan"] = "port-scan";
89
+ SecurityTelemetrySignal["NetworkSweep"] = "network-sweep";
90
+ SecurityTelemetrySignal["ThreatIntelTraffic"] = "threat-intel-traffic";
91
+ SecurityTelemetrySignal["LargeOutboundTransfer"] = "large-outbound-transfer";
92
+ // OneUptime's own audit log.
93
+ SecurityTelemetrySignal["ApiKeyCreated"] = "api-key-created";
94
+ SecurityTelemetrySignal["ApiKeyDeleted"] = "api-key-deleted";
95
+ SecurityTelemetrySignal["RoleChanged"] = "role-changed";
96
+ SecurityTelemetrySignal["TeamChanged"] = "team-changed";
97
+ SecurityTelemetrySignal["McpClientAuthorized"] = "mcp-client-authorized";
98
+ SecurityTelemetrySignal["PacketCaptureDownloaded"] = "packet-capture-downloaded";
99
+ SecurityTelemetrySignal["SecurityControlChanged"] = "security-control-changed";
100
+ SecurityTelemetrySignal["MassDelete"] = "mass-delete";
101
+ // Session replay.
102
+ SecurityTelemetrySignal["UserInTwoCountries"] = "user-in-two-countries";
103
+ })(SecurityTelemetrySignal || (exports.SecurityTelemetrySignal = SecurityTelemetrySignal = {}));
104
+ exports.SECURITY_TELEMETRY_SIGNALS = Object.values(SecurityTelemetrySignal);
105
+ // Which source finds each signal.
106
+ exports.SECURITY_TELEMETRY_SIGNAL_SOURCES = {
107
+ [SecurityTelemetrySignal.WebAttack]: SecurityTelemetrySourceKind.Traces,
108
+ [SecurityTelemetrySignal.ServerSideRequestForgery]: SecurityTelemetrySourceKind.Traces,
109
+ [SecurityTelemetrySignal.PromptInjection]: SecurityTelemetrySourceKind.Traces,
110
+ [SecurityTelemetrySignal.PortScan]: SecurityTelemetrySourceKind.NetworkFlows,
111
+ [SecurityTelemetrySignal.NetworkSweep]: SecurityTelemetrySourceKind.NetworkFlows,
112
+ [SecurityTelemetrySignal.ThreatIntelTraffic]: SecurityTelemetrySourceKind.NetworkFlows,
113
+ [SecurityTelemetrySignal.LargeOutboundTransfer]: SecurityTelemetrySourceKind.NetworkFlows,
114
+ [SecurityTelemetrySignal.ApiKeyCreated]: SecurityTelemetrySourceKind.AuditLog,
115
+ [SecurityTelemetrySignal.ApiKeyDeleted]: SecurityTelemetrySourceKind.AuditLog,
116
+ [SecurityTelemetrySignal.RoleChanged]: SecurityTelemetrySourceKind.AuditLog,
117
+ [SecurityTelemetrySignal.TeamChanged]: SecurityTelemetrySourceKind.AuditLog,
118
+ [SecurityTelemetrySignal.McpClientAuthorized]: SecurityTelemetrySourceKind.AuditLog,
119
+ [SecurityTelemetrySignal.PacketCaptureDownloaded]: SecurityTelemetrySourceKind.AuditLog,
120
+ [SecurityTelemetrySignal.SecurityControlChanged]: SecurityTelemetrySourceKind.AuditLog,
121
+ [SecurityTelemetrySignal.MassDelete]: SecurityTelemetrySourceKind.AuditLog,
122
+ [SecurityTelemetrySignal.UserInTwoCountries]: SecurityTelemetrySourceKind.RumSessions,
123
+ };
124
+ function isSecurityTelemetrySignal(value) {
125
+ return (typeof value === "string" &&
126
+ exports.SECURITY_TELEMETRY_SIGNALS.includes(value));
127
+ }
@@ -0,0 +1,12 @@
1
+ import commonJsModule from "./SecurityTelemetrySource.js";
2
+ export const SECURITY_TELEMETRY_SIGNALS = commonJsModule.SECURITY_TELEMETRY_SIGNALS;
3
+ export const SECURITY_TELEMETRY_SIGNAL_ATTRIBUTE = commonJsModule.SECURITY_TELEMETRY_SIGNAL_ATTRIBUTE;
4
+ export const SECURITY_TELEMETRY_SIGNAL_SOURCES = commonJsModule.SECURITY_TELEMETRY_SIGNAL_SOURCES;
5
+ export const SECURITY_TELEMETRY_SOURCES = commonJsModule.SECURITY_TELEMETRY_SOURCES;
6
+ export const SECURITY_TELEMETRY_SOURCE_KINDS = commonJsModule.SECURITY_TELEMETRY_SOURCE_KINDS;
7
+ export const SECURITY_TELEMETRY_VENDOR_NAME = commonJsModule.SECURITY_TELEMETRY_VENDOR_NAME;
8
+ export const SecurityTelemetrySignal = commonJsModule.SecurityTelemetrySignal;
9
+ export const SecurityTelemetrySourceKind = commonJsModule.SecurityTelemetrySourceKind;
10
+ export const getSecurityTelemetrySourceDefinition = commonJsModule.getSecurityTelemetrySourceDefinition;
11
+ export const isSecurityTelemetrySignal = commonJsModule.isSecurityTelemetrySignal;
12
+ export const isSecurityTelemetrySourceKind = commonJsModule.isSecurityTelemetrySourceKind;
@@ -1,5 +1,6 @@
1
1
  export declare enum TurnOnRecommendedPart {
2
2
  Logs = "logs",
3
+ TelemetrySources = "telemetry-sources",
3
4
  Rule = "rule",
4
5
  Playbook = "playbook"
5
6
  }
@@ -25,6 +26,7 @@ export interface TurnOnRecommendedResult {
25
26
  rulesAdded: number;
26
27
  rulesTurnedOn: number;
27
28
  logsTurnedOn: boolean;
29
+ telemetrySourcesTurnedOn: number;
28
30
  playbookAdded: boolean;
29
31
  playbookTurnedOn: boolean;
30
32
  problems: Array<TurnOnRecommendedProblem>;
@@ -1,5 +1,6 @@
1
1
  export declare enum TurnOnRecommendedPart {
2
2
  Logs = "logs",
3
+ TelemetrySources = "telemetry-sources",
3
4
  Rule = "rule",
4
5
  Playbook = "playbook"
5
6
  }
@@ -25,6 +26,7 @@ export interface TurnOnRecommendedResult {
25
26
  rulesAdded: number;
26
27
  rulesTurnedOn: number;
27
28
  logsTurnedOn: boolean;
29
+ telemetrySourcesTurnedOn: number;
28
30
  playbookAdded: boolean;
29
31
  playbookTurnedOn: boolean;
30
32
  problems: Array<TurnOnRecommendedProblem>;
@@ -16,6 +16,12 @@ var TurnOnRecommendedPart;
16
16
  (function (TurnOnRecommendedPart) {
17
17
  // Find security events in your logs.
18
18
  TurnOnRecommendedPart["Logs"] = "logs";
19
+ /*
20
+ * Find security events in the rest of your OneUptime data: traces,
21
+ * network flows, the audit log, session replays. The problem's name is
22
+ * the kind (SecurityTelemetrySourceKind); empty when none could be read.
23
+ */
24
+ TurnOnRecommendedPart["TelemetrySources"] = "telemetry-sources";
19
25
  // A recommended detection rule; with no name, the recommended rules as a whole.
20
26
  TurnOnRecommendedPart["Rule"] = "rule";
21
27
  // The Enrich New Cases playbook.
@@ -43,6 +49,7 @@ var TurnOnRecommendedReason;
43
49
  })(TurnOnRecommendedReason || (exports.TurnOnRecommendedReason = TurnOnRecommendedReason = {}));
44
50
  exports.TURN_ON_RECOMMENDED_PARTS = [
45
51
  TurnOnRecommendedPart.Logs,
52
+ TurnOnRecommendedPart.TelemetrySources,
46
53
  TurnOnRecommendedPart.Rule,
47
54
  TurnOnRecommendedPart.Playbook,
48
55
  ];
@@ -9,9 +9,11 @@ export declare enum SecurityPlaybookActionType {
9
9
  AddCaseLabels = "Add Case Labels",
10
10
  CheckThreatIntel = "Check Threat Intel",
11
11
  LookUpEntityActivity = "Look Up Entity Activity",
12
+ PreserveEvidence = "Preserve Evidence",
12
13
  EmailPeople = "Email People",
13
14
  PostToSlack = "Post to Slack",
14
15
  PostToMicrosoftTeams = "Post to Microsoft Teams",
16
+ PostStatusPageAnnouncement = "Post Status Page Announcement",
15
17
  PageOnCall = "Page On-Call",
16
18
  DeclareIncident = "Declare Incident",
17
19
  SuspendOktaUser = "Suspend Okta User",
@@ -22,7 +24,9 @@ export declare enum SecurityPlaybookActionType {
22
24
  LiftCrowdStrikeContainment = "Lift CrowdStrike Containment",
23
25
  ReleaseDefenderDevice = "Release Defender Device",
24
26
  SendWebhook = "Send Webhook",
25
- RunWorkflow = "Run Workflow"
27
+ RunWorkflow = "Run Workflow",
28
+ RunRunbook = "Run Runbook",
29
+ FixWithAi = "Fix With AI"
26
30
  }
27
31
  export declare enum SecurityPlaybookActionCategory {
28
32
  Case = "Case",
@@ -43,10 +47,12 @@ export interface SecurityPlaybookActionDefinition {
43
47
  connectionProvider?: SecurityEventConnectorProvider | undefined;
44
48
  entityType?: SecurityEntityType | undefined;
45
49
  undoes?: SecurityPlaybookActionType | undefined;
50
+ needsApprovalByDefault?: boolean | undefined;
46
51
  }
47
52
  export declare const SECURITY_PLAYBOOK_ACTIONS: ReadonlyArray<SecurityPlaybookActionDefinition>;
48
53
  export declare function getSecurityPlaybookAction(type: SecurityPlaybookActionType | string | undefined | null): SecurityPlaybookActionDefinition | undefined;
49
54
  export declare function actsOnSecurityEntities(definition: SecurityPlaybookActionDefinition | undefined): boolean;
55
+ export declare function doesActionNeedApprovalByDefault(definition: SecurityPlaybookActionDefinition | undefined): boolean;
50
56
  export declare function getSecurityPlaybookUndoAction(type: SecurityPlaybookActionType | string | undefined | null): SecurityPlaybookActionDefinition | undefined;
51
57
  export declare const SECURITY_PLAYBOOK_INSIDE_CATEGORIES: ReadonlyArray<SecurityPlaybookActionCategory>;
52
58
  export declare function doStepsStayInsideOneUptime(steps: unknown): boolean;
@@ -9,9 +9,11 @@ export declare enum SecurityPlaybookActionType {
9
9
  AddCaseLabels = "Add Case Labels",
10
10
  CheckThreatIntel = "Check Threat Intel",
11
11
  LookUpEntityActivity = "Look Up Entity Activity",
12
+ PreserveEvidence = "Preserve Evidence",
12
13
  EmailPeople = "Email People",
13
14
  PostToSlack = "Post to Slack",
14
15
  PostToMicrosoftTeams = "Post to Microsoft Teams",
16
+ PostStatusPageAnnouncement = "Post Status Page Announcement",
15
17
  PageOnCall = "Page On-Call",
16
18
  DeclareIncident = "Declare Incident",
17
19
  SuspendOktaUser = "Suspend Okta User",
@@ -22,7 +24,9 @@ export declare enum SecurityPlaybookActionType {
22
24
  LiftCrowdStrikeContainment = "Lift CrowdStrike Containment",
23
25
  ReleaseDefenderDevice = "Release Defender Device",
24
26
  SendWebhook = "Send Webhook",
25
- RunWorkflow = "Run Workflow"
27
+ RunWorkflow = "Run Workflow",
28
+ RunRunbook = "Run Runbook",
29
+ FixWithAi = "Fix With AI"
26
30
  }
27
31
  export declare enum SecurityPlaybookActionCategory {
28
32
  Case = "Case",
@@ -43,10 +47,12 @@ export interface SecurityPlaybookActionDefinition {
43
47
  connectionProvider?: SecurityEventConnectorProvider | undefined;
44
48
  entityType?: SecurityEntityType | undefined;
45
49
  undoes?: SecurityPlaybookActionType | undefined;
50
+ needsApprovalByDefault?: boolean | undefined;
46
51
  }
47
52
  export declare const SECURITY_PLAYBOOK_ACTIONS: ReadonlyArray<SecurityPlaybookActionDefinition>;
48
53
  export declare function getSecurityPlaybookAction(type: SecurityPlaybookActionType | string | undefined | null): SecurityPlaybookActionDefinition | undefined;
49
54
  export declare function actsOnSecurityEntities(definition: SecurityPlaybookActionDefinition | undefined): boolean;
55
+ export declare function doesActionNeedApprovalByDefault(definition: SecurityPlaybookActionDefinition | undefined): boolean;
50
56
  export declare function getSecurityPlaybookUndoAction(type: SecurityPlaybookActionType | string | undefined | null): SecurityPlaybookActionDefinition | undefined;
51
57
  export declare const SECURITY_PLAYBOOK_INSIDE_CATEGORIES: ReadonlyArray<SecurityPlaybookActionCategory>;
52
58
  export declare function doStepsStayInsideOneUptime(steps: unknown): boolean;
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SECURITY_PLAYBOOK_INSIDE_CATEGORIES = exports.SECURITY_PLAYBOOK_ACTIONS = exports.SECURITY_PLAYBOOK_ACTION_CATEGORIES = exports.SecurityPlaybookActionCategory = exports.SecurityPlaybookActionType = void 0;
7
7
  exports.getSecurityPlaybookAction = getSecurityPlaybookAction;
8
8
  exports.actsOnSecurityEntities = actsOnSecurityEntities;
9
+ exports.doesActionNeedApprovalByDefault = doesActionNeedApprovalByDefault;
9
10
  exports.getSecurityPlaybookUndoAction = getSecurityPlaybookUndoAction;
10
11
  exports.doStepsStayInsideOneUptime = doStepsStayInsideOneUptime;
11
12
  exports.isSecurityPlaybookActionType = isSecurityPlaybookActionType;
@@ -29,10 +30,12 @@ var SecurityPlaybookActionType;
29
30
  // Investigate
30
31
  SecurityPlaybookActionType["CheckThreatIntel"] = "Check Threat Intel";
31
32
  SecurityPlaybookActionType["LookUpEntityActivity"] = "Look Up Entity Activity";
33
+ SecurityPlaybookActionType["PreserveEvidence"] = "Preserve Evidence";
32
34
  // Notify
33
35
  SecurityPlaybookActionType["EmailPeople"] = "Email People";
34
36
  SecurityPlaybookActionType["PostToSlack"] = "Post to Slack";
35
37
  SecurityPlaybookActionType["PostToMicrosoftTeams"] = "Post to Microsoft Teams";
38
+ SecurityPlaybookActionType["PostStatusPageAnnouncement"] = "Post Status Page Announcement";
36
39
  // Escalate
37
40
  SecurityPlaybookActionType["PageOnCall"] = "Page On-Call";
38
41
  SecurityPlaybookActionType["DeclareIncident"] = "Declare Incident";
@@ -47,6 +50,8 @@ var SecurityPlaybookActionType;
47
50
  // Automate
48
51
  SecurityPlaybookActionType["SendWebhook"] = "Send Webhook";
49
52
  SecurityPlaybookActionType["RunWorkflow"] = "Run Workflow";
53
+ SecurityPlaybookActionType["RunRunbook"] = "Run Runbook";
54
+ SecurityPlaybookActionType["FixWithAi"] = "Fix With AI";
50
55
  })(SecurityPlaybookActionType || (exports.SecurityPlaybookActionType = SecurityPlaybookActionType = {}));
51
56
  var SecurityPlaybookActionCategory;
52
57
  (function (SecurityPlaybookActionCategory) {
@@ -123,6 +128,14 @@ exports.SECURITY_PLAYBOOK_ACTIONS = [
123
128
  icon: IconProp_1.default.Search,
124
129
  isDisruptive: false,
125
130
  },
131
+ {
132
+ type: SecurityPlaybookActionType.PreserveEvidence,
133
+ title: "Preserve the evidence",
134
+ description: "Keep the session replays of the requests behind the case past their retention, and note on the case the traces, sessions and exceptions those requests link to.",
135
+ category: SecurityPlaybookActionCategory.Investigate,
136
+ icon: IconProp_1.default.Archive,
137
+ isDisruptive: false,
138
+ },
126
139
  {
127
140
  type: SecurityPlaybookActionType.EmailPeople,
128
141
  title: "Email people",
@@ -147,6 +160,15 @@ exports.SECURITY_PLAYBOOK_ACTIONS = [
147
160
  icon: IconProp_1.default.MicrosoftTeams,
148
161
  isDisruptive: false,
149
162
  },
163
+ {
164
+ type: SecurityPlaybookActionType.PostStatusPageAnnouncement,
165
+ title: "Post a status page announcement",
166
+ description: "Publish an announcement on your status pages, for an attack your customers should hear about from you first. Waits for approval unless you turn that off.",
167
+ category: SecurityPlaybookActionCategory.Notify,
168
+ icon: IconProp_1.default.Announcement,
169
+ isDisruptive: false,
170
+ needsApprovalByDefault: true,
171
+ },
150
172
  {
151
173
  type: SecurityPlaybookActionType.PageOnCall,
152
174
  title: "Page on-call",
@@ -252,6 +274,23 @@ exports.SECURITY_PLAYBOOK_ACTIONS = [
252
274
  icon: IconProp_1.default.Workflow,
253
275
  isDisruptive: false,
254
276
  },
277
+ {
278
+ type: SecurityPlaybookActionType.RunRunbook,
279
+ title: "Run a runbook",
280
+ description: "Start one of your OneUptime runbooks with the case's users, hosts and addresses as its inputs: block an address, stop a process, cordon a node. Waits for approval unless you turn that off.",
281
+ category: SecurityPlaybookActionCategory.Automate,
282
+ icon: IconProp_1.default.CommandLine,
283
+ isDisruptive: false,
284
+ needsApprovalByDefault: true,
285
+ },
286
+ {
287
+ type: SecurityPlaybookActionType.FixWithAi,
288
+ title: "Fix the code with AI",
289
+ description: "Ask OneUptime AI to fix the code behind the exceptions the case's requests threw, as a pull request on the repository that holds it.",
290
+ category: SecurityPlaybookActionCategory.Automate,
291
+ icon: IconProp_1.default.Sparkles,
292
+ isDisruptive: false,
293
+ },
255
294
  ];
256
295
  function getSecurityPlaybookAction(type) {
257
296
  return exports.SECURITY_PLAYBOOK_ACTIONS.find((action) => {
@@ -262,6 +301,13 @@ function getSecurityPlaybookAction(type) {
262
301
  function actsOnSecurityEntities(definition) {
263
302
  return Boolean((definition === null || definition === void 0 ? void 0 : definition.connectionProvider) && definition.entityType);
264
303
  }
304
+ /*
305
+ * Whether a new step of this action starts needing approval: a containment
306
+ * step, and a step that runs commands or speaks to customers.
307
+ */
308
+ function doesActionNeedApprovalByDefault(definition) {
309
+ return Boolean((definition === null || definition === void 0 ? void 0 : definition.isDisruptive) || (definition === null || definition === void 0 ? void 0 : definition.needsApprovalByDefault));
310
+ }
265
311
  /*
266
312
  * The action that undoes a containment action - Unsuspend for Suspend - or
267
313
  * undefined for one nothing undoes (a session that was ended stays ended).
@@ -6,6 +6,7 @@ export const SecurityPlaybookActionCategory = commonJsModule.SecurityPlaybookAct
6
6
  export const SecurityPlaybookActionType = commonJsModule.SecurityPlaybookActionType;
7
7
  export const actsOnSecurityEntities = commonJsModule.actsOnSecurityEntities;
8
8
  export const doStepsStayInsideOneUptime = commonJsModule.doStepsStayInsideOneUptime;
9
+ export const doesActionNeedApprovalByDefault = commonJsModule.doesActionNeedApprovalByDefault;
9
10
  export const getSecurityPlaybookAction = commonJsModule.getSecurityPlaybookAction;
10
11
  export const getSecurityPlaybookUndoAction = commonJsModule.getSecurityPlaybookUndoAction;
11
12
  export const isSecurityPlaybookActionType = commonJsModule.isSecurityPlaybookActionType;
@@ -70,12 +70,22 @@ export interface SendWebhookConfig {
70
70
  export interface RunWorkflowConfig {
71
71
  workflowId: string;
72
72
  }
73
+ export interface RunRunbookConfig {
74
+ runbookId: string;
75
+ }
76
+ export interface PostStatusPageAnnouncementConfig {
77
+ statusPageIds: Array<string>;
78
+ announcementTitle: string;
79
+ announcementDescription: string;
80
+ notifySubscribers?: boolean | undefined;
81
+ }
73
82
  export declare const TURN_OFF_CONTAINMENT_APPROVAL_PERMISSIONS: ReadonlyArray<Permission>;
74
83
  export declare const SECURITY_PLAYBOOK_MAX_STEPS: number;
75
84
  export declare const SECURITY_PLAYBOOK_NOTE_MAX_LENGTH: number;
76
85
  export declare const ENTITY_ACTIVITY_LOOKBACK_MIN_HOURS: number;
77
86
  export declare const ENTITY_ACTIVITY_LOOKBACK_MAX_HOURS: number;
78
87
  export declare const ENTITY_ACTIVITY_LOOKBACK_DEFAULT_HOURS: number;
88
+ export declare const ANNOUNCEMENT_TITLE_MAX_LENGTH: number;
79
89
  export declare function normalizeSecurityPlaybookStepConfig(action: SecurityPlaybookActionType, rawConfig: JSONObject, label: string): JSONObject;
80
90
  export declare function doesStepNeedApproval(step: SecurityPlaybookStep): boolean;
81
91
  export declare function parseSecurityPlaybookSteps(value: unknown): Array<SecurityPlaybookStep>;
@@ -70,12 +70,22 @@ export interface SendWebhookConfig {
70
70
  export interface RunWorkflowConfig {
71
71
  workflowId: string;
72
72
  }
73
+ export interface RunRunbookConfig {
74
+ runbookId: string;
75
+ }
76
+ export interface PostStatusPageAnnouncementConfig {
77
+ statusPageIds: Array<string>;
78
+ announcementTitle: string;
79
+ announcementDescription: string;
80
+ notifySubscribers?: boolean | undefined;
81
+ }
73
82
  export declare const TURN_OFF_CONTAINMENT_APPROVAL_PERMISSIONS: ReadonlyArray<Permission>;
74
83
  export declare const SECURITY_PLAYBOOK_MAX_STEPS: number;
75
84
  export declare const SECURITY_PLAYBOOK_NOTE_MAX_LENGTH: number;
76
85
  export declare const ENTITY_ACTIVITY_LOOKBACK_MIN_HOURS: number;
77
86
  export declare const ENTITY_ACTIVITY_LOOKBACK_MAX_HOURS: number;
78
87
  export declare const ENTITY_ACTIVITY_LOOKBACK_DEFAULT_HOURS: number;
88
+ export declare const ANNOUNCEMENT_TITLE_MAX_LENGTH: number;
79
89
  export declare function normalizeSecurityPlaybookStepConfig(action: SecurityPlaybookActionType, rawConfig: JSONObject, label: string): JSONObject;
80
90
  export declare function doesStepNeedApproval(step: SecurityPlaybookStep): boolean;
81
91
  export declare function parseSecurityPlaybookSteps(value: unknown): Array<SecurityPlaybookStep>;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ENTITY_ACTIVITY_LOOKBACK_DEFAULT_HOURS = exports.ENTITY_ACTIVITY_LOOKBACK_MAX_HOURS = exports.ENTITY_ACTIVITY_LOOKBACK_MIN_HOURS = exports.SECURITY_PLAYBOOK_NOTE_MAX_LENGTH = exports.SECURITY_PLAYBOOK_MAX_STEPS = exports.TURN_OFF_CONTAINMENT_APPROVAL_PERMISSIONS = exports.DefenderIsolationType = void 0;
6
+ exports.ANNOUNCEMENT_TITLE_MAX_LENGTH = exports.ENTITY_ACTIVITY_LOOKBACK_DEFAULT_HOURS = exports.ENTITY_ACTIVITY_LOOKBACK_MAX_HOURS = exports.ENTITY_ACTIVITY_LOOKBACK_MIN_HOURS = exports.SECURITY_PLAYBOOK_NOTE_MAX_LENGTH = exports.SECURITY_PLAYBOOK_MAX_STEPS = exports.TURN_OFF_CONTAINMENT_APPROVAL_PERMISSIONS = exports.DefenderIsolationType = void 0;
7
7
  exports.normalizeSecurityPlaybookStepConfig = normalizeSecurityPlaybookStepConfig;
8
8
  exports.doesStepNeedApproval = doesStepNeedApproval;
9
9
  exports.parseSecurityPlaybookSteps = parseSecurityPlaybookSteps;
@@ -24,6 +24,8 @@ exports.SECURITY_PLAYBOOK_NOTE_MAX_LENGTH = 10000;
24
24
  exports.ENTITY_ACTIVITY_LOOKBACK_MIN_HOURS = 1;
25
25
  exports.ENTITY_ACTIVITY_LOOKBACK_MAX_HOURS = 720;
26
26
  exports.ENTITY_ACTIVITY_LOOKBACK_DEFAULT_HOURS = 24;
27
+ // A status page announcement's title is a short text column.
28
+ exports.ANNOUNCEMENT_TITLE_MAX_LENGTH = 100;
27
29
  // An http(s) URL with a host: what a webhook step can post to.
28
30
  const WEBHOOK_URL = /^https?:\/\/[^\s/?#]+[^\s]*$/i;
29
31
  function stepLabel(index, action) {
@@ -210,6 +212,40 @@ function normalizeSecurityPlaybookStepConfig(action, rawConfig, label) {
210
212
  return {
211
213
  workflowId: requireId(rawConfig, "workflowId", label, "the workflow to run"),
212
214
  };
215
+ case SecurityPlaybookAction_1.SecurityPlaybookActionType.RunRunbook:
216
+ return {
217
+ runbookId: requireId(rawConfig, "runbookId", label, "the runbook to run"),
218
+ };
219
+ case SecurityPlaybookAction_1.SecurityPlaybookActionType.PostStatusPageAnnouncement: {
220
+ const statusPageIds = readIdList(rawConfig, "statusPageIds");
221
+ const announcementTitle = readText(rawConfig, "announcementTitle");
222
+ const announcementDescription = readText(rawConfig, "announcementDescription");
223
+ if (statusPageIds.length === 0) {
224
+ throw new BadDataException_1.default(`${label}: choose the status pages to post on.`);
225
+ }
226
+ if (!announcementTitle) {
227
+ throw new BadDataException_1.default(`${label}: write the announcement's title.`);
228
+ }
229
+ if (announcementTitle.length > exports.ANNOUNCEMENT_TITLE_MAX_LENGTH) {
230
+ throw new BadDataException_1.default(`${label}: the title is longer than ${exports.ANNOUNCEMENT_TITLE_MAX_LENGTH} characters.`);
231
+ }
232
+ if (!announcementDescription) {
233
+ throw new BadDataException_1.default(`${label}: write what the announcement says.`);
234
+ }
235
+ if (announcementDescription.length > exports.SECURITY_PLAYBOOK_NOTE_MAX_LENGTH) {
236
+ throw new BadDataException_1.default(`${label}: the announcement is longer than ${exports.SECURITY_PLAYBOOK_NOTE_MAX_LENGTH} characters.`);
237
+ }
238
+ return {
239
+ statusPageIds,
240
+ announcementTitle,
241
+ announcementDescription,
242
+ notifySubscribers: rawConfig["notifySubscribers"] === true,
243
+ };
244
+ }
245
+ // Nothing to set: each reads what it acts on from the case.
246
+ case SecurityPlaybookAction_1.SecurityPlaybookActionType.PreserveEvidence:
247
+ case SecurityPlaybookAction_1.SecurityPlaybookActionType.FixWithAi:
248
+ return {};
213
249
  }
214
250
  }
215
251
  function readApprovalTurnedOff(value) {
@@ -1,4 +1,5 @@
1
1
  import commonJsModule from "./SecurityPlaybookStep.js";
2
+ export const ANNOUNCEMENT_TITLE_MAX_LENGTH = commonJsModule.ANNOUNCEMENT_TITLE_MAX_LENGTH;
2
3
  export const DefenderIsolationType = commonJsModule.DefenderIsolationType;
3
4
  export const ENTITY_ACTIVITY_LOOKBACK_DEFAULT_HOURS = commonJsModule.ENTITY_ACTIVITY_LOOKBACK_DEFAULT_HOURS;
4
5
  export const ENTITY_ACTIVITY_LOOKBACK_MAX_HOURS = commonJsModule.ENTITY_ACTIVITY_LOOKBACK_MAX_HOURS;
@@ -75,6 +75,23 @@ exports.SECURITY_PLAYBOOK_TEMPLATE_DEFINITIONS = [
75
75
  ];
76
76
  },
77
77
  },
78
+ {
79
+ key: "attack-evidence",
80
+ title: "Keep the Evidence of an Attack",
81
+ description: "As a case opens: keep the session replays of the requests behind it, note their traces and exceptions, ask OneUptime AI to fix the code an attack broke, and leave a response checklist.",
82
+ icon: IconProp_1.default.Archive,
83
+ trigger: SecurityPlaybookTrigger_1.default.CaseOpened,
84
+ minimumPriorityLevel: SecurityCasePriorityLevel_1.default.High,
85
+ getSteps: () => {
86
+ return [
87
+ step(SecurityPlaybookAction_1.SecurityPlaybookActionType.PreserveEvidence, {}, { continueOnFailure: true }),
88
+ step(SecurityPlaybookAction_1.SecurityPlaybookActionType.FixWithAi, {}, { continueOnFailure: true }),
89
+ step(SecurityPlaybookAction_1.SecurityPlaybookActionType.AddCaseNote, {
90
+ note: "Response checklist for {{case.number}}:\n\n- [ ] Open the traces in the evidence note: did any request reach the app, or the database?\n- [ ] Watch the session replays: what did the attacker do before and after?\n- [ ] Block the source: add a Run a runbook step to this playbook, with a runbook that blocks an address.\n- [ ] Review the AI's fix before it is merged.",
91
+ }),
92
+ ];
93
+ },
94
+ },
78
95
  ];
79
96
  function getSecurityPlaybookTemplateDefinition(key) {
80
97
  return exports.SECURITY_PLAYBOOK_TEMPLATE_DEFINITIONS.find((template) => {
@@ -7,6 +7,7 @@ declare enum ComplianceNotificationChannel {
7
7
  Telegram = "Telegram",
8
8
  Slack = "Slack",
9
9
  MicrosoftTeams = "MicrosoftTeams",
10
- Webhook = "Webhook"
10
+ Webhook = "Webhook",
11
+ CustomChannel = "CustomChannel"
11
12
  }
12
13
  export default ComplianceNotificationChannel;
@@ -7,6 +7,7 @@ declare enum ComplianceNotificationChannel {
7
7
  Telegram = "Telegram",
8
8
  Slack = "Slack",
9
9
  MicrosoftTeams = "MicrosoftTeams",
10
- Webhook = "Webhook"
10
+ Webhook = "Webhook",
11
+ CustomChannel = "CustomChannel"
11
12
  }
12
13
  export default ComplianceNotificationChannel;
@@ -7,8 +7,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  * string values are stored, so they must never be renamed.
8
8
  *
9
9
  * Every channel a UserNotificationRule can point at is here, because a
10
- * compliance rule that could only ask about four of the nine would report a
10
+ * compliance rule that could only ask about some of them would report a
11
11
  * member whose pager is Telegram as unreachable when they are not.
12
+ *
13
+ * Nine of them are a method each member owns (a phone, a push device, a
14
+ * webhook...). CustomChannel is different: a custom channel
15
+ * (CustomNotificationChannel, #5332) is the installation's, added by its
16
+ * admin, and a member's rule simply names it - there is nothing per person to
17
+ * add or verify, so no "has a verified ..." rule exists for it (see
18
+ * ComplianceRule.ts, where its definition has no method).
12
19
  */
13
20
  var ComplianceNotificationChannel;
14
21
  (function (ComplianceNotificationChannel) {
@@ -21,5 +28,7 @@ var ComplianceNotificationChannel;
21
28
  ComplianceNotificationChannel["Slack"] = "Slack";
22
29
  ComplianceNotificationChannel["MicrosoftTeams"] = "MicrosoftTeams";
23
30
  ComplianceNotificationChannel["Webhook"] = "Webhook";
31
+ // Any custom channel (CustomNotificationChannel) that is on.
32
+ ComplianceNotificationChannel["CustomChannel"] = "CustomChannel";
24
33
  })(ComplianceNotificationChannel || (ComplianceNotificationChannel = {}));
25
34
  exports.default = ComplianceNotificationChannel;