@ampsec/platform-client 41.0.0 → 42.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.
@@ -11,6 +11,10 @@ export type NotificationAddress = {
11
11
  /** Webhook URLs to which the notification is being sent */
12
12
  webhooks?: string[];
13
13
  };
14
+ export type AssetNotificationContext = {
15
+ /** Name of the asset */
16
+ deviceName: string;
17
+ };
14
18
  export type FindingNotificationContext = {
15
19
  /** Severity of the finding */
16
20
  severity: FindingSeverity;
@@ -19,6 +23,14 @@ export type FindingNotificationContext = {
19
23
  /** Kind of the finding */
20
24
  kind: FindingKind;
21
25
  };
26
+ export type TrainingNotificationContext = {
27
+ /** Title of the training */
28
+ title: string;
29
+ /** Date enrolled in the training */
30
+ enrollDate: string | null | undefined;
31
+ /** Date started the training */
32
+ startDate: string | null | undefined;
33
+ };
22
34
  export type UserNotificationContext = {
23
35
  /** First name of the user */
24
36
  firstName: string;
@@ -31,13 +43,15 @@ export type UserNotificationContext = {
31
43
  };
32
44
  export type ProviderNotificationContext = {
33
45
  /** Name of the provider */
34
- displayValue: string;
35
- /** Categories to which the provider applies */
36
- categories: string[];
46
+ softwareName: string;
37
47
  };
38
48
  export type NotificationContext = {
49
+ /** Estimated completion time for the remediation described by the notification */
50
+ estimatedCompletionTime: number;
51
+ asset?: AssetNotificationContext;
39
52
  finding?: FindingNotificationContext;
40
53
  provider?: ProviderNotificationContext;
54
+ training?: TrainingNotificationContext;
41
55
  user?: UserNotificationContext;
42
56
  };
43
57
  export type ContentStrategySpecification = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "41.0.0",
3
+ "version": "42.0.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -13,6 +13,11 @@ export type NotificationAddress = {
13
13
  webhooks?: string[];
14
14
  };
15
15
 
16
+ export type AssetNotificationContext = {
17
+ /** Name of the asset */
18
+ deviceName: string;
19
+ };
20
+
16
21
  export type FindingNotificationContext = {
17
22
  /** Severity of the finding */
18
23
  severity: FindingSeverity;
@@ -22,6 +27,15 @@ export type FindingNotificationContext = {
22
27
  kind: FindingKind;
23
28
  };
24
29
 
30
+ export type TrainingNotificationContext = {
31
+ /** Title of the training */
32
+ title: string;
33
+ /** Date enrolled in the training */
34
+ enrollDate: string | null | undefined;
35
+ /** Date started the training */
36
+ startDate: string | null | undefined;
37
+ };
38
+
25
39
  export type UserNotificationContext = {
26
40
  /** First name of the user */
27
41
  firstName: string;
@@ -35,16 +49,18 @@ export type UserNotificationContext = {
35
49
 
36
50
  export type ProviderNotificationContext = {
37
51
  /** Name of the provider */
38
- displayValue: string;
39
- /** Categories to which the provider applies */
40
- categories: string[];
52
+ softwareName: string;
41
53
  };
42
54
 
43
55
  export type NotificationContext = {
44
56
  // TODO: determine what this should be
45
57
  // component?: ComponentNotificationContext;
58
+ /** Estimated completion time for the remediation described by the notification */
59
+ estimatedCompletionTime: number;
60
+ asset?: AssetNotificationContext;
46
61
  finding?: FindingNotificationContext;
47
62
  provider?: ProviderNotificationContext;
63
+ training?: TrainingNotificationContext;
48
64
  user?: UserNotificationContext;
49
65
  };
50
66