Skip to content

Commit

Permalink
feat: integrate multi-source v4 endpoint of exhort backend
Browse files Browse the repository at this point in the history
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
  • Loading branch information
zvigrinberg committed Nov 5, 2023
1 parent 7f29581 commit d251ac6
Show file tree
Hide file tree
Showing 56 changed files with 720 additions and 901 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/**
* CodeReady Dependency Analytics API
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
* Exhort API
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
*
* OpenAPI spec version: 3.0.0
* OpenAPI spec version: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AnalysisReport } from '../backend/AnalysisReport';
export declare class DependencyAnalysis200Response {
export declare class Analysis200Response {
'jsonReport'?: AnalysisReport;
'htmlReport'?: any;
static readonly discriminator: string | undefined;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* CodeReady Dependency Analytics API
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
* Exhort API
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
*
* OpenAPI spec version: 3.0.0
* OpenAPI spec version: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DependencyAnalysis200Response {
export class Analysis200Response {
'jsonReport';
'htmlReport';
static discriminator = undefined;
Expand All @@ -28,7 +28,7 @@ export class DependencyAnalysis200Response {
}
];
static getAttributeTypeMap() {
return DependencyAnalysis200Response.attributeTypeMap;
return Analysis200Response.attributeTypeMap;
}
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* CodeReady Dependency Analytics API
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
* Exhort API
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
*
* OpenAPI spec version: 3.0.0
* OpenAPI spec version: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -12,7 +12,7 @@

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

export class DependencyAnalysis200Response {
export class Analysis200Response {
'jsonReport'?: AnalysisReport;
'htmlReport'?: any;

Expand All @@ -33,7 +33,7 @@ export class DependencyAnalysis200Response {
} ];

static getAttributeTypeMap() {
return DependencyAnalysis200Response.attributeTypeMap;
return Analysis200Response.attributeTypeMap;
}

public constructor() {
Expand Down
16 changes: 9 additions & 7 deletions generated/backend/AnalysisReport.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
/**
* CodeReady Dependency Analytics API
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
* Exhort API
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
*
* OpenAPI spec version: 3.0.0
* OpenAPI spec version: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DependencyReport } from '../backend/DependencyReport';
import { Summary } from '../backend/Summary';
import { ProviderReport } from '../backend/ProviderReport';
import { Scanned } from '../backend/Scanned';
export declare class AnalysisReport {
'summary'?: Summary;
'dependencies'?: Array<DependencyReport>;
'scanned'?: Scanned;
'providers'?: {
[key: string]: ProviderReport;
};
static readonly discriminator: string | undefined;
static readonly attributeTypeMap: Array<{
name: string;
Expand Down
22 changes: 11 additions & 11 deletions generated/backend/AnalysisReport.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
/**
* CodeReady Dependency Analytics API
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
* Exhort API
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
*
* OpenAPI spec version: 3.0.0
* OpenAPI spec version: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AnalysisReport {
'summary';
'dependencies';
'scanned';
'providers';
static discriminator = undefined;
static attributeTypeMap = [
{
"name": "summary",
"baseName": "summary",
"type": "Summary",
"name": "scanned",
"baseName": "scanned",
"type": "Scanned",
"format": ""
},
{
"name": "dependencies",
"baseName": "dependencies",
"type": "Array<DependencyReport>",
"name": "providers",
"baseName": "providers",
"type": "{ [key: string]: ProviderReport; }",
"format": ""
}
];
Expand Down
26 changes: 13 additions & 13 deletions generated/backend/AnalysisReport.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
/**
* CodeReady Dependency Analytics API
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
* Exhort API
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
*
* OpenAPI spec version: 3.0.0
* OpenAPI spec version: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { DependencyReport } from '../backend/DependencyReport';
import { Summary } from '../backend/Summary';
import { ProviderReport } from '../backend/ProviderReport';
import { Scanned } from '../backend/Scanned';

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

static readonly discriminator: string | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "summary",
"baseName": "summary",
"type": "Summary",
"name": "scanned",
"baseName": "scanned",
"type": "Scanned",
"format": ""
},
{
"name": "dependencies",
"baseName": "dependencies",
"type": "Array<DependencyReport>",
"name": "providers",
"baseName": "providers",
"type": "{ [key: string]: ProviderReport; }",
"format": ""
} ];

Expand Down
8 changes: 4 additions & 4 deletions generated/backend/CvssVector.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* CodeReady Dependency Analytics API
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
* Exhort API
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
*
* OpenAPI spec version: 3.0.0
* OpenAPI spec version: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -20,7 +20,7 @@ export declare class CvssVector {
'availabilityImpact'?: string;
'exploitCodeMaturity'?: string;
'remediationLevel'?: string;
'reportConficende'?: string;
'reportConfidence'?: string;
'cvss'?: string;
static readonly discriminator: string | undefined;
static readonly attributeTypeMap: Array<{
Expand Down
12 changes: 6 additions & 6 deletions generated/backend/CvssVector.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* CodeReady Dependency Analytics API
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
* Exhort API
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
*
* OpenAPI spec version: 3.0.0
* OpenAPI spec version: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -20,7 +20,7 @@ export class CvssVector {
'availabilityImpact';
'exploitCodeMaturity';
'remediationLevel';
'reportConficende';
'reportConfidence';
'cvss';
static discriminator = undefined;
static attributeTypeMap = [
Expand Down Expand Up @@ -85,8 +85,8 @@ export class CvssVector {
"format": ""
},
{
"name": "reportConficende",
"baseName": "reportConficende",
"name": "reportConfidence",
"baseName": "reportConfidence",
"type": "string",
"format": ""
},
Expand Down
12 changes: 6 additions & 6 deletions generated/backend/CvssVector.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* CodeReady Dependency Analytics API
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
* Exhort API
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
*
* OpenAPI spec version: 3.0.0
* OpenAPI spec version: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -22,7 +22,7 @@ export class CvssVector {
'availabilityImpact'?: string;
'exploitCodeMaturity'?: string;
'remediationLevel'?: string;
'reportConficende'?: string;
'reportConfidence'?: string;
'cvss'?: string;

static readonly discriminator: string | undefined = undefined;
Expand Down Expand Up @@ -89,8 +89,8 @@ export class CvssVector {
"format": ""
},
{
"name": "reportConficende",
"baseName": "reportConficende",
"name": "reportConfidence",
"baseName": "reportConfidence",
"type": "string",
"format": ""
},
Expand Down
24 changes: 10 additions & 14 deletions generated/backend/DependencyReport.d.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
/**
* CodeReady Dependency Analytics API
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
* Exhort API
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
*
* OpenAPI spec version: 3.0.0
* OpenAPI spec version: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DependencyReportHighestVulnerability } from '../backend/DependencyReportHighestVulnerability';
import { DependencyReportRecommendation } from '../backend/DependencyReportRecommendation';
import { Issue } from '../backend/Issue';
import { PackageRef } from '../backend/PackageRef';
import { Remediation } from '../backend/Remediation';
import { TransitiveDependencyReport } from '../backend/TransitiveDependencyReport';
export declare class DependencyReport {
'ref'?: PackageRef;
/**
* PackageURL used to identify a dependency artifact
*/
'ref'?: string;
'issues'?: Array<Issue>;
'transitive'?: Array<TransitiveDependencyReport>;
'recommendation'?: DependencyReportRecommendation;
/**
* Trusted Content remediation related to identified security vulnerabilities
* PackageURL used to identify a dependency artifact
*/
'remediations'?: {
[key: string]: Remediation;
};
'highestVulnerability'?: DependencyReportHighestVulnerability;
'recommendation'?: string;
'highestVulnerability'?: Issue;
static readonly discriminator: string | undefined;
static readonly attributeTypeMap: Array<{
name: string;
Expand Down
26 changes: 11 additions & 15 deletions generated/backend/DependencyReport.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
/**
* CodeReady Dependency Analytics API
* Vulnerability analysis with Red Hat CodeReady Dependency Analytics
* Exhort API
* Vulnerability analysis with Red Hat Trusted Profile Analyzer
*
* OpenAPI spec version: 3.0.0
* OpenAPI spec version: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DependencyReport {
/**
* PackageURL used to identify a dependency artifact
*/
'ref';
'issues';
'transitive';
'recommendation';
/**
* Trusted Content remediation related to identified security vulnerabilities
* PackageURL used to identify a dependency artifact
*/
'remediations';
'recommendation';
'highestVulnerability';
static discriminator = undefined;
static attributeTypeMap = [
{
"name": "ref",
"baseName": "ref",
"type": "PackageRef",
"type": "string",
"format": ""
},
{
Expand All @@ -42,19 +44,13 @@ export class DependencyReport {
{
"name": "recommendation",
"baseName": "recommendation",
"type": "DependencyReportRecommendation",
"format": ""
},
{
"name": "remediations",
"baseName": "remediations",
"type": "{ [key: string]: Remediation; }",
"type": "string",
"format": ""
},
{
"name": "highestVulnerability",
"baseName": "highestVulnerability",
"type": "DependencyReportHighestVulnerability",
"type": "Issue",
"format": ""
}
];
Expand Down
Loading

0 comments on commit d251ac6

Please sign in to comment.