@ampsec/platform-client 13.9.0 → 15.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.
@@ -1,4 +1,5 @@
1
1
  export declare enum FindingStatus {
2
2
  OPEN = "OPEN",
3
- CLOSED = "CLOSED"
3
+ CLOSED = "CLOSED",
4
+ PENDING_VERIFICATION = "PENDING_VERIFICATION"
4
5
  }
@@ -6,5 +6,6 @@ var FindingStatus;
6
6
  (function (FindingStatus) {
7
7
  FindingStatus["OPEN"] = "OPEN";
8
8
  FindingStatus["CLOSED"] = "CLOSED";
9
+ FindingStatus["PENDING_VERIFICATION"] = "PENDING_VERIFICATION";
9
10
  })(FindingStatus || (exports.FindingStatus = FindingStatus = {}));
10
11
  //# sourceMappingURL=finding.status.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"finding.status.js","sourceRoot":"","sources":["../../../../src/dto/enums/finding.status.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"}
1
+ {"version":3,"file":"finding.status.js","sourceRoot":"","sources":["../../../../src/dto/enums/finding.status.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8DAA6C,CAAA;AAC/C,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
@@ -22,5 +22,13 @@ export type FindingUpsertDto = BaseUpsertDto & {
22
22
  uid?: string | undefined;
23
23
  /** Id of the SaasComponent related to the given finding */
24
24
  scid?: string | undefined | null;
25
+ /**
26
+ * Used as the naive implementation of notification schedules inside Flows.
27
+ * "Resets" notifications schedule after pause or failed verification.
28
+ * Defaults to "NOW".
29
+ */
30
+ startNotificationsAt?: string;
31
+ /** Number of times this finding was marked PENDING_VERIFIED. Defaults to `0` */
32
+ verificationCount?: number;
25
33
  };
26
34
  export type FindingDto = BaseDto & FindingUpsertDto;
@@ -2,6 +2,8 @@ import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
2
2
  export type SaasComponentUpsertDto = ChangeAwareUpsertDto & {
3
3
  /** Asset Id */
4
4
  aid?: string | undefined;
5
+ /** Category */
6
+ category: string;
5
7
  /** Connector Id */
6
8
  cid: string;
7
9
  /** */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "13.9.0",
3
+ "version": "15.0.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -2,4 +2,5 @@
2
2
  export enum FindingStatus {
3
3
  OPEN = 'OPEN',
4
4
  CLOSED = 'CLOSED',
5
+ PENDING_VERIFICATION = 'PENDING_VERIFICATION',
5
6
  }
@@ -23,6 +23,14 @@ export type FindingUpsertDto = BaseUpsertDto & {
23
23
  uid?: string | undefined;
24
24
  /** Id of the SaasComponent related to the given finding */
25
25
  scid?: string | undefined | null;
26
+ /**
27
+ * Used as the naive implementation of notification schedules inside Flows.
28
+ * "Resets" notifications schedule after pause or failed verification.
29
+ * Defaults to "NOW".
30
+ */
31
+ startNotificationsAt?: string;
32
+ /** Number of times this finding was marked PENDING_VERIFIED. Defaults to `0` */
33
+ verificationCount?: number;
26
34
  };
27
35
 
28
36
  export type FindingDto = BaseDto & FindingUpsertDto;
@@ -3,6 +3,8 @@ import {ChangeAwareDto, ChangeAwareUpsertDto} from './base.dto';
3
3
  export type SaasComponentUpsertDto = ChangeAwareUpsertDto & {
4
4
  /** Asset Id */
5
5
  aid?: string | undefined;
6
+ /** Category */
7
+ category: string;
6
8
  /** Connector Id */
7
9
  cid: string;
8
10
  /** */