@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,51 @@
1
+ import commonJsModule from "./SecurityWatchlist.js";
2
+ export const SECURITY_WATCHLISTS_PER_PROJECT_MAX = commonJsModule.SECURITY_WATCHLISTS_PER_PROJECT_MAX;
3
+ export const SECURITY_WATCHLIST_DEFAULT_SNIPPET_FIELD = commonJsModule.SECURITY_WATCHLIST_DEFAULT_SNIPPET_FIELD;
4
+ export const SECURITY_WATCHLIST_DESCRIPTION_MAX_LENGTH = commonJsModule.SECURITY_WATCHLIST_DESCRIPTION_MAX_LENGTH;
5
+ export const SECURITY_WATCHLIST_ENTITY_TYPES = commonJsModule.SECURITY_WATCHLIST_ENTITY_TYPES;
6
+ export const SECURITY_WATCHLIST_FEED_ENTITY_TYPES = commonJsModule.SECURITY_WATCHLIST_FEED_ENTITY_TYPES;
7
+ export const SECURITY_WATCHLIST_FEED_INDICATOR_TYPES = commonJsModule.SECURITY_WATCHLIST_FEED_INDICATOR_TYPES;
8
+ export const SECURITY_WATCHLIST_IMPORT_MAX_CHARACTERS = commonJsModule.SECURITY_WATCHLIST_IMPORT_MAX_CHARACTERS;
9
+ export const SECURITY_WATCHLIST_MESSAGES = commonJsModule.SECURITY_WATCHLIST_MESSAGES;
10
+ export const SECURITY_WATCHLIST_MODIFIER = commonJsModule.SECURITY_WATCHLIST_MODIFIER;
11
+ export const SECURITY_WATCHLIST_NAME_MAX_LENGTH = commonJsModule.SECURITY_WATCHLIST_NAME_MAX_LENGTH;
12
+ export const SECURITY_WATCHLIST_NOTE_MAX_LENGTH = commonJsModule.SECURITY_WATCHLIST_NOTE_MAX_LENGTH;
13
+ export const SECURITY_WATCHLIST_PATTERN_VALUES_MAX = commonJsModule.SECURITY_WATCHLIST_PATTERN_VALUES_MAX;
14
+ export const SECURITY_WATCHLIST_PLACEHOLDER_MARK = commonJsModule.SECURITY_WATCHLIST_PLACEHOLDER_MARK;
15
+ export const SECURITY_WATCHLIST_RANGE_VALUES_MAX = commonJsModule.SECURITY_WATCHLIST_RANGE_VALUES_MAX;
16
+ export const SECURITY_WATCHLIST_SNIPPET_FIELDS = commonJsModule.SECURITY_WATCHLIST_SNIPPET_FIELDS;
17
+ export const SECURITY_WATCHLIST_SOURCES = commonJsModule.SECURITY_WATCHLIST_SOURCES;
18
+ export const SECURITY_WATCHLIST_VALUES_MAX = commonJsModule.SECURITY_WATCHLIST_VALUES_MAX;
19
+ export const SECURITY_WATCHLIST_VALUE_MAX_LENGTH = commonJsModule.SECURITY_WATCHLIST_VALUE_MAX_LENGTH;
20
+ export const SECURITY_WATCHLIST_WILDCARD = commonJsModule.SECURITY_WATCHLIST_WILDCARD;
21
+ export const SecurityWatchlistImportMode = commonJsModule.SecurityWatchlistImportMode;
22
+ export const SecurityWatchlistSource = commonJsModule.SecurityWatchlistSource;
23
+ export const SecurityWatchlistValueMatch = commonJsModule.SecurityWatchlistValueMatch;
24
+ export const canSecurityWatchlistFollowFeed = commonJsModule.canSecurityWatchlistFollowFeed;
25
+ export const countSecurityWatchlistValues = commonJsModule.countSecurityWatchlistValues;
26
+ export const getMissingSecurityWatchlistsMessage = commonJsModule.getMissingSecurityWatchlistsMessage;
27
+ export const getSecurityWatchlistFeedIndicatorTypes = commonJsModule.getSecurityWatchlistFeedIndicatorTypes;
28
+ export const getSecurityWatchlistNameKey = commonJsModule.getSecurityWatchlistNameKey;
29
+ export const getSecurityWatchlistNameProblem = commonJsModule.getSecurityWatchlistNameProblem;
30
+ export const getSecurityWatchlistNoteProblem = commonJsModule.getSecurityWatchlistNoteProblem;
31
+ export const getSecurityWatchlistPlaceholder = commonJsModule.getSecurityWatchlistPlaceholder;
32
+ export const getSecurityWatchlistProblem = commonJsModule.getSecurityWatchlistProblem;
33
+ export const getSecurityWatchlistProblems = commonJsModule.getSecurityWatchlistProblems;
34
+ export const getSecurityWatchlistRuleSnippet = commonJsModule.getSecurityWatchlistRuleSnippet;
35
+ export const getSecurityWatchlistSizeProblem = commonJsModule.getSecurityWatchlistSizeProblem;
36
+ export const getSecurityWatchlistSnippetField = commonJsModule.getSecurityWatchlistSnippetField;
37
+ export const getSecurityWatchlistValueKey = commonJsModule.getSecurityWatchlistValueKey;
38
+ export const getSecurityWatchlistValueMatch = commonJsModule.getSecurityWatchlistValueMatch;
39
+ export const getSecurityWatchlistValueProblem = commonJsModule.getSecurityWatchlistValueProblem;
40
+ export const isSecurityWatchlistEntityType = commonJsModule.isSecurityWatchlistEntityType;
41
+ export const isSecurityWatchlistImportMode = commonJsModule.isSecurityWatchlistImportMode;
42
+ export const isSecurityWatchlistName = commonJsModule.isSecurityWatchlistName;
43
+ export const isSecurityWatchlistSource = commonJsModule.isSecurityWatchlistSource;
44
+ export const matchesSecurityWatchlistPattern = commonJsModule.matchesSecurityWatchlistPattern;
45
+ export const normalizeSecurityWatchlistName = commonJsModule.normalizeSecurityWatchlistName;
46
+ export const normalizeSecurityWatchlistNote = commonJsModule.normalizeSecurityWatchlistNote;
47
+ export const normalizeSecurityWatchlistValue = commonJsModule.normalizeSecurityWatchlistValue;
48
+ export const parseSecurityWatchlistImport = commonJsModule.parseSecurityWatchlistImport;
49
+ export const readSecurityWatchlistImportLine = commonJsModule.readSecurityWatchlistImportLine;
50
+ export const readSecurityWatchlistPlaceholder = commonJsModule.readSecurityWatchlistPlaceholder;
51
+ export const splitSecurityWatchlistValues = commonJsModule.splitSecurityWatchlistValues;
@@ -1,6 +1,7 @@
1
1
  import Dictionary from "../Dictionary.mjs";
2
2
  import { JSONValue } from "../JSON.mjs";
3
3
  import OcsfSeverity from "./OcsfSeverity.mjs";
4
+ import { SigmaWatchlists } from "./SecurityWatchlist.mjs";
4
5
  export declare enum SigmaLevel {
5
6
  Informational = "informational",
6
7
  Low = "low",
@@ -51,4 +52,5 @@ export default interface SigmaRule {
51
52
  logsource: Dictionary<string>;
52
53
  selections: Array<SigmaSelection>;
53
54
  condition: SigmaConditionNode;
55
+ watchlists?: SigmaWatchlists | undefined;
54
56
  }
@@ -1,6 +1,7 @@
1
1
  import Dictionary from "../Dictionary";
2
2
  import { JSONValue } from "../JSON";
3
3
  import OcsfSeverity from "./OcsfSeverity";
4
+ import { SigmaWatchlists } from "./SecurityWatchlist";
4
5
  export declare enum SigmaLevel {
5
6
  Informational = "informational",
6
7
  Low = "low",
@@ -51,4 +52,5 @@ export default interface SigmaRule {
51
52
  logsource: Dictionary<string>;
52
53
  selections: Array<SigmaSelection>;
53
54
  condition: SigmaConditionNode;
55
+ watchlists?: SigmaWatchlists | undefined;
54
56
  }
@@ -51,6 +51,10 @@ function isSevereSigmaLevel(level) {
51
51
  * else is rejected at save time — listed here so the dashboard's rule
52
52
  * guide cannot advertise a modifier the parser refuses, or miss one it
53
53
  * takes.
54
+ *
55
+ * `expand` reads a watchlist: its value is the list's name between % signs
56
+ * (`principalUser|expand: '%vip_users%'`), as Sigma writes a value kept
57
+ * outside the rule (Types/SecurityEvent/SecurityWatchlist).
54
58
  */
55
59
  exports.SIGMA_SUPPORTED_MODIFIERS = [
56
60
  "contains",
@@ -66,4 +70,5 @@ exports.SIGMA_SUPPORTED_MODIFIERS = [
66
70
  "cidr",
67
71
  "exists",
68
72
  "windash",
73
+ "expand",
69
74
  ];
@@ -102,33 +102,35 @@ exports.OPEN_TELEMETRY_GUIDE_LANGUAGE_GROUPS = [
102
102
  {
103
103
  language: OpenTelemetryGuideLanguage.Go,
104
104
  title: "Go",
105
- description: "Go services and their HTTP routers.",
105
+ description: "Services on net/http, Gin, Echo or Fiber, and gRPC services.",
106
106
  logo: ProviderLogo_1.default.Go,
107
107
  searchTerms: ["golang"],
108
108
  },
109
109
  {
110
110
  language: OpenTelemetryGuideLanguage.Ruby,
111
111
  title: "Ruby",
112
- description: "Rails and other Ruby apps.",
112
+ description: "Rails, Sinatra, Sidekiq workers and any other Ruby program.",
113
113
  logo: ProviderLogo_1.default.Ruby,
114
114
  },
115
115
  {
116
116
  language: OpenTelemetryGuideLanguage.Php,
117
117
  title: "PHP",
118
- description: "Laravel, Symfony and plain PHP.",
118
+ description: "Laravel, Symfony, Slim and plain PHP, through the OpenTelemetry extension.",
119
119
  logo: ProviderLogo_1.default.Php,
120
120
  },
121
121
  {
122
122
  language: OpenTelemetryGuideLanguage.Rust,
123
123
  title: "Rust",
124
- description: "Rust services.",
124
+ description: "Axum, Actix Web and any program that records with the tracing crate.",
125
125
  logo: ProviderLogo_1.default.Rust,
126
+ searchTerms: ["rustlang"],
126
127
  },
127
128
  {
128
129
  language: OpenTelemetryGuideLanguage.Elixir,
129
130
  title: "Elixir",
130
- description: "Phoenix and other Elixir apps.",
131
+ description: "Phoenix and any other OTP application.",
131
132
  logo: ProviderLogo_1.default.Elixir,
133
+ searchTerms: ["erlang", "beam"],
132
134
  },
133
135
  ];
134
136
  // How many guides the product pages' row of frameworks shows at most: two rows.
@@ -167,6 +169,7 @@ exports.OPEN_TELEMETRY_GUIDES = [
167
169
  kind: "framework",
168
170
  logo: ProviderLogo_1.default.NextJs,
169
171
  telemetryGuideLanguage: "node",
172
+ isFeatured: true,
170
173
  },
171
174
  {
172
175
  slug: "fastify",
@@ -352,6 +355,175 @@ exports.OPEN_TELEMETRY_GUIDES = [
352
355
  logo: ProviderLogo_1.default.DotNet,
353
356
  telemetryGuideLanguage: "dotnet",
354
357
  },
358
+ {
359
+ // Any Go service on the standard library's net/http.
360
+ slug: "go",
361
+ name: "Go",
362
+ language: OpenTelemetryGuideLanguage.Go,
363
+ kind: "runtime",
364
+ logo: ProviderLogo_1.default.Go,
365
+ telemetryGuideLanguage: "go",
366
+ isLanguageGuide: true,
367
+ isFeatured: true,
368
+ },
369
+ {
370
+ slug: "gin",
371
+ name: "Gin",
372
+ language: OpenTelemetryGuideLanguage.Go,
373
+ kind: "framework",
374
+ logo: ProviderLogo_1.default.Gin,
375
+ telemetryGuideLanguage: "go",
376
+ },
377
+ {
378
+ // No logo set the registry draws from has Echo's: its initials stand in.
379
+ slug: "echo",
380
+ name: "Echo",
381
+ language: OpenTelemetryGuideLanguage.Go,
382
+ kind: "framework",
383
+ telemetryGuideLanguage: "go",
384
+ },
385
+ {
386
+ // No logo set the registry draws from has Fiber's: its initials stand in.
387
+ slug: "fiber",
388
+ name: "Fiber",
389
+ language: OpenTelemetryGuideLanguage.Go,
390
+ kind: "framework",
391
+ telemetryGuideLanguage: "go",
392
+ },
393
+ {
394
+ /*
395
+ * gRPC services and clients in Go. No logo: the Linux Foundation, gRPC's
396
+ * home, asks for written permission before its projects' logos appear
397
+ * on a company's website beside its products, so the initials stand in.
398
+ */
399
+ slug: "grpc",
400
+ name: "gRPC",
401
+ language: OpenTelemetryGuideLanguage.Go,
402
+ kind: "framework",
403
+ telemetryGuideLanguage: "go",
404
+ },
405
+ {
406
+ // Any Ruby program: a script, a scheduled job, a worker.
407
+ slug: "ruby",
408
+ name: "Ruby",
409
+ language: OpenTelemetryGuideLanguage.Ruby,
410
+ kind: "runtime",
411
+ logo: ProviderLogo_1.default.Ruby,
412
+ telemetryGuideLanguage: "ruby",
413
+ isLanguageGuide: true,
414
+ },
415
+ {
416
+ // Ruby's framework: the guide the product pages feature for Ruby.
417
+ slug: "rails",
418
+ name: "Ruby on Rails",
419
+ language: OpenTelemetryGuideLanguage.Ruby,
420
+ kind: "framework",
421
+ logo: ProviderLogo_1.default.Rails,
422
+ telemetryGuideLanguage: "ruby",
423
+ isFeatured: true,
424
+ },
425
+ {
426
+ slug: "sinatra",
427
+ name: "Sinatra",
428
+ language: OpenTelemetryGuideLanguage.Ruby,
429
+ kind: "framework",
430
+ logo: ProviderLogo_1.default.Sinatra,
431
+ telemetryGuideLanguage: "ruby",
432
+ },
433
+ {
434
+ // Ruby's most used background job processor: Celery's counterpart.
435
+ slug: "sidekiq",
436
+ name: "Sidekiq",
437
+ language: OpenTelemetryGuideLanguage.Ruby,
438
+ kind: "worker",
439
+ logo: ProviderLogo_1.default.Sidekiq,
440
+ telemetryGuideLanguage: "ruby",
441
+ },
442
+ {
443
+ // Any PHP app, with the extension's automatic instrumentation.
444
+ slug: "php",
445
+ name: "PHP",
446
+ language: OpenTelemetryGuideLanguage.Php,
447
+ kind: "runtime",
448
+ logo: ProviderLogo_1.default.Php,
449
+ telemetryGuideLanguage: "php",
450
+ isLanguageGuide: true,
451
+ isFeatured: true,
452
+ },
453
+ {
454
+ /*
455
+ * No logo: Laravel's trademark policy asks for a licence to use its logo
456
+ * commercially, and Symfony's for written permission to use its logo at
457
+ * all, so their initials stand in.
458
+ */
459
+ slug: "laravel",
460
+ name: "Laravel",
461
+ language: OpenTelemetryGuideLanguage.Php,
462
+ kind: "framework",
463
+ telemetryGuideLanguage: "php",
464
+ },
465
+ {
466
+ slug: "symfony",
467
+ name: "Symfony",
468
+ language: OpenTelemetryGuideLanguage.Php,
469
+ kind: "framework",
470
+ telemetryGuideLanguage: "php",
471
+ },
472
+ {
473
+ slug: "slim",
474
+ name: "Slim",
475
+ language: OpenTelemetryGuideLanguage.Php,
476
+ kind: "framework",
477
+ logo: ProviderLogo_1.default.Slim,
478
+ telemetryGuideLanguage: "php",
479
+ },
480
+ {
481
+ // Any Rust program, through the tracing crate's bridge.
482
+ slug: "rust",
483
+ name: "Rust",
484
+ language: OpenTelemetryGuideLanguage.Rust,
485
+ kind: "runtime",
486
+ logo: ProviderLogo_1.default.Rust,
487
+ telemetryGuideLanguage: "rust",
488
+ isLanguageGuide: true,
489
+ isFeatured: true,
490
+ },
491
+ {
492
+ // No logo set the registry draws from has Axum's: its initials stand in.
493
+ slug: "axum",
494
+ name: "Axum",
495
+ language: OpenTelemetryGuideLanguage.Rust,
496
+ kind: "framework",
497
+ telemetryGuideLanguage: "rust",
498
+ },
499
+ {
500
+ slug: "actix-web",
501
+ name: "Actix Web",
502
+ language: OpenTelemetryGuideLanguage.Rust,
503
+ kind: "framework",
504
+ logo: ProviderLogo_1.default.ActixWeb,
505
+ telemetryGuideLanguage: "rust",
506
+ },
507
+ {
508
+ // Any OTP application: a worker, a consumer, a service with no Phoenix.
509
+ slug: "elixir",
510
+ name: "Elixir",
511
+ language: OpenTelemetryGuideLanguage.Elixir,
512
+ kind: "runtime",
513
+ logo: ProviderLogo_1.default.Elixir,
514
+ telemetryGuideLanguage: "elixir",
515
+ isLanguageGuide: true,
516
+ },
517
+ {
518
+ // Elixir's framework: the guide the product pages feature for Elixir.
519
+ slug: "phoenix",
520
+ name: "Phoenix",
521
+ language: OpenTelemetryGuideLanguage.Elixir,
522
+ kind: "framework",
523
+ logo: ProviderLogo_1.default.Phoenix,
524
+ telemetryGuideLanguage: "elixir",
525
+ isFeatured: true,
526
+ },
355
527
  ];
356
528
  // Where the guides are listed: the website's index of integrations.
357
529
  exports.OPEN_TELEMETRY_GUIDES_INDEX_PATH = "/integrations";
@@ -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 Version extends DatabaseProperty {
6
5
  private _version;
7
6
  get version(): string;
@@ -12,5 +11,4 @@ export default class Version extends DatabaseProperty {
12
11
  static fromJSON(json: JSONObject): Version;
13
12
  protected static toDatabase(value: Version | FindOperator<Version>): string | null;
14
13
  protected static fromDatabase(_value: string): Version | null;
15
- static getSchema(): ZodSchema;
16
14
  }
@@ -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 Version extends DatabaseProperty {
6
5
  private _version;
7
6
  get version(): string;
@@ -12,5 +11,4 @@ export default class Version extends DatabaseProperty {
12
11
  static fromJSON(json: JSONObject): Version;
13
12
  protected static toDatabase(value: Version | FindOperator<Version>): string | null;
14
13
  protected static fromDatabase(_value: string): Version | null;
15
- static getSchema(): ZodSchema;
16
14
  }
package/Types/Version.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
  class Version extends DatabaseProperty_1.default {
11
10
  get version() {
12
11
  return this._version;
@@ -54,18 +53,5 @@ class Version extends DatabaseProperty_1.default {
54
53
  }
55
54
  return null;
56
55
  }
57
- static getSchema() {
58
- return Zod_1.default.object({
59
- _type: Zod_1.default.literal(JSON_1.ObjectType.Version),
60
- value: Zod_1.default.string().openapi({
61
- type: "string",
62
- example: "1.0.0",
63
- }),
64
- }).openapi({
65
- type: "object",
66
- description: "Version object",
67
- example: { _type: JSON_1.ObjectType.Version, value: "1.0.0" },
68
- });
69
- }
70
56
  }
71
57
  exports.default = Version;
@@ -0,0 +1,13 @@
1
+ import { Argument } from "./Component.mjs";
2
+ export declare const AFFECTED_RESOURCES_ARGUMENT_ID: string;
3
+ export declare const MAX_AFFECTED_RESOURCE_REFERENCES: number;
4
+ export declare const MAX_LINKED_AFFECTED_RESOURCES: number;
5
+ export declare const MAX_AFFECTED_RESOURCE_REFERENCE_LENGTH: number;
6
+ type GetAffectedResourcesArgumentFunction = (tableName: string | undefined) => Argument | null;
7
+ export declare const getAffectedResourcesArgument: GetAffectedResourcesArgumentFunction;
8
+ export declare const getAffectedResourcesSettingTableNames: () => Array<string>;
9
+ export declare const readAffectedResourceReferences: (value: unknown) => {
10
+ references: Array<string>;
11
+ leftOut: number;
12
+ };
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Argument } from "./Component";
2
+ export declare const AFFECTED_RESOURCES_ARGUMENT_ID: string;
3
+ export declare const MAX_AFFECTED_RESOURCE_REFERENCES: number;
4
+ export declare const MAX_LINKED_AFFECTED_RESOURCES: number;
5
+ export declare const MAX_AFFECTED_RESOURCE_REFERENCE_LENGTH: number;
6
+ type GetAffectedResourcesArgumentFunction = (tableName: string | undefined) => Argument | null;
7
+ export declare const getAffectedResourcesArgument: GetAffectedResourcesArgumentFunction;
8
+ export declare const getAffectedResourcesSettingTableNames: () => Array<string>;
9
+ export declare const readAffectedResourceReferences: (value: unknown) => {
10
+ references: Array<string>;
11
+ leftOut: number;
12
+ };
13
+ export {};
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readAffectedResourceReferences = exports.getAffectedResourcesSettingTableNames = exports.getAffectedResourcesArgument = exports.MAX_AFFECTED_RESOURCE_REFERENCE_LENGTH = exports.MAX_LINKED_AFFECTED_RESOURCES = exports.MAX_AFFECTED_RESOURCE_REFERENCES = exports.AFFECTED_RESOURCES_ARGUMENT_ID = void 0;
4
+ const Component_1 = require("./Component");
5
+ /*
6
+ * LINKING WHAT AN INCIDENT OR ALERT A WORKFLOW CREATES IS ABOUT.
7
+ *
8
+ * Issue #5341: an alert that arrives from another tool names the router,
9
+ * switch, host or service it is about - "WAN-RTR-01", "10.0.4.1" - and a
10
+ * workflow could only link it by writing each resource's OneUptime ID into
11
+ * JSON Object, under the right list ("hosts", "networkDevices", ...), which
12
+ * nobody receiving a webhook knows. Create One Incident and Create One
13
+ * Alert now have one more setting, Affected Resources: names, addresses or
14
+ * IDs, typed or taken from an earlier step. Each is looked up across every
15
+ * kind of resource the record can be linked to, and what matches is added
16
+ * to what JSON Object and the template already link.
17
+ *
18
+ * Monitors are not among them: they have their own fields in JSON Object
19
+ * (an incident's monitors, an alert's monitorId), because linking a monitor
20
+ * to an incident a person or a workflow declares pauses its checks - a
21
+ * choice to make on purpose, never a side effect of a name that matched.
22
+ *
23
+ * Keyed by the table of the record the step creates; the server resolves
24
+ * the references (Server/Utils/AffectedResources/AffectedResourceReferences)
25
+ * as the step, a Project Admin of the workflow's project.
26
+ */
27
+ exports.AFFECTED_RESOURCES_ARGUMENT_ID = "affectedResources";
28
+ /*
29
+ * The most references one step resolves, and the most resources it links:
30
+ * a list longer than this is a payload pasted by mistake, not a set of
31
+ * resources one incident is about.
32
+ */
33
+ exports.MAX_AFFECTED_RESOURCE_REFERENCES = 25;
34
+ exports.MAX_LINKED_AFFECTED_RESOURCES = 50;
35
+ // The longest single reference: a name, an address or an ID.
36
+ exports.MAX_AFFECTED_RESOURCE_REFERENCE_LENGTH = 200;
37
+ const SETTINGS = {
38
+ Incident: { noun: "incident" },
39
+ Alert: { noun: "alert" },
40
+ };
41
+ // The Affected Resources setting of this table's Create One step, if any.
42
+ const getAffectedResourcesArgument = (tableName) => {
43
+ const setting = tableName
44
+ ? SETTINGS[tableName]
45
+ : undefined;
46
+ if (!setting) {
47
+ return null;
48
+ }
49
+ return {
50
+ id: exports.AFFECTED_RESOURCES_ARGUMENT_ID,
51
+ name: "Affected Resources",
52
+ type: Component_1.ComponentInputType.Text,
53
+ required: false,
54
+ description: `Names, addresses or IDs of the hosts, network devices, clusters, databases or services this ${setting.noun} is about, separated by commas. Each one found is linked. Monitors go in JSON Object.`,
55
+ placeholder: "Example: WAN-RTR-01, 10.0.4.1",
56
+ };
57
+ };
58
+ exports.getAffectedResourcesArgument = getAffectedResourcesArgument;
59
+ // The tables whose Create One step has the setting.
60
+ const getAffectedResourcesSettingTableNames = () => {
61
+ return Object.keys(SETTINGS).sort();
62
+ };
63
+ exports.getAffectedResourcesSettingTableNames = getAffectedResourcesSettingTableNames;
64
+ /*
65
+ * The references a setting holds, each once, in the order written: split at
66
+ * commas, semicolons and line breaks, trimmed, empty ones dropped, each cut
67
+ * to MAX_AFFECTED_RESOURCE_REFERENCE_LENGTH. A list (an earlier step's value
68
+ * that is an array) gives its entries. Read in one pass, never with a
69
+ * regular expression: the value can be a webhook's text, any length.
70
+ */
71
+ const readAffectedResourceReferences = (value) => {
72
+ const references = [];
73
+ const seen = new Set();
74
+ let leftOut = 0;
75
+ const add = (raw) => {
76
+ const reference = raw
77
+ .trim()
78
+ .substring(0, exports.MAX_AFFECTED_RESOURCE_REFERENCE_LENGTH)
79
+ .trim();
80
+ if (!reference) {
81
+ return;
82
+ }
83
+ const key = reference.toLowerCase();
84
+ if (seen.has(key)) {
85
+ return;
86
+ }
87
+ seen.add(key);
88
+ if (references.length >= exports.MAX_AFFECTED_RESOURCE_REFERENCES) {
89
+ leftOut++;
90
+ return;
91
+ }
92
+ references.push(reference);
93
+ };
94
+ const split = (text) => {
95
+ let current = "";
96
+ for (const character of text) {
97
+ if (character === "," ||
98
+ character === ";" ||
99
+ character === "\n" ||
100
+ character === "\r") {
101
+ add(current);
102
+ current = "";
103
+ continue;
104
+ }
105
+ current += character;
106
+ }
107
+ add(current);
108
+ };
109
+ const values = Array.isArray(value) ? value : [value];
110
+ for (const item of values) {
111
+ if (typeof item === "string") {
112
+ split(item);
113
+ }
114
+ else if (typeof item === "number" && Number.isFinite(item)) {
115
+ add(String(item));
116
+ }
117
+ }
118
+ return { references, leftOut };
119
+ };
120
+ exports.readAffectedResourceReferences = readAffectedResourceReferences;
@@ -0,0 +1,8 @@
1
+ import commonJsModule from "./AffectedResourcesSetting.js";
2
+ export const AFFECTED_RESOURCES_ARGUMENT_ID = commonJsModule.AFFECTED_RESOURCES_ARGUMENT_ID;
3
+ export const MAX_AFFECTED_RESOURCE_REFERENCES = commonJsModule.MAX_AFFECTED_RESOURCE_REFERENCES;
4
+ export const MAX_AFFECTED_RESOURCE_REFERENCE_LENGTH = commonJsModule.MAX_AFFECTED_RESOURCE_REFERENCE_LENGTH;
5
+ export const MAX_LINKED_AFFECTED_RESOURCES = commonJsModule.MAX_LINKED_AFFECTED_RESOURCES;
6
+ export const getAffectedResourcesArgument = commonJsModule.getAffectedResourcesArgument;
7
+ export const getAffectedResourcesSettingTableNames = commonJsModule.getAffectedResourcesSettingTableNames;
8
+ export const readAffectedResourceReferences = commonJsModule.readAffectedResourceReferences;
@@ -7,6 +7,7 @@ exports.WATCHED_FIELDS_NAME = exports.SELECT_FIELDS_NAME = void 0;
7
7
  const IconProp_1 = __importDefault(require("../../Icon/IconProp"));
8
8
  const Text_1 = __importDefault(require("../../Text"));
9
9
  const CreateFromTemplate_1 = require("../CreateFromTemplate");
10
+ const AffectedResourcesSetting_1 = require("../AffectedResourcesSetting");
10
11
  const CreateOrUpdateTrigger_1 = require("../CreateOrUpdateTrigger");
11
12
  const DatabaseOperation_1 = require("../DatabaseOperation");
12
13
  const Component_1 = require("./../Component");
@@ -416,6 +417,19 @@ class BaseModelComponent {
416
417
  if (templateArgument) {
417
418
  jsonArgument.notRequiredWhen = { argumentId: templateArgument.id };
418
419
  }
420
+ /*
421
+ * An incident or an alert also takes what it is about by name - the
422
+ * host, router or service an alert from another tool names - looked
423
+ * up across every kind of resource it can be linked to and added to
424
+ * its lists (Types/Workflow/AffectedResourcesSetting). Last, after the
425
+ * record it adds to.
426
+ */
427
+ const affectedResourcesArgument = (0, AffectedResourcesSetting_1.getAffectedResourcesArgument)(model.tableName || undefined);
428
+ const createOneArguments = [
429
+ ...(templateArgument ? [templateArgument] : []),
430
+ jsonArgument,
431
+ ...(affectedResourcesArgument ? [affectedResourcesArgument] : []),
432
+ ];
419
433
  components.push({
420
434
  id: `${Text_1.default.pascalCaseToDashes(model.tableName)}-create-one`,
421
435
  title: `Create One ${model.singularName}`,
@@ -424,9 +438,7 @@ class BaseModelComponent {
424
438
  iconProp: IconProp_1.default.Database,
425
439
  tableName: model.tableName,
426
440
  componentType: Component_1.ComponentType.Component,
427
- arguments: templateArgument
428
- ? [templateArgument, jsonArgument]
429
- : [jsonArgument],
441
+ arguments: createOneArguments,
430
442
  returnValues: [
431
443
  {
432
444
  id: "model",
@@ -14,6 +14,7 @@
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.getDatabaseDocumentation = exports.getDatabaseOperation = exports.DatabaseOperation = void 0;
16
16
  const CreateFromTemplate_1 = require("../CreateFromTemplate");
17
+ const AffectedResourcesSetting_1 = require("../AffectedResourcesSetting");
17
18
  const CreateOrUpdateTrigger_1 = require("../CreateOrUpdateTrigger");
18
19
  const CustomFieldsColumn_1 = require("../CustomFieldsColumn");
19
20
  const DatabaseOperation_1 = require("../DatabaseOperation");
@@ -204,9 +205,31 @@ const templateTopic = (data) => {
204
205
  ],
205
206
  };
206
207
  };
208
+ /*
209
+ * An incident or alert linked to what it is about by name (Create One
210
+ * Incident's and Create One Alert's Affected Resources): how a name is
211
+ * matched, what it adds to, and what it never links.
212
+ */
213
+ const affectedResourcesTopic = (data) => {
214
+ /*
215
+ * An incident's monitors are a list of their own, and linking one pauses
216
+ * its checks; an alert has one monitor, its monitorId.
217
+ */
218
+ const monitorsSentence = data.words.model.tableName === "Alert"
219
+ ? `The ${data.words.one}'s monitor goes in **JSON Object**, as \`monitorId\`.`
220
+ : "Monitors go in **JSON Object**, because linking a monitor to an incident pauses its checks.";
221
+ return {
222
+ title: "Linking what it is about",
223
+ paragraphs: [
224
+ `Under **${data.setting.name}**, write the names, addresses or OneUptime IDs of the hosts, network devices, clusters, databases, cloud resources or services the ${data.words.one} is about, separated by commas - typed in, or taken from an earlier step, such as the host an alert from another tool names. An address is a host's or a network device's IP address or DNS name.`,
225
+ `Each one is matched as a whole, upper or lower case alike, against every kind of resource, and every resource it matches is linked, beside what **JSON Object** and a template already link. A name that matches nothing does not stop the step: the ${data.words.one} is still created, and the run's log says what each name linked and which matched nothing. Archived resources are not linked. ${monitorsSentence}`,
226
+ ],
227
+ };
228
+ };
207
229
  const createOne = (context, words) => {
208
230
  const required = (0, ModelExamples_1.getRequiredCreateColumns)(words.model);
209
231
  const templateSetting = (0, CreateFromTemplate_1.getCreateFromTemplateArgument)(words.model.tableName || undefined);
232
+ const affectedResourcesSetting = (0, AffectedResourcesSetting_1.getAffectedResourcesArgument)(words.model.tableName || undefined);
210
233
  return {
211
234
  summary: `Creates one ${words.one} in this project each time it runs.`,
212
235
  steps: [
@@ -218,6 +241,11 @@ const createOne = (context, words) => {
218
241
  required.length > 0
219
242
  ? `Under **JSON Object**, fill in the ${words.one}'s fields. The ones it needs come first.`
220
243
  : `Under **JSON Object**, add the ${words.one}'s fields with **Add a field**.`,
244
+ /*
245
+ * Affected Resources gets no step of its own: the help shows at most
246
+ * four before Learn more, and the setting's own description in the
247
+ * dialog says what to write. Learn more says how a name is matched.
248
+ */
221
249
  "Connect **Success** to what runs next, and **Error** to handle a failure.",
222
250
  `Use the new ${words.one} in later steps, starting with its ID.`,
223
251
  ],
@@ -241,6 +269,14 @@ const createOne = (context, words) => {
241
269
  ...(templateSetting
242
270
  ? [templateTopic({ words: words, setting: templateSetting })]
243
271
  : []),
272
+ ...(affectedResourcesSetting
273
+ ? [
274
+ affectedResourcesTopic({
275
+ words: words,
276
+ setting: affectedResourcesSetting,
277
+ }),
278
+ ]
279
+ : []),
244
280
  {
245
281
  title: "Writing it as JSON",
246
282
  paragraphs: [