@ampsec/platform-client 53.0.0 → 54.1.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,5 +1,6 @@
1
1
  export declare enum Category {
2
2
  EDR = "EDR",
3
+ VULNERABILITY = "VULNERABILITY",
3
4
  /**
4
5
  * @deprecated Use IDENTITY instead
5
6
  */
@@ -5,6 +5,7 @@ exports.Category = void 0;
5
5
  var Category;
6
6
  (function (Category) {
7
7
  Category["EDR"] = "EDR";
8
+ Category["VULNERABILITY"] = "VULNERABILITY";
8
9
  /**
9
10
  * @deprecated Use IDENTITY instead
10
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"category.js","sourceRoot":"","sources":["../../../../src/dto/enums/category.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX;;OAEG;IACH,uBAAW,CAAA;IACX,iCAAqB,CAAA;IACrB,yCAA6B,CAAA;IAC7B,iCAAqB,CAAA;IACrB,uCAA2B,CAAA;AAC7B,CAAC,EAVW,QAAQ,wBAAR,QAAQ,QAUnB"}
1
+ {"version":3,"file":"category.js","sourceRoot":"","sources":["../../../../src/dto/enums/category.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,2CAA+B,CAAA;IAC/B;;OAEG;IACH,uBAAW,CAAA;IACX,iCAAqB,CAAA;IACrB,yCAA6B,CAAA;IAC7B,iCAAqB,CAAA;IACrB,uCAA2B,CAAA;AAC7B,CAAC,EAXW,QAAQ,wBAAR,QAAQ,QAWnB"}
@@ -8,6 +8,10 @@ export type MessageContent = {
8
8
  /** Additional information to be included in the message */
9
9
  additionalInfo?: string[];
10
10
  };
11
+ /** We'll need to add additional meta types as other messaging application are supported */
12
+ export type SlackMeta = {
13
+ teamId: string;
14
+ };
11
15
  export type ChannelMessageDto = Notifiable & {
12
16
  /** Slack user IDs to which the notification is being sent */
13
17
  users: string[] | number[];
@@ -18,7 +22,7 @@ export type ChannelMessageDto = Notifiable & {
18
22
  /** ID of the finding to which the notification is in regards to: required if the notification should allow for the user marking a finding as complete */
19
23
  fid?: string;
20
24
  /** Metadata for the message */
21
- meta?: unknown;
25
+ meta?: SlackMeta;
22
26
  /** Calls to action to be included in the message */
23
27
  actions: CallToAction[];
24
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "53.0.0",
3
+ "version": "54.1.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable no-unused-vars */
2
2
  export enum Category {
3
3
  EDR = 'EDR',
4
+ VULNERABILITY = 'VULNERABILITY',
4
5
  /**
5
6
  * @deprecated Use IDENTITY instead
6
7
  */
@@ -10,6 +10,11 @@ export type MessageContent = {
10
10
  additionalInfo?: string[];
11
11
  };
12
12
 
13
+ /** We'll need to add additional meta types as other messaging application are supported */
14
+ export type SlackMeta = {
15
+ teamId: string;
16
+ };
17
+
13
18
  export type ChannelMessageDto = Notifiable & {
14
19
  /** Slack user IDs to which the notification is being sent */
15
20
  users: string[] | number[];
@@ -20,7 +25,7 @@ export type ChannelMessageDto = Notifiable & {
20
25
  /** ID of the finding to which the notification is in regards to: required if the notification should allow for the user marking a finding as complete */
21
26
  fid?: string;
22
27
  /** Metadata for the message */
23
- meta?: unknown;
28
+ meta?: SlackMeta;
24
29
  /** Calls to action to be included in the message */
25
30
  actions: CallToAction[];
26
31
  };