@ampsec/platform-client 58.4.0 → 58.5.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,6 +1,7 @@
1
1
  import { AgentDto, AgentUpsertDto, AssetDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, UserDto } from '../dto';
2
2
  import { AmpEntityService, AmpDataService, AmpReportService, AmpSettingsService, ConnectorsService, FindingsInsightsService, FindingsService, NotificationService, PredictionService } from '.';
3
3
  import { AmpRestClientOptions, AgentIdentityService, ConnectorInstallService, EnumService, RestClient } from './rest';
4
+ import { UsersInsightsService } from './usersInsights.service';
4
5
  export type AmpApiOptions = AmpRestClientOptions;
5
6
  /**
6
7
  * AMP API
@@ -33,6 +34,7 @@ export declare class AmpApi {
33
34
  readonly settings: AmpSettingsService;
34
35
  readonly tenants: AmpEntityService<TenantUpsertDto, TenantDto>;
35
36
  readonly users: AmpDataService<UserDto>;
37
+ readonly usersInsights: UsersInsightsService;
36
38
  readonly prediction: PredictionService;
37
39
  constructor(rest: RestClient);
38
40
  static instance(options: AmpApiOptions): AmpApi;
@@ -4,6 +4,7 @@ exports.AmpApi = void 0;
4
4
  const _1 = require(".");
5
5
  const constants_1 = require("./constants");
6
6
  const rest_1 = require("./rest");
7
+ const usersInsights_service_1 = require("./usersInsights.service");
7
8
  /**
8
9
  * AMP API
9
10
  * This client is a wrapper around the AMP REST API meant to be used by
@@ -36,6 +37,7 @@ class AmpApi {
36
37
  this.settings = new _1.AmpSettingsService(rest);
37
38
  this.tenants = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.TENANTS);
38
39
  this.users = new _1.AmpDataServiceImpl(rest, constants_1.KIND.USERS);
40
+ this.usersInsights = new usersInsights_service_1.UsersInsightsService(rest);
39
41
  this.prediction = new _1.PredictionService(rest, constants_1.KIND.FINDINGS);
40
42
  }
41
43
  static instance(options) {
@@ -1 +1 @@
1
- {"version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AC,KAAK,CAAC,CAAC;QAC/D,IAAI,CAAC,aAAa,GAAG,IAAI,4CAAoB,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAiB,CAAC,IAAI,EAAE,gBAAI,CAAC,QAAQ,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF;AAjDD,wBAiDC"}
@@ -26,6 +26,7 @@ export declare const KIND: {
26
26
  SAAS_USERS: string;
27
27
  TENANTS: string;
28
28
  USERS: string;
29
+ USERS_INSIGHTS: string;
29
30
  WORKFLOW_PROGRESS: string;
30
31
  };
31
32
  export declare const REPORTS: {
@@ -25,6 +25,7 @@ exports.KIND = {
25
25
  SAAS_USERS: 'saas_users',
26
26
  TENANTS: 'tenants',
27
27
  USERS: 'users',
28
+ USERS_INSIGHTS: 'coverage',
28
29
  WORKFLOW_PROGRESS: 'workflow_progress',
29
30
  };
30
31
  exports.REPORTS = {
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/services/constants.ts"],"names":[],"mappings":";;;AAIa,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAGhC,QAAA,mBAAmB,GAAc,UAAU,CAAC;AAC5C,QAAA,gBAAgB,GAAc,KAAK,CAAC;AACpC,QAAA,iBAAiB,GAAc,KAAK,CAAC;AAErC,QAAA,IAAI,GAAG;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,gBAAgB,EAAE,aAAa;IAC/B,kBAAkB,EAAE,eAAe;IACnC,WAAW,EAAE,QAAQ;IACrB,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,mBAAmB;IACtC,cAAc,EAAE,gBAAgB;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AAS,EAAE,WAAW;IACtB,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,UAAU;IAC1B,iBAAiB,EAAE,mBAAmB;CACvC,CAAC;AAEW,QAAA,OAAO,GAAG;IACrB,YAAY,EAAE,cAAc;IAC5B,yBAAyB,EAAE,qCAAqC;IAChE,yBAAyB,EAAE,qCAAqC;IAChE,gBAAgB,EAAE,kBAAkB;IACpC,iBAAiB,EAAE,mBAAmB;IACtC,qBAAqB,EAAE,uBAAuB;IAC9C,2BAA2B,EAAE,6BAA6B;IAC1D,YAAY,EAAE,0BAA0B;IACxC,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;IACpC,WAAW,EAAE,aAAa;IAC1B,mBAAmB;IACnB,kBAAkB,EAAE,sBAAsB;CAC3C,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { UserCoverageReport, UserCoverageSummary } from '../dto';
2
+ import { ErrorHandler } from './constants';
3
+ import { RestClient, RestRequest } from './rest';
4
+ export declare class UsersInsightsService {
5
+ protected call: <T>(req: RestRequest, errorHandler: ErrorHandler<T>) => Promise<T>;
6
+ protected readonly rest: RestClient;
7
+ protected readonly kind: string;
8
+ protected readonly targetApi: string;
9
+ constructor(rest: RestClient, kind?: string, targetApi?: string);
10
+ list: () => Promise<UserCoverageSummary>;
11
+ get: (uid: string) => Promise<UserCoverageReport>;
12
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UsersInsightsService = void 0;
4
+ const constants_1 = require("./constants");
5
+ class UsersInsightsService {
6
+ constructor(rest, kind = constants_1.KIND.USERS_INSIGHTS, targetApi = 'api') {
7
+ this.call = async (req, errorHandler) => {
8
+ try {
9
+ const res = await this.rest.call(req);
10
+ return res.data;
11
+ }
12
+ catch (error) {
13
+ if (error instanceof Error) {
14
+ console.error(error.message);
15
+ }
16
+ if (this.rest.strict) {
17
+ throw error;
18
+ }
19
+ return errorHandler(error);
20
+ }
21
+ };
22
+ this.list = () => {
23
+ return this.call({
24
+ url: `/${this.targetApi}/v1/insights/coverage`,
25
+ method: 'GET',
26
+ }, () => ({}));
27
+ };
28
+ this.get = (uid) => {
29
+ return this.call({
30
+ url: `/${this.targetApi}/v1/insights/coverage/${uid}`,
31
+ method: 'GET',
32
+ }, () => ({}));
33
+ };
34
+ this.rest = rest;
35
+ this.kind = kind;
36
+ this.targetApi = targetApi;
37
+ }
38
+ }
39
+ exports.UsersInsightsService = UsersInsightsService;
40
+ //# sourceMappingURL=usersInsights.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usersInsights.service.js","sourceRoot":"","sources":["../../../src/services/usersInsights.service.ts"],"names":[],"mappings":";;;AACA,2CAA+C;AAG/C,MAAa,oBAAoB;IAoB/B,YAAY,IAAgB,EAAE,OAAe,gBAAI,CAAC,cAAc,EAAE,SAAS,GAAG,KAAK;QAnBzE,SAAI,GAAG,KAAK,EAAK,GAAgB,EAAE,YAA6B,EAAc,EAAE;YACxF,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACtC,OAAO,GAAG,CAAC,IAAS,CAAC;YACvB,CAAC;YAAC,OAAO,KAAc,EAAE,CAAC;gBACxB,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;oBAC3B,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBAC/B,CAAC;gBACD,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;oBACrB,MAAM,KAAK,CAAC;gBACd,CAAC;gBACD,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;YAC7B,CAAC;QACH,CAAC,CAAC;QAYF,SAAI,GAAG,GAAiC,EAAE;YACxC,OAAO,IAAI,CAAC,IAAI,CACd;gBACE,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,uBAAuB;gBAC9C,MAAM,EAAE,KAAK;aACd,EACD,GAAG,EAAE,CAAC,CAAC,EAAE,CAAwB,CAClC,CAAC;QACJ,CAAC,CAAC;QAEF,QAAG,GAAG,CAAC,GAAW,EAA+B,EAAE;YACjD,OAAO,IAAI,CAAC,IAAI,CACd;gBACE,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,yBAAyB,GAAG,EAAE;gBACrD,MAAM,EAAE,KAAK;aACd,EACD,GAAG,EAAE,CAAC,CAAC,EAAE,CAAuB,CACjC,CAAC;QACJ,CAAC,CAAC;QAvBA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CAqBF;AA7CD,oDA6CC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "58.4.0",
3
+ "version": "58.5.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -15,6 +15,7 @@ import {
15
15
  } from '.';
16
16
  import {KIND, TARGET_API_AGENT} from './constants';
17
17
  import {getAmpRestClient, AmpRestClientOptions, AgentIdentityService, ConnectorInstallService, DefaultEnumService, EnumService, RestClient} from './rest';
18
+ import {UsersInsightsService} from './usersInsights.service';
18
19
 
19
20
  export type AmpApiOptions = AmpRestClientOptions;
20
21
 
@@ -49,6 +50,7 @@ export class AmpApi {
49
50
  readonly settings: AmpSettingsService;
50
51
  readonly tenants: AmpEntityService<TenantUpsertDto, TenantDto>;
51
52
  readonly users: AmpDataService<UserDto>;
53
+ readonly usersInsights: UsersInsightsService;
52
54
  readonly prediction: PredictionService;
53
55
 
54
56
  constructor(rest: RestClient) {
@@ -70,6 +72,7 @@ export class AmpApi {
70
72
  this.settings = new AmpSettingsService(rest);
71
73
  this.tenants = new AmpEntityServiceImpl<TenantUpsertDto, TenantDto>(rest, KIND.TENANTS);
72
74
  this.users = new AmpDataServiceImpl<UserDto>(rest, KIND.USERS);
75
+ this.usersInsights = new UsersInsightsService(rest);
73
76
  this.prediction = new PredictionService(rest, KIND.FINDINGS);
74
77
  }
75
78
 
@@ -29,6 +29,7 @@ export const KIND = {
29
29
  SAAS_USERS: 'saas_users',
30
30
  TENANTS: 'tenants',
31
31
  USERS: 'users',
32
+ USERS_INSIGHTS: 'coverage',
32
33
  WORKFLOW_PROGRESS: 'workflow_progress',
33
34
  };
34
35
 
@@ -0,0 +1,50 @@
1
+ import {UserCoverageReport, UserCoverageSummary} from '../dto';
2
+ import {ErrorHandler, KIND} from './constants';
3
+ import {RestClient, RestRequest} from './rest';
4
+
5
+ export class UsersInsightsService {
6
+ protected call = async <T>(req: RestRequest, errorHandler: ErrorHandler<T>): Promise<T> => {
7
+ try {
8
+ const res = await this.rest.call(req);
9
+ return res.data as T;
10
+ } catch (error: unknown) {
11
+ if (error instanceof Error) {
12
+ console.error(error.message);
13
+ }
14
+ if (this.rest.strict) {
15
+ throw error;
16
+ }
17
+ return errorHandler(error);
18
+ }
19
+ };
20
+
21
+ protected readonly rest: RestClient;
22
+ protected readonly kind: string;
23
+ protected readonly targetApi: string;
24
+
25
+ constructor(rest: RestClient, kind: string = KIND.USERS_INSIGHTS, targetApi = 'api') {
26
+ this.rest = rest;
27
+ this.kind = kind;
28
+ this.targetApi = targetApi;
29
+ }
30
+
31
+ list = (): Promise<UserCoverageSummary> => {
32
+ return this.call<UserCoverageSummary>(
33
+ {
34
+ url: `/${this.targetApi}/v1/insights/coverage`,
35
+ method: 'GET',
36
+ },
37
+ () => ({}) as UserCoverageSummary
38
+ );
39
+ };
40
+
41
+ get = (uid: string): Promise<UserCoverageReport> => {
42
+ return this.call<UserCoverageReport>(
43
+ {
44
+ url: `/${this.targetApi}/v1/insights/coverage/${uid}`,
45
+ method: 'GET',
46
+ },
47
+ () => ({}) as UserCoverageReport
48
+ );
49
+ };
50
+ }