@crowdstrike/foundry-js 0.8.2 → 0.10.0
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/dist/abstraction/cloud-function.d.ts +14 -5
- package/dist/abstraction/collection.d.ts +29 -0
- package/dist/abstraction/logscale.d.ts +21 -2
- package/dist/api.d.ts +86 -3
- package/dist/apis/available-apis.d.ts +1 -1
- package/dist/apis/devices/index.d.ts +78 -32
- package/dist/apis/mitre/index.d.ts +8 -8
- package/dist/apis/public-api.d.ts +16 -6
- package/dist/apis/remote-response/index.d.ts +2 -12
- package/dist/apis/types-response-for.d.ts +14 -15
- package/dist/apis/types.d.ts +3 -4
- package/dist/index.js +301 -156
- package/dist/index.js.map +1 -1
- package/dist/lib/resize-tracker.d.ts +3 -0
- package/dist/lib/ui.d.ts +34 -2
- package/dist/types.d.ts +30 -0
- package/dist/utils.d.ts +2 -2
- package/package.json +1 -1
- package/dist/apis/actors/index.d.ts +0 -77
@@ -19,13 +19,22 @@ interface GetParameters {
|
|
19
19
|
export declare class CloudFunction<DATA extends LocalData = LocalData> {
|
20
20
|
private readonly falcon;
|
21
21
|
private readonly definition;
|
22
|
-
static GET
|
23
|
-
static POST
|
24
|
-
static PATCH
|
25
|
-
static PUT
|
26
|
-
static DELETE
|
22
|
+
private static GET;
|
23
|
+
private static POST;
|
24
|
+
private static PATCH;
|
25
|
+
private static PUT;
|
26
|
+
private static DELETE;
|
27
|
+
/**
|
28
|
+
* @internal
|
29
|
+
*/
|
27
30
|
pollTimeout: number;
|
31
|
+
/**
|
32
|
+
* @internal
|
33
|
+
*/
|
28
34
|
intervalId?: number;
|
35
|
+
/**
|
36
|
+
* @internal
|
37
|
+
*/
|
29
38
|
constructor(falcon: FalconApi<DATA>, definition: CloudFunctionDefinition);
|
30
39
|
private execute;
|
31
40
|
private getExecutionResult;
|
@@ -4,6 +4,10 @@ interface CollectionDefinition {
|
|
4
4
|
collection: string;
|
5
5
|
}
|
6
6
|
interface CollectionSearchDefinition {
|
7
|
+
/**
|
8
|
+
* Falcon Query Language (FQL) to filter the requested collections
|
9
|
+
* @see https://falcon.crowdstrike.com/documentation/page/d3c84a1b/falcon-query-language-fql
|
10
|
+
*/
|
7
11
|
filter: string;
|
8
12
|
offset: string;
|
9
13
|
sort: string;
|
@@ -13,9 +17,34 @@ export declare class Collection<DATA extends LocalData = LocalData> {
|
|
13
17
|
private readonly falcon;
|
14
18
|
private readonly definition;
|
15
19
|
constructor(falcon: FalconApi<DATA>, definition: CollectionDefinition);
|
20
|
+
/**
|
21
|
+
* Write data to the collection
|
22
|
+
*
|
23
|
+
* @param key
|
24
|
+
* @param data
|
25
|
+
* @returns
|
26
|
+
*/
|
16
27
|
write(key: string, data: Record<string, unknown>): Promise<unknown>;
|
28
|
+
/**
|
29
|
+
* Read the data for the given `key`
|
30
|
+
*
|
31
|
+
* @param key
|
32
|
+
* @returns
|
33
|
+
*/
|
17
34
|
read(key: string): Promise<unknown>;
|
35
|
+
/**
|
36
|
+
* Delete the data for the given `key`
|
37
|
+
*
|
38
|
+
* @param key
|
39
|
+
* @returns
|
40
|
+
*/
|
18
41
|
delete(key: string): Promise<unknown>;
|
42
|
+
/**
|
43
|
+
* Search for data
|
44
|
+
*
|
45
|
+
* @param searchDefinition
|
46
|
+
* @returns
|
47
|
+
*/
|
19
48
|
search({ filter, offset, sort, limit, }: CollectionSearchDefinition): Promise<unknown>;
|
20
49
|
}
|
21
50
|
export {};
|
@@ -8,8 +8,27 @@ interface WriteProperties {
|
|
8
8
|
export declare class Logscale<DATA extends LocalData = LocalData> {
|
9
9
|
private readonly falcon;
|
10
10
|
constructor(falcon: FalconApi<DATA>);
|
11
|
+
/**
|
12
|
+
* Write data to LogScale
|
13
|
+
*
|
14
|
+
* @param data
|
15
|
+
* @param properties
|
16
|
+
* @returns
|
17
|
+
*/
|
11
18
|
write(data: LogscaleRequestMessage['payload']['data'], properties: WriteProperties): Promise<unknown>;
|
12
|
-
|
13
|
-
|
19
|
+
/**
|
20
|
+
* Execute a dynamic query
|
21
|
+
*
|
22
|
+
* @param query
|
23
|
+
* @returns Promise that resolves with the data
|
24
|
+
*/
|
25
|
+
query(query: LogscaleRequestMessage['payload']['data']): Promise<unknown>;
|
26
|
+
/**
|
27
|
+
* Execute a saved query
|
28
|
+
*
|
29
|
+
* @param savedQuery
|
30
|
+
* @returns
|
31
|
+
*/
|
32
|
+
savedQuery(savedQuery: LogscaleRequestMessage['payload']['data']): Promise<unknown>;
|
14
33
|
}
|
15
34
|
export {};
|
package/dist/api.d.ts
CHANGED
@@ -7,37 +7,120 @@ import { Collection } from './abstraction/collection';
|
|
7
7
|
import { Logscale } from './abstraction/logscale';
|
8
8
|
import { Navigation } from './lib/navigation';
|
9
9
|
import { UI } from './lib/ui';
|
10
|
-
import type { CloudFunctionDefinition,
|
10
|
+
import type { CloudFunctionDefinition, LocalData } from './types';
|
11
11
|
interface EventMap<DATA extends LocalData> {
|
12
12
|
data: DATA;
|
13
13
|
broadcast: unknown;
|
14
14
|
}
|
15
|
-
|
15
|
+
/**
|
16
|
+
* This is the main class and only entrypoint for engaging with the Falcon APIs from an Foundry UI extension or page.
|
17
|
+
*
|
18
|
+
* At the very minimum, you would have to instantiate the class and connect to the Falcon Console:
|
19
|
+
*
|
20
|
+
* ```js
|
21
|
+
* import FalconApi from '@crowdstrike/foundry-js';
|
22
|
+
*
|
23
|
+
* const api = new FalconApi();
|
24
|
+
*
|
25
|
+
* await api.connect();
|
26
|
+
* ```
|
27
|
+
*
|
28
|
+
*/
|
29
|
+
export default class FalconApi<DATA extends LocalData = LocalData> {
|
30
|
+
/**
|
31
|
+
* @internal
|
32
|
+
*/
|
33
|
+
isConnected: boolean;
|
34
|
+
/**
|
35
|
+
* An event emitter that allows you to subscribe to events issued by the Falcon Console.
|
36
|
+
*
|
37
|
+
* Currently supported event types:
|
38
|
+
* * `data`: fires when {@link data} is updated.
|
39
|
+
* * `broadcast`: this event is received when another extension of the same app has send a `broadcast` event via {@link sendBroadcast}.
|
40
|
+
*
|
41
|
+
* ```js
|
42
|
+
* api.events.on('data', (newData) => console.log('new data received:', newData));
|
43
|
+
* ```
|
44
|
+
*/
|
16
45
|
events: Emittery<EventMap<DATA>, EventMap<DATA> & import("emittery").OmnipresentEventData, DATA extends undefined ? "data" : never>;
|
46
|
+
/**
|
47
|
+
* The "local data" that your extension receives from the Falcon Console. This can vary depending on the state of the Falcon Console and the socket of the extension.
|
48
|
+
*
|
49
|
+
* At the very least it will contain the data specified by the {@link LocalData} interface.
|
50
|
+
*/
|
17
51
|
data?: DATA;
|
52
|
+
/**
|
53
|
+
* @internal
|
54
|
+
*/
|
18
55
|
bridge: Bridge<DATA>;
|
56
|
+
/**
|
57
|
+
* Namespace for all the {@link FalconPublicApis | Falcon Cloud APIs} you have access to with this SDK.
|
58
|
+
*/
|
59
|
+
api: FalconPublicApis;
|
60
|
+
/**
|
61
|
+
* The {@link UI} class contains methods to invoke UI features within the main Falcon Console.
|
62
|
+
*/
|
19
63
|
ui: UI<DATA>;
|
20
64
|
private resizeTracker?;
|
21
65
|
private cloudFunctions;
|
22
66
|
private apiIntegrations;
|
23
67
|
private collections;
|
68
|
+
/**
|
69
|
+
* Connect to the main Falcon Console from within your UI extension.
|
70
|
+
*
|
71
|
+
* This establishes a connection to send messages between the extension and the Falcon Console. Only when established you will be able to call other APIs.
|
72
|
+
*/
|
24
73
|
connect(): Promise<void>;
|
74
|
+
/**
|
75
|
+
* The ID of the Foundry app this UI extension belongs to.
|
76
|
+
*/
|
25
77
|
get appId(): string | undefined;
|
78
|
+
/**
|
79
|
+
* Sending broadcast messages is a mechanism for allowing communication between different UI extensions, when they are displayed at the same time.
|
80
|
+
* When sending a broadcast message, other extensions need to listen for the `broadcast` event on the {@link events} event emitter.
|
81
|
+
*
|
82
|
+
* Note that broadcast messages are only dispatched between UI extensions of the same app!
|
83
|
+
*
|
84
|
+
* @param payload the data you want to send to other UI extensions
|
85
|
+
*/
|
26
86
|
sendBroadcast(payload: unknown): void;
|
27
|
-
uploadFile<TYPE extends FileUploadType>(fileUploadType: TYPE, initialData?: PayloadForFileUploadType<TYPE>): Promise<ResponseForFileUploadType<TYPE> | undefined>;
|
28
87
|
private handleDataUpdate;
|
29
88
|
private handleBroadcastMessage;
|
30
89
|
private handleLivereloadMessage;
|
31
90
|
private updateTheme;
|
91
|
+
/**
|
92
|
+
* Create a {@link CloudFunction} to integrate with Falcon's "Function as a Service" platform.
|
93
|
+
*
|
94
|
+
* @param definition
|
95
|
+
* @returns
|
96
|
+
*/
|
32
97
|
cloudFunction(definition: CloudFunctionDefinition): CloudFunction<DATA>;
|
98
|
+
/**
|
99
|
+
* Create an {@link ApiIntegration} to call external APIs.
|
100
|
+
*
|
101
|
+
* @param defintition
|
102
|
+
* @returns
|
103
|
+
*/
|
33
104
|
apiIntegration({ definitionId, operationId, }: {
|
34
105
|
operationId: string;
|
35
106
|
definitionId?: string;
|
36
107
|
}): ApiIntegration<DATA>;
|
108
|
+
/**
|
109
|
+
* Create a {@link Collection} to write to and query Falcon's custom storage service.
|
110
|
+
*
|
111
|
+
* @param definition
|
112
|
+
* @returns
|
113
|
+
*/
|
37
114
|
collection({ collection }: {
|
38
115
|
collection: string;
|
39
116
|
}): Collection<DATA>;
|
117
|
+
/**
|
118
|
+
* The {@link Navigation} class provides functionality to navigate to other pages.
|
119
|
+
*/
|
40
120
|
get navigation(): Navigation<DATA>;
|
121
|
+
/**
|
122
|
+
* The {@link Logscale} class allows you to read and write to your custom LogScale repository.
|
123
|
+
*/
|
41
124
|
get logscale(): Logscale<DATA>;
|
42
125
|
destroy(): void;
|
43
126
|
}
|
@@ -5,4 +5,4 @@
|
|
5
5
|
* DO NOT EDIT DIRECTLY
|
6
6
|
*
|
7
7
|
**/
|
8
|
-
export type ApiIdentifier = '
|
8
|
+
export type ApiIdentifier = 'alerts' | 'detects' | 'devices' | 'fwmgr' | 'incidents' | 'mitre' | 'plugins' | 'remoteResponse' | 'userManagement' | 'workflows' | 'customobjects' | 'faasGateway' | 'loggingapi';
|
@@ -36,6 +36,16 @@ export interface GetAggregatesBucketsV1RequestMessage extends BaseApiRequestMess
|
|
36
36
|
api: DevicesRequestApi;
|
37
37
|
method: 'getAggregatesBucketsV1';
|
38
38
|
}
|
39
|
+
export interface GetAggregatesFgaTagPrefixCountsV1QueryParams extends BaseUrlParams {
|
40
|
+
prefix: QueryParam;
|
41
|
+
limit?: QueryParam;
|
42
|
+
}
|
43
|
+
export type GetAggregatesFgaTagPrefixCountsV1ApiResponse = ApiResponsePayload;
|
44
|
+
export type GetAggregatesFgaTagPrefixCountsV1ResponseMessage = BaseApiResponseMessage<GetAggregatesFgaTagPrefixCountsV1ApiResponse>;
|
45
|
+
export interface GetAggregatesFgaTagPrefixCountsV1RequestMessage extends BaseApiRequestMessage<GetAggregatesFgaTagPrefixCountsV1QueryParams> {
|
46
|
+
api: DevicesRequestApi;
|
47
|
+
method: 'getAggregatesFgaTagPrefixCountsV1';
|
48
|
+
}
|
39
49
|
export interface GetAggregatesTagPrefixCountsV1QueryParams extends BaseUrlParams {
|
40
50
|
prefix: QueryParam;
|
41
51
|
limit?: QueryParam;
|
@@ -46,6 +56,15 @@ export interface GetAggregatesTagPrefixCountsV1RequestMessage extends BaseApiReq
|
|
46
56
|
api: DevicesRequestApi;
|
47
57
|
method: 'getAggregatesTagPrefixCountsV1';
|
48
58
|
}
|
59
|
+
export interface GetEntitiesFgaGroupsV1QueryParams extends BaseUrlParams {
|
60
|
+
ids: QueryParam;
|
61
|
+
}
|
62
|
+
export type GetEntitiesFgaGroupsV1ApiResponse = ApiResponsePayload;
|
63
|
+
export type GetEntitiesFgaGroupsV1ResponseMessage = BaseApiResponseMessage<GetEntitiesFgaGroupsV1ApiResponse>;
|
64
|
+
export interface GetEntitiesFgaGroupsV1RequestMessage extends BaseApiRequestMessage<GetEntitiesFgaGroupsV1QueryParams> {
|
65
|
+
api: DevicesRequestApi;
|
66
|
+
method: 'getEntitiesFgaGroupsV1';
|
67
|
+
}
|
49
68
|
export interface GetEntitiesGroupsV1QueryParams extends BaseUrlParams {
|
50
69
|
ids: QueryParam;
|
51
70
|
}
|
@@ -55,22 +74,6 @@ export interface GetEntitiesGroupsV1RequestMessage extends BaseApiRequestMessage
|
|
55
74
|
api: DevicesRequestApi;
|
56
75
|
method: 'getEntitiesGroupsV1';
|
57
76
|
}
|
58
|
-
export interface GetEntitiesReleasesV1QueryParams extends BaseUrlParams {
|
59
|
-
ids: QueryParam;
|
60
|
-
}
|
61
|
-
export type GetEntitiesReleasesV1ApiResponse = ApiResponsePayload;
|
62
|
-
export type GetEntitiesReleasesV1ResponseMessage = BaseApiResponseMessage<GetEntitiesReleasesV1ApiResponse>;
|
63
|
-
export interface GetEntitiesReleasesV1RequestMessage extends BaseApiRequestMessage<GetEntitiesReleasesV1QueryParams> {
|
64
|
-
api: DevicesRequestApi;
|
65
|
-
method: 'getEntitiesReleasesV1';
|
66
|
-
}
|
67
|
-
export type GetEntitiesRespondV1QueryParams = BaseUrlParams;
|
68
|
-
export type GetEntitiesRespondV1ApiResponse = ApiResponsePayload;
|
69
|
-
export type GetEntitiesRespondV1ResponseMessage = BaseApiResponseMessage<GetEntitiesRespondV1ApiResponse>;
|
70
|
-
export interface GetEntitiesRespondV1RequestMessage extends BaseApiRequestMessage<GetEntitiesRespondV1QueryParams> {
|
71
|
-
api: DevicesRequestApi;
|
72
|
-
method: 'getEntitiesRespondV1';
|
73
|
-
}
|
74
77
|
export interface GetQueriesAvailableGroupsV1QueryParams extends BaseUrlParams {
|
75
78
|
policyId?: QueryParam;
|
76
79
|
policyType?: QueryParam;
|
@@ -133,6 +136,18 @@ export interface GetQueriesDevicesV2RequestMessage extends BaseApiRequestMessage
|
|
133
136
|
api: DevicesRequestApi;
|
134
137
|
method: 'getQueriesDevicesV2';
|
135
138
|
}
|
139
|
+
export interface GetQueriesFgaGroupsV1QueryParams extends BaseUrlParams {
|
140
|
+
filter?: string;
|
141
|
+
limit?: QueryParam;
|
142
|
+
offset?: QueryParam;
|
143
|
+
sort?: QueryParam;
|
144
|
+
}
|
145
|
+
export type GetQueriesFgaGroupsV1ApiResponse = ApiResponsePayload;
|
146
|
+
export type GetQueriesFgaGroupsV1ResponseMessage = BaseApiResponseMessage<GetQueriesFgaGroupsV1ApiResponse>;
|
147
|
+
export interface GetQueriesFgaGroupsV1RequestMessage extends BaseApiRequestMessage<GetQueriesFgaGroupsV1QueryParams> {
|
148
|
+
api: DevicesRequestApi;
|
149
|
+
method: 'getQueriesFgaGroupsV1';
|
150
|
+
}
|
136
151
|
export interface GetQueriesGroupsV1QueryParams extends BaseUrlParams {
|
137
152
|
filter?: string;
|
138
153
|
limit?: QueryParam;
|
@@ -174,6 +189,17 @@ export interface PostAggregatesDevicesGetV1RequestMessage extends BaseApiRequest
|
|
174
189
|
api: DevicesRequestApi;
|
175
190
|
method: 'postAggregatesDevicesGetV1';
|
176
191
|
}
|
192
|
+
export interface PostAggregatesFgaHostsGetV1QueryParams extends BaseUrlParams {
|
193
|
+
groupId?: QueryParam;
|
194
|
+
}
|
195
|
+
export type PostAggregatesFgaHostsGetV1ApiResponse = ApiResponsePayload;
|
196
|
+
export interface PostAggregatesFgaHostsGetV1PostData {
|
197
|
+
}
|
198
|
+
export type PostAggregatesFgaHostsGetV1ResponseMessage = BaseApiResponseMessage<PostAggregatesFgaHostsGetV1ApiResponse>;
|
199
|
+
export interface PostAggregatesFgaHostsGetV1RequestMessage extends BaseApiRequestMessage<PostAggregatesFgaHostsGetV1QueryParams, PostAggregatesFgaHostsGetV1PostData> {
|
200
|
+
api: DevicesRequestApi;
|
201
|
+
method: 'postAggregatesFgaHostsGetV1';
|
202
|
+
}
|
177
203
|
export type PostCombinedDevicesLoginHistoryV1QueryParams = BaseUrlParams;
|
178
204
|
export type PostCombinedDevicesLoginHistoryV1ApiResponse = ApiResponsePayload;
|
179
205
|
export interface PostCombinedDevicesLoginHistoryV1PostData {
|
@@ -183,6 +209,15 @@ export interface PostCombinedDevicesLoginHistoryV1RequestMessage extends BaseApi
|
|
183
209
|
api: DevicesRequestApi;
|
184
210
|
method: 'postCombinedDevicesLoginHistoryV1';
|
185
211
|
}
|
212
|
+
export type PostCombinedFgaHostsLoginHistoryV1QueryParams = BaseUrlParams;
|
213
|
+
export type PostCombinedFgaHostsLoginHistoryV1ApiResponse = ApiResponsePayload;
|
214
|
+
export interface PostCombinedFgaHostsLoginHistoryV1PostData {
|
215
|
+
}
|
216
|
+
export type PostCombinedFgaHostsLoginHistoryV1ResponseMessage = BaseApiResponseMessage<PostCombinedFgaHostsLoginHistoryV1ApiResponse>;
|
217
|
+
export interface PostCombinedFgaHostsLoginHistoryV1RequestMessage extends BaseApiRequestMessage<PostCombinedFgaHostsLoginHistoryV1QueryParams, PostCombinedFgaHostsLoginHistoryV1PostData> {
|
218
|
+
api: DevicesRequestApi;
|
219
|
+
method: 'postCombinedFgaHostsLoginHistoryV1';
|
220
|
+
}
|
186
221
|
export interface PostEntitiesDevicesActionsV4QueryParams extends BaseUrlParams {
|
187
222
|
actionName?: QueryParam;
|
188
223
|
}
|
@@ -223,6 +258,24 @@ export interface PostEntitiesDevicesV2RequestMessage extends BaseApiRequestMessa
|
|
223
258
|
api: DevicesRequestApi;
|
224
259
|
method: 'postEntitiesDevicesV2';
|
225
260
|
}
|
261
|
+
export type PostEntitiesFgaHostsReportsV1QueryParams = BaseUrlParams;
|
262
|
+
export type PostEntitiesFgaHostsReportsV1ApiResponse = ApiResponsePayload;
|
263
|
+
export interface PostEntitiesFgaHostsReportsV1PostData {
|
264
|
+
}
|
265
|
+
export type PostEntitiesFgaHostsReportsV1ResponseMessage = BaseApiResponseMessage<PostEntitiesFgaHostsReportsV1ApiResponse>;
|
266
|
+
export interface PostEntitiesFgaHostsReportsV1RequestMessage extends BaseApiRequestMessage<PostEntitiesFgaHostsReportsV1QueryParams, PostEntitiesFgaHostsReportsV1PostData> {
|
267
|
+
api: DevicesRequestApi;
|
268
|
+
method: 'postEntitiesFgaHostsReportsV1';
|
269
|
+
}
|
270
|
+
export type PostEntitiesFgaHostsV1QueryParams = BaseUrlParams;
|
271
|
+
export type PostEntitiesFgaHostsV1ApiResponse = ApiResponsePayload;
|
272
|
+
export interface PostEntitiesFgaHostsV1PostData {
|
273
|
+
}
|
274
|
+
export type PostEntitiesFgaHostsV1ResponseMessage = BaseApiResponseMessage<PostEntitiesFgaHostsV1ApiResponse>;
|
275
|
+
export interface PostEntitiesFgaHostsV1RequestMessage extends BaseApiRequestMessage<PostEntitiesFgaHostsV1QueryParams, PostEntitiesFgaHostsV1PostData> {
|
276
|
+
api: DevicesRequestApi;
|
277
|
+
method: 'postEntitiesFgaHostsV1';
|
278
|
+
}
|
226
279
|
export interface PostEntitiesGroupActionsV1QueryParams extends BaseUrlParams {
|
227
280
|
ids: QueryParam;
|
228
281
|
actionName: QueryParam;
|
@@ -245,43 +298,36 @@ export interface PostEntitiesGroupsV1RequestMessage extends BaseApiRequestMessag
|
|
245
298
|
api: DevicesRequestApi;
|
246
299
|
method: 'postEntitiesGroupsV1';
|
247
300
|
}
|
248
|
-
export
|
249
|
-
|
250
|
-
}
|
251
|
-
export type PostEntitiesReleasesV1ApiResponse = ApiResponsePayload;
|
252
|
-
export interface PostEntitiesReleasesV1PostData {
|
253
|
-
}
|
254
|
-
export type PostEntitiesReleasesV1ResponseMessage = BaseApiResponseMessage<PostEntitiesReleasesV1ApiResponse>;
|
255
|
-
export interface PostEntitiesReleasesV1RequestMessage extends BaseApiRequestMessage<PostEntitiesReleasesV1QueryParams, PostEntitiesReleasesV1PostData> {
|
256
|
-
api: DevicesRequestApi;
|
257
|
-
method: 'postEntitiesReleasesV1';
|
258
|
-
}
|
259
|
-
export type DevicesApiRequestMessage = DeleteEntitiesGroupsV1RequestMessage | GetAggregatesBucketsV1RequestMessage | GetAggregatesTagPrefixCountsV1RequestMessage | GetEntitiesGroupsV1RequestMessage | GetEntitiesReleasesV1RequestMessage | GetEntitiesRespondV1RequestMessage | GetQueriesAvailableGroupsV1RequestMessage | GetQueriesDevicesHiddenV2RequestMessage | GetQueriesDevicesV1RequestMessage | GetQueriesDevicesV2RequestMessage | GetQueriesGroupsV1RequestMessage | PatchEntitiesDevicesTagsV2RequestMessage | PatchEntitiesGroupsV1RequestMessage | PostAggregatesDevicesGetV1RequestMessage | PostCombinedDevicesLoginHistoryV1RequestMessage | PostEntitiesDevicesActionsV4RequestMessage | PostEntitiesDevicesHiddenActionsV4RequestMessage | PostEntitiesDevicesReportsV1RequestMessage | PostEntitiesDevicesV2RequestMessage | PostEntitiesGroupActionsV1RequestMessage | PostEntitiesGroupsV1RequestMessage | PostEntitiesReleasesV1RequestMessage;
|
260
|
-
export type DevicesApiResponseMessage = DeleteEntitiesGroupsV1ResponseMessage | GetAggregatesBucketsV1ResponseMessage | GetAggregatesTagPrefixCountsV1ResponseMessage | GetEntitiesGroupsV1ResponseMessage | GetEntitiesReleasesV1ResponseMessage | GetEntitiesRespondV1ResponseMessage | GetQueriesAvailableGroupsV1ResponseMessage | GetQueriesDevicesHiddenV2ResponseMessage | GetQueriesDevicesV1ResponseMessage | GetQueriesDevicesV2ResponseMessage | GetQueriesGroupsV1ResponseMessage | PatchEntitiesDevicesTagsV2ResponseMessage | PatchEntitiesGroupsV1ResponseMessage | PostAggregatesDevicesGetV1ResponseMessage | PostCombinedDevicesLoginHistoryV1ResponseMessage | PostEntitiesDevicesActionsV4ResponseMessage | PostEntitiesDevicesHiddenActionsV4ResponseMessage | PostEntitiesDevicesReportsV1ResponseMessage | PostEntitiesDevicesV2ResponseMessage | PostEntitiesGroupActionsV1ResponseMessage | PostEntitiesGroupsV1ResponseMessage | PostEntitiesReleasesV1ResponseMessage;
|
301
|
+
export type DevicesApiRequestMessage = DeleteEntitiesGroupsV1RequestMessage | GetAggregatesBucketsV1RequestMessage | GetAggregatesFgaTagPrefixCountsV1RequestMessage | GetAggregatesTagPrefixCountsV1RequestMessage | GetEntitiesFgaGroupsV1RequestMessage | GetEntitiesGroupsV1RequestMessage | GetQueriesAvailableGroupsV1RequestMessage | GetQueriesDevicesHiddenV2RequestMessage | GetQueriesDevicesV1RequestMessage | GetQueriesDevicesV2RequestMessage | GetQueriesFgaGroupsV1RequestMessage | GetQueriesGroupsV1RequestMessage | PatchEntitiesDevicesTagsV2RequestMessage | PatchEntitiesGroupsV1RequestMessage | PostAggregatesDevicesGetV1RequestMessage | PostAggregatesFgaHostsGetV1RequestMessage | PostCombinedDevicesLoginHistoryV1RequestMessage | PostCombinedFgaHostsLoginHistoryV1RequestMessage | PostEntitiesDevicesActionsV4RequestMessage | PostEntitiesDevicesHiddenActionsV4RequestMessage | PostEntitiesDevicesReportsV1RequestMessage | PostEntitiesDevicesV2RequestMessage | PostEntitiesFgaHostsReportsV1RequestMessage | PostEntitiesFgaHostsV1RequestMessage | PostEntitiesGroupActionsV1RequestMessage | PostEntitiesGroupsV1RequestMessage;
|
302
|
+
export type DevicesApiResponseMessage = DeleteEntitiesGroupsV1ResponseMessage | GetAggregatesBucketsV1ResponseMessage | GetAggregatesFgaTagPrefixCountsV1ResponseMessage | GetAggregatesTagPrefixCountsV1ResponseMessage | GetEntitiesFgaGroupsV1ResponseMessage | GetEntitiesGroupsV1ResponseMessage | GetQueriesAvailableGroupsV1ResponseMessage | GetQueriesDevicesHiddenV2ResponseMessage | GetQueriesDevicesV1ResponseMessage | GetQueriesDevicesV2ResponseMessage | GetQueriesFgaGroupsV1ResponseMessage | GetQueriesGroupsV1ResponseMessage | PatchEntitiesDevicesTagsV2ResponseMessage | PatchEntitiesGroupsV1ResponseMessage | PostAggregatesDevicesGetV1ResponseMessage | PostAggregatesFgaHostsGetV1ResponseMessage | PostCombinedDevicesLoginHistoryV1ResponseMessage | PostCombinedFgaHostsLoginHistoryV1ResponseMessage | PostEntitiesDevicesActionsV4ResponseMessage | PostEntitiesDevicesHiddenActionsV4ResponseMessage | PostEntitiesDevicesReportsV1ResponseMessage | PostEntitiesDevicesV2ResponseMessage | PostEntitiesFgaHostsReportsV1ResponseMessage | PostEntitiesFgaHostsV1ResponseMessage | PostEntitiesGroupActionsV1ResponseMessage | PostEntitiesGroupsV1ResponseMessage;
|
261
303
|
export declare class DevicesApiBridge {
|
262
304
|
private bridge;
|
263
305
|
constructor(bridge: Bridge);
|
264
306
|
getBridge(): Bridge<import("../../types").LocalData>;
|
265
307
|
deleteEntitiesGroupsV1(urlParams: DeleteEntitiesGroupsV1QueryParams): Promise<DeleteEntitiesGroupsV1ApiResponse>;
|
266
308
|
getAggregatesBucketsV1(urlParams: GetAggregatesBucketsV1QueryParams): Promise<GetAggregatesBucketsV1ApiResponse>;
|
309
|
+
getAggregatesFgaTagPrefixCountsV1(urlParams: GetAggregatesFgaTagPrefixCountsV1QueryParams): Promise<GetAggregatesFgaTagPrefixCountsV1ApiResponse>;
|
267
310
|
getAggregatesTagPrefixCountsV1(urlParams: GetAggregatesTagPrefixCountsV1QueryParams): Promise<GetAggregatesTagPrefixCountsV1ApiResponse>;
|
311
|
+
getEntitiesFgaGroupsV1(urlParams: GetEntitiesFgaGroupsV1QueryParams): Promise<GetEntitiesFgaGroupsV1ApiResponse>;
|
268
312
|
getEntitiesGroupsV1(urlParams: GetEntitiesGroupsV1QueryParams): Promise<GetEntitiesGroupsV1ApiResponse>;
|
269
|
-
getEntitiesReleasesV1(urlParams: GetEntitiesReleasesV1QueryParams): Promise<GetEntitiesReleasesV1ApiResponse>;
|
270
|
-
getEntitiesRespondV1(urlParams?: GetEntitiesRespondV1QueryParams): Promise<GetEntitiesRespondV1ApiResponse>;
|
271
313
|
getQueriesAvailableGroupsV1(urlParams?: GetQueriesAvailableGroupsV1QueryParams): Promise<GetQueriesAvailableGroupsV1ApiResponse>;
|
272
314
|
getQueriesDevicesHiddenV2(urlParams?: GetQueriesDevicesHiddenV2QueryParams): Promise<GetQueriesDevicesHiddenV2ApiResponse>;
|
273
315
|
getQueriesDevicesV1(urlParams?: GetQueriesDevicesV1QueryParams): Promise<GetQueriesDevicesV1ApiResponse>;
|
274
316
|
getQueriesDevicesV2(urlParams?: GetQueriesDevicesV2QueryParams): Promise<GetQueriesDevicesV2ApiResponse>;
|
317
|
+
getQueriesFgaGroupsV1(urlParams?: GetQueriesFgaGroupsV1QueryParams): Promise<GetQueriesFgaGroupsV1ApiResponse>;
|
275
318
|
getQueriesGroupsV1(urlParams?: GetQueriesGroupsV1QueryParams): Promise<GetQueriesGroupsV1ApiResponse>;
|
276
319
|
patchEntitiesDevicesTagsV2(postBody: PatchEntitiesDevicesTagsV2PostData, urlParams?: PatchEntitiesDevicesTagsV2QueryParams): Promise<PatchEntitiesDevicesTagsV2ApiResponse>;
|
277
320
|
patchEntitiesGroupsV1(postBody: PatchEntitiesGroupsV1PostData, urlParams?: PatchEntitiesGroupsV1QueryParams): Promise<PatchEntitiesGroupsV1ApiResponse>;
|
278
321
|
postAggregatesDevicesGetV1(postBody: PostAggregatesDevicesGetV1PostData, urlParams?: PostAggregatesDevicesGetV1QueryParams): Promise<PostAggregatesDevicesGetV1ApiResponse>;
|
322
|
+
postAggregatesFgaHostsGetV1(postBody: PostAggregatesFgaHostsGetV1PostData, urlParams?: PostAggregatesFgaHostsGetV1QueryParams): Promise<PostAggregatesFgaHostsGetV1ApiResponse>;
|
279
323
|
postCombinedDevicesLoginHistoryV1(postBody: PostCombinedDevicesLoginHistoryV1PostData, urlParams?: PostCombinedDevicesLoginHistoryV1QueryParams): Promise<PostCombinedDevicesLoginHistoryV1ApiResponse>;
|
324
|
+
postCombinedFgaHostsLoginHistoryV1(postBody: PostCombinedFgaHostsLoginHistoryV1PostData, urlParams?: PostCombinedFgaHostsLoginHistoryV1QueryParams): Promise<PostCombinedFgaHostsLoginHistoryV1ApiResponse>;
|
280
325
|
postEntitiesDevicesActionsV4(postBody: PostEntitiesDevicesActionsV4PostData, urlParams?: PostEntitiesDevicesActionsV4QueryParams): Promise<PostEntitiesDevicesActionsV4ApiResponse>;
|
281
326
|
postEntitiesDevicesHiddenActionsV4(postBody: PostEntitiesDevicesHiddenActionsV4PostData, urlParams?: PostEntitiesDevicesHiddenActionsV4QueryParams): Promise<PostEntitiesDevicesHiddenActionsV4ApiResponse>;
|
282
327
|
postEntitiesDevicesReportsV1(postBody: PostEntitiesDevicesReportsV1PostData, urlParams?: PostEntitiesDevicesReportsV1QueryParams): Promise<PostEntitiesDevicesReportsV1ApiResponse>;
|
283
328
|
postEntitiesDevicesV2(postBody: PostEntitiesDevicesV2PostData, urlParams?: PostEntitiesDevicesV2QueryParams): Promise<PostEntitiesDevicesV2ApiResponse>;
|
329
|
+
postEntitiesFgaHostsReportsV1(postBody: PostEntitiesFgaHostsReportsV1PostData, urlParams?: PostEntitiesFgaHostsReportsV1QueryParams): Promise<PostEntitiesFgaHostsReportsV1ApiResponse>;
|
330
|
+
postEntitiesFgaHostsV1(postBody: PostEntitiesFgaHostsV1PostData, urlParams?: PostEntitiesFgaHostsV1QueryParams): Promise<PostEntitiesFgaHostsV1ApiResponse>;
|
284
331
|
postEntitiesGroupActionsV1(postBody: PostEntitiesGroupActionsV1PostData, urlParams: PostEntitiesGroupActionsV1QueryParams): Promise<PostEntitiesGroupActionsV1ApiResponse>;
|
285
332
|
postEntitiesGroupsV1(postBody: PostEntitiesGroupsV1PostData, urlParams?: PostEntitiesGroupsV1QueryParams): Promise<PostEntitiesGroupsV1ApiResponse>;
|
286
|
-
postEntitiesReleasesV1(postBody: PostEntitiesReleasesV1PostData, urlParams: PostEntitiesReleasesV1QueryParams): Promise<PostEntitiesReleasesV1ApiResponse>;
|
287
333
|
}
|
@@ -12,20 +12,20 @@ export type CommonApiResponseMessage = BaseApiResponseMessage<ApiResponsePayload
|
|
12
12
|
export interface CommonApiRequestMessage extends BaseApiRequestMessage<BaseUrlParams, unknown> {
|
13
13
|
api: MitreRequestApi;
|
14
14
|
}
|
15
|
-
export interface
|
15
|
+
export interface GetIntelMitreEntitiesMatrixV1QueryParams extends BaseUrlParams {
|
16
16
|
version?: QueryParam;
|
17
17
|
}
|
18
|
-
export type
|
19
|
-
export type
|
20
|
-
export interface
|
18
|
+
export type GetIntelMitreEntitiesMatrixV1ApiResponse = ApiResponsePayload;
|
19
|
+
export type GetIntelMitreEntitiesMatrixV1ResponseMessage = BaseApiResponseMessage<GetIntelMitreEntitiesMatrixV1ApiResponse>;
|
20
|
+
export interface GetIntelMitreEntitiesMatrixV1RequestMessage extends BaseApiRequestMessage<GetIntelMitreEntitiesMatrixV1QueryParams> {
|
21
21
|
api: MitreRequestApi;
|
22
|
-
method: '
|
22
|
+
method: 'getIntelMitreEntitiesMatrixV1';
|
23
23
|
}
|
24
|
-
export type MitreApiRequestMessage =
|
25
|
-
export type MitreApiResponseMessage =
|
24
|
+
export type MitreApiRequestMessage = GetIntelMitreEntitiesMatrixV1RequestMessage;
|
25
|
+
export type MitreApiResponseMessage = GetIntelMitreEntitiesMatrixV1ResponseMessage;
|
26
26
|
export declare class MitreApiBridge {
|
27
27
|
private bridge;
|
28
28
|
constructor(bridge: Bridge);
|
29
29
|
getBridge(): Bridge<import("../../types").LocalData>;
|
30
|
-
|
30
|
+
getIntelMitreEntitiesMatrixV1(urlParams?: GetIntelMitreEntitiesMatrixV1QueryParams): Promise<GetIntelMitreEntitiesMatrixV1ApiResponse>;
|
31
31
|
}
|
@@ -5,7 +5,6 @@
|
|
5
5
|
* DO NOT EDIT DIRECTLY
|
6
6
|
*
|
7
7
|
**/
|
8
|
-
import { ActorsApiBridge } from './actors';
|
9
8
|
import { AlertsApiBridge } from './alerts';
|
10
9
|
import { CustomobjectsApiBridge } from './customobjects';
|
11
10
|
import { DetectsApiBridge } from './detects';
|
@@ -19,22 +18,33 @@ import { PluginsApiBridge } from './plugins';
|
|
19
18
|
import { RemoteResponseApiBridge } from './remote-response';
|
20
19
|
import { UserManagementApiBridge } from './user-management';
|
21
20
|
import { WorkflowsApiBridge } from './workflows';
|
22
|
-
import type
|
23
|
-
export default
|
24
|
-
|
25
|
-
|
26
|
-
get actors(): ActorsApiBridge;
|
21
|
+
import type FalconApi from '../api';
|
22
|
+
export default class FalconPublicApis {
|
23
|
+
private api;
|
24
|
+
constructor(api: FalconApi<any>);
|
27
25
|
get alerts(): AlertsApiBridge;
|
28
26
|
get detects(): DetectsApiBridge;
|
29
27
|
get devices(): DevicesApiBridge;
|
30
28
|
get fwmgr(): FwmgrApiBridge;
|
31
29
|
get incidents(): IncidentsApiBridge;
|
32
30
|
get mitre(): MitreApiBridge;
|
31
|
+
/**
|
32
|
+
* @internal
|
33
|
+
*/
|
33
34
|
get plugins(): PluginsApiBridge;
|
34
35
|
get remoteResponse(): RemoteResponseApiBridge;
|
35
36
|
get userManagement(): UserManagementApiBridge;
|
36
37
|
get workflows(): WorkflowsApiBridge;
|
38
|
+
/**
|
39
|
+
* @internal
|
40
|
+
*/
|
37
41
|
get customobjects(): CustomobjectsApiBridge;
|
42
|
+
/**
|
43
|
+
* @internal
|
44
|
+
*/
|
38
45
|
get faasGateway(): FaasGatewayApiBridge;
|
46
|
+
/**
|
47
|
+
* @internal
|
48
|
+
*/
|
39
49
|
get loggingapi(): LoggingapiApiBridge;
|
40
50
|
}
|
@@ -63,15 +63,6 @@ export interface PostEntitiesAppCommandV1RequestMessage extends BaseApiRequestMe
|
|
63
63
|
api: RemoteResponseRequestApi;
|
64
64
|
method: 'postEntitiesAppCommandV1';
|
65
65
|
}
|
66
|
-
export type PostEntitiesAppRefreshSessionsV1QueryParams = BaseUrlParams;
|
67
|
-
export type PostEntitiesAppRefreshSessionsV1ApiResponse = ApiResponsePayload;
|
68
|
-
export interface PostEntitiesAppRefreshSessionsV1PostData {
|
69
|
-
}
|
70
|
-
export type PostEntitiesAppRefreshSessionsV1ResponseMessage = BaseApiResponseMessage<PostEntitiesAppRefreshSessionsV1ApiResponse>;
|
71
|
-
export interface PostEntitiesAppRefreshSessionsV1RequestMessage extends BaseApiRequestMessage<PostEntitiesAppRefreshSessionsV1QueryParams, PostEntitiesAppRefreshSessionsV1PostData> {
|
72
|
-
api: RemoteResponseRequestApi;
|
73
|
-
method: 'postEntitiesAppRefreshSessionsV1';
|
74
|
-
}
|
75
66
|
export interface PostEntitiesAppSessionsV1QueryParams extends BaseUrlParams {
|
76
67
|
timeout?: QueryParam;
|
77
68
|
timeoutDuration?: QueryParam;
|
@@ -93,8 +84,8 @@ export interface PostEntitiesPutFilesV1RequestMessage extends BaseApiRequestMess
|
|
93
84
|
api: RemoteResponseRequestApi;
|
94
85
|
method: 'postEntitiesPutFilesV1';
|
95
86
|
}
|
96
|
-
export type RemoteResponseApiRequestMessage = DeleteEntitiesPutFilesV1RequestMessage | GetEntitiesAppCommandV1RequestMessage | GetEntitiesPutFilesV2RequestMessage | GetQueriesPutFilesV1RequestMessage | PostEntitiesAppCommandV1RequestMessage |
|
97
|
-
export type RemoteResponseApiResponseMessage = DeleteEntitiesPutFilesV1ResponseMessage | GetEntitiesAppCommandV1ResponseMessage | GetEntitiesPutFilesV2ResponseMessage | GetQueriesPutFilesV1ResponseMessage | PostEntitiesAppCommandV1ResponseMessage |
|
87
|
+
export type RemoteResponseApiRequestMessage = DeleteEntitiesPutFilesV1RequestMessage | GetEntitiesAppCommandV1RequestMessage | GetEntitiesPutFilesV2RequestMessage | GetQueriesPutFilesV1RequestMessage | PostEntitiesAppCommandV1RequestMessage | PostEntitiesAppSessionsV1RequestMessage;
|
88
|
+
export type RemoteResponseApiResponseMessage = DeleteEntitiesPutFilesV1ResponseMessage | GetEntitiesAppCommandV1ResponseMessage | GetEntitiesPutFilesV2ResponseMessage | GetQueriesPutFilesV1ResponseMessage | PostEntitiesAppCommandV1ResponseMessage | PostEntitiesAppSessionsV1ResponseMessage;
|
98
89
|
export declare class RemoteResponseApiBridge {
|
99
90
|
private bridge;
|
100
91
|
constructor(bridge: Bridge);
|
@@ -104,6 +95,5 @@ export declare class RemoteResponseApiBridge {
|
|
104
95
|
getEntitiesPutFilesV2(urlParams: GetEntitiesPutFilesV2QueryParams): Promise<GetEntitiesPutFilesV2ApiResponse>;
|
105
96
|
getQueriesPutFilesV1(urlParams?: GetQueriesPutFilesV1QueryParams): Promise<GetQueriesPutFilesV1ApiResponse>;
|
106
97
|
postEntitiesAppCommandV1(postBody: PostEntitiesAppCommandV1PostData, urlParams?: PostEntitiesAppCommandV1QueryParams): Promise<PostEntitiesAppCommandV1ApiResponse>;
|
107
|
-
postEntitiesAppRefreshSessionsV1(postBody: PostEntitiesAppRefreshSessionsV1PostData, urlParams?: PostEntitiesAppRefreshSessionsV1QueryParams): Promise<PostEntitiesAppRefreshSessionsV1ApiResponse>;
|
108
98
|
postEntitiesAppSessionsV1(postBody: PostEntitiesAppSessionsV1PostData, urlParams?: PostEntitiesAppSessionsV1QueryParams): Promise<PostEntitiesAppSessionsV1ApiResponse>;
|
109
99
|
}
|