@oneuptime/common 14.0.96 → 14.0.97

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 (215) hide show
  1. package/Models/AnalyticsModels/NetworkFlow.d.mts +4 -0
  2. package/Models/AnalyticsModels/NetworkFlow.d.ts +4 -0
  3. package/Models/AnalyticsModels/NetworkFlow.js +50 -0
  4. package/Models/DatabaseModels/Alert.d.mts +2 -0
  5. package/Models/DatabaseModels/Alert.d.ts +2 -0
  6. package/Models/DatabaseModels/Alert.js +63 -0
  7. package/Models/DatabaseModels/Incident.d.mts +2 -0
  8. package/Models/DatabaseModels/Incident.d.ts +2 -0
  9. package/Models/DatabaseModels/Incident.js +63 -0
  10. package/Models/DatabaseModels/Index.js +10 -0
  11. package/Models/DatabaseModels/NetworkAddressName.d.mts +14 -0
  12. package/Models/DatabaseModels/NetworkAddressName.d.ts +14 -0
  13. package/Models/DatabaseModels/NetworkAddressName.js +300 -0
  14. package/Models/DatabaseModels/NetworkAddressName.mjs +2 -0
  15. package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
  16. package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
  17. package/Models/DatabaseModels/NetworkDevice.js +38 -0
  18. package/Models/DatabaseModels/SecurityCase.d.mts +8 -0
  19. package/Models/DatabaseModels/SecurityCase.d.ts +8 -0
  20. package/Models/DatabaseModels/SecurityCase.js +145 -0
  21. package/Models/DatabaseModels/SecurityCaseEvidence.d.mts +28 -0
  22. package/Models/DatabaseModels/SecurityCaseEvidence.d.ts +28 -0
  23. package/Models/DatabaseModels/SecurityCaseEvidence.js +489 -0
  24. package/Models/DatabaseModels/SecurityCaseEvidence.mjs +2 -0
  25. package/Models/DatabaseModels/SecurityCaseFeed.d.mts +4 -1
  26. package/Models/DatabaseModels/SecurityCaseFeed.d.ts +4 -1
  27. package/Models/DatabaseModels/SecurityCaseFeed.js +6 -0
  28. package/Models/DatabaseModels/SecurityCasePriority.d.mts +2 -0
  29. package/Models/DatabaseModels/SecurityCasePriority.d.ts +2 -0
  30. package/Models/DatabaseModels/SecurityCasePriority.js +44 -0
  31. package/Models/DatabaseModels/SecurityCaseTask.d.mts +22 -0
  32. package/Models/DatabaseModels/SecurityCaseTask.d.ts +22 -0
  33. package/Models/DatabaseModels/SecurityCaseTask.js +467 -0
  34. package/Models/DatabaseModels/SecurityCaseTask.mjs +2 -0
  35. package/Models/DatabaseModels/SecurityWatchlist.d.mts +22 -0
  36. package/Models/DatabaseModels/SecurityWatchlist.d.ts +22 -0
  37. package/Models/DatabaseModels/SecurityWatchlist.js +411 -0
  38. package/Models/DatabaseModels/SecurityWatchlist.mjs +2 -0
  39. package/Models/DatabaseModels/SecurityWatchlistItem.d.mts +17 -0
  40. package/Models/DatabaseModels/SecurityWatchlistItem.d.ts +17 -0
  41. package/Models/DatabaseModels/SecurityWatchlistItem.js +321 -0
  42. package/Models/DatabaseModels/SecurityWatchlistItem.mjs +2 -0
  43. package/Types/AI/AiAffectedResources.d.mts +2 -1
  44. package/Types/AI/AiAffectedResources.d.ts +2 -1
  45. package/Types/AI/AiAffectedResources.js +12 -1
  46. package/Types/AffectedResources/AffectedResourceSearch.d.mts +53 -0
  47. package/Types/AffectedResources/AffectedResourceSearch.d.ts +53 -0
  48. package/Types/AffectedResources/AffectedResourceSearch.js +224 -0
  49. package/Types/AffectedResources/AffectedResourceSearch.mjs +11 -0
  50. package/Types/ArchivableValue/ArchivableValueUsage.d.mts +21 -2
  51. package/Types/ArchivableValue/ArchivableValueUsage.d.ts +21 -2
  52. package/Types/ArchivableValue/ArchivableValueUsage.js +91 -12
  53. package/Types/ArchivableValue/ArchivableValueUsage.mjs +1 -0
  54. package/Types/Color.d.mts +0 -2
  55. package/Types/Color.d.ts +0 -2
  56. package/Types/Color.js +0 -14
  57. package/Types/Database/DatabaseProperty.d.mts +0 -2
  58. package/Types/Database/DatabaseProperty.d.ts +0 -2
  59. package/Types/Database/DatabaseProperty.js +0 -3
  60. package/Types/Date.d.mts +0 -2
  61. package/Types/Date.d.ts +0 -2
  62. package/Types/Date.js +0 -23
  63. package/Types/Domain.d.mts +0 -2
  64. package/Types/Domain.d.ts +0 -2
  65. package/Types/Domain.js +0 -14
  66. package/Types/Email/EmailTemplateType.d.mts +2 -0
  67. package/Types/Email/EmailTemplateType.d.ts +2 -0
  68. package/Types/Email/EmailTemplateType.js +2 -0
  69. package/Types/Email.d.mts +0 -2
  70. package/Types/Email.d.ts +0 -2
  71. package/Types/Email.js +0 -15
  72. package/Types/IP/IP.d.mts +0 -2
  73. package/Types/IP/IP.d.ts +0 -2
  74. package/Types/IP/IP.js +0 -14
  75. package/Types/Monitor/CriteriaAlert.d.mts +0 -2
  76. package/Types/Monitor/CriteriaAlert.d.ts +0 -2
  77. package/Types/Monitor/CriteriaAlert.js +0 -18
  78. package/Types/Monitor/CriteriaAlert.mjs +1 -2
  79. package/Types/Monitor/CriteriaFilter.d.mts +0 -2
  80. package/Types/Monitor/CriteriaFilter.d.ts +0 -2
  81. package/Types/Monitor/CriteriaFilter.js +1 -42
  82. package/Types/Monitor/CriteriaFilter.mjs +0 -1
  83. package/Types/Monitor/CriteriaIncident.d.mts +0 -2
  84. package/Types/Monitor/CriteriaIncident.d.ts +0 -2
  85. package/Types/Monitor/CriteriaIncident.js +0 -23
  86. package/Types/Monitor/CriteriaIncident.mjs +1 -2
  87. package/Types/Monitor/IncomingMonitor/IncidentGroupingConfig.d.mts +0 -2
  88. package/Types/Monitor/IncomingMonitor/IncidentGroupingConfig.d.ts +0 -2
  89. package/Types/Monitor/IncomingMonitor/IncidentGroupingConfig.js +0 -11
  90. package/Types/Monitor/IncomingMonitor/IncidentGroupingConfig.mjs +1 -2
  91. package/Types/Monitor/MonitorCriteria.d.mts +0 -2
  92. package/Types/Monitor/MonitorCriteria.d.ts +0 -2
  93. package/Types/Monitor/MonitorCriteria.js +0 -21
  94. package/Types/Monitor/MonitorCriteriaInstance.d.mts +0 -2
  95. package/Types/Monitor/MonitorCriteriaInstance.d.ts +0 -2
  96. package/Types/Monitor/MonitorCriteriaInstance.js +0 -54
  97. package/Types/Monitor/MonitorStep.d.mts +0 -2
  98. package/Types/Monitor/MonitorStep.d.ts +0 -2
  99. package/Types/Monitor/MonitorStep.js +0 -80
  100. package/Types/Monitor/MonitorSteps.d.mts +0 -2
  101. package/Types/Monitor/MonitorSteps.d.ts +0 -2
  102. package/Types/Monitor/MonitorSteps.js +0 -31
  103. package/Types/Name.d.mts +0 -2
  104. package/Types/Name.d.ts +0 -2
  105. package/Types/Name.js +0 -14
  106. package/Types/NetFlow/NetworkAddressName.d.mts +30 -0
  107. package/Types/NetFlow/NetworkAddressName.d.ts +30 -0
  108. package/Types/NetFlow/NetworkAddressName.js +149 -0
  109. package/Types/NetFlow/NetworkAddressName.mjs +6 -0
  110. package/Types/NetFlow/NetworkTraffic.d.mts +20 -0
  111. package/Types/NetFlow/NetworkTraffic.d.ts +20 -0
  112. package/Types/NetFlow/NetworkTraffic.js +5 -1
  113. package/Types/NetFlow/NetworkTraffic.mjs +2 -0
  114. package/Types/NetworkController/NetworkControllerReadSummary.d.mts +2 -0
  115. package/Types/NetworkController/NetworkControllerReadSummary.d.ts +2 -0
  116. package/Types/NetworkController/NetworkControllerReadSummary.js +7 -1
  117. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.mts +47 -1
  118. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.ts +47 -1
  119. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.js +173 -8
  120. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.mjs +7 -0
  121. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +3 -0
  122. package/Types/NotificationSetting/NotificationEmailRollupPolicy.js +6 -0
  123. package/Types/NotificationSetting/NotificationSettingEventType.d.mts +2 -0
  124. package/Types/NotificationSetting/NotificationSettingEventType.d.ts +2 -0
  125. package/Types/NotificationSetting/NotificationSettingEventType.js +9 -0
  126. package/Types/ObjectID.d.mts +0 -1
  127. package/Types/ObjectID.d.ts +0 -1
  128. package/Types/ObjectID.js +0 -9
  129. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunEnding.d.mts +4 -0
  130. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunEnding.d.ts +4 -0
  131. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunEnding.js +25 -1
  132. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunEnding.mjs +4 -0
  133. package/Types/OnCallDutyPolicy/OnCallEmptyLevel.d.mts +15 -0
  134. package/Types/OnCallDutyPolicy/OnCallEmptyLevel.d.ts +15 -0
  135. package/Types/OnCallDutyPolicy/OnCallEmptyLevel.js +118 -0
  136. package/Types/OnCallDutyPolicy/OnCallEmptyLevel.mjs +9 -0
  137. package/Types/Permission.d.mts +8 -0
  138. package/Types/Permission.d.ts +8 -0
  139. package/Types/Permission.js +87 -3
  140. package/Types/Phone.d.mts +0 -2
  141. package/Types/Phone.d.ts +0 -2
  142. package/Types/Phone.js +0 -14
  143. package/Types/Port.d.mts +0 -2
  144. package/Types/Port.d.ts +0 -2
  145. package/Types/Port.js +0 -14
  146. package/Types/ProviderLogo/ProviderLogo.d.mts +8 -1
  147. package/Types/ProviderLogo/ProviderLogo.d.ts +8 -1
  148. package/Types/ProviderLogo/ProviderLogo.js +14 -0
  149. package/Types/SecurityCase/SecurityCaseEvidenceKind.d.mts +7 -0
  150. package/Types/SecurityCase/SecurityCaseEvidenceKind.d.ts +7 -0
  151. package/Types/SecurityCase/SecurityCaseEvidenceKind.js +24 -0
  152. package/Types/SecurityCase/SecurityCaseEvidenceKind.mjs +4 -0
  153. package/Types/SecurityEvent/SecurityWatchlist.d.mts +167 -0
  154. package/Types/SecurityEvent/SecurityWatchlist.d.ts +167 -0
  155. package/Types/SecurityEvent/SecurityWatchlist.js +648 -0
  156. package/Types/SecurityEvent/SecurityWatchlist.mjs +51 -0
  157. package/Types/SecurityEvent/SigmaRule.d.mts +2 -0
  158. package/Types/SecurityEvent/SigmaRule.d.ts +2 -0
  159. package/Types/SecurityEvent/SigmaRule.js +5 -0
  160. package/Types/Telemetry/OpenTelemetryGuides.js +177 -5
  161. package/Types/Version.d.mts +0 -2
  162. package/Types/Version.d.ts +0 -2
  163. package/Types/Version.js +0 -14
  164. package/Types/Workflow/AffectedResourcesSetting.d.mts +13 -0
  165. package/Types/Workflow/AffectedResourcesSetting.d.ts +13 -0
  166. package/Types/Workflow/AffectedResourcesSetting.js +120 -0
  167. package/Types/Workflow/AffectedResourcesSetting.mjs +8 -0
  168. package/Types/Workflow/Components/BaseModel.js +15 -3
  169. package/Types/Workflow/Documentation/DatabaseDocumentation.js +36 -0
  170. package/Utils/Inventory/AssetFactSource.d.mts +6 -2
  171. package/Utils/Inventory/AssetFactSource.d.ts +6 -2
  172. package/Utils/Inventory/AssetFactSource.js +18 -1
  173. package/Utils/Inventory/AssetFactSource.mjs +1 -0
  174. package/Utils/Markdown/FeedLead.d.mts +10 -0
  175. package/Utils/Markdown/FeedLead.d.ts +10 -0
  176. package/Utils/Markdown/FeedLead.js +198 -0
  177. package/Utils/Markdown/FeedLead.mjs +8 -0
  178. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.mts +9 -1
  179. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.ts +9 -1
  180. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.js +139 -18
  181. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.mjs +1 -0
  182. package/Utils/NetworkDevice/NetworkDeviceRefresh.d.mts +88 -0
  183. package/Utils/NetworkDevice/NetworkDeviceRefresh.d.ts +88 -0
  184. package/Utils/NetworkDevice/NetworkDeviceRefresh.js +232 -0
  185. package/Utils/NetworkDevice/NetworkDeviceRefresh.mjs +16 -0
  186. package/Utils/NetworkTraffic/NetworkAddressBlock.d.mts +20 -0
  187. package/Utils/NetworkTraffic/NetworkAddressBlock.d.ts +20 -0
  188. package/Utils/NetworkTraffic/NetworkAddressBlock.js +264 -0
  189. package/Utils/NetworkTraffic/NetworkAddressBlock.mjs +3 -0
  190. package/Utils/Schema/MonitorSchemas.d.mts +9 -0
  191. package/Utils/Schema/MonitorSchemas.d.ts +9 -0
  192. package/Utils/Schema/MonitorSchemas.js +291 -0
  193. package/Utils/Schema/MonitorSchemas.mjs +9 -0
  194. package/Utils/Schema/TypeSchemas.d.mts +12 -0
  195. package/Utils/Schema/TypeSchemas.d.ts +12 -0
  196. package/Utils/Schema/TypeSchemas.js +176 -0
  197. package/Utils/Schema/TypeSchemas.mjs +11 -0
  198. package/Utils/Schema/Zod.js +17 -17
  199. package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +34 -0
  200. package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +34 -0
  201. package/Utils/SecurityCase/SecurityCaseMarkdown.js +69 -0
  202. package/Utils/SecurityCase/SecurityCaseMarkdown.mjs +9 -0
  203. package/Utils/SecurityCase/SecurityCasePriorities.d.mts +2 -0
  204. package/Utils/SecurityCase/SecurityCasePriorities.d.ts +2 -0
  205. package/Utils/SecurityCase/SecurityCasePriorities.js +15 -1
  206. package/Utils/SecurityCase/SecurityCaseTargets.d.mts +128 -0
  207. package/Utils/SecurityCase/SecurityCaseTargets.d.ts +128 -0
  208. package/Utils/SecurityCase/SecurityCaseTargets.js +482 -0
  209. package/Utils/SecurityCase/SecurityCaseTargets.mjs +28 -0
  210. package/Utils/SecurityEvent/Sigma/SigmaRuleParser.js +22 -0
  211. package/Utils/SecurityEvent/Sigma/SigmaWatchlists.d.mts +24 -0
  212. package/Utils/SecurityEvent/Sigma/SigmaWatchlists.d.ts +24 -0
  213. package/Utils/SecurityEvent/Sigma/SigmaWatchlists.js +183 -0
  214. package/Utils/SecurityEvent/Sigma/SigmaWatchlists.mjs +9 -0
  215. package/package.json +1 -1
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.OnCallEmptyLevelLine = exports.LEGACY_ON_CALL_LEVEL_NO_USERS_TIMELINE_MESSAGE = exports.ON_CALL_LEVEL_PAGED_NOBODY_TIMELINE_MESSAGE = exports.ON_CALL_LEVEL_HAS_NO_RESPONDERS_TIMELINE_MESSAGE = void 0;
7
+ exports.readOnCallEmptyLevelLine = readOnCallEmptyLevelLine;
8
+ exports.isOnCallEmptyLevelMovedOnAtOnce = isOnCallEmptyLevelMovedOnAtOnce;
9
+ exports.getOnCallEmptyLevelTimelineMessage = getOnCallEmptyLevelTimelineMessage;
10
+ exports.isOnCallPageLineReached = isOnCallPageLineReached;
11
+ const OnCalDutyExecutionLogTimelineStatus_1 = __importDefault(require("./OnCalDutyExecutionLogTimelineStatus"));
12
+ /*
13
+ * A LEVEL WITH NOBODY TO PAGE DOES NOT HOLD THE PAGE UP.
14
+ *
15
+ * An escalation rule - a level of an on-call policy - waits its "Escalate
16
+ * after" for the people it paged to acknowledge, then the next level is
17
+ * paged. A level that pages nobody has nobody to wait for: waiting out its
18
+ * wait would only keep the next level from hearing of the incident or alert.
19
+ * So a run moves on from such a level at once - to the next level, to the
20
+ * policy's first level again when it repeats, or to its end - in the one
21
+ * way a run moves on (OnCallEscalationAdvance).
22
+ *
23
+ * A level pages nobody when, at the moment it is reached:
24
+ *
25
+ * - it names nobody: no person, team or on-call schedule;
26
+ * - its teams have no members;
27
+ * - nobody is on call in its schedules - a gap between layers, an override
28
+ * that leaves nobody - or nobody is next in a rotation whose next person
29
+ * it pages;
30
+ * - everybody it names is away with nobody named to cover, has left the
31
+ * project, or has escalated this run's page already;
32
+ * - nobody it named can be reached at all: each one's page was skipped or
33
+ * failed as it went out - they opted out of this severity, or have no
34
+ * notification rule for it and no verified method to fall back on.
35
+ *
36
+ * The last is a choice, and this is why: a level's wait is the time its
37
+ * people get to acknowledge, and somebody whose page never went out can
38
+ * neither see it nor acknowledge it. Whether a page went out is known when
39
+ * it is sent - each person's notification log is written then, and says
40
+ * "skipped" or "error" at once for a page that cannot go anywhere - so the
41
+ * level is counted as empty only on what is certain. A page that is on its
42
+ * way, or that a person's own rules send a few minutes later, counts as
43
+ * reaching them, and the level waits as it always has.
44
+ *
45
+ * A level that pages nobody writes one line of its own on the run's timeline
46
+ * (after a line for each person, team or schedule it found nobody in), in
47
+ * the words below: the Execution Timeline, the record's feed and the run's
48
+ * Slack and Microsoft Teams message read it back to say that the policy
49
+ * moved on at once, and why.
50
+ *
51
+ * React-free and server-safe: the server, the dashboard and their tests read
52
+ * it.
53
+ */
54
+ // The level's line, when the level names nobody at all.
55
+ exports.ON_CALL_LEVEL_HAS_NO_RESPONDERS_TIMELINE_MESSAGE = "This level has no responders, so the policy moved on at once.";
56
+ /*
57
+ * The level's line, when it names somebody but paged nobody: each person,
58
+ * team or schedule has a line of its own before it, saying why.
59
+ */
60
+ exports.ON_CALL_LEVEL_PAGED_NOBODY_TIMELINE_MESSAGE = "Nobody at this level could be paged, so the policy moved on at once.";
61
+ /*
62
+ * The line runs wrote before a level with nobody to page was passed at once:
63
+ * those runs waited out the level's wait. Kept so their lines read as what
64
+ * they were.
65
+ */
66
+ exports.LEGACY_ON_CALL_LEVEL_NO_USERS_TIMELINE_MESSAGE = "Skipped because no users in this rule.";
67
+ // Which of the lines above a timeline line is.
68
+ var OnCallEmptyLevelLine;
69
+ (function (OnCallEmptyLevelLine) {
70
+ // The level names nobody; the run moved on at once.
71
+ OnCallEmptyLevelLine["NoResponders"] = "NoResponders";
72
+ // The level named somebody and paged nobody; the run moved on at once.
73
+ OnCallEmptyLevelLine["PagedNobody"] = "PagedNobody";
74
+ // Written before levels were passed at once: the run waited out the level.
75
+ OnCallEmptyLevelLine["Legacy"] = "Legacy";
76
+ })(OnCallEmptyLevelLine || (exports.OnCallEmptyLevelLine = OnCallEmptyLevelLine = {}));
77
+ /*
78
+ * Which level line a timeline line's status message is, or null for any
79
+ * other line. Compared as written, spaces trimmed.
80
+ */
81
+ function readOnCallEmptyLevelLine(statusMessage) {
82
+ const message = (statusMessage || "").trim();
83
+ if (message === exports.ON_CALL_LEVEL_HAS_NO_RESPONDERS_TIMELINE_MESSAGE) {
84
+ return OnCallEmptyLevelLine.NoResponders;
85
+ }
86
+ if (message === exports.ON_CALL_LEVEL_PAGED_NOBODY_TIMELINE_MESSAGE) {
87
+ return OnCallEmptyLevelLine.PagedNobody;
88
+ }
89
+ if (message === exports.LEGACY_ON_CALL_LEVEL_NO_USERS_TIMELINE_MESSAGE) {
90
+ return OnCallEmptyLevelLine.Legacy;
91
+ }
92
+ return null;
93
+ }
94
+ /*
95
+ * Whether a timeline line says its level paged nobody and the run moved on
96
+ * from it at once: not a legacy line, whose run waited.
97
+ */
98
+ function isOnCallEmptyLevelMovedOnAtOnce(statusMessage) {
99
+ const line = readOnCallEmptyLevelLine(statusMessage);
100
+ return (line === OnCallEmptyLevelLine.NoResponders ||
101
+ line === OnCallEmptyLevelLine.PagedNobody);
102
+ }
103
+ // The line a level that paged nobody writes: whether it names anybody at all.
104
+ function getOnCallEmptyLevelTimelineMessage(data) {
105
+ return data.namesAnybody
106
+ ? exports.ON_CALL_LEVEL_PAGED_NOBODY_TIMELINE_MESSAGE
107
+ : exports.ON_CALL_LEVEL_HAS_NO_RESPONDERS_TIMELINE_MESSAGE;
108
+ }
109
+ /*
110
+ * Whether a person's line on a run's timeline says their page went out - is
111
+ * being sent, was sent, was acknowledged or was escalated - rather than
112
+ * skipped or failed. A line whose status is not known counts as reaching
113
+ * them: a level is only counted as empty on what is certain.
114
+ */
115
+ function isOnCallPageLineReached(status) {
116
+ return (status !== OnCalDutyExecutionLogTimelineStatus_1.default.Skipped &&
117
+ status !== OnCalDutyExecutionLogTimelineStatus_1.default.Error);
118
+ }
@@ -0,0 +1,9 @@
1
+ import commonJsModule from "./OnCallEmptyLevel.js";
2
+ export const LEGACY_ON_CALL_LEVEL_NO_USERS_TIMELINE_MESSAGE = commonJsModule.LEGACY_ON_CALL_LEVEL_NO_USERS_TIMELINE_MESSAGE;
3
+ export const ON_CALL_LEVEL_HAS_NO_RESPONDERS_TIMELINE_MESSAGE = commonJsModule.ON_CALL_LEVEL_HAS_NO_RESPONDERS_TIMELINE_MESSAGE;
4
+ export const ON_CALL_LEVEL_PAGED_NOBODY_TIMELINE_MESSAGE = commonJsModule.ON_CALL_LEVEL_PAGED_NOBODY_TIMELINE_MESSAGE;
5
+ export const OnCallEmptyLevelLine = commonJsModule.OnCallEmptyLevelLine;
6
+ export const getOnCallEmptyLevelTimelineMessage = commonJsModule.getOnCallEmptyLevelTimelineMessage;
7
+ export const isOnCallEmptyLevelMovedOnAtOnce = commonJsModule.isOnCallEmptyLevelMovedOnAtOnce;
8
+ export const isOnCallPageLineReached = commonJsModule.isOnCallPageLineReached;
9
+ export const readOnCallEmptyLevelLine = commonJsModule.readOnCallEmptyLevelLine;
@@ -136,6 +136,14 @@ declare enum Permission {
136
136
  EditSecurityCaseNote = "EditSecurityCaseNote",
137
137
  ReadSecurityCaseNote = "ReadSecurityCaseNote",
138
138
  ReadSecurityCaseFeed = "ReadSecurityCaseFeed",
139
+ CreateSecurityCaseTask = "CreateSecurityCaseTask",
140
+ DeleteSecurityCaseTask = "DeleteSecurityCaseTask",
141
+ EditSecurityCaseTask = "EditSecurityCaseTask",
142
+ ReadSecurityCaseTask = "ReadSecurityCaseTask",
143
+ CreateSecurityCaseEvidence = "CreateSecurityCaseEvidence",
144
+ DeleteSecurityCaseEvidence = "DeleteSecurityCaseEvidence",
145
+ EditSecurityCaseEvidence = "EditSecurityCaseEvidence",
146
+ ReadSecurityCaseEvidence = "ReadSecurityCaseEvidence",
139
147
  CreateSecurityCaseStatus = "CreateSecurityCaseStatus",
140
148
  DeleteSecurityCaseStatus = "DeleteSecurityCaseStatus",
141
149
  EditSecurityCaseStatus = "EditSecurityCaseStatus",
@@ -136,6 +136,14 @@ declare enum Permission {
136
136
  EditSecurityCaseNote = "EditSecurityCaseNote",
137
137
  ReadSecurityCaseNote = "ReadSecurityCaseNote",
138
138
  ReadSecurityCaseFeed = "ReadSecurityCaseFeed",
139
+ CreateSecurityCaseTask = "CreateSecurityCaseTask",
140
+ DeleteSecurityCaseTask = "DeleteSecurityCaseTask",
141
+ EditSecurityCaseTask = "EditSecurityCaseTask",
142
+ ReadSecurityCaseTask = "ReadSecurityCaseTask",
143
+ CreateSecurityCaseEvidence = "CreateSecurityCaseEvidence",
144
+ DeleteSecurityCaseEvidence = "DeleteSecurityCaseEvidence",
145
+ EditSecurityCaseEvidence = "EditSecurityCaseEvidence",
146
+ ReadSecurityCaseEvidence = "ReadSecurityCaseEvidence",
139
147
  CreateSecurityCaseStatus = "CreateSecurityCaseStatus",
140
148
  DeleteSecurityCaseStatus = "DeleteSecurityCaseStatus",
141
149
  EditSecurityCaseStatus = "EditSecurityCaseStatus",
@@ -196,6 +196,16 @@ var Permission;
196
196
  Permission["ReadSecurityCaseNote"] = "ReadSecurityCaseNote";
197
197
  // Security Case Feed (what happened on a case, written by OneUptime)
198
198
  Permission["ReadSecurityCaseFeed"] = "ReadSecurityCaseFeed";
199
+ // Security Case Tasks (what has to be done on a case, and who does it)
200
+ Permission["CreateSecurityCaseTask"] = "CreateSecurityCaseTask";
201
+ Permission["DeleteSecurityCaseTask"] = "DeleteSecurityCaseTask";
202
+ Permission["EditSecurityCaseTask"] = "EditSecurityCaseTask";
203
+ Permission["ReadSecurityCaseTask"] = "ReadSecurityCaseTask";
204
+ // Security Case Evidence (files and links kept on a case)
205
+ Permission["CreateSecurityCaseEvidence"] = "CreateSecurityCaseEvidence";
206
+ Permission["DeleteSecurityCaseEvidence"] = "DeleteSecurityCaseEvidence";
207
+ Permission["EditSecurityCaseEvidence"] = "EditSecurityCaseEvidence";
208
+ Permission["ReadSecurityCaseEvidence"] = "ReadSecurityCaseEvidence";
199
209
  // Security Case Statuses (the statuses a project's cases move through)
200
210
  Permission["CreateSecurityCaseStatus"] = "CreateSecurityCaseStatus";
201
211
  Permission["DeleteSecurityCaseStatus"] = "DeleteSecurityCaseStatus";
@@ -2246,7 +2256,7 @@ class PermissionHelper {
2246
2256
  {
2247
2257
  permission: Permission.SecurityAdmin,
2248
2258
  title: "Security Admin",
2249
- description: "Full control over security operations: security events, cases with their detections and notes, response playbooks and their runs, Sigma detection rules, threat intelligence feeds and their indicators, and security event connections (Google SecOps, Microsoft Sentinel, CrowdStrike Falcon and other sources). Outside the Security roles, only Project Owner and Project Admin read security data.",
2259
+ description: "Full control over security operations: security events, cases with their detections, notes, tasks and evidence, response playbooks and their runs, Sigma detection rules, threat intelligence feeds and their indicators, and security event connections (Google SecOps, Microsoft Sentinel, CrowdStrike Falcon and other sources). Outside the Security roles, only Project Owner and Project Admin read security data.",
2250
2260
  isAssignableToTenant: true,
2251
2261
  isAccessControlPermission: false,
2252
2262
  isRolePermission: true,
@@ -2255,7 +2265,7 @@ class PermissionHelper {
2255
2265
  {
2256
2266
  permission: Permission.SecurityMember,
2257
2267
  title: "Security Member",
2258
- description: "Reads security events and threat intelligence, sends security events, works security cases (opens, assigns, changes and closes them and writes their notes), runs playbooks and approves their steps, and creates, changes and deletes detection rules and threat intel feeds. Cannot configure playbooks or security event connections, or delete security data.",
2268
+ description: "Reads security events and threat intelligence, sends security events, works security cases (opens, assigns, changes and closes them, writes their notes, works their tasks and adds evidence), runs playbooks and approves their steps, and creates, changes and deletes detection rules and threat intel feeds. Cannot configure playbooks or security event connections, or delete security data.",
2259
2269
  isAssignableToTenant: true,
2260
2270
  isAccessControlPermission: false,
2261
2271
  isRolePermission: true,
@@ -2264,7 +2274,7 @@ class PermissionHelper {
2264
2274
  {
2265
2275
  permission: Permission.SecurityViewer,
2266
2276
  title: "Security Viewer",
2267
- description: "Read-only access to security events, cases with their detections and notes, playbooks and their runs, detection rules, threat intelligence feeds and indicators, and security event connections.",
2277
+ description: "Read-only access to security events, cases with their detections, notes, tasks and evidence, playbooks and their runs, detection rules, threat intelligence feeds and indicators, and security event connections.",
2268
2278
  isAssignableToTenant: true,
2269
2279
  isAccessControlPermission: false,
2270
2280
  isRolePermission: true,
@@ -7205,6 +7215,80 @@ class PermissionHelper {
7205
7215
  isRolePermission: false,
7206
7216
  group: PermissionGroup.Security,
7207
7217
  },
7218
+ // Security Case Task Permissions
7219
+ {
7220
+ permission: Permission.CreateSecurityCaseTask,
7221
+ title: "Create Security Case Task",
7222
+ description: "This permission can add tasks to Security Cases of this project.",
7223
+ isAssignableToTenant: true,
7224
+ isAccessControlPermission: false,
7225
+ isRolePermission: false,
7226
+ group: PermissionGroup.Security,
7227
+ },
7228
+ {
7229
+ permission: Permission.DeleteSecurityCaseTask,
7230
+ title: "Delete Security Case Task",
7231
+ description: "This permission can delete tasks of Security Cases of this project.",
7232
+ isAssignableToTenant: true,
7233
+ isAccessControlPermission: false,
7234
+ isRolePermission: false,
7235
+ group: PermissionGroup.Security,
7236
+ },
7237
+ {
7238
+ permission: Permission.EditSecurityCaseTask,
7239
+ title: "Edit Security Case Task",
7240
+ description: "This permission can edit tasks of Security Cases of this project: rename them, assign them and mark them done.",
7241
+ isAssignableToTenant: true,
7242
+ isAccessControlPermission: false,
7243
+ isRolePermission: false,
7244
+ group: PermissionGroup.Security,
7245
+ },
7246
+ {
7247
+ permission: Permission.ReadSecurityCaseTask,
7248
+ title: "Read Security Case Task",
7249
+ description: "This permission can read tasks of Security Cases of this project.",
7250
+ isAssignableToTenant: true,
7251
+ isAccessControlPermission: false,
7252
+ isRolePermission: false,
7253
+ group: PermissionGroup.Security,
7254
+ },
7255
+ // Security Case Evidence Permissions
7256
+ {
7257
+ permission: Permission.CreateSecurityCaseEvidence,
7258
+ title: "Create Security Case Evidence",
7259
+ description: "This permission can add evidence - files and links - to Security Cases of this project.",
7260
+ isAssignableToTenant: true,
7261
+ isAccessControlPermission: false,
7262
+ isRolePermission: false,
7263
+ group: PermissionGroup.Security,
7264
+ },
7265
+ {
7266
+ permission: Permission.DeleteSecurityCaseEvidence,
7267
+ title: "Delete Security Case Evidence",
7268
+ description: "This permission can remove evidence from Security Cases of this project.",
7269
+ isAssignableToTenant: true,
7270
+ isAccessControlPermission: false,
7271
+ isRolePermission: false,
7272
+ group: PermissionGroup.Security,
7273
+ },
7274
+ {
7275
+ permission: Permission.EditSecurityCaseEvidence,
7276
+ title: "Edit Security Case Evidence",
7277
+ description: "This permission can rename the evidence of Security Cases of this project and change its description. What a piece of evidence holds never changes.",
7278
+ isAssignableToTenant: true,
7279
+ isAccessControlPermission: false,
7280
+ isRolePermission: false,
7281
+ group: PermissionGroup.Security,
7282
+ },
7283
+ {
7284
+ permission: Permission.ReadSecurityCaseEvidence,
7285
+ title: "Read Security Case Evidence",
7286
+ description: "This permission can read and download the evidence of Security Cases of this project.",
7287
+ isAssignableToTenant: true,
7288
+ isAccessControlPermission: false,
7289
+ isRolePermission: false,
7290
+ group: PermissionGroup.Security,
7291
+ },
7208
7292
  // Security Case Status Permissions
7209
7293
  {
7210
7294
  permission: Permission.CreateSecurityCaseStatus,
package/Types/Phone.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
  import DatabaseProperty from "./Database/DatabaseProperty.mjs";
2
2
  import { JSONObject } from "./JSON.mjs";
3
3
  import { FindOperator } from "typeorm";
4
- import { ZodSchema } from "../Utils/Schema/Zod.mjs";
5
4
  export default class Phone extends DatabaseProperty {
6
5
  private _phone;
7
6
  get phone(): string;
@@ -18,7 +17,6 @@ export default class Phone extends DatabaseProperty {
18
17
  static fromJSON(json: JSONObject): Phone;
19
18
  protected static toDatabase(value: Phone | FindOperator<Phone>): string | null;
20
19
  protected static fromDatabase(_value: string): Phone | null;
21
- static getSchema(): ZodSchema;
22
20
  private static readonly CALLING_CODE_TO_COUNTRY_MAP;
23
21
  /**
24
22
  * Extract ISO country code from a phone number
package/Types/Phone.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import DatabaseProperty from "./Database/DatabaseProperty";
2
2
  import { JSONObject } from "./JSON";
3
3
  import { FindOperator } from "typeorm";
4
- import { ZodSchema } from "../Utils/Schema/Zod";
5
4
  export default class Phone extends DatabaseProperty {
6
5
  private _phone;
7
6
  get phone(): string;
@@ -18,7 +17,6 @@ export default class Phone extends DatabaseProperty {
18
17
  static fromJSON(json: JSONObject): Phone;
19
18
  protected static toDatabase(value: Phone | FindOperator<Phone>): string | null;
20
19
  protected static fromDatabase(_value: string): Phone | null;
21
- static getSchema(): ZodSchema;
22
20
  private static readonly CALLING_CODE_TO_COUNTRY_MAP;
23
21
  /**
24
22
  * Extract ISO country code from a phone number
package/Types/Phone.js CHANGED
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const DatabaseProperty_1 = __importDefault(require("./Database/DatabaseProperty"));
7
7
  const BadDataException_1 = __importDefault(require("./Exception/BadDataException"));
8
8
  const JSON_1 = require("./JSON");
9
- const Zod_1 = __importDefault(require("../Utils/Schema/Zod"));
10
9
  const RefusedValue_1 = require("../Utils/RefusedValue");
11
10
  class Phone extends DatabaseProperty_1.default {
12
11
  get phone() {
@@ -115,19 +114,6 @@ class Phone extends DatabaseProperty_1.default {
115
114
  }
116
115
  return null;
117
116
  }
118
- static getSchema() {
119
- return Zod_1.default.object({
120
- _type: Zod_1.default.literal(JSON_1.ObjectType.Phone),
121
- value: Zod_1.default.string().openapi({
122
- type: "string",
123
- example: "+1-555-123-4567",
124
- }),
125
- }).openapi({
126
- type: "object",
127
- description: "Phone object",
128
- example: { _type: JSON_1.ObjectType.Phone, value: "+1-555-123-4567" },
129
- });
130
- }
131
117
  /**
132
118
  * Extract ISO country code from a phone number
133
119
  * @param phoneNumber - The phone number (e.g., "+15551234567")
package/Types/Port.d.mts CHANGED
@@ -2,7 +2,6 @@ import DatabaseProperty from "./Database/DatabaseProperty.mjs";
2
2
  import { JSONObject } from "./JSON.mjs";
3
3
  import PositiveNumber from "./PositiveNumber.mjs";
4
4
  import { FindOperator } from "typeorm/find-options/FindOperator.js";
5
- import { ZodSchema } from "../Utils/Schema/Zod.mjs";
6
5
  export default class Port extends DatabaseProperty {
7
6
  private _port;
8
7
  get port(): PositiveNumber;
@@ -15,5 +14,4 @@ export default class Port extends DatabaseProperty {
15
14
  static fromDatabase(_value: string | number): Port | null;
16
15
  toString(): string;
17
16
  toNumber(): number;
18
- static getSchema(): ZodSchema;
19
17
  }
package/Types/Port.d.ts CHANGED
@@ -2,7 +2,6 @@ import DatabaseProperty from "./Database/DatabaseProperty";
2
2
  import { JSONObject } from "./JSON";
3
3
  import PositiveNumber from "./PositiveNumber";
4
4
  import { FindOperator } from "typeorm/find-options/FindOperator";
5
- import { ZodSchema } from "../Utils/Schema/Zod";
6
5
  export default class Port extends DatabaseProperty {
7
6
  private _port;
8
7
  get port(): PositiveNumber;
@@ -15,5 +14,4 @@ export default class Port extends DatabaseProperty {
15
14
  static fromDatabase(_value: string | number): Port | null;
16
15
  toString(): string;
17
16
  toNumber(): number;
18
- static getSchema(): ZodSchema;
19
17
  }
package/Types/Port.js CHANGED
@@ -8,7 +8,6 @@ const BadDataException_1 = __importDefault(require("./Exception/BadDataException
8
8
  const JSON_1 = require("./JSON");
9
9
  const PositiveNumber_1 = __importDefault(require("./PositiveNumber"));
10
10
  const Typeof_1 = __importDefault(require("./Typeof"));
11
- const Zod_1 = __importDefault(require("../Utils/Schema/Zod"));
12
11
  class Port extends DatabaseProperty_1.default {
13
12
  get port() {
14
13
  return this._port;
@@ -89,18 +88,5 @@ class Port extends DatabaseProperty_1.default {
89
88
  toNumber() {
90
89
  return this.port.toNumber();
91
90
  }
92
- static getSchema() {
93
- return Zod_1.default.object({
94
- _type: Zod_1.default.literal(JSON_1.ObjectType.Port),
95
- value: Zod_1.default.number().int().min(0).max(65535).openapi({
96
- type: "number",
97
- example: 8080,
98
- }),
99
- }).openapi({
100
- type: "object",
101
- description: "Port object",
102
- example: { _type: JSON_1.ObjectType.Port, value: 8080 },
103
- });
104
- }
105
91
  }
106
92
  exports.default = Port;
@@ -78,7 +78,14 @@ declare enum ProviderLogo {
78
78
  SpringBoot = "spring-boot",
79
79
  Quarkus = "quarkus",
80
80
  Kotlin = "kotlin",
81
- Ktor = "ktor"
81
+ Ktor = "ktor",
82
+ Gin = "gin",
83
+ Rails = "rails",
84
+ Sinatra = "sinatra",
85
+ Sidekiq = "sidekiq",
86
+ Slim = "slim",
87
+ ActixWeb = "actix-web",
88
+ Phoenix = "phoenix"
82
89
  }
83
90
  export default ProviderLogo;
84
91
  export declare const PROVIDER_LOGO_NAMES: Readonly<Record<ProviderLogo, string>>;
@@ -78,7 +78,14 @@ declare enum ProviderLogo {
78
78
  SpringBoot = "spring-boot",
79
79
  Quarkus = "quarkus",
80
80
  Kotlin = "kotlin",
81
- Ktor = "ktor"
81
+ Ktor = "ktor",
82
+ Gin = "gin",
83
+ Rails = "rails",
84
+ Sinatra = "sinatra",
85
+ Sidekiq = "sidekiq",
86
+ Slim = "slim",
87
+ ActixWeb = "actix-web",
88
+ Phoenix = "phoenix"
82
89
  }
83
90
  export default ProviderLogo;
84
91
  export declare const PROVIDER_LOGO_NAMES: Readonly<Record<ProviderLogo, string>>;
@@ -115,6 +115,13 @@ var ProviderLogo;
115
115
  ProviderLogo["Quarkus"] = "quarkus";
116
116
  ProviderLogo["Kotlin"] = "kotlin";
117
117
  ProviderLogo["Ktor"] = "ktor";
118
+ ProviderLogo["Gin"] = "gin";
119
+ ProviderLogo["Rails"] = "rails";
120
+ ProviderLogo["Sinatra"] = "sinatra";
121
+ ProviderLogo["Sidekiq"] = "sidekiq";
122
+ ProviderLogo["Slim"] = "slim";
123
+ ProviderLogo["ActixWeb"] = "actix-web";
124
+ ProviderLogo["Phoenix"] = "phoenix";
118
125
  })(ProviderLogo || (ProviderLogo = {}));
119
126
  exports.default = ProviderLogo;
120
127
  /*
@@ -203,6 +210,13 @@ exports.PROVIDER_LOGO_NAMES = {
203
210
  [ProviderLogo.Quarkus]: "Quarkus",
204
211
  [ProviderLogo.Kotlin]: "Kotlin",
205
212
  [ProviderLogo.Ktor]: "Ktor",
213
+ [ProviderLogo.Gin]: "Gin",
214
+ [ProviderLogo.Rails]: "Ruby on Rails",
215
+ [ProviderLogo.Sinatra]: "Sinatra",
216
+ [ProviderLogo.Sidekiq]: "Sidekiq",
217
+ [ProviderLogo.Slim]: "Slim",
218
+ [ProviderLogo.ActixWeb]: "Actix Web",
219
+ [ProviderLogo.Phoenix]: "Phoenix",
206
220
  };
207
221
  exports.ALL_PROVIDER_LOGOS = Object.values(ProviderLogo);
208
222
  function isProviderLogo(value) {
@@ -0,0 +1,7 @@
1
+ declare enum SecurityCaseEvidenceKind {
2
+ File = "File",
3
+ Link = "Link"
4
+ }
5
+ export declare const SECURITY_CASE_EVIDENCE_KINDS: ReadonlyArray<SecurityCaseEvidenceKind>;
6
+ export declare function isSecurityCaseEvidenceKind(value: unknown): value is SecurityCaseEvidenceKind;
7
+ export default SecurityCaseEvidenceKind;
@@ -0,0 +1,7 @@
1
+ declare enum SecurityCaseEvidenceKind {
2
+ File = "File",
3
+ Link = "Link"
4
+ }
5
+ export declare const SECURITY_CASE_EVIDENCE_KINDS: ReadonlyArray<SecurityCaseEvidenceKind>;
6
+ export declare function isSecurityCaseEvidenceKind(value: unknown): value is SecurityCaseEvidenceKind;
7
+ export default SecurityCaseEvidenceKind;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SECURITY_CASE_EVIDENCE_KINDS = void 0;
4
+ exports.isSecurityCaseEvidenceKind = isSecurityCaseEvidenceKind;
5
+ /*
6
+ * What a piece of evidence on a security case is (SecurityCaseEvidence):
7
+ *
8
+ * - File: a file uploaded to OneUptime - a log excerpt, a screenshot, a
9
+ * packet capture, an exported mailbox - kept with its size, its type and
10
+ * the SHA-256 of its bytes as they were uploaded, so anyone can check
11
+ * that what they download is what was kept.
12
+ * - Link: an address of evidence kept somewhere else - an EDR console's
13
+ * page, a ticket, an object in the team's own evidence store.
14
+ */
15
+ var SecurityCaseEvidenceKind;
16
+ (function (SecurityCaseEvidenceKind) {
17
+ SecurityCaseEvidenceKind["File"] = "File";
18
+ SecurityCaseEvidenceKind["Link"] = "Link";
19
+ })(SecurityCaseEvidenceKind || (SecurityCaseEvidenceKind = {}));
20
+ exports.SECURITY_CASE_EVIDENCE_KINDS = [SecurityCaseEvidenceKind.File, SecurityCaseEvidenceKind.Link];
21
+ function isSecurityCaseEvidenceKind(value) {
22
+ return exports.SECURITY_CASE_EVIDENCE_KINDS.includes(value);
23
+ }
24
+ exports.default = SecurityCaseEvidenceKind;
@@ -0,0 +1,4 @@
1
+ import commonJsModule from "./SecurityCaseEvidenceKind.js";
2
+ export default commonJsModule.default;
3
+ export const SECURITY_CASE_EVIDENCE_KINDS = commonJsModule.SECURITY_CASE_EVIDENCE_KINDS;
4
+ export const isSecurityCaseEvidenceKind = commonJsModule.isSecurityCaseEvidenceKind;