@oneuptime/common 14.0.97 โ 14.0.98
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.
- package/Models/DatabaseModels/CodeRepository.d.mts +3 -0
- package/Models/DatabaseModels/CodeRepository.d.ts +3 -0
- package/Models/DatabaseModels/CodeRepository.js +104 -0
- package/Models/DatabaseModels/Index.js +2 -0
- package/Models/DatabaseModels/SecurityCaseEvidence.d.mts +4 -0
- package/Models/DatabaseModels/SecurityCaseEvidence.d.ts +4 -0
- package/Models/DatabaseModels/SecurityCaseEvidence.js +64 -5
- package/Models/DatabaseModels/SecurityHunt.d.mts +34 -0
- package/Models/DatabaseModels/SecurityHunt.d.ts +34 -0
- package/Models/DatabaseModels/SecurityHunt.js +608 -0
- package/Models/DatabaseModels/SecurityHunt.mjs +2 -0
- package/Types/AI/AIChatTypes.d.mts +1 -0
- package/Types/AI/AIChatTypes.d.ts +1 -0
- package/Types/AI/AIRunEventType.d.mts +1 -0
- package/Types/AI/AIRunEventType.d.ts +1 -0
- package/Types/AI/AIRunEventType.js +8 -0
- package/Types/AI/AiTokenCount.d.mts +22 -1
- package/Types/AI/AiTokenCount.d.ts +22 -1
- package/Types/AI/AiTokenCount.js +126 -57
- package/Types/AI/AiTokenCount.mjs +2 -0
- package/Types/AI/CodeFixTaskContext.d.mts +1 -0
- package/Types/AI/CodeFixTaskContext.d.ts +1 -0
- package/Types/CodeRepository/CodeRepositorySetting.d.mts +1 -0
- package/Types/CodeRepository/CodeRepositorySetting.d.ts +1 -0
- package/Types/CodeRepository/CodeRepositorySetting.js +2 -0
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +2 -0
- package/Types/Link.d.mts +1 -0
- package/Types/Link.d.ts +1 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.d.mts +1 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.d.ts +1 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +9 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.mts +1 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.ts +1 -0
- package/Types/NotificationSetting/NotificationSettingEventType.js +6 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +67 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +67 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.js +271 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.mjs +13 -0
- package/Types/SecurityCase/SecurityCaseEvidenceKind.d.mts +2 -1
- package/Types/SecurityCase/SecurityCaseEvidenceKind.d.ts +2 -1
- package/Types/SecurityCase/SecurityCaseEvidenceKind.js +11 -1
- package/Types/SecurityEvent/SecurityHunt.d.mts +122 -0
- package/Types/SecurityEvent/SecurityHunt.d.ts +122 -0
- package/Types/SecurityEvent/SecurityHunt.js +391 -0
- package/Types/SecurityEvent/SecurityHunt.mjs +32 -0
- package/Types/Workflow/RunRecord.d.mts +3 -14
- package/Types/Workflow/RunRecord.d.ts +3 -14
- package/Types/Workflow/RunRecord.js +10 -51
- package/Utils/AI/InvestigationLogStall.d.mts +38 -0
- package/Utils/AI/InvestigationLogStall.d.ts +38 -0
- package/Utils/AI/InvestigationLogStall.js +163 -0
- package/Utils/AI/InvestigationLogStall.mjs +11 -0
- package/Utils/Project/RecordNumber.d.mts +43 -0
- package/Utils/Project/RecordNumber.d.ts +43 -0
- package/Utils/Project/RecordNumber.js +151 -0
- package/Utils/Project/RecordNumber.mjs +6 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +9 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +9 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.js +20 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.mjs +2 -0
- package/Utils/SecurityEvent/SecurityEventSearch.d.mts +56 -0
- package/Utils/SecurityEvent/SecurityEventSearch.d.ts +56 -0
- package/Utils/SecurityEvent/SecurityEventSearch.js +422 -0
- package/Utils/SecurityEvent/SecurityEventSearch.mjs +21 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.d.mts +12 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.d.ts +12 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.js +51 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.mjs +3 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.d.mts +9 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.d.ts +9 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.js +69 -1
- package/Utils/Suggestions/TracePerformanceFixSuggestion.mjs +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { JSONObject } from "../../Types/JSON";
|
|
2
|
+
export declare enum InvestigationLogStallReason {
|
|
3
|
+
NoLogs = "NoLogs",
|
|
4
|
+
NoMatchingLogs = "NoMatchingLogs"
|
|
5
|
+
}
|
|
6
|
+
export declare const INVESTIGATION_LOG_TOOL_NAMES: ReadonlyArray<string>;
|
|
7
|
+
export declare const INVESTIGATION_LOG_WINDOW_MINUTES_BEFORE: number;
|
|
8
|
+
export interface InvestigationLogStall {
|
|
9
|
+
reason: InvestigationLogStallReason;
|
|
10
|
+
logSearchCount: number;
|
|
11
|
+
windowStart: string;
|
|
12
|
+
windowEnd: string;
|
|
13
|
+
}
|
|
14
|
+
export interface InvestigationLogCitation {
|
|
15
|
+
toolName: string;
|
|
16
|
+
rowCount: number;
|
|
17
|
+
}
|
|
18
|
+
export interface InvestigationLogSearches {
|
|
19
|
+
searchCount: number;
|
|
20
|
+
searchesWithLines: number;
|
|
21
|
+
}
|
|
22
|
+
export declare function isInvestigationLogTool(toolName: string): boolean;
|
|
23
|
+
export declare function getInvestigationLogSearches(citations: ReadonlyArray<InvestigationLogCitation>): InvestigationLogSearches;
|
|
24
|
+
export declare function decideInvestigationLogStall(input: {
|
|
25
|
+
isInconclusive: boolean;
|
|
26
|
+
searches: InvestigationLogSearches;
|
|
27
|
+
hasLogs: boolean | null;
|
|
28
|
+
}): InvestigationLogStallReason | null;
|
|
29
|
+
export declare function getInvestigationLogWindow(data: {
|
|
30
|
+
subjectStartedAt: Date | null | undefined;
|
|
31
|
+
now: Date;
|
|
32
|
+
}): {
|
|
33
|
+
startTime: Date;
|
|
34
|
+
endTime: Date;
|
|
35
|
+
};
|
|
36
|
+
export declare function investigationLogStallToJSON(stall: InvestigationLogStall): JSONObject;
|
|
37
|
+
export declare function parseInvestigationLogStall(value: unknown): InvestigationLogStall | null;
|
|
38
|
+
export declare function describeInvestigationLogStall(stall: InvestigationLogStall, subjectType: "incident" | "alert"): string;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INVESTIGATION_LOG_WINDOW_MINUTES_BEFORE = exports.INVESTIGATION_LOG_TOOL_NAMES = exports.InvestigationLogStallReason = void 0;
|
|
4
|
+
exports.isInvestigationLogTool = isInvestigationLogTool;
|
|
5
|
+
exports.getInvestigationLogSearches = getInvestigationLogSearches;
|
|
6
|
+
exports.decideInvestigationLogStall = decideInvestigationLogStall;
|
|
7
|
+
exports.getInvestigationLogWindow = getInvestigationLogWindow;
|
|
8
|
+
exports.investigationLogStallToJSON = investigationLogStallToJSON;
|
|
9
|
+
exports.parseInvestigationLogStall = parseInvestigationLogStall;
|
|
10
|
+
exports.describeInvestigationLogStall = describeInvestigationLogStall;
|
|
11
|
+
/*
|
|
12
|
+
* AN INVESTIGATION THAT COULD NOT TELL THE CAUSE FOR LACK OF LOGS (the
|
|
13
|
+
* follow-up of #5242 that #5273 listed): it says so, and offers a way
|
|
14
|
+
* forward.
|
|
15
|
+
*
|
|
16
|
+
* Whether the logs stood in the way is decided from what the server knows,
|
|
17
|
+
* never from what the model wrote (every lane's rule: no LLM decides what is
|
|
18
|
+
* a problem):
|
|
19
|
+
*
|
|
20
|
+
* - the investigation could not tell the cause - a positive inconclusive
|
|
21
|
+
* verdict (AIConfidenceSignal.shouldEnqueueInstrumentationTask: the
|
|
22
|
+
* evidence floor, or the constrained classification), never a failed
|
|
23
|
+
* classification;
|
|
24
|
+
* - none of its log searches found a line - its own server-minted
|
|
25
|
+
* citations of search_logs and log_histogram, rows and all;
|
|
26
|
+
* - and either no log reached OneUptime for the project from the hour
|
|
27
|
+
* before the incident or alert started until the investigation ran
|
|
28
|
+
* (NoLogs: there was nothing to read), or some did and its searches still
|
|
29
|
+
* found nothing (NoMatchingLogs: nothing about this one).
|
|
30
|
+
*
|
|
31
|
+
* An investigation that found a log line, or found the cause, or never
|
|
32
|
+
* searched the logs of a project that has them, is not stalled for lack of
|
|
33
|
+
* logs and says nothing of the kind.
|
|
34
|
+
*
|
|
35
|
+
* Pure: the server decides with it, the Dashboard reads what the run
|
|
36
|
+
* recorded with it, and the tests and docs suites hold both to it.
|
|
37
|
+
*/
|
|
38
|
+
var InvestigationLogStallReason;
|
|
39
|
+
(function (InvestigationLogStallReason) {
|
|
40
|
+
// No log reached OneUptime around the record: nothing to read.
|
|
41
|
+
InvestigationLogStallReason["NoLogs"] = "NoLogs";
|
|
42
|
+
// Logs reached OneUptime, and none of the investigation's searches found a line.
|
|
43
|
+
InvestigationLogStallReason["NoMatchingLogs"] = "NoMatchingLogs";
|
|
44
|
+
})(InvestigationLogStallReason || (exports.InvestigationLogStallReason = InvestigationLogStallReason = {}));
|
|
45
|
+
// The toolbox's log reads: a citation of either is a search of the logs.
|
|
46
|
+
exports.INVESTIGATION_LOG_TOOL_NAMES = [
|
|
47
|
+
"search_logs",
|
|
48
|
+
"log_histogram",
|
|
49
|
+
];
|
|
50
|
+
/*
|
|
51
|
+
* How far before the record started the logs are looked for: an hour, the
|
|
52
|
+
* window an investigation reads first.
|
|
53
|
+
*/
|
|
54
|
+
exports.INVESTIGATION_LOG_WINDOW_MINUTES_BEFORE = 60;
|
|
55
|
+
function isInvestigationLogTool(toolName) {
|
|
56
|
+
return exports.INVESTIGATION_LOG_TOOL_NAMES.includes((toolName || "").trim());
|
|
57
|
+
}
|
|
58
|
+
// What the investigation's log searches found, from its citations.
|
|
59
|
+
function getInvestigationLogSearches(citations) {
|
|
60
|
+
let searchCount = 0;
|
|
61
|
+
let searchesWithLines = 0;
|
|
62
|
+
for (const citation of citations) {
|
|
63
|
+
if (!citation || !isInvestigationLogTool(citation.toolName)) {
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
searchCount++;
|
|
67
|
+
if (typeof citation.rowCount === "number" &&
|
|
68
|
+
Number.isFinite(citation.rowCount) &&
|
|
69
|
+
citation.rowCount > 0) {
|
|
70
|
+
searchesWithLines++;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return { searchCount, searchesWithLines };
|
|
74
|
+
}
|
|
75
|
+
/*
|
|
76
|
+
* Whether, and why, the logs stood in the investigation's way. `hasLogs` is
|
|
77
|
+
* whether any log reached OneUptime in the window, or null when that could
|
|
78
|
+
* not be read - then only the investigation's own searches speak: searched
|
|
79
|
+
* and found nothing is NoMatchingLogs, never searched is nothing to say.
|
|
80
|
+
*/
|
|
81
|
+
function decideInvestigationLogStall(input) {
|
|
82
|
+
if (!input.isInconclusive || input.searches.searchesWithLines > 0) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
if (input.hasLogs === false) {
|
|
86
|
+
return InvestigationLogStallReason.NoLogs;
|
|
87
|
+
}
|
|
88
|
+
return input.searches.searchCount > 0
|
|
89
|
+
? InvestigationLogStallReason.NoMatchingLogs
|
|
90
|
+
: null;
|
|
91
|
+
}
|
|
92
|
+
// The window an investigation's logs are looked for in.
|
|
93
|
+
function getInvestigationLogWindow(data) {
|
|
94
|
+
const startedAt = data.subjectStartedAt &&
|
|
95
|
+
Number.isFinite(data.subjectStartedAt.getTime()) &&
|
|
96
|
+
data.subjectStartedAt.getTime() <= data.now.getTime()
|
|
97
|
+
? data.subjectStartedAt
|
|
98
|
+
: data.now;
|
|
99
|
+
return {
|
|
100
|
+
startTime: new Date(startedAt.getTime() - exports.INVESTIGATION_LOG_WINDOW_MINUTES_BEFORE * 60 * 1000),
|
|
101
|
+
endTime: data.now,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function investigationLogStallToJSON(stall) {
|
|
105
|
+
return {
|
|
106
|
+
reason: stall.reason,
|
|
107
|
+
logSearchCount: stall.logSearchCount,
|
|
108
|
+
windowStart: stall.windowStart,
|
|
109
|
+
windowEnd: stall.windowEnd,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function readTimestamp(value) {
|
|
113
|
+
if (typeof value !== "string" || !value.trim()) {
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
return Number.isFinite(Date.parse(value)) ? value : null;
|
|
117
|
+
}
|
|
118
|
+
/*
|
|
119
|
+
* Reads what a run recorded (the InvestigationStalled event's
|
|
120
|
+
* resultSummary.logStall). Anything that does not hold together - an
|
|
121
|
+
* unknown reason, a count that is no count, a window that is no window -
|
|
122
|
+
* reads as no stall, so the card never says what the run did not record.
|
|
123
|
+
*/
|
|
124
|
+
function parseInvestigationLogStall(value) {
|
|
125
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
const record = value;
|
|
129
|
+
const reason = record["reason"];
|
|
130
|
+
if (reason !== InvestigationLogStallReason.NoLogs &&
|
|
131
|
+
reason !== InvestigationLogStallReason.NoMatchingLogs) {
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
const count = record["logSearchCount"];
|
|
135
|
+
if (typeof count !== "number" ||
|
|
136
|
+
!Number.isInteger(count) ||
|
|
137
|
+
count < 0 ||
|
|
138
|
+
(reason === InvestigationLogStallReason.NoMatchingLogs && count === 0)) {
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
const windowStart = readTimestamp(record["windowStart"]);
|
|
142
|
+
const windowEnd = readTimestamp(record["windowEnd"]);
|
|
143
|
+
if (!windowStart || !windowEnd) {
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
reason: reason,
|
|
148
|
+
logSearchCount: count,
|
|
149
|
+
windowStart,
|
|
150
|
+
windowEnd,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/*
|
|
154
|
+
* The line the run's own record says it in, in English (the AIRunEvent's
|
|
155
|
+
* message): what an API reader or a support engineer reads. The card words
|
|
156
|
+
* it in the reader's language from the structured fields.
|
|
157
|
+
*/
|
|
158
|
+
function describeInvestigationLogStall(stall, subjectType) {
|
|
159
|
+
if (stall.reason === InvestigationLogStallReason.NoLogs) {
|
|
160
|
+
return `No logs reached OneUptime from the hour before this ${subjectType} started, so OneUptime AI had none to read.`;
|
|
161
|
+
}
|
|
162
|
+
return `OneUptime AI searched the logs ${stall.logSearchCount === 1 ? "once" : `${stall.logSearchCount} times`} and found nothing about this ${subjectType}.`;
|
|
163
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import commonJsModule from "./InvestigationLogStall.js";
|
|
2
|
+
export const INVESTIGATION_LOG_TOOL_NAMES = commonJsModule.INVESTIGATION_LOG_TOOL_NAMES;
|
|
3
|
+
export const INVESTIGATION_LOG_WINDOW_MINUTES_BEFORE = commonJsModule.INVESTIGATION_LOG_WINDOW_MINUTES_BEFORE;
|
|
4
|
+
export const InvestigationLogStallReason = commonJsModule.InvestigationLogStallReason;
|
|
5
|
+
export const decideInvestigationLogStall = commonJsModule.decideInvestigationLogStall;
|
|
6
|
+
export const describeInvestigationLogStall = commonJsModule.describeInvestigationLogStall;
|
|
7
|
+
export const getInvestigationLogSearches = commonJsModule.getInvestigationLogSearches;
|
|
8
|
+
export const getInvestigationLogWindow = commonJsModule.getInvestigationLogWindow;
|
|
9
|
+
export const investigationLogStallToJSON = commonJsModule.investigationLogStallToJSON;
|
|
10
|
+
export const isInvestigationLogTool = commonJsModule.isInvestigationLogTool;
|
|
11
|
+
export const parseInvestigationLogStall = commonJsModule.parseInvestigationLogStall;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const NUMBER_WITH_PREFIX_SUFFIX: string;
|
|
2
|
+
export interface RecordNumberColumns {
|
|
3
|
+
numberColumn: string;
|
|
4
|
+
numberWithPrefixColumn: string;
|
|
5
|
+
}
|
|
6
|
+
type GetRecordNumberColumnsFunction = (model: unknown) => RecordNumberColumns | null;
|
|
7
|
+
/**
|
|
8
|
+
* The columns that hold a record's number, or null for a model whose records
|
|
9
|
+
* have none: a numeric column with a "<column>WithPrefix" text column beside
|
|
10
|
+
* it. Generic, so a model numbered later is named by its number without
|
|
11
|
+
* anything here changing. Anything that is not a database model - an
|
|
12
|
+
* analytics model, a plain object - numbers nothing.
|
|
13
|
+
*/
|
|
14
|
+
export declare const getRecordNumberColumns: GetRecordNumberColumnsFunction;
|
|
15
|
+
type FormatRecordNumberFunction = (data: {
|
|
16
|
+
number: unknown;
|
|
17
|
+
numberWithPrefix: unknown;
|
|
18
|
+
}) => string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* A record's number as it is shown: "INC-18" as stored, else "#18" for a
|
|
21
|
+
* record that has only the bare number, else nothing.
|
|
22
|
+
*/
|
|
23
|
+
export declare const formatRecordNumber: FormatRecordNumberFunction;
|
|
24
|
+
type GetRecordNumberFunction = (record: unknown, columns: RecordNumberColumns | null | undefined) => string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The number of one record, read from the columns its model numbers its
|
|
27
|
+
* records by - "INC-18" - or nothing when the record does not carry it (a
|
|
28
|
+
* list that did not select it, a model without numbers).
|
|
29
|
+
*/
|
|
30
|
+
export declare const getRecordNumber: GetRecordNumberFunction;
|
|
31
|
+
type GetNumberedRecordNameFunction = (data: {
|
|
32
|
+
number: string | null | undefined;
|
|
33
|
+
name: string | null | undefined;
|
|
34
|
+
}) => string;
|
|
35
|
+
/**
|
|
36
|
+
* One record named by its number and its name, in one line of text: "INC-18
|
|
37
|
+
* Manually declared". Either alone when the other is missing, "" when both
|
|
38
|
+
* are. For text that has no markup to keep the two apart (a browser tab, a
|
|
39
|
+
* search result, a sentence); a page draws them as two pieces
|
|
40
|
+
* (Page's recordHeading, Breadcrumbs).
|
|
41
|
+
*/
|
|
42
|
+
export declare const getNumberedRecordName: GetNumberedRecordNameFunction;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const NUMBER_WITH_PREFIX_SUFFIX: string;
|
|
2
|
+
export interface RecordNumberColumns {
|
|
3
|
+
numberColumn: string;
|
|
4
|
+
numberWithPrefixColumn: string;
|
|
5
|
+
}
|
|
6
|
+
type GetRecordNumberColumnsFunction = (model: unknown) => RecordNumberColumns | null;
|
|
7
|
+
/**
|
|
8
|
+
* The columns that hold a record's number, or null for a model whose records
|
|
9
|
+
* have none: a numeric column with a "<column>WithPrefix" text column beside
|
|
10
|
+
* it. Generic, so a model numbered later is named by its number without
|
|
11
|
+
* anything here changing. Anything that is not a database model - an
|
|
12
|
+
* analytics model, a plain object - numbers nothing.
|
|
13
|
+
*/
|
|
14
|
+
export declare const getRecordNumberColumns: GetRecordNumberColumnsFunction;
|
|
15
|
+
type FormatRecordNumberFunction = (data: {
|
|
16
|
+
number: unknown;
|
|
17
|
+
numberWithPrefix: unknown;
|
|
18
|
+
}) => string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* A record's number as it is shown: "INC-18" as stored, else "#18" for a
|
|
21
|
+
* record that has only the bare number, else nothing.
|
|
22
|
+
*/
|
|
23
|
+
export declare const formatRecordNumber: FormatRecordNumberFunction;
|
|
24
|
+
type GetRecordNumberFunction = (record: unknown, columns: RecordNumberColumns | null | undefined) => string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The number of one record, read from the columns its model numbers its
|
|
27
|
+
* records by - "INC-18" - or nothing when the record does not carry it (a
|
|
28
|
+
* list that did not select it, a model without numbers).
|
|
29
|
+
*/
|
|
30
|
+
export declare const getRecordNumber: GetRecordNumberFunction;
|
|
31
|
+
type GetNumberedRecordNameFunction = (data: {
|
|
32
|
+
number: string | null | undefined;
|
|
33
|
+
name: string | null | undefined;
|
|
34
|
+
}) => string;
|
|
35
|
+
/**
|
|
36
|
+
* One record named by its number and its name, in one line of text: "INC-18
|
|
37
|
+
* Manually declared". Either alone when the other is missing, "" when both
|
|
38
|
+
* are. For text that has no markup to keep the two apart (a browser tab, a
|
|
39
|
+
* search result, a sentence); a page draws them as two pieces
|
|
40
|
+
* (Page's recordHeading, Breadcrumbs).
|
|
41
|
+
*/
|
|
42
|
+
export declare const getNumberedRecordName: GetNumberedRecordNameFunction;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,151 @@
|
|
|
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.getNumberedRecordName = exports.getRecordNumber = exports.formatRecordNumber = exports.getRecordNumberColumns = exports.NUMBER_WITH_PREFIX_SUFFIX = void 0;
|
|
7
|
+
const TableColumn_1 = require("../../Types/Database/TableColumn");
|
|
8
|
+
const TableColumnType_1 = __importDefault(require("../../Types/Database/TableColumnType"));
|
|
9
|
+
const NumberPrefix_1 = __importDefault(require("./NumberPrefix"));
|
|
10
|
+
/*
|
|
11
|
+
* THE NUMBER A RECORD IS KNOWN BY.
|
|
12
|
+
*
|
|
13
|
+
* Incidents, alerts, scheduled maintenance events, both kinds of episode and
|
|
14
|
+
* security cases are numbered in their project: INC-18, ALT-7, SM-3, IE-2,
|
|
15
|
+
* AE-4, CASE-12 - or #18 in a project without a prefix (NumberPrefix). Their
|
|
16
|
+
* titles are not unique: two incidents declared by hand can both read
|
|
17
|
+
* "Manually declared", and a monitor that fails again opens one more
|
|
18
|
+
* "Checkout API p95 latency above 2s". The number is what tells them apart,
|
|
19
|
+
* so wherever the product names one of them to someone moving between them -
|
|
20
|
+
* the record's page heading, its breadcrumb, the browser tab, a dialog about
|
|
21
|
+
* it, a search result - the number comes first: "INC-18 Manually declared".
|
|
22
|
+
*
|
|
23
|
+
* Each record keeps the number it was given, with the prefix it was given:
|
|
24
|
+
* an incident numbered before the project changed its prefix is still known
|
|
25
|
+
* by its old one, as everywhere else. A record from before numbers carried
|
|
26
|
+
* their prefix has only the bare number, shown "#18"; one with no number at
|
|
27
|
+
* all is named by its title alone, as before.
|
|
28
|
+
*
|
|
29
|
+
* React-free, so the server, the Dashboard and the tests share one rule.
|
|
30
|
+
*/
|
|
31
|
+
// The suffix that names the column holding a record's number with its prefix.
|
|
32
|
+
exports.NUMBER_WITH_PREFIX_SUFFIX = "WithPrefix";
|
|
33
|
+
const NUMERIC_COLUMN_TYPES = [
|
|
34
|
+
TableColumnType_1.default.Number,
|
|
35
|
+
TableColumnType_1.default.SmallNumber,
|
|
36
|
+
TableColumnType_1.default.BigNumber,
|
|
37
|
+
TableColumnType_1.default.PositiveNumber,
|
|
38
|
+
TableColumnType_1.default.SmallPositiveNumber,
|
|
39
|
+
TableColumnType_1.default.BigPositiveNumber,
|
|
40
|
+
];
|
|
41
|
+
const TEXT_COLUMN_TYPES = [
|
|
42
|
+
TableColumnType_1.default.ShortText,
|
|
43
|
+
TableColumnType_1.default.LongText,
|
|
44
|
+
];
|
|
45
|
+
/**
|
|
46
|
+
* The columns that hold a record's number, or null for a model whose records
|
|
47
|
+
* have none: a numeric column with a "<column>WithPrefix" text column beside
|
|
48
|
+
* it. Generic, so a model numbered later is named by its number without
|
|
49
|
+
* anything here changing. Anything that is not a database model - an
|
|
50
|
+
* analytics model, a plain object - numbers nothing.
|
|
51
|
+
*/
|
|
52
|
+
const getRecordNumberColumns = (model) => {
|
|
53
|
+
if (!model || typeof model !== "object") {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
/*
|
|
57
|
+
* A list names each of its rows by this (getRecordDisplayName), so the
|
|
58
|
+
* answer is kept per class: a model's columns never change.
|
|
59
|
+
*/
|
|
60
|
+
const constructorOfModel = model
|
|
61
|
+
.constructor;
|
|
62
|
+
const modelClass = typeof constructorOfModel === "function"
|
|
63
|
+
? constructorOfModel
|
|
64
|
+
: null;
|
|
65
|
+
if (modelClass && numberColumnsByClass.has(modelClass)) {
|
|
66
|
+
return numberColumnsByClass.get(modelClass) || null;
|
|
67
|
+
}
|
|
68
|
+
const found = findRecordNumberColumns(model);
|
|
69
|
+
if (found) {
|
|
70
|
+
// Shared by every caller from now on: nobody may change it.
|
|
71
|
+
Object.freeze(found);
|
|
72
|
+
}
|
|
73
|
+
if (modelClass) {
|
|
74
|
+
numberColumnsByClass.set(modelClass, found);
|
|
75
|
+
}
|
|
76
|
+
return found;
|
|
77
|
+
};
|
|
78
|
+
exports.getRecordNumberColumns = getRecordNumberColumns;
|
|
79
|
+
const numberColumnsByClass = new WeakMap();
|
|
80
|
+
function findRecordNumberColumns(model) {
|
|
81
|
+
let columns = {};
|
|
82
|
+
try {
|
|
83
|
+
columns = (0, TableColumn_1.getTableColumns)(model);
|
|
84
|
+
}
|
|
85
|
+
catch (_a) {
|
|
86
|
+
// Not a database model: nothing that numbers its records.
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
for (const columnId of Object.keys(columns)) {
|
|
90
|
+
const column = columns[columnId];
|
|
91
|
+
if (!column || !NUMERIC_COLUMN_TYPES.includes(column.type)) {
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
const withPrefixId = `${columnId}${exports.NUMBER_WITH_PREFIX_SUFFIX}`;
|
|
95
|
+
const withPrefix = columns[withPrefixId];
|
|
96
|
+
if (withPrefix && TEXT_COLUMN_TYPES.includes(withPrefix.type)) {
|
|
97
|
+
return {
|
|
98
|
+
numberColumn: columnId,
|
|
99
|
+
numberWithPrefixColumn: withPrefixId,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* A record's number as it is shown: "INC-18" as stored, else "#18" for a
|
|
107
|
+
* record that has only the bare number, else nothing.
|
|
108
|
+
*/
|
|
109
|
+
const formatRecordNumber = (data) => {
|
|
110
|
+
if (typeof data.numberWithPrefix === "string" &&
|
|
111
|
+
data.numberWithPrefix.trim() !== "") {
|
|
112
|
+
return data.numberWithPrefix.trim();
|
|
113
|
+
}
|
|
114
|
+
if (typeof data.number === "number" && Number.isFinite(data.number)) {
|
|
115
|
+
return NumberPrefix_1.default.formatNumber(null, data.number);
|
|
116
|
+
}
|
|
117
|
+
return undefined;
|
|
118
|
+
};
|
|
119
|
+
exports.formatRecordNumber = formatRecordNumber;
|
|
120
|
+
/**
|
|
121
|
+
* The number of one record, read from the columns its model numbers its
|
|
122
|
+
* records by - "INC-18" - or nothing when the record does not carry it (a
|
|
123
|
+
* list that did not select it, a model without numbers).
|
|
124
|
+
*/
|
|
125
|
+
const getRecordNumber = (record, columns) => {
|
|
126
|
+
if (!columns || !record || typeof record !== "object") {
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
129
|
+
const fields = record;
|
|
130
|
+
return (0, exports.formatRecordNumber)({
|
|
131
|
+
number: fields[columns.numberColumn],
|
|
132
|
+
numberWithPrefix: fields[columns.numberWithPrefixColumn],
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
exports.getRecordNumber = getRecordNumber;
|
|
136
|
+
/**
|
|
137
|
+
* One record named by its number and its name, in one line of text: "INC-18
|
|
138
|
+
* Manually declared". Either alone when the other is missing, "" when both
|
|
139
|
+
* are. For text that has no markup to keep the two apart (a browser tab, a
|
|
140
|
+
* search result, a sentence); a page draws them as two pieces
|
|
141
|
+
* (Page's recordHeading, Breadcrumbs).
|
|
142
|
+
*/
|
|
143
|
+
const getNumberedRecordName = (data) => {
|
|
144
|
+
const number = (data.number || "").trim();
|
|
145
|
+
const name = (data.name || "").trim();
|
|
146
|
+
if (number && name) {
|
|
147
|
+
return `${number} ${name}`;
|
|
148
|
+
}
|
|
149
|
+
return number || name;
|
|
150
|
+
};
|
|
151
|
+
exports.getNumberedRecordName = getNumberedRecordName;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import commonJsModule from "./RecordNumber.js";
|
|
2
|
+
export const NUMBER_WITH_PREFIX_SUFFIX = commonJsModule.NUMBER_WITH_PREFIX_SUFFIX;
|
|
3
|
+
export const formatRecordNumber = commonJsModule.formatRecordNumber;
|
|
4
|
+
export const getNumberedRecordName = commonJsModule.getNumberedRecordName;
|
|
5
|
+
export const getRecordNumber = commonJsModule.getRecordNumber;
|
|
6
|
+
export const getRecordNumberColumns = commonJsModule.getRecordNumberColumns;
|
|
@@ -200,6 +200,15 @@ export declare function evidenceAddedMarkdown(data: {
|
|
|
200
200
|
export declare function evidenceRemovedMarkdown(data: {
|
|
201
201
|
name: string;
|
|
202
202
|
}): MarkdownText;
|
|
203
|
+
export declare function eventsAddedMarkdown(data: {
|
|
204
|
+
count: number;
|
|
205
|
+
huntName?: string | undefined;
|
|
206
|
+
}): MarkdownText;
|
|
207
|
+
export declare function eventEvidenceLineMarkdown(data: {
|
|
208
|
+
time: string;
|
|
209
|
+
severity: string;
|
|
210
|
+
name: string;
|
|
211
|
+
}): MarkdownText;
|
|
203
212
|
export declare function targetAtRiskMarkdown(data: {
|
|
204
213
|
target: string;
|
|
205
214
|
timeLeft: string;
|
|
@@ -200,6 +200,15 @@ export declare function evidenceAddedMarkdown(data: {
|
|
|
200
200
|
export declare function evidenceRemovedMarkdown(data: {
|
|
201
201
|
name: string;
|
|
202
202
|
}): MarkdownText;
|
|
203
|
+
export declare function eventsAddedMarkdown(data: {
|
|
204
|
+
count: number;
|
|
205
|
+
huntName?: string | undefined;
|
|
206
|
+
}): MarkdownText;
|
|
207
|
+
export declare function eventEvidenceLineMarkdown(data: {
|
|
208
|
+
time: string;
|
|
209
|
+
severity: string;
|
|
210
|
+
name: string;
|
|
211
|
+
}): MarkdownText;
|
|
203
212
|
export declare function targetAtRiskMarkdown(data: {
|
|
204
213
|
target: string;
|
|
205
214
|
timeLeft: string;
|
|
@@ -65,6 +65,8 @@ exports.taskAssignedMarkdown = taskAssignedMarkdown;
|
|
|
65
65
|
exports.taskDeletedMarkdown = taskDeletedMarkdown;
|
|
66
66
|
exports.evidenceAddedMarkdown = evidenceAddedMarkdown;
|
|
67
67
|
exports.evidenceRemovedMarkdown = evidenceRemovedMarkdown;
|
|
68
|
+
exports.eventsAddedMarkdown = eventsAddedMarkdown;
|
|
69
|
+
exports.eventEvidenceLineMarkdown = eventEvidenceLineMarkdown;
|
|
68
70
|
exports.targetAtRiskMarkdown = targetAtRiskMarkdown;
|
|
69
71
|
exports.targetMissedMarkdown = targetMissedMarkdown;
|
|
70
72
|
const FeedMarkdown_1 = __importStar(require("../Markdown/FeedMarkdown"));
|
|
@@ -443,6 +445,24 @@ function evidenceAddedMarkdown(data) {
|
|
|
443
445
|
function evidenceRemovedMarkdown(data) {
|
|
444
446
|
return (0, FeedMarkdown_1.mdText) `๐๏ธ Removed **${data.name}** from the evidence.`;
|
|
445
447
|
}
|
|
448
|
+
/*
|
|
449
|
+
* What a case's timeline says when security events are kept on it as
|
|
450
|
+
* evidence (SecurityCaseEvidenceService.addEvents): how many, and the hunt
|
|
451
|
+
* that found them when one did. Each event is a line under it
|
|
452
|
+
* (eventEvidenceLineMarkdown).
|
|
453
|
+
*/
|
|
454
|
+
function eventsAddedMarkdown(data) {
|
|
455
|
+
const events = data.count === 1 ? "1 security event" : `${data.count} security events`;
|
|
456
|
+
return data.huntName
|
|
457
|
+
? (0, FeedMarkdown_1.mdText) `๐ Kept ${events} found by the hunt **${data.huntName}** as evidence.`
|
|
458
|
+
: (0, FeedMarkdown_1.mdText) `๐ Kept ${events} as evidence.`;
|
|
459
|
+
}
|
|
460
|
+
// One kept event, as a line under that entry: when, how severe, and what it was.
|
|
461
|
+
function eventEvidenceLineMarkdown(data) {
|
|
462
|
+
return data.severity
|
|
463
|
+
? (0, FeedMarkdown_1.mdText) `${data.time} ยท ${data.severity} ยท ${data.name}`
|
|
464
|
+
: (0, FeedMarkdown_1.mdText) `${data.time} ยท ${data.name}`;
|
|
465
|
+
}
|
|
446
466
|
/*
|
|
447
467
|
* What a case's timeline says when it is about to miss a response target,
|
|
448
468
|
* and when it misses it (SecurityCaseTargetCheck). `target` is the verb -
|
|
@@ -12,6 +12,8 @@ export const detectionAddedMarkdown = commonJsModule.detectionAddedMarkdown;
|
|
|
12
12
|
export const detectionOverflowMarkdown = commonJsModule.detectionOverflowMarkdown;
|
|
13
13
|
export const detectionRuleMatchMarkdown = commonJsModule.detectionRuleMatchMarkdown;
|
|
14
14
|
export const entityRiskMarkdown = commonJsModule.entityRiskMarkdown;
|
|
15
|
+
export const eventEvidenceLineMarkdown = commonJsModule.eventEvidenceLineMarkdown;
|
|
16
|
+
export const eventsAddedMarkdown = commonJsModule.eventsAddedMarkdown;
|
|
15
17
|
export const evidenceAddedMarkdown = commonJsModule.evidenceAddedMarkdown;
|
|
16
18
|
export const evidenceRemovedMarkdown = commonJsModule.evidenceRemovedMarkdown;
|
|
17
19
|
export const incidentDeclaredFromCaseMarkdown = commonJsModule.incidentDeclaredFromCaseMarkdown;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import SecurityEvent from "../../Models/AnalyticsModels/SecurityEvent.mjs";
|
|
2
|
+
import Query from "../../Types/BaseDatabase/Query.mjs";
|
|
3
|
+
import { SearchQueryValue } from "../../Types/Telemetry/TelemetrySearchQuery.mjs";
|
|
4
|
+
export declare const SECURITY_EVENT_FIELD_ALIASES: Readonly<Record<string, string>>;
|
|
5
|
+
export declare const SECURITY_EVENT_SEARCH_FIELD_KEYS: Set<string>;
|
|
6
|
+
export declare const SECURITY_EVENT_NUMERIC_FIELDS: ReadonlySet<string>;
|
|
7
|
+
export declare const SECURITY_EVENT_CONTAINS_FIELDS: ReadonlySet<string>;
|
|
8
|
+
export interface SecurityEventSearchFilters {
|
|
9
|
+
freeText: string | null;
|
|
10
|
+
/** Column -> compiled predicate. */
|
|
11
|
+
fields: Record<string, SearchQueryValue | number>;
|
|
12
|
+
/** Source attribute key -> compiled predicate. */
|
|
13
|
+
attributes: Record<string, SearchQueryValue>;
|
|
14
|
+
}
|
|
15
|
+
export declare const EMPTY_SECURITY_EVENT_SEARCH_FILTERS: SecurityEventSearchFilters;
|
|
16
|
+
/**
|
|
17
|
+
* Parse a search string into the predicates it stands for.
|
|
18
|
+
*
|
|
19
|
+
* Later tokens on the same key win โ a user editing `severity:Low` into
|
|
20
|
+
* `severity:Low severity:High` means the second one.
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseSecurityEventSearch(raw: string): SecurityEventSearchFilters;
|
|
23
|
+
/**
|
|
24
|
+
* Lay the parsed search over a query.
|
|
25
|
+
*
|
|
26
|
+
* Returns a new object: the caller's base query (project + window + the
|
|
27
|
+
* page's own scope) is never mutated. Attribute predicates MERGE into any
|
|
28
|
+
* attributes already on the query rather than replacing the map, so a
|
|
29
|
+
* chip and a typed `@key:value` can coexist.
|
|
30
|
+
*/
|
|
31
|
+
export declare function applySecurityEventSearchToQuery(data: {
|
|
32
|
+
query: Query<SecurityEvent>;
|
|
33
|
+
filters: SecurityEventSearchFilters;
|
|
34
|
+
}): Query<SecurityEvent>;
|
|
35
|
+
/** True when the string holds anything the parser would turn into a filter. */
|
|
36
|
+
export declare function hasSecurityEventSearch(raw: string): boolean;
|
|
37
|
+
export declare const SECURITY_EVENT_ATTRIBUTE_FACET_PREFIX: string;
|
|
38
|
+
export declare const SECURITY_EVENT_EXCLUDE_FACET_PREFIX: string;
|
|
39
|
+
export declare function isSecurityEventExcludeFacetKey(facetKey: string): boolean;
|
|
40
|
+
export declare function toSecurityEventExcludeFacetKey(facetKey: string): string;
|
|
41
|
+
/** The plain facet key an include-or-exclude key stands for. */
|
|
42
|
+
export declare function getSecurityEventBaseFacetKey(facetKey: string): string;
|
|
43
|
+
export declare function isSecurityEventAttributeFacetKey(facetKey: string): boolean;
|
|
44
|
+
export declare function getSecurityEventAttributeKey(facetKey: string): string;
|
|
45
|
+
export declare const SECURITY_EVENT_SOURCE_FACET_KEY: string;
|
|
46
|
+
export declare const SECURITY_EVENT_FACET_COLUMNS: ReadonlyArray<string>;
|
|
47
|
+
export declare function isSecurityEventChipKey(facetKey: string): boolean;
|
|
48
|
+
export declare function applySecurityEventFacetFiltersToQuery(data: {
|
|
49
|
+
query: Query<SecurityEvent>;
|
|
50
|
+
filters: Map<string, Set<string>>;
|
|
51
|
+
}): Query<SecurityEvent>;
|
|
52
|
+
export declare function buildSecurityEventSearchQuery(data: {
|
|
53
|
+
base: Query<SecurityEvent>;
|
|
54
|
+
search: string;
|
|
55
|
+
filters: Map<string, Set<string>>;
|
|
56
|
+
}): Query<SecurityEvent>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import SecurityEvent from "../../Models/AnalyticsModels/SecurityEvent";
|
|
2
|
+
import Query from "../../Types/BaseDatabase/Query";
|
|
3
|
+
import { SearchQueryValue } from "../../Types/Telemetry/TelemetrySearchQuery";
|
|
4
|
+
export declare const SECURITY_EVENT_FIELD_ALIASES: Readonly<Record<string, string>>;
|
|
5
|
+
export declare const SECURITY_EVENT_SEARCH_FIELD_KEYS: Set<string>;
|
|
6
|
+
export declare const SECURITY_EVENT_NUMERIC_FIELDS: ReadonlySet<string>;
|
|
7
|
+
export declare const SECURITY_EVENT_CONTAINS_FIELDS: ReadonlySet<string>;
|
|
8
|
+
export interface SecurityEventSearchFilters {
|
|
9
|
+
freeText: string | null;
|
|
10
|
+
/** Column -> compiled predicate. */
|
|
11
|
+
fields: Record<string, SearchQueryValue | number>;
|
|
12
|
+
/** Source attribute key -> compiled predicate. */
|
|
13
|
+
attributes: Record<string, SearchQueryValue>;
|
|
14
|
+
}
|
|
15
|
+
export declare const EMPTY_SECURITY_EVENT_SEARCH_FILTERS: SecurityEventSearchFilters;
|
|
16
|
+
/**
|
|
17
|
+
* Parse a search string into the predicates it stands for.
|
|
18
|
+
*
|
|
19
|
+
* Later tokens on the same key win โ a user editing `severity:Low` into
|
|
20
|
+
* `severity:Low severity:High` means the second one.
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseSecurityEventSearch(raw: string): SecurityEventSearchFilters;
|
|
23
|
+
/**
|
|
24
|
+
* Lay the parsed search over a query.
|
|
25
|
+
*
|
|
26
|
+
* Returns a new object: the caller's base query (project + window + the
|
|
27
|
+
* page's own scope) is never mutated. Attribute predicates MERGE into any
|
|
28
|
+
* attributes already on the query rather than replacing the map, so a
|
|
29
|
+
* chip and a typed `@key:value` can coexist.
|
|
30
|
+
*/
|
|
31
|
+
export declare function applySecurityEventSearchToQuery(data: {
|
|
32
|
+
query: Query<SecurityEvent>;
|
|
33
|
+
filters: SecurityEventSearchFilters;
|
|
34
|
+
}): Query<SecurityEvent>;
|
|
35
|
+
/** True when the string holds anything the parser would turn into a filter. */
|
|
36
|
+
export declare function hasSecurityEventSearch(raw: string): boolean;
|
|
37
|
+
export declare const SECURITY_EVENT_ATTRIBUTE_FACET_PREFIX: string;
|
|
38
|
+
export declare const SECURITY_EVENT_EXCLUDE_FACET_PREFIX: string;
|
|
39
|
+
export declare function isSecurityEventExcludeFacetKey(facetKey: string): boolean;
|
|
40
|
+
export declare function toSecurityEventExcludeFacetKey(facetKey: string): string;
|
|
41
|
+
/** The plain facet key an include-or-exclude key stands for. */
|
|
42
|
+
export declare function getSecurityEventBaseFacetKey(facetKey: string): string;
|
|
43
|
+
export declare function isSecurityEventAttributeFacetKey(facetKey: string): boolean;
|
|
44
|
+
export declare function getSecurityEventAttributeKey(facetKey: string): string;
|
|
45
|
+
export declare const SECURITY_EVENT_SOURCE_FACET_KEY: string;
|
|
46
|
+
export declare const SECURITY_EVENT_FACET_COLUMNS: ReadonlyArray<string>;
|
|
47
|
+
export declare function isSecurityEventChipKey(facetKey: string): boolean;
|
|
48
|
+
export declare function applySecurityEventFacetFiltersToQuery(data: {
|
|
49
|
+
query: Query<SecurityEvent>;
|
|
50
|
+
filters: Map<string, Set<string>>;
|
|
51
|
+
}): Query<SecurityEvent>;
|
|
52
|
+
export declare function buildSecurityEventSearchQuery(data: {
|
|
53
|
+
base: Query<SecurityEvent>;
|
|
54
|
+
search: string;
|
|
55
|
+
filters: Map<string, Set<string>>;
|
|
56
|
+
}): Query<SecurityEvent>;
|