@ampsec/platform-client 47.0.0 → 47.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.
@@ -12,6 +12,9 @@ export type NotificationAddress = {
12
12
  /** Webhook URLs to which the notification is being sent */
13
13
  webhooks?: string[];
14
14
  };
15
+ export type SlackNotificationAddress = NotificationAddress & {
16
+ teamId: string;
17
+ };
15
18
  export type AssetNotificationContext = {
16
19
  /** Name of the asset */
17
20
  deviceName: string;
@@ -114,7 +117,7 @@ export type DeliveryStrategySpec = {
114
117
  /** Channel type that should be used for sending the notificaiton */
115
118
  kind: DeliveryStrategyKind;
116
119
  /** Recipient address to which the notification is being sent */
117
- to: NotificationAddress;
120
+ to: NotificationAddress | SlackNotificationAddress;
118
121
  };
119
122
  export type EmailDeliveryStrategySpec = DeliveryStrategySpec & {
120
123
  subject: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "47.0.0",
3
+ "version": "47.1.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -14,6 +14,10 @@ export type NotificationAddress = {
14
14
  webhooks?: string[];
15
15
  };
16
16
 
17
+ export type SlackNotificationAddress = NotificationAddress & {
18
+ teamId: string;
19
+ };
20
+
17
21
  export type AssetNotificationContext = {
18
22
  /** Name of the asset */
19
23
  deviceName: string;
@@ -127,7 +131,7 @@ export type DeliveryStrategySpec = {
127
131
  /** Channel type that should be used for sending the notificaiton */
128
132
  kind: DeliveryStrategyKind;
129
133
  /** Recipient address to which the notification is being sent */
130
- to: NotificationAddress;
134
+ to: NotificationAddress | SlackNotificationAddress;
131
135
  };
132
136
 
133
137
  export type EmailDeliveryStrategySpec = DeliveryStrategySpec & {