@ampsec/platform-client 9.0.1 → 10.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.
@@ -18,10 +18,103 @@ export type TrendingMetric = BaseMetric & {
18
18
  /** Directional indicator: + = up, - = down, 0 = no change */
19
19
  delta: number;
20
20
  };
21
- export type MetricResultsSubsection = {
22
- [key: string]: BaseMetric[] | DescriptiveMetric[] | TrendingMetric[];
21
+ /**
22
+ * Metric results are a recursive structure that can contain any number of
23
+ * metric results, descriptive metrics, or trending metrics.
24
+ *
25
+ * Example: Health Score (`BasicMetric`)
26
+ * ```json
27
+ * {
28
+ * "health-score": {
29
+ * "kind": "BASE",
30
+ * "label": "health_medium_score_label",
31
+ * "value": 59
32
+ * }
33
+ * }
34
+ * ```
35
+ *
36
+ * Example: Training Deficiencies (`TrendingMetric`)
37
+ * ```json
38
+ * {
39
+ * "training-deficiencies": {
40
+ * "kind": "TRENDING",
41
+ * "label": "health_training_failed_phishing_label",
42
+ * "value": 6,
43
+ * "delta": -0.1
44
+ * }
45
+ * }
46
+ * ```
47
+ *
48
+ * Example: Workflow Tooling Employee Coverage (`DescriptiveMetric`)
49
+ * ```json
50
+ * {
51
+ * "report_tooling_total_employees_label": {
52
+ * "kind": "DESCRIPTIVE",
53
+ * "label": "health_training_failed_phishing_label",
54
+ * "value": 20,
55
+ * "ctxLabel": "trend_increased_by",
56
+ * "ctxValue": 32
57
+ * },
58
+ * "provider_zscaler_name": {
59
+ * "kind": "DESCRIPTIVE",
60
+ * "label": "provider_zscaler_name",
61
+ * "value": 14,
62
+ * "ctxLabel": "report_tooling_coverage_label",
63
+ * "ctxValue": 0.96
64
+ * }
65
+ * }
66
+ * ```
67
+ */
68
+ export type MetricResults = {
69
+ [kind: string]: MetricResults | BaseMetric | DescriptiveMetric | TrendingMetric;
23
70
  };
24
- export type MetricResults = MetricResultsSubsection[] | BaseMetric[] | DescriptiveMetric[] | TrendingMetric[];
71
+ /**
72
+ * Example: Health Score
73
+ * ```json
74
+ * {
75
+ * "extKey": "health-score",
76
+ * "ts": "2021-01-01T00:00:00.000Z",
77
+ * "results": {
78
+ * "health-score": {
79
+ * "kind": "BASE",
80
+ * "label": "health_medium_score_label",
81
+ * "value": 59
82
+ * }
83
+ * }
84
+ * }
85
+ * ```
86
+ *
87
+ * Example: Health Trend (6 months)
88
+ * ```json
89
+ * {
90
+ * "data": [
91
+ * {
92
+ * "extKey": "health-score",
93
+ * "ts": "2021-01-01T00:00:00.000Z",
94
+ * "results": {
95
+ * "health-score": {
96
+ * "kind": "BASE",
97
+ * "label": "health_medium_score_label",
98
+ * "value": 59
99
+ * }
100
+ * }
101
+ * },
102
+ * ...
103
+ * {
104
+ * "extKey": "health-score",
105
+ * "ts": "2021-06-01T00:00:00.000Z",
106
+ * "results": {
107
+ * "health-score": {
108
+ * "kind": "BASE",
109
+ * "label": "health_medium_score_label",
110
+ * "value": 59
111
+ * }
112
+ * }
113
+ * }
114
+ * ]
115
+ * }
116
+ * ```
117
+ */
25
118
  export type ReportResultUpsertDto = BaseUpsertDto & {
26
119
  /** External Id */
27
120
  extKey: string;
@@ -21,7 +21,7 @@ export declare class AmpApi {
21
21
  readonly connectors: AmpEntityService<ConnectorUpsertDto, ConnectorDto>;
22
22
  readonly findings: AmpDataService<FindingDto>;
23
23
  readonly providers: AmpDataService<ProviderDto>;
24
- readonly reports: AmpDataService<ReportResultDto>;
24
+ readonly reportResults: AmpDataService<ReportResultDto>;
25
25
  readonly saasAssets: AmpDataService<SaasAssetDto>;
26
26
  readonly saasComponents: AmpDataService<SaasComponentDto>;
27
27
  readonly saasUsers: AmpDataService<SaasUserDto>;
@@ -23,7 +23,7 @@ class AmpApi {
23
23
  this.connectors = new entity_service_1.AmpEntityServiceImpl(rest, 'connectors');
24
24
  this.findings = new data_service_1.AmpDataServiceImpl(rest, 'findings');
25
25
  this.providers = new data_service_1.AmpDataServiceImpl(rest, 'providers');
26
- this.reports = new data_service_1.AmpDataServiceImpl(rest, 'report_results');
26
+ this.reportResults = new data_service_1.AmpDataServiceImpl(rest, 'report_results');
27
27
  this.saasAssets = new data_service_1.AmpDataServiceImpl(rest, 'saas_assets');
28
28
  this.saasComponents = new data_service_1.AmpDataServiceImpl(rest, 'saas_components');
29
29
  this.saasUsers = new data_service_1.AmpDataServiceImpl(rest, 'saas_users');
@@ -1 +1 @@
1
- {"version":3,"file":"AmpApi.js","sourceRoot":"","sources":["../../../src/services/AmpApi.ts"],"names":[],"mappings":";;;AAgBA,qDAAwE;AACxE,iDAAkE;AAClE,iCAA0E;AAI1E;;;;;;;;;;;GAWG;AACH,MAAa,MAAM;IAajB,YAAY,IAAgB;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,qCAAoB,CAA2B,IAAI,EAAE,QAAQ,CAAC,CAAC;QACjF,IAAI,CAAC,KAAK,GAAG,IAAI,iCAAkB,CAAW,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC9D,IAAI,CAAC,UAAU,GAAG,IAAI,qCAAoB,CAAmC,IAAI,EAAE,YAAY,CAAC,CAAC;QACjG,IAAI,CAAC,QAAQ,GAAG,IAAI,iCAAkB,CAAa,IAAI,EAAE,UAAU,CAAC,CAAC;QACrE,IAAI,CAAC,SAAS,GAAG,IAAI,iCAAkB,CAAc,IAAI,EAAE,WAAW,CAAC,CAAC;QACxE,IAAI,CAAC,OAAO,GAAG,IAAI,iCAAkB,CAAkB,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAC/E,IAAI,CAAC,UAAU,GAAG,IAAI,iCAAkB,CAAe,IAAI,EAAE,aAAa,CAAC,CAAC;QAC5E,IAAI,CAAC,cAAc,GAAG,IAAI,iCAAkB,CAAmB,IAAI,EAAE,iBAAiB,CAAC,CAAC;QACxF,IAAI,CAAC,SAAS,GAAG,IAAI,iCAAkB,CAAc,IAAI,EAAE,YAAY,CAAC,CAAC;QACzE,IAAI,CAAC,OAAO,GAAG,IAAI,qCAAoB,CAA6B,IAAI,EAAE,QAAQ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AC,OAAO,GAAG,IAAI,qCAAoB,CAA6B,IAAI,EAAE,QAAQ,CAAC,CAAC;QACpF,IAAI,CAAC,KAAK,GAAG,IAAI,iCAAkB,CAAU,IAAI,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF;AA/BD,wBA+BC"}
@@ -20,7 +20,7 @@ export declare class AmpSdkServices {
20
20
  readonly connectors: AmpEntityService<PlatformConnectorUpsertDto, PlatformConnectorDto>;
21
21
  readonly findings: AmpSaaSEntityService<PlatformFindingUpsertDto, PlatformFindingDto>;
22
22
  readonly providers: AmpDataService<ProviderDto>;
23
- readonly reports: AmpSaaSEntityService<PlatformReportResultUpsertDto, PlatformReportResultDto>;
23
+ readonly reportResults: AmpSaaSEntityService<PlatformReportResultUpsertDto, PlatformReportResultDto>;
24
24
  readonly saasAssets: AmpSaaSEntityService<PlatformSaasAssetUpsertDto, PlatformSaasAssetDto>;
25
25
  readonly saasComponents: AmpSaaSEntityService<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>;
26
26
  readonly saasUsers: AmpSaaSEntityService<PlatformSaasUserUpsertDto, PlatformSaasUserDto>;
@@ -22,7 +22,7 @@ class AmpSdkServices {
22
22
  this.connectors = new entity_service_1.AmpEntityServiceImpl(rest, 'connectors', data_service_1.TARGET_API_PLATFORM);
23
23
  this.findings = new entity_service_1.AmpSaaSEntityServiceImpl(rest, 'findings', data_service_1.TARGET_API_PLATFORM);
24
24
  this.providers = new data_service_1.AmpDataServiceImpl(rest, 'providers', data_service_1.TARGET_API_AGENT);
25
- this.reports = new entity_service_1.AmpSaaSEntityServiceImpl(rest, 'report_results', data_service_1.TARGET_API_PLATFORM);
25
+ this.reportResults = new entity_service_1.AmpSaaSEntityServiceImpl(rest, 'report_results', data_service_1.TARGET_API_PLATFORM);
26
26
  this.saasAssets = new entity_service_1.AmpSaaSEntityServiceImpl(rest, 'saas_assets', data_service_1.TARGET_API_PLATFORM);
27
27
  this.saasComponents = new entity_service_1.AmpSaaSEntityServiceImpl(rest, 'saas_components', data_service_1.TARGET_API_PLATFORM);
28
28
  this.saasUsers = new entity_service_1.AmpSaaSEntityServiceImpl(rest, 'saas_users', data_service_1.TARGET_API_PLATFORM);
@@ -1 +1 @@
1
- {"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;AAuBA,qDAA4K;AAC5K,iDAAyG;AACzG,iCAA0E;AAI1E;;;;;;;;;;GAUG;AACH,MAAa,cAAc;IAazB,YAAY,IAAgB;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,qCAAoB,CAA2C,IAAI,EAAE,QAAQ,EAAE,kCAAmB,CAAC,CAAC;QACtH,IAAI,CAAC,KAAK,GAAG,IAAI,2CAA0B,CAA2C,IAAI,EAAE,QAAQ,EAAE,kCAAmB,CAAC,CAAC;QAC3H,IAAI,CAAC,UAAU,GAAG,IAAI,qCAAoB,CAAmD,IAAI,EAAE,YAAY,EAAE,kCAAmB,CAAC,CAAC;QACtI,IAAI,CAAC,QAAQ,GAAG,IAAI,yCAAwB,CAA+C,IAAI,EAAE,UAAU,EAAE,kCAAmB,CAAC,CAAC;QAClI,IAAI,CAAC,SAAS,GAAG,IAAI,iCAAkB,CAAc,IAAI,EAAE,WAAW,EAAE,+BAAgB,CAAC,CAAC;QAC1F,IAAI,CAAC,OAAO,GAAG,IAAI,yCAAwB,CAAyD,IAAI,EAAE,gBAAgB,EAAE,kCAAmB,CAAC,CAAC;QACjJ,IAAI,CAAC,UAAU,GAAG,IAAI,yCAAwB,CAAmD,IAAI,EAAE,aAAa,EAAE,kCAAmB,CAAC,CAAC;QAC3I,IAAI,CAAC,cAAc,GAAG,IAAI,yCAAwB,CAA2D,IAAI,EAAE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,yCAAwB,CAAyD,IAAI,EAAE,gBAAgB,EAAE,kCAAmB,CAAC,CAAC;QACvJ,IAAI,CAAC,UAAU,GAAG,IAAI,yCAAwB,CAAmD,IAAI,EAAE,aAAa,EAAE,kCAAmB,CAAC,CAAC;QAC3I,IAAI,CAAC,cAAc,GAAG,IAAI,yCAAwB,CAA2D,IAAI,EAAE,iBAAiB,EAAE,kCAAmB,CAAC,CAAC;QAC3J,IAAI,CAAC,SAAS,GAAG,IAAI,yCAAwB,CAAiD,IAAI,EAAE,YAAY,EAAE,kCAAmB,CAAC,CAAC;QACvI,IAAI,CAAC,OAAO,GAAG,IAAI,qCAAoB,CAA6B,IAAI,EAAE,SAAS,EAAE,kCAAmB,CAAC,CAAC;QAC1G,IAAI,CAAC,KAAK,GAAG,IAAI,2CAA0B,CAAyC,IAAI,EAAE,OAAO,EAAE,kCAAmB,CAAC,CAAC;IAC1H,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACF;AA/BD,wCA+BC"}
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "9.0.1",
3
+ "version": "10.1.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
+ "runkitExampleFilename": "example/main.js",
6
7
  "scripts": {
7
8
  "dev": "tsc --watch",
8
9
  "prebuild": "rimraf build",
@@ -10,8 +11,8 @@
10
11
  "predocs": "rimraf public",
11
12
  "docs": "typedoc --out public src/index.ts",
12
13
  "docs:serve": "serve public -p 3080",
13
- "lint": "gts lint",
14
- "clean": "gts clean",
14
+ "lint": "gts lint src",
15
+ "clean": "gts clean src",
15
16
  "fix": "gts fix",
16
17
  "test": "jest"
17
18
  },
@@ -22,12 +22,104 @@ export type TrendingMetric = BaseMetric & {
22
22
  delta: number;
23
23
  };
24
24
 
25
- export type MetricResultsSubsection = {
26
- [key: string]: BaseMetric[] | DescriptiveMetric[] | TrendingMetric[];
25
+ /**
26
+ * Metric results are a recursive structure that can contain any number of
27
+ * metric results, descriptive metrics, or trending metrics.
28
+ *
29
+ * Example: Health Score (`BasicMetric`)
30
+ * ```json
31
+ * {
32
+ * "health-score": {
33
+ * "kind": "BASE",
34
+ * "label": "health_medium_score_label",
35
+ * "value": 59
36
+ * }
37
+ * }
38
+ * ```
39
+ *
40
+ * Example: Training Deficiencies (`TrendingMetric`)
41
+ * ```json
42
+ * {
43
+ * "training-deficiencies": {
44
+ * "kind": "TRENDING",
45
+ * "label": "health_training_failed_phishing_label",
46
+ * "value": 6,
47
+ * "delta": -0.1
48
+ * }
49
+ * }
50
+ * ```
51
+ *
52
+ * Example: Workflow Tooling Employee Coverage (`DescriptiveMetric`)
53
+ * ```json
54
+ * {
55
+ * "report_tooling_total_employees_label": {
56
+ * "kind": "DESCRIPTIVE",
57
+ * "label": "health_training_failed_phishing_label",
58
+ * "value": 20,
59
+ * "ctxLabel": "trend_increased_by",
60
+ * "ctxValue": 32
61
+ * },
62
+ * "provider_zscaler_name": {
63
+ * "kind": "DESCRIPTIVE",
64
+ * "label": "provider_zscaler_name",
65
+ * "value": 14,
66
+ * "ctxLabel": "report_tooling_coverage_label",
67
+ * "ctxValue": 0.96
68
+ * }
69
+ * }
70
+ * ```
71
+ */
72
+ export type MetricResults = {
73
+ [kind: string]: MetricResults | BaseMetric | DescriptiveMetric | TrendingMetric;
27
74
  };
28
75
 
29
- export type MetricResults = MetricResultsSubsection[] | BaseMetric[] | DescriptiveMetric[] | TrendingMetric[];
30
-
76
+ /**
77
+ * Example: Health Score
78
+ * ```json
79
+ * {
80
+ * "extKey": "health-score",
81
+ * "ts": "2021-01-01T00:00:00.000Z",
82
+ * "results": {
83
+ * "health-score": {
84
+ * "kind": "BASE",
85
+ * "label": "health_medium_score_label",
86
+ * "value": 59
87
+ * }
88
+ * }
89
+ * }
90
+ * ```
91
+ *
92
+ * Example: Health Trend (6 months)
93
+ * ```json
94
+ * {
95
+ * "data": [
96
+ * {
97
+ * "extKey": "health-score",
98
+ * "ts": "2021-01-01T00:00:00.000Z",
99
+ * "results": {
100
+ * "health-score": {
101
+ * "kind": "BASE",
102
+ * "label": "health_medium_score_label",
103
+ * "value": 59
104
+ * }
105
+ * }
106
+ * },
107
+ * ...
108
+ * {
109
+ * "extKey": "health-score",
110
+ * "ts": "2021-06-01T00:00:00.000Z",
111
+ * "results": {
112
+ * "health-score": {
113
+ * "kind": "BASE",
114
+ * "label": "health_medium_score_label",
115
+ * "value": 59
116
+ * }
117
+ * }
118
+ * }
119
+ * ]
120
+ * }
121
+ * ```
122
+ */
31
123
  export type ReportResultUpsertDto = BaseUpsertDto & {
32
124
  /** External Id */
33
125
  extKey: string;
@@ -38,7 +38,7 @@ export class AmpApi {
38
38
  readonly connectors: AmpEntityService<ConnectorUpsertDto, ConnectorDto>;
39
39
  readonly findings: AmpDataService<FindingDto>;
40
40
  readonly providers: AmpDataService<ProviderDto>;
41
- readonly reports: AmpDataService<ReportResultDto>;
41
+ readonly reportResults: AmpDataService<ReportResultDto>;
42
42
  readonly saasAssets: AmpDataService<SaasAssetDto>;
43
43
  readonly saasComponents: AmpDataService<SaasComponentDto>;
44
44
  readonly saasUsers: AmpDataService<SaasUserDto>;
@@ -51,7 +51,7 @@ export class AmpApi {
51
51
  this.connectors = new AmpEntityServiceImpl<ConnectorUpsertDto, ConnectorDto>(rest, 'connectors');
52
52
  this.findings = new AmpDataServiceImpl<FindingDto>(rest, 'findings');
53
53
  this.providers = new AmpDataServiceImpl<ProviderDto>(rest, 'providers');
54
- this.reports = new AmpDataServiceImpl<ReportResultDto>(rest, 'report_results');
54
+ this.reportResults = new AmpDataServiceImpl<ReportResultDto>(rest, 'report_results');
55
55
  this.saasAssets = new AmpDataServiceImpl<SaasAssetDto>(rest, 'saas_assets');
56
56
  this.saasComponents = new AmpDataServiceImpl<SaasComponentDto>(rest, 'saas_components');
57
57
  this.saasUsers = new AmpDataServiceImpl<SaasUserDto>(rest, 'saas_users');
@@ -44,7 +44,7 @@ export class AmpSdkServices {
44
44
  readonly connectors: AmpEntityService<PlatformConnectorUpsertDto, PlatformConnectorDto>;
45
45
  readonly findings: AmpSaaSEntityService<PlatformFindingUpsertDto, PlatformFindingDto>;
46
46
  readonly providers: AmpDataService<ProviderDto>;
47
- readonly reports: AmpSaaSEntityService<PlatformReportResultUpsertDto, PlatformReportResultDto>;
47
+ readonly reportResults: AmpSaaSEntityService<PlatformReportResultUpsertDto, PlatformReportResultDto>;
48
48
  readonly saasAssets: AmpSaaSEntityService<PlatformSaasAssetUpsertDto, PlatformSaasAssetDto>;
49
49
  readonly saasComponents: AmpSaaSEntityService<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>;
50
50
  readonly saasUsers: AmpSaaSEntityService<PlatformSaasUserUpsertDto, PlatformSaasUserDto>;
@@ -57,7 +57,7 @@ export class AmpSdkServices {
57
57
  this.connectors = new AmpEntityServiceImpl<PlatformConnectorUpsertDto, PlatformConnectorDto>(rest, 'connectors', TARGET_API_PLATFORM);
58
58
  this.findings = new AmpSaaSEntityServiceImpl<PlatformFindingUpsertDto, PlatformFindingDto>(rest, 'findings', TARGET_API_PLATFORM);
59
59
  this.providers = new AmpDataServiceImpl<ProviderDto>(rest, 'providers', TARGET_API_AGENT);
60
- this.reports = new AmpSaaSEntityServiceImpl<PlatformReportResultUpsertDto, PlatformReportResultDto>(rest, 'report_results', TARGET_API_PLATFORM);
60
+ this.reportResults = new AmpSaaSEntityServiceImpl<PlatformReportResultUpsertDto, PlatformReportResultDto>(rest, 'report_results', TARGET_API_PLATFORM);
61
61
  this.saasAssets = new AmpSaaSEntityServiceImpl<PlatformSaasAssetUpsertDto, PlatformSaasAssetDto>(rest, 'saas_assets', TARGET_API_PLATFORM);
62
62
  this.saasComponents = new AmpSaaSEntityServiceImpl<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>(rest, 'saas_components', TARGET_API_PLATFORM);
63
63
  this.saasUsers = new AmpSaaSEntityServiceImpl<PlatformSaasUserUpsertDto, PlatformSaasUserDto>(rest, 'saas_users', TARGET_API_PLATFORM);