@trustify-da/trustify-da-api-model 2.0.0-SNAPSHOT

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.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # Trustify Dependency Analytics API Specification
2
+ Trustify Dependency Analytics API Specification
3
+
4
+ ## OpenAPI v5
5
+
6
+ Find the OpenAPI definition for V5 under the [/api](./api) folder
7
+
8
+ ## Generated data model
9
+
10
+ The Java and Javascript data models are generated at build time using the
11
+ [openapi-generator-maven-plugin](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin)
12
+
13
+ Run `mvn package` to generate it.
14
+
15
+ ## Use the Java generated data model
16
+
17
+ The packages are published to the GitHub maven repository. Make sure to add it to your settings or to your project configuration.
18
+
19
+ ```xml
20
+ <dependency>
21
+ <groupId>io.github.guacsec</groupId>
22
+ <artifactId>trustify-da-api-model</artifactId>
23
+ <version>2.0.0-SNAPSHOT</version>
24
+ </dependency>
25
+ ```
26
+
27
+ ## Use the Javascript data model
28
+
29
+ Add it to your project as follows:
30
+
31
+ ```bash
32
+ npm install @guacsec/trustify-da-api-model@2.0.0-SNAPSHOT
33
+ ```
@@ -0,0 +1 @@
1
+ 6b55686bc73c6fc0388cd2700072fdd9825078c3581e012d48c6530f1e2d997b
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { ProviderReport } from './ProviderReport';
14
+ import { Scanned } from './Scanned';
15
+
16
+ export class AnalysisReport {
17
+ 'scanned'?: Scanned;
18
+ 'providers'?: { [key: string]: ProviderReport; };
19
+
20
+ static readonly discriminator: string | undefined = undefined;
21
+
22
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
23
+ {
24
+ "name": "scanned",
25
+ "baseName": "scanned",
26
+ "type": "Scanned",
27
+ "format": ""
28
+ },
29
+ {
30
+ "name": "providers",
31
+ "baseName": "providers",
32
+ "type": "{ [key: string]: ProviderReport; }",
33
+ "format": ""
34
+ } ];
35
+
36
+ static getAttributeTypeMap() {
37
+ return AnalysisReport.attributeTypeMap;
38
+ }
39
+
40
+ public constructor() {
41
+ }
42
+ }
43
+
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { AnalysisReport } from './AnalysisReport';
14
+
15
+ export class AnalysisResponse {
16
+ 'jsonReport'?: AnalysisReport;
17
+ 'htmlReport'?: any;
18
+
19
+ static readonly discriminator: string | undefined = undefined;
20
+
21
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22
+ {
23
+ "name": "jsonReport",
24
+ "baseName": "json_report",
25
+ "type": "AnalysisReport",
26
+ "format": ""
27
+ },
28
+ {
29
+ "name": "htmlReport",
30
+ "baseName": "html_report",
31
+ "type": "any",
32
+ "format": ""
33
+ } ];
34
+
35
+ static getAttributeTypeMap() {
36
+ return AnalysisResponse.attributeTypeMap;
37
+ }
38
+
39
+ public constructor() {
40
+ }
41
+ }
42
+
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { AnalysisReport } from './AnalysisReport';
14
+
15
+ export class BatchAnalysis200Response {
16
+ 'jsonReport'?: { [key: string]: AnalysisReport; };
17
+ 'htmlReport'?: any;
18
+
19
+ static readonly discriminator: string | undefined = undefined;
20
+
21
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22
+ {
23
+ "name": "jsonReport",
24
+ "baseName": "json_report",
25
+ "type": "{ [key: string]: AnalysisReport; }",
26
+ "format": ""
27
+ },
28
+ {
29
+ "name": "htmlReport",
30
+ "baseName": "html_report",
31
+ "type": "any",
32
+ "format": ""
33
+ } ];
34
+
35
+ static getAttributeTypeMap() {
36
+ return BatchAnalysis200Response.attributeTypeMap;
37
+ }
38
+
39
+ public constructor() {
40
+ }
41
+ }
42
+
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ export class CvssVector {
15
+ 'attackVector'?: string;
16
+ 'attackComplexity'?: string;
17
+ 'privilegesRequired'?: string;
18
+ 'userInteraction'?: string;
19
+ 'scope'?: string;
20
+ 'confidentialityImpact'?: string;
21
+ 'integrityImpact'?: string;
22
+ 'availabilityImpact'?: string;
23
+ 'exploitCodeMaturity'?: string;
24
+ 'remediationLevel'?: string;
25
+ 'reportConfidence'?: string;
26
+ 'cvss'?: string;
27
+
28
+ static readonly discriminator: string | undefined = undefined;
29
+
30
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
31
+ {
32
+ "name": "attackVector",
33
+ "baseName": "attackVector",
34
+ "type": "string",
35
+ "format": ""
36
+ },
37
+ {
38
+ "name": "attackComplexity",
39
+ "baseName": "attackComplexity",
40
+ "type": "string",
41
+ "format": ""
42
+ },
43
+ {
44
+ "name": "privilegesRequired",
45
+ "baseName": "privilegesRequired",
46
+ "type": "string",
47
+ "format": ""
48
+ },
49
+ {
50
+ "name": "userInteraction",
51
+ "baseName": "userInteraction",
52
+ "type": "string",
53
+ "format": ""
54
+ },
55
+ {
56
+ "name": "scope",
57
+ "baseName": "scope",
58
+ "type": "string",
59
+ "format": ""
60
+ },
61
+ {
62
+ "name": "confidentialityImpact",
63
+ "baseName": "confidentialityImpact",
64
+ "type": "string",
65
+ "format": ""
66
+ },
67
+ {
68
+ "name": "integrityImpact",
69
+ "baseName": "integrityImpact",
70
+ "type": "string",
71
+ "format": ""
72
+ },
73
+ {
74
+ "name": "availabilityImpact",
75
+ "baseName": "availabilityImpact",
76
+ "type": "string",
77
+ "format": ""
78
+ },
79
+ {
80
+ "name": "exploitCodeMaturity",
81
+ "baseName": "exploitCodeMaturity",
82
+ "type": "string",
83
+ "format": ""
84
+ },
85
+ {
86
+ "name": "remediationLevel",
87
+ "baseName": "remediationLevel",
88
+ "type": "string",
89
+ "format": ""
90
+ },
91
+ {
92
+ "name": "reportConfidence",
93
+ "baseName": "reportConfidence",
94
+ "type": "string",
95
+ "format": ""
96
+ },
97
+ {
98
+ "name": "cvss",
99
+ "baseName": "cvss",
100
+ "type": "string",
101
+ "format": ""
102
+ } ];
103
+
104
+ static getAttributeTypeMap() {
105
+ return CvssVector.attributeTypeMap;
106
+ }
107
+
108
+ public constructor() {
109
+ }
110
+ }
111
+
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { Issue } from './Issue';
14
+ import { TransitiveDependencyReport } from './TransitiveDependencyReport';
15
+
16
+ export class DependencyReport {
17
+ /**
18
+ * PackageURL used to identify a dependency artifact
19
+ */
20
+ 'ref'?: string;
21
+ 'issues'?: Array<Issue>;
22
+ 'transitive'?: Array<TransitiveDependencyReport>;
23
+ /**
24
+ * PackageURL used to identify a dependency artifact
25
+ */
26
+ 'recommendation'?: string;
27
+ 'highestVulnerability'?: Issue;
28
+
29
+ static readonly discriminator: string | undefined = undefined;
30
+
31
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
32
+ {
33
+ "name": "ref",
34
+ "baseName": "ref",
35
+ "type": "string",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "issues",
40
+ "baseName": "issues",
41
+ "type": "Array<Issue>",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "transitive",
46
+ "baseName": "transitive",
47
+ "type": "Array<TransitiveDependencyReport>",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "recommendation",
52
+ "baseName": "recommendation",
53
+ "type": "string",
54
+ "format": ""
55
+ },
56
+ {
57
+ "name": "highestVulnerability",
58
+ "baseName": "highestVulnerability",
59
+ "type": "Issue",
60
+ "format": ""
61
+ } ];
62
+
63
+ static getAttributeTypeMap() {
64
+ return DependencyReport.attributeTypeMap;
65
+ }
66
+
67
+ public constructor() {
68
+ }
69
+ }
70
+
@@ -0,0 +1,95 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { CvssVector } from './CvssVector';
14
+ import { Remediation } from './Remediation';
15
+ import { Severity } from './Severity';
16
+
17
+ export class Issue {
18
+ 'id'?: string;
19
+ 'title'?: string;
20
+ 'source'?: string;
21
+ 'cvss'?: CvssVector;
22
+ 'cvssScore'?: number;
23
+ 'severity'?: Severity;
24
+ 'cves'?: Array<string>;
25
+ 'unique'?: boolean;
26
+ 'remediation'?: Remediation;
27
+
28
+ static readonly discriminator: string | undefined = undefined;
29
+
30
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
31
+ {
32
+ "name": "id",
33
+ "baseName": "id",
34
+ "type": "string",
35
+ "format": ""
36
+ },
37
+ {
38
+ "name": "title",
39
+ "baseName": "title",
40
+ "type": "string",
41
+ "format": ""
42
+ },
43
+ {
44
+ "name": "source",
45
+ "baseName": "source",
46
+ "type": "string",
47
+ "format": ""
48
+ },
49
+ {
50
+ "name": "cvss",
51
+ "baseName": "cvss",
52
+ "type": "CvssVector",
53
+ "format": ""
54
+ },
55
+ {
56
+ "name": "cvssScore",
57
+ "baseName": "cvssScore",
58
+ "type": "number",
59
+ "format": "float"
60
+ },
61
+ {
62
+ "name": "severity",
63
+ "baseName": "severity",
64
+ "type": "Severity",
65
+ "format": ""
66
+ },
67
+ {
68
+ "name": "cves",
69
+ "baseName": "cves",
70
+ "type": "Array<string>",
71
+ "format": ""
72
+ },
73
+ {
74
+ "name": "unique",
75
+ "baseName": "unique",
76
+ "type": "boolean",
77
+ "format": ""
78
+ },
79
+ {
80
+ "name": "remediation",
81
+ "baseName": "remediation",
82
+ "type": "Remediation",
83
+ "format": ""
84
+ } ];
85
+
86
+ static getAttributeTypeMap() {
87
+ return Issue.attributeTypeMap;
88
+ }
89
+
90
+ public constructor() {
91
+ }
92
+ }
93
+
94
+
95
+
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { ProviderStatus } from './ProviderStatus';
14
+ import { Source } from './Source';
15
+
16
+ export class ProviderReport {
17
+ 'status'?: ProviderStatus;
18
+ 'sources'?: { [key: string]: Source; };
19
+
20
+ static readonly discriminator: string | undefined = undefined;
21
+
22
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
23
+ {
24
+ "name": "status",
25
+ "baseName": "status",
26
+ "type": "ProviderStatus",
27
+ "format": ""
28
+ },
29
+ {
30
+ "name": "sources",
31
+ "baseName": "sources",
32
+ "type": "{ [key: string]: Source; }",
33
+ "format": ""
34
+ } ];
35
+
36
+ static getAttributeTypeMap() {
37
+ return ProviderReport.attributeTypeMap;
38
+ }
39
+
40
+ public constructor() {
41
+ }
42
+ }
43
+
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ export class ProviderStatus {
15
+ 'ok'?: boolean;
16
+ 'name'?: string;
17
+ 'code'?: number;
18
+ 'message'?: string;
19
+
20
+ static readonly discriminator: string | undefined = undefined;
21
+
22
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
23
+ {
24
+ "name": "ok",
25
+ "baseName": "ok",
26
+ "type": "boolean",
27
+ "format": ""
28
+ },
29
+ {
30
+ "name": "name",
31
+ "baseName": "name",
32
+ "type": "string",
33
+ "format": ""
34
+ },
35
+ {
36
+ "name": "code",
37
+ "baseName": "code",
38
+ "type": "number",
39
+ "format": ""
40
+ },
41
+ {
42
+ "name": "message",
43
+ "baseName": "message",
44
+ "type": "string",
45
+ "format": ""
46
+ } ];
47
+
48
+ static getAttributeTypeMap() {
49
+ return ProviderStatus.attributeTypeMap;
50
+ }
51
+
52
+ public constructor() {
53
+ }
54
+ }
55
+
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RemediationTrustedContent } from './RemediationTrustedContent';
14
+
15
+ export class Remediation {
16
+ 'fixedIn'?: Array<string>;
17
+ 'trustedContent'?: RemediationTrustedContent;
18
+
19
+ static readonly discriminator: string | undefined = undefined;
20
+
21
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22
+ {
23
+ "name": "fixedIn",
24
+ "baseName": "fixedIn",
25
+ "type": "Array<string>",
26
+ "format": ""
27
+ },
28
+ {
29
+ "name": "trustedContent",
30
+ "baseName": "trustedContent",
31
+ "type": "RemediationTrustedContent",
32
+ "format": ""
33
+ } ];
34
+
35
+ static getAttributeTypeMap() {
36
+ return Remediation.attributeTypeMap;
37
+ }
38
+
39
+ public constructor() {
40
+ }
41
+ }
42
+
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ export class RemediationTrustedContent {
15
+ /**
16
+ * PackageURL used to identify a dependency artifact
17
+ */
18
+ 'ref'?: string;
19
+ 'status'?: string;
20
+ 'justification'?: string;
21
+
22
+ static readonly discriminator: string | undefined = undefined;
23
+
24
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
25
+ {
26
+ "name": "ref",
27
+ "baseName": "ref",
28
+ "type": "string",
29
+ "format": ""
30
+ },
31
+ {
32
+ "name": "status",
33
+ "baseName": "status",
34
+ "type": "string",
35
+ "format": ""
36
+ },
37
+ {
38
+ "name": "justification",
39
+ "baseName": "justification",
40
+ "type": "string",
41
+ "format": ""
42
+ } ];
43
+
44
+ static getAttributeTypeMap() {
45
+ return RemediationTrustedContent.attributeTypeMap;
46
+ }
47
+
48
+ public constructor() {
49
+ }
50
+ }
51
+
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ /**
15
+ * Number of dependencies scanned
16
+ */
17
+ export class Scanned {
18
+ 'total'?: number;
19
+ 'direct'?: number;
20
+ 'transitive'?: number;
21
+
22
+ static readonly discriminator: string | undefined = undefined;
23
+
24
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
25
+ {
26
+ "name": "total",
27
+ "baseName": "total",
28
+ "type": "number",
29
+ "format": ""
30
+ },
31
+ {
32
+ "name": "direct",
33
+ "baseName": "direct",
34
+ "type": "number",
35
+ "format": ""
36
+ },
37
+ {
38
+ "name": "transitive",
39
+ "baseName": "transitive",
40
+ "type": "number",
41
+ "format": ""
42
+ } ];
43
+
44
+ static getAttributeTypeMap() {
45
+ return Scanned.attributeTypeMap;
46
+ }
47
+
48
+ public constructor() {
49
+ }
50
+ }
51
+
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ export enum Severity {
15
+ Critical = 'CRITICAL',
16
+ High = 'HIGH',
17
+ Medium = 'MEDIUM',
18
+ Low = 'LOW'
19
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { DependencyReport } from './DependencyReport';
14
+ import { SourceSummary } from './SourceSummary';
15
+ import { UnscannedDependency } from './UnscannedDependency';
16
+
17
+ export class Source {
18
+ 'summary'?: SourceSummary;
19
+ 'dependencies'?: Array<DependencyReport>;
20
+ 'unscanned'?: Array<UnscannedDependency>;
21
+
22
+ static readonly discriminator: string | undefined = undefined;
23
+
24
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
25
+ {
26
+ "name": "summary",
27
+ "baseName": "summary",
28
+ "type": "SourceSummary",
29
+ "format": ""
30
+ },
31
+ {
32
+ "name": "dependencies",
33
+ "baseName": "dependencies",
34
+ "type": "Array<DependencyReport>",
35
+ "format": ""
36
+ },
37
+ {
38
+ "name": "unscanned",
39
+ "baseName": "unscanned",
40
+ "type": "Array<UnscannedDependency>",
41
+ "format": ""
42
+ } ];
43
+
44
+ static getAttributeTypeMap() {
45
+ return Source.attributeTypeMap;
46
+ }
47
+
48
+ public constructor() {
49
+ }
50
+ }
51
+
@@ -0,0 +1,104 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ export class SourceSummary {
15
+ 'direct'?: number;
16
+ 'transitive'?: number;
17
+ 'total'?: number;
18
+ 'dependencies'?: number;
19
+ 'critical'?: number;
20
+ 'high'?: number;
21
+ 'medium'?: number;
22
+ 'low'?: number;
23
+ 'remediations'?: number;
24
+ 'recommendations'?: number;
25
+ 'unscanned'?: number;
26
+
27
+ static readonly discriminator: string | undefined = undefined;
28
+
29
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
30
+ {
31
+ "name": "direct",
32
+ "baseName": "direct",
33
+ "type": "number",
34
+ "format": ""
35
+ },
36
+ {
37
+ "name": "transitive",
38
+ "baseName": "transitive",
39
+ "type": "number",
40
+ "format": ""
41
+ },
42
+ {
43
+ "name": "total",
44
+ "baseName": "total",
45
+ "type": "number",
46
+ "format": ""
47
+ },
48
+ {
49
+ "name": "dependencies",
50
+ "baseName": "dependencies",
51
+ "type": "number",
52
+ "format": ""
53
+ },
54
+ {
55
+ "name": "critical",
56
+ "baseName": "critical",
57
+ "type": "number",
58
+ "format": ""
59
+ },
60
+ {
61
+ "name": "high",
62
+ "baseName": "high",
63
+ "type": "number",
64
+ "format": ""
65
+ },
66
+ {
67
+ "name": "medium",
68
+ "baseName": "medium",
69
+ "type": "number",
70
+ "format": ""
71
+ },
72
+ {
73
+ "name": "low",
74
+ "baseName": "low",
75
+ "type": "number",
76
+ "format": ""
77
+ },
78
+ {
79
+ "name": "remediations",
80
+ "baseName": "remediations",
81
+ "type": "number",
82
+ "format": ""
83
+ },
84
+ {
85
+ "name": "recommendations",
86
+ "baseName": "recommendations",
87
+ "type": "number",
88
+ "format": ""
89
+ },
90
+ {
91
+ "name": "unscanned",
92
+ "baseName": "unscanned",
93
+ "type": "number",
94
+ "format": ""
95
+ } ];
96
+
97
+ static getAttributeTypeMap() {
98
+ return SourceSummary.attributeTypeMap;
99
+ }
100
+
101
+ public constructor() {
102
+ }
103
+ }
104
+
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { Issue } from './Issue';
14
+
15
+ export class TransitiveDependencyReport {
16
+ /**
17
+ * PackageURL used to identify a dependency artifact
18
+ */
19
+ 'ref'?: string;
20
+ 'issues'?: Array<Issue>;
21
+ 'highestVulnerability'?: Issue;
22
+
23
+ static readonly discriminator: string | undefined = undefined;
24
+
25
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
26
+ {
27
+ "name": "ref",
28
+ "baseName": "ref",
29
+ "type": "string",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "issues",
34
+ "baseName": "issues",
35
+ "type": "Array<Issue>",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "highestVulnerability",
40
+ "baseName": "highestVulnerability",
41
+ "type": "Issue",
42
+ "format": ""
43
+ } ];
44
+
45
+ static getAttributeTypeMap() {
46
+ return TransitiveDependencyReport.attributeTypeMap;
47
+ }
48
+
49
+ public constructor() {
50
+ }
51
+ }
52
+
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ export class UnscannedDependency {
15
+ /**
16
+ * PackageURL used to identify a dependency artifact
17
+ */
18
+ 'ref'?: string;
19
+ 'reason'?: string;
20
+
21
+ static readonly discriminator: string | undefined = undefined;
22
+
23
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
24
+ {
25
+ "name": "ref",
26
+ "baseName": "ref",
27
+ "type": "string",
28
+ "format": ""
29
+ },
30
+ {
31
+ "name": "reason",
32
+ "baseName": "reason",
33
+ "type": "string",
34
+ "format": ""
35
+ } ];
36
+
37
+ static getAttributeTypeMap() {
38
+ return UnscannedDependency.attributeTypeMap;
39
+ }
40
+
41
+ public constructor() {
42
+ }
43
+ }
44
+
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@trustify-da/trustify-da-api-model",
3
+ "version": "2.0.0-SNAPSHOT",
4
+ "description": "Trustify :: Dependency Analytics :: API",
5
+ "author": "Trustify Dependency Analytics Authors",
6
+ "type": "commonjs",
7
+ "files": [
8
+ "model/"
9
+ ],
10
+ "exports": {
11
+ "./model/v5/*": {
12
+ "require": "./model/v5/*",
13
+ "import": "./model/v5/*",
14
+ "types": "./model/v5/*"
15
+ }
16
+ },
17
+ "publishConfig": {
18
+ "@trustify-da:registry": "https://registry.npmjs.org/"
19
+ },
20
+ "homepage": "https://github.com/guacsec/trustify-da-api-spec#README.md",
21
+ "bugs": "https://github.com/guacsec/trustify-da-api-spec/issues",
22
+ "scripts": {
23
+ "lint": "eslint model/**/* --ext js,ts --fix",
24
+ "precompile": "rm -rf dist && npm run lint",
25
+ "compile": "tsc -p tsconfig.json",
26
+ "fix-types": "node fix-types.js",
27
+ "publish:snapshot": "npm version ${BASE_VERSION:-${project.version}}-rc.${RC_VERSION:-0} --no-git-tag-version && npm publish --tag rc --access public --provenance",
28
+ "publish:release": "npm publish --access public --provenance"
29
+ },
30
+ "keywords": [
31
+ "analysis",
32
+ "codeready",
33
+ "trustify",
34
+ "dependency-analytics",
35
+ "secure",
36
+ "supply-chain",
37
+ "vulnerability"
38
+ ],
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "https://github.com/guacsec/trustify-da-api-spec"
42
+ },
43
+ "license": "Apache-2.0",
44
+ "devDependencies": {
45
+ "@types/node": "^20.9.0",
46
+ "@typescript-eslint/eslint-plugin": "^6.10.0",
47
+ "@typescript-eslint/parser": "^6.10.0",
48
+ "eslint": "^8.53.0",
49
+ "eslint-plugin-react": "^7.33.2",
50
+ "eslint-plugin-unused-imports": "^3.0.0",
51
+ "typescript": "^5.2.2",
52
+ "glob": "^10.3.10"
53
+ }
54
+ }