@ampsec/platform-client 80.3.0 → 80.4.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConnectorDto, NotificationDto, ProviderDto } from '../dto';
|
|
1
|
+
import { AssetDto, ConnectorDto, NotificationDto, ProviderDto } from '../dto';
|
|
2
2
|
import { AmpDataService } from './data.service';
|
|
3
3
|
import { AmpRestClientOptions, RestClient } from './rest';
|
|
4
4
|
import { AmpReportService } from './reports.service';
|
|
@@ -29,6 +29,7 @@ export type EngageApiOptions = AmpRestClientOptions;
|
|
|
29
29
|
* - Findings: {@link EngageApi.findings}
|
|
30
30
|
*/
|
|
31
31
|
export declare class EngageApi {
|
|
32
|
+
readonly asset: AmpDataService<AssetDto>;
|
|
32
33
|
readonly connectors: AmpDataService<ConnectorDto>;
|
|
33
34
|
readonly findings: FindingsService;
|
|
34
35
|
readonly identity: UserIdentityService;
|
|
@@ -33,6 +33,7 @@ const engagementConversations_service_1 = require("./engagementConversations.ser
|
|
|
33
33
|
*/
|
|
34
34
|
class EngageApi {
|
|
35
35
|
constructor(rest) {
|
|
36
|
+
this.asset = new data_service_1.AmpDataServiceImpl(rest, constants_1.KIND.ASSETS, constants_1.TARGET_API_ENGAGE);
|
|
36
37
|
this.connectors = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONNECTORS, constants_1.TARGET_API_ENGAGE);
|
|
37
38
|
this.findings = new findings_service_1.FindingsService(rest, constants_1.TARGET_API_ENGAGE);
|
|
38
39
|
this.identity = new UserIdentityService_1.UserIdentityService(rest);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EngageApi.js","sourceRoot":"","sources":["../../../src/services/EngageApi.ts"],"names":[],"mappings":";;;AACA,qDAAsD;AACtD,iDAAkE;AAClE,iCAA0E;AAC1E,2CAAoD;AACpD,uDAAyE;AACzE,yDAAsD;AACtD,oEAA+D;AAC/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CAAC,aAAa,GAAG,IAAI,+DAA6B,CAAC,IAAI,EAAE,gBAAI,CAAC,wBAAwB,EAAE,6BAAiB,CAAC,CAAC;IACjH,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,OAAyB;QACvC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF;AA7BD,8BA6BC"}
|
package/build/src/settings.js
CHANGED
|
@@ -99,8 +99,8 @@ const CROWDSTRIKE_SETTINGS = {
|
|
|
99
99
|
CROWDSTRIKE_VULN_MEDIUM_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('crowdstrike.vuln.medium.deadline', '90 day'),
|
|
100
100
|
CROWDSTRIKE_VULN_LOW_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('crowdstrike.vuln.low.deadline', '180 day'),
|
|
101
101
|
ETL_V2_ENABLED: services_1.AmpSettingsMap.asKey(exports.ETL_V2_ENABLED_KEY, false),
|
|
102
|
-
CROWDSTRIKE_INCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('crowdstrike.
|
|
103
|
-
CROWDSTRIKE_EXCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('crowdstrike.
|
|
102
|
+
CROWDSTRIKE_INCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('crowdstrike.include.managed.apps', []),
|
|
103
|
+
CROWDSTRIKE_EXCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('crowdstrike.exclude.managed.apps', []),
|
|
104
104
|
};
|
|
105
105
|
const GOOGLE_SETTINGS = {
|
|
106
106
|
GOOGLE_EXECUTIVE_GROUPS: services_1.AmpSettingsMap.asKey('google.groups.exec.extIds', []),
|
|
@@ -157,8 +157,8 @@ const TENABLE_SETTINGS = {
|
|
|
157
157
|
ETL_DEVICE_SECURITY_ENABLED: services_1.AmpSettingsMap.asKey(exports.ETL_DEVICE_SECURITY_ENABLED_KEY, false),
|
|
158
158
|
ETL_DEVICE_MANAGEMENT_ENABLED: services_1.AmpSettingsMap.asKey(exports.ETL_DEVICE_MANAGEMENT_ENABLED_KEY, false),
|
|
159
159
|
ETL_V2_ENABLED: services_1.AmpSettingsMap.asKey(exports.ETL_V2_ENABLED_KEY, false),
|
|
160
|
-
TENABLE_INCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('tenable.
|
|
161
|
-
TENABLE_EXCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('tenable.
|
|
160
|
+
TENABLE_INCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('tenable.include.managed.apps', []),
|
|
161
|
+
TENABLE_EXCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('tenable.exclude.managed.apps', []),
|
|
162
162
|
};
|
|
163
163
|
const QUALYS_SETTINGS = {
|
|
164
164
|
QUALYS_VULN_CRIT_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('qualys.vuln.crit.deadline', '13 day'),
|
|
@@ -174,8 +174,8 @@ const RAPID7_SETTINGS = {
|
|
|
174
174
|
RAPID7_VULN_HIGH_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('rapid7.vuln.high.deadline', '30 day'),
|
|
175
175
|
RAPID7_VULN_MEDIUM_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('rapid7.vuln.medium.deadline', '90 day'),
|
|
176
176
|
RAPID7_VULN_LOW_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('rapid7.vuln.low.deadline', '180 day'),
|
|
177
|
-
RAPID7_INCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('rapid7.
|
|
178
|
-
RAPID7_EXCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('rapid7.
|
|
177
|
+
RAPID7_INCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('rapid7.include.managed.apps', []),
|
|
178
|
+
RAPID7_EXCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('rapid7.exclude.managed.apps', []),
|
|
179
179
|
};
|
|
180
180
|
const CARBONBLACK_SETTINGS = {
|
|
181
181
|
CARBONBLACK_VULN_CRIT_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('carbonblack.vuln.crit.deadline', '13 day'),
|
|
@@ -219,8 +219,8 @@ const KANDJI_SETTINGS = {
|
|
|
219
219
|
KANDJI_VULN_LOW_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('kandji.vuln.low.deadline', '180 day'),
|
|
220
220
|
KANDJI_INGEST_OS_UPDATES: services_1.AmpSettingsMap.asKey('kandji.ingest.os.updates', false),
|
|
221
221
|
KANDJI_INGEST_SOFTWARE_UPDATES: services_1.AmpSettingsMap.asKey('kandji.ingest.software.updates', false),
|
|
222
|
-
KANDJI_INCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('kandji.
|
|
223
|
-
KANDJI_EXCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('kandji.
|
|
222
|
+
KANDJI_INCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('kandji.include.managed.apps', []),
|
|
223
|
+
KANDJI_EXCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('kandji.exclude.managed.apps', []),
|
|
224
224
|
};
|
|
225
225
|
const DEFENDER_SETTINGS = {
|
|
226
226
|
ETL_VULN_ENABLED: services_1.AmpSettingsMap.asKey(exports.ETL_VULN_ENABLED_KEY, false),
|
|
@@ -245,8 +245,8 @@ const VMWARE_SETTINGS = {
|
|
|
245
245
|
ETL_VULN_ENABLED: services_1.AmpSettingsMap.asKey(exports.ETL_VULN_ENABLED_KEY, false),
|
|
246
246
|
ETL_DEVICE_MANAGEMENT_ENABLED: services_1.AmpSettingsMap.asKey(exports.ETL_DEVICE_MANAGEMENT_ENABLED_KEY, true),
|
|
247
247
|
ETL_DEVICE_SECURITY_ENABLED: services_1.AmpSettingsMap.asKey(exports.ETL_DEVICE_SECURITY_ENABLED_KEY, false),
|
|
248
|
-
VMWARE_INCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('vmware.
|
|
249
|
-
VMWARE_EXCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('vmware.
|
|
248
|
+
VMWARE_INCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('vmware.include.managed.apps', []),
|
|
249
|
+
VMWARE_EXCLUDE_MANAGED_APPS: services_1.AmpSettingsMap.asKey('vmware.exclude.managed.apps', []),
|
|
250
250
|
};
|
|
251
251
|
const ENTRA_SETTINGS = {
|
|
252
252
|
ETL_USER_FILTER: services_1.AmpSettingsMap.asKey('entra.etl.user.filter', ''),
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ConnectorDto, ConnectorUpsertDto, NotificationDto, ProviderDto} from '../dto';
|
|
1
|
+
import {AssetDto, ConnectorDto, ConnectorUpsertDto, NotificationDto, ProviderDto} from '../dto';
|
|
2
2
|
import {AmpEntityServiceImpl} from './entity.service';
|
|
3
3
|
import {AmpDataService, AmpDataServiceImpl} from './data.service';
|
|
4
4
|
import {AmpRestClientOptions, RestClient, getAmpRestClient} from './rest';
|
|
@@ -33,6 +33,7 @@ export type EngageApiOptions = AmpRestClientOptions;
|
|
|
33
33
|
* - Findings: {@link EngageApi.findings}
|
|
34
34
|
*/
|
|
35
35
|
export class EngageApi {
|
|
36
|
+
readonly asset: AmpDataService<AssetDto>;
|
|
36
37
|
readonly connectors: AmpDataService<ConnectorDto>;
|
|
37
38
|
readonly findings: FindingsService;
|
|
38
39
|
readonly identity: UserIdentityService;
|
|
@@ -44,6 +45,7 @@ export class EngageApi {
|
|
|
44
45
|
readonly conversations: EngagementConversationService;
|
|
45
46
|
|
|
46
47
|
constructor(rest: RestClient) {
|
|
48
|
+
this.asset = new AmpDataServiceImpl<AssetDto>(rest, KIND.ASSETS, TARGET_API_ENGAGE);
|
|
47
49
|
this.connectors = new AmpEntityServiceImpl<ConnectorUpsertDto, ConnectorDto>(rest, KIND.CONNECTORS, TARGET_API_ENGAGE);
|
|
48
50
|
this.findings = new FindingsService(rest, TARGET_API_ENGAGE);
|
|
49
51
|
this.identity = new UserIdentityService(rest);
|
package/src/settings.ts
CHANGED
|
@@ -107,8 +107,8 @@ const CROWDSTRIKE_SETTINGS = {
|
|
|
107
107
|
CROWDSTRIKE_VULN_MEDIUM_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('crowdstrike.vuln.medium.deadline', '90 day'),
|
|
108
108
|
CROWDSTRIKE_VULN_LOW_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('crowdstrike.vuln.low.deadline', '180 day'),
|
|
109
109
|
ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
|
|
110
|
-
CROWDSTRIKE_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('crowdstrike.
|
|
111
|
-
CROWDSTRIKE_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('crowdstrike.
|
|
110
|
+
CROWDSTRIKE_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('crowdstrike.include.managed.apps', []),
|
|
111
|
+
CROWDSTRIKE_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('crowdstrike.exclude.managed.apps', []),
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
const GOOGLE_SETTINGS = {
|
|
@@ -174,8 +174,8 @@ const TENABLE_SETTINGS = {
|
|
|
174
174
|
ETL_DEVICE_SECURITY_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_SECURITY_ENABLED_KEY, false),
|
|
175
175
|
ETL_DEVICE_MANAGEMENT_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_MANAGEMENT_ENABLED_KEY, false),
|
|
176
176
|
ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
|
|
177
|
-
TENABLE_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('tenable.
|
|
178
|
-
TENABLE_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('tenable.
|
|
177
|
+
TENABLE_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('tenable.include.managed.apps', []),
|
|
178
|
+
TENABLE_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('tenable.exclude.managed.apps', []),
|
|
179
179
|
};
|
|
180
180
|
|
|
181
181
|
const QUALYS_SETTINGS = {
|
|
@@ -193,8 +193,8 @@ const RAPID7_SETTINGS = {
|
|
|
193
193
|
RAPID7_VULN_HIGH_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('rapid7.vuln.high.deadline', '30 day'),
|
|
194
194
|
RAPID7_VULN_MEDIUM_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('rapid7.vuln.medium.deadline', '90 day'),
|
|
195
195
|
RAPID7_VULN_LOW_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('rapid7.vuln.low.deadline', '180 day'),
|
|
196
|
-
RAPID7_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('rapid7.
|
|
197
|
-
RAPID7_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('rapid7.
|
|
196
|
+
RAPID7_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('rapid7.include.managed.apps', []),
|
|
197
|
+
RAPID7_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('rapid7.exclude.managed.apps', []),
|
|
198
198
|
};
|
|
199
199
|
|
|
200
200
|
const CARBONBLACK_SETTINGS = {
|
|
@@ -242,8 +242,8 @@ const KANDJI_SETTINGS = {
|
|
|
242
242
|
KANDJI_VULN_LOW_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('kandji.vuln.low.deadline', '180 day'),
|
|
243
243
|
KANDJI_INGEST_OS_UPDATES: AmpSettingsMap.asKey<boolean>('kandji.ingest.os.updates', false),
|
|
244
244
|
KANDJI_INGEST_SOFTWARE_UPDATES: AmpSettingsMap.asKey<boolean>('kandji.ingest.software.updates', false),
|
|
245
|
-
KANDJI_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('kandji.
|
|
246
|
-
KANDJI_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('kandji.
|
|
245
|
+
KANDJI_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('kandji.include.managed.apps', []),
|
|
246
|
+
KANDJI_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('kandji.exclude.managed.apps', []),
|
|
247
247
|
};
|
|
248
248
|
|
|
249
249
|
const DEFENDER_SETTINGS = {
|
|
@@ -272,8 +272,8 @@ const VMWARE_SETTINGS = {
|
|
|
272
272
|
ETL_VULN_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_VULN_ENABLED_KEY, false),
|
|
273
273
|
ETL_DEVICE_MANAGEMENT_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_MANAGEMENT_ENABLED_KEY, true),
|
|
274
274
|
ETL_DEVICE_SECURITY_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_SECURITY_ENABLED_KEY, false),
|
|
275
|
-
VMWARE_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('vmware.
|
|
276
|
-
VMWARE_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('vmware.
|
|
275
|
+
VMWARE_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('vmware.include.managed.apps', []),
|
|
276
|
+
VMWARE_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('vmware.exclude.managed.apps', []),
|
|
277
277
|
};
|
|
278
278
|
|
|
279
279
|
const ENTRA_SETTINGS = {
|