@ampsec/platform-client 53.0.0 → 54.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.
|
@@ -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?:
|
|
25
|
+
meta?: SlackMeta;
|
|
22
26
|
/** Calls to action to be included in the message */
|
|
23
27
|
actions: CallToAction[];
|
|
24
28
|
};
|
package/package.json
CHANGED
|
@@ -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?:
|
|
28
|
+
meta?: SlackMeta;
|
|
24
29
|
/** Calls to action to be included in the message */
|
|
25
30
|
actions: CallToAction[];
|
|
26
31
|
};
|