@ampsec/platform-client 13.8.1 → 14.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;
@@ -124,7 +124,7 @@ export type ReportResultUpsertDto = BaseUpsertDto & {
124
124
  /** External Id */
125
125
  extKey: string;
126
126
  /** User Id */
127
- uid?: string;
127
+ uid?: string | null;
128
128
  /** Department */
129
129
  department?: string | null;
130
130
  /** Organization */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "13.8.1",
3
+ "version": "14.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;
@@ -130,7 +130,7 @@ export type ReportResultUpsertDto = BaseUpsertDto & {
130
130
  /** External Id */
131
131
  extKey: string;
132
132
  /** User Id */
133
- uid?: string;
133
+ uid?: string | null;
134
134
  /** Department */
135
135
  department?: string | null;
136
136
  /** Organization */