@ampsec/platform-client 17.5.0 → 18.0.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.
@@ -6,4 +6,5 @@ export * from './findingKind';
6
6
  export * from './finding.severity';
7
7
  export * from './finding.status';
8
8
  export * from './jobExecution.status';
9
+ export * from './riskContributor.type';
9
10
  export * from './saasComponentKind';
@@ -22,5 +22,6 @@ __exportStar(require("./findingKind"), exports);
22
22
  __exportStar(require("./finding.severity"), exports);
23
23
  __exportStar(require("./finding.status"), exports);
24
24
  __exportStar(require("./jobExecution.status"), exports);
25
+ __exportStar(require("./riskContributor.type"), exports);
25
26
  __exportStar(require("./saasComponentKind"), exports);
26
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iDAA+B;AAC/B,6CAA2B;AAC3B,qDAAmC;AACnC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iDAA+B;AAC/B,6CAA2B;AAC3B,qDAAmC;AACnC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,yDAAuC;AACvC,sDAAoC"}
@@ -0,0 +1,9 @@
1
+ export declare enum RiskContributorType {
2
+ IS_EXECUTIVE = "IS_EXECUTIVE",
3
+ MFA = "MFA",
4
+ PRODUCTION_ACCESS = "PRODUCTION_ACCESS",
5
+ PRIVILEGED_ACCESS = "PRIVILEGED_ACCESS",
6
+ TOOLING = "TOOLING",
7
+ TRAINING = "TRAINING",
8
+ VULNERABILITY = "VULNERABILITY"
9
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RiskContributorType = void 0;
4
+ /* eslint-disable no-unused-vars */
5
+ var RiskContributorType;
6
+ (function (RiskContributorType) {
7
+ RiskContributorType["IS_EXECUTIVE"] = "IS_EXECUTIVE";
8
+ RiskContributorType["MFA"] = "MFA";
9
+ RiskContributorType["PRODUCTION_ACCESS"] = "PRODUCTION_ACCESS";
10
+ RiskContributorType["PRIVILEGED_ACCESS"] = "PRIVILEGED_ACCESS";
11
+ RiskContributorType["TOOLING"] = "TOOLING";
12
+ RiskContributorType["TRAINING"] = "TRAINING";
13
+ RiskContributorType["VULNERABILITY"] = "VULNERABILITY";
14
+ })(RiskContributorType || (exports.RiskContributorType = RiskContributorType = {}));
15
+ //# sourceMappingURL=riskContributor.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"riskContributor.type.js","sourceRoot":"","sources":["../../../../src/dto/enums/riskContributor.type.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,oDAA6B,CAAA;IAC7B,kCAAW,CAAA;IACX,8DAAuC,CAAA;IACvC,8DAAuC,CAAA;IACvC,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,sDAA+B,CAAA;AACjC,CAAC,EARW,mBAAmB,mCAAnB,mBAAmB,QAQ9B"}
@@ -1,5 +1,8 @@
1
1
  import { BaseDto, BaseUpsertDto } from './base.dto';
2
+ import { RiskContributorType } from './enums';
2
3
  export type RiskContributorUpsertDto = BaseUpsertDto & {
4
+ /** Type of risk contributor */
5
+ type: RiskContributorType;
3
6
  /** Short descriptor of the risk contributor, e.g. V, P, etc... */
4
7
  displayValue: string;
5
8
  /** Description of the risk contributor */
@@ -1,6 +1,6 @@
1
1
  import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
2
2
  import { MetricResults } from './reportResults.dto';
3
- import { RiskContributorDto } from './riskContributors.dto';
3
+ import { RiskContributorUpsertDto } from './riskContributors.dto';
4
4
  export type UserUpsertDto = ChangeAwareUpsertDto & {
5
5
  /** Tenant ID */
6
6
  tid: string;
@@ -23,7 +23,7 @@ export type UserUpsertDto = ChangeAwareUpsertDto & {
23
23
  /** Employment start date used for calculating tenure */
24
24
  startDate?: string;
25
25
  /** Risk Contributors associated with the user */
26
- riskContributors: RiskContributorDto[];
26
+ riskContributors: RiskContributorUpsertDto[];
27
27
  /** Metrics associated with the user */
28
28
  metrics?: MetricResults;
29
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "17.5.0",
3
+ "version": "18.0.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -6,4 +6,5 @@ export * from './findingKind';
6
6
  export * from './finding.severity';
7
7
  export * from './finding.status';
8
8
  export * from './jobExecution.status';
9
+ export * from './riskContributor.type';
9
10
  export * from './saasComponentKind';
@@ -0,0 +1,10 @@
1
+ /* eslint-disable no-unused-vars */
2
+ export enum RiskContributorType {
3
+ IS_EXECUTIVE = 'IS_EXECUTIVE',
4
+ MFA = 'MFA',
5
+ PRODUCTION_ACCESS = 'PRODUCTION_ACCESS',
6
+ PRIVILEGED_ACCESS = 'PRIVILEGED_ACCESS',
7
+ TOOLING = 'TOOLING',
8
+ TRAINING = 'TRAINING',
9
+ VULNERABILITY = 'VULNERABILITY',
10
+ }
@@ -1,6 +1,9 @@
1
1
  import {BaseDto, BaseUpsertDto} from './base.dto';
2
+ import {RiskContributorType} from './enums';
2
3
 
3
4
  export type RiskContributorUpsertDto = BaseUpsertDto & {
5
+ /** Type of risk contributor */
6
+ type: RiskContributorType;
4
7
  /** Short descriptor of the risk contributor, e.g. V, P, etc... */
5
8
  displayValue: string;
6
9
  /** Description of the risk contributor */
@@ -1,6 +1,6 @@
1
1
  import {ChangeAwareDto, ChangeAwareUpsertDto} from './base.dto';
2
2
  import {MetricResults} from './reportResults.dto';
3
- import {RiskContributorDto} from './riskContributors.dto';
3
+ import {RiskContributorUpsertDto} from './riskContributors.dto';
4
4
 
5
5
  export type UserUpsertDto = ChangeAwareUpsertDto & {
6
6
  /** Tenant ID */
@@ -24,7 +24,7 @@ export type UserUpsertDto = ChangeAwareUpsertDto & {
24
24
  /** Employment start date used for calculating tenure */
25
25
  startDate?: string;
26
26
  /** Risk Contributors associated with the user */
27
- riskContributors: RiskContributorDto[];
27
+ riskContributors: RiskContributorUpsertDto[];
28
28
  /** Metrics associated with the user */
29
29
  metrics?: MetricResults;
30
30
  };