Skip to content

Commit 799e1f6

Browse files
authored
feat: integrate multi-source v4 endpoint of exhort backend (#84)
* feat: integrate multi-source v4 endpoint of exhort backend Signed-off-by: Zvi Grinberg <[email protected]> * test: integration tests for v4 should be activated with EXHORT_DEV_MODE=true, as V4 multisource is not deployed yet to production Signed-off-by: Zvi Grinberg <[email protected]> --------- Signed-off-by: Zvi Grinberg <[email protected]>
1 parent 8c5de83 commit 799e1f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+721
-902
lines changed

generated/backend/DependencyAnalysis200Response.d.ts renamed to generated/backend/Analysis200Response.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/**
2-
* CodeReady Dependency Analytics API
3-
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
2+
* Exhort API
3+
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
44
*
5-
* OpenAPI spec version: 3.0.0
5+
* OpenAPI spec version: 4.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
99
* https://openapi-generator.tech
1010
* Do not edit the class manually.
1111
*/
1212
import { AnalysisReport } from '../backend/AnalysisReport';
13-
export declare class DependencyAnalysis200Response {
13+
export declare class Analysis200Response {
1414
'jsonReport'?: AnalysisReport;
1515
'htmlReport'?: any;
1616
static readonly discriminator: string | undefined;

generated/backend/DependencyAnalysis200Response.js renamed to generated/backend/Analysis200Response.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/**
2-
* CodeReady Dependency Analytics API
3-
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
2+
* Exhort API
3+
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
44
*
5-
* OpenAPI spec version: 3.0.0
5+
* OpenAPI spec version: 4.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
99
* https://openapi-generator.tech
1010
* Do not edit the class manually.
1111
*/
12-
export class DependencyAnalysis200Response {
12+
export class Analysis200Response {
1313
'jsonReport';
1414
'htmlReport';
1515
static discriminator = undefined;
@@ -28,7 +28,7 @@ export class DependencyAnalysis200Response {
2828
}
2929
];
3030
static getAttributeTypeMap() {
31-
return DependencyAnalysis200Response.attributeTypeMap;
31+
return Analysis200Response.attributeTypeMap;
3232
}
3333
constructor() {
3434
}

generated/backend/DependencyAnalysis200Response.ts renamed to generated/backend/Analysis200Response.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
2-
* CodeReady Dependency Analytics API
3-
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
2+
* Exhort API
3+
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
44
*
5-
* OpenAPI spec version: 3.0.0
5+
* OpenAPI spec version: 4.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
1212

1313
import { AnalysisReport } from '../backend/AnalysisReport';
1414

15-
export class DependencyAnalysis200Response {
15+
export class Analysis200Response {
1616
'jsonReport'?: AnalysisReport;
1717
'htmlReport'?: any;
1818

@@ -33,7 +33,7 @@ export class DependencyAnalysis200Response {
3333
} ];
3434

3535
static getAttributeTypeMap() {
36-
return DependencyAnalysis200Response.attributeTypeMap;
36+
return Analysis200Response.attributeTypeMap;
3737
}
3838

3939
public constructor() {

generated/backend/AnalysisReport.d.ts

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
/**
2-
* CodeReady Dependency Analytics API
3-
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
2+
* Exhort API
3+
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
44
*
5-
* OpenAPI spec version: 3.0.0
5+
* OpenAPI spec version: 4.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
99
* https://openapi-generator.tech
1010
* Do not edit the class manually.
1111
*/
12-
import { DependencyReport } from '../backend/DependencyReport';
13-
import { Summary } from '../backend/Summary';
12+
import { ProviderReport } from '../backend/ProviderReport';
13+
import { Scanned } from '../backend/Scanned';
1414
export declare class AnalysisReport {
15-
'summary'?: Summary;
16-
'dependencies'?: Array<DependencyReport>;
15+
'scanned'?: Scanned;
16+
'providers'?: {
17+
[key: string]: ProviderReport;
18+
};
1719
static readonly discriminator: string | undefined;
1820
static readonly attributeTypeMap: Array<{
1921
name: string;

generated/backend/AnalysisReport.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
/**
2-
* CodeReady Dependency Analytics API
3-
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
2+
* Exhort API
3+
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
44
*
5-
* OpenAPI spec version: 3.0.0
5+
* OpenAPI spec version: 4.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
99
* https://openapi-generator.tech
1010
* Do not edit the class manually.
1111
*/
1212
export class AnalysisReport {
13-
'summary';
14-
'dependencies';
13+
'scanned';
14+
'providers';
1515
static discriminator = undefined;
1616
static attributeTypeMap = [
1717
{
18-
"name": "summary",
19-
"baseName": "summary",
20-
"type": "Summary",
18+
"name": "scanned",
19+
"baseName": "scanned",
20+
"type": "Scanned",
2121
"format": ""
2222
},
2323
{
24-
"name": "dependencies",
25-
"baseName": "dependencies",
26-
"type": "Array<DependencyReport>",
24+
"name": "providers",
25+
"baseName": "providers",
26+
"type": "{ [key: string]: ProviderReport; }",
2727
"format": ""
2828
}
2929
];

generated/backend/AnalysisReport.ts

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
/**
2-
* CodeReady Dependency Analytics API
3-
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
2+
* Exhort API
3+
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
44
*
5-
* OpenAPI spec version: 3.0.0
5+
* OpenAPI spec version: 4.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
99
* https://openapi-generator.tech
1010
* Do not edit the class manually.
1111
*/
1212

13-
import { DependencyReport } from '../backend/DependencyReport';
14-
import { Summary } from '../backend/Summary';
13+
import { ProviderReport } from '../backend/ProviderReport';
14+
import { Scanned } from '../backend/Scanned';
1515

1616
export class AnalysisReport {
17-
'summary'?: Summary;
18-
'dependencies'?: Array<DependencyReport>;
17+
'scanned'?: Scanned;
18+
'providers'?: { [key: string]: ProviderReport; };
1919

2020
static readonly discriminator: string | undefined = undefined;
2121

2222
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
2323
{
24-
"name": "summary",
25-
"baseName": "summary",
26-
"type": "Summary",
24+
"name": "scanned",
25+
"baseName": "scanned",
26+
"type": "Scanned",
2727
"format": ""
2828
},
2929
{
30-
"name": "dependencies",
31-
"baseName": "dependencies",
32-
"type": "Array<DependencyReport>",
30+
"name": "providers",
31+
"baseName": "providers",
32+
"type": "{ [key: string]: ProviderReport; }",
3333
"format": ""
3434
} ];
3535

generated/backend/CvssVector.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
2-
* CodeReady Dependency Analytics API
3-
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
2+
* Exhort API
3+
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
44
*
5-
* OpenAPI spec version: 3.0.0
5+
* OpenAPI spec version: 4.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20,7 +20,7 @@ export declare class CvssVector {
2020
'availabilityImpact'?: string;
2121
'exploitCodeMaturity'?: string;
2222
'remediationLevel'?: string;
23-
'reportConficende'?: string;
23+
'reportConfidence'?: string;
2424
'cvss'?: string;
2525
static readonly discriminator: string | undefined;
2626
static readonly attributeTypeMap: Array<{

generated/backend/CvssVector.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
2-
* CodeReady Dependency Analytics API
3-
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
2+
* Exhort API
3+
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
44
*
5-
* OpenAPI spec version: 3.0.0
5+
* OpenAPI spec version: 4.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20,7 +20,7 @@ export class CvssVector {
2020
'availabilityImpact';
2121
'exploitCodeMaturity';
2222
'remediationLevel';
23-
'reportConficende';
23+
'reportConfidence';
2424
'cvss';
2525
static discriminator = undefined;
2626
static attributeTypeMap = [
@@ -85,8 +85,8 @@ export class CvssVector {
8585
"format": ""
8686
},
8787
{
88-
"name": "reportConficende",
89-
"baseName": "reportConficende",
88+
"name": "reportConfidence",
89+
"baseName": "reportConfidence",
9090
"type": "string",
9191
"format": ""
9292
},

generated/backend/CvssVector.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
2-
* CodeReady Dependency Analytics API
3-
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
2+
* Exhort API
3+
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
44
*
5-
* OpenAPI spec version: 3.0.0
5+
* OpenAPI spec version: 4.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ export class CvssVector {
2222
'availabilityImpact'?: string;
2323
'exploitCodeMaturity'?: string;
2424
'remediationLevel'?: string;
25-
'reportConficende'?: string;
25+
'reportConfidence'?: string;
2626
'cvss'?: string;
2727

2828
static readonly discriminator: string | undefined = undefined;
@@ -89,8 +89,8 @@ export class CvssVector {
8989
"format": ""
9090
},
9191
{
92-
"name": "reportConficende",
93-
"baseName": "reportConficende",
92+
"name": "reportConfidence",
93+
"baseName": "reportConfidence",
9494
"type": "string",
9595
"format": ""
9696
},

generated/backend/DependencyReport.d.ts

+10-14
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
/**
2-
* CodeReady Dependency Analytics API
3-
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
2+
* Exhort API
3+
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
44
*
5-
* OpenAPI spec version: 3.0.0
5+
* OpenAPI spec version: 4.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
99
* https://openapi-generator.tech
1010
* Do not edit the class manually.
1111
*/
12-
import { DependencyReportHighestVulnerability } from '../backend/DependencyReportHighestVulnerability';
13-
import { DependencyReportRecommendation } from '../backend/DependencyReportRecommendation';
1412
import { Issue } from '../backend/Issue';
15-
import { PackageRef } from '../backend/PackageRef';
16-
import { Remediation } from '../backend/Remediation';
1713
import { TransitiveDependencyReport } from '../backend/TransitiveDependencyReport';
1814
export declare class DependencyReport {
19-
'ref'?: PackageRef;
15+
/**
16+
* PackageURL used to identify a dependency artifact
17+
*/
18+
'ref'?: string;
2019
'issues'?: Array<Issue>;
2120
'transitive'?: Array<TransitiveDependencyReport>;
22-
'recommendation'?: DependencyReportRecommendation;
2321
/**
24-
* Trusted Content remediation related to identified security vulnerabilities
22+
* PackageURL used to identify a dependency artifact
2523
*/
26-
'remediations'?: {
27-
[key: string]: Remediation;
28-
};
29-
'highestVulnerability'?: DependencyReportHighestVulnerability;
24+
'recommendation'?: string;
25+
'highestVulnerability'?: Issue;
3026
static readonly discriminator: string | undefined;
3127
static readonly attributeTypeMap: Array<{
3228
name: string;

generated/backend/DependencyReport.js

+11-15
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
/**
2-
* CodeReady Dependency Analytics API
3-
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
2+
* Exhort API
3+
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
44
*
5-
* OpenAPI spec version: 3.0.0
5+
* OpenAPI spec version: 4.0.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
99
* https://openapi-generator.tech
1010
* Do not edit the class manually.
1111
*/
1212
export class DependencyReport {
13+
/**
14+
* PackageURL used to identify a dependency artifact
15+
*/
1316
'ref';
1417
'issues';
1518
'transitive';
16-
'recommendation';
1719
/**
18-
* Trusted Content remediation related to identified security vulnerabilities
20+
* PackageURL used to identify a dependency artifact
1921
*/
20-
'remediations';
22+
'recommendation';
2123
'highestVulnerability';
2224
static discriminator = undefined;
2325
static attributeTypeMap = [
2426
{
2527
"name": "ref",
2628
"baseName": "ref",
27-
"type": "PackageRef",
29+
"type": "string",
2830
"format": ""
2931
},
3032
{
@@ -42,19 +44,13 @@ export class DependencyReport {
4244
{
4345
"name": "recommendation",
4446
"baseName": "recommendation",
45-
"type": "DependencyReportRecommendation",
46-
"format": ""
47-
},
48-
{
49-
"name": "remediations",
50-
"baseName": "remediations",
51-
"type": "{ [key: string]: Remediation; }",
47+
"type": "string",
5248
"format": ""
5349
},
5450
{
5551
"name": "highestVulnerability",
5652
"baseName": "highestVulnerability",
57-
"type": "DependencyReportHighestVulnerability",
53+
"type": "Issue",
5854
"format": ""
5955
}
6056
];

0 commit comments

Comments
 (0)