/** * Sonatype Lifecycle Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.207.0-01 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { ApiDependencyTreeResponseDTO, ApiPolicyViolationDiffDTO, ApiReportPolicyDataDTOV2, ApiReportRawDataDTOV2 } from '../models/index'; export interface ApplicationReportDataApiGetDataRequest { applicationPublicId: string; scanId: string; } export interface ApplicationReportDataApiGetDependencyTree1Request { applicationPublicId: string; scanId: string; } export interface ApplicationReportDataApiGetMetadataRequest { applicationPublicId: string; scanId: string; } export interface ApplicationReportDataApiGetPolicyViolationDiffRequest { applicationPublicId: string; fromCommit: string; toCommit: string; fromPolicyEvaluationId?: string; toPolicyEvaluationId?: string; includeViolationTimes?: boolean; } export interface ApplicationReportDataApiGetPolicyViolations2Request { applicationPublicId: string; scanId: string; includeViolationTimes?: boolean; page?: number; pageSize?: number; } export interface ApplicationReportDataApiGetRawData1Request { applicationPublicId: string; scanId: string; includeCustomSecurityVulnerabilityData?: boolean; } /** * ApplicationReportDataApi - interface * * @export * @interface ApplicationReportDataApiInterface */ export interface ApplicationReportDataApiInterface { /** * This is an older version of the endpoint. This call will now be redirected to /api/v2/applications/{applicationPublicId}/reports/{scanId}/raw. * @param {string} applicationPublicId Enter the applicationPublicId for the evaluated application. * @param {string} scanId Enter the scanId (reportId) of the application report created after the evaluation. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationReportDataApiInterface */ getDataRaw(requestParameters: ApplicationReportDataApiGetDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * This is an older version of the endpoint. This call will now be redirected to /api/v2/applications/{applicationPublicId}/reports/{scanId}/raw. */ getData(requestParameters: ApplicationReportDataApiGetDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve the dependencies related to the component identified at the time of application evaluation. This is currently available only for Java (Maven) and NPM applications. Permissions required: View IQ Elements * @param {string} applicationPublicId Enter the applicationPublicId created at the time of creating the application. * @param {string} scanId Enter the reportId (scanId) created at the time of evaluating the application. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationReportDataApiInterface */ getDependencyTree1Raw(requestParameters: ApplicationReportDataApiGetDependencyTree1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve the dependencies related to the component identified at the time of application evaluation. This is currently available only for Java (Maven) and NPM applications. Permissions required: View IQ Elements */ getDependencyTree1(requestParameters: ApplicationReportDataApiGetDependencyTree1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Get evaluation metadata for a specific scan. Requires READ permission on the application. * @param {string} applicationPublicId Enter the applicationPublicId for the evaluated application. * @param {string} scanId Enter the scanId (reportId) of the application report. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationReportDataApiInterface */ getMetadataRaw(requestParameters: ApplicationReportDataApiGetMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get evaluation metadata for a specific scan. Requires READ permission on the application. */ getMetadata(requestParameters: ApplicationReportDataApiGetMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * By configuring Lifecycle with SCM, policy evaluations can be linked to the Git commit hash. Use this method to compare the violations between policy evaluations for 2 commits, by providing the linked commit hashes. Permissions required: View IQ Elements * @param {string} applicationPublicId Enter the applicationPublicId, created at the time of creating the application * @param {string} fromCommit Enter the commit hash linked to the earlier policy evaluation. * @param {string} toCommit Enter the commit hash linked to the other (later) policy evaluation to compare. * @param {string} [fromPolicyEvaluationId] Enter the policy evaluation Id linked to the earlier policy evaluation to compare * @param {string} [toPolicyEvaluationId] Enter the policy evaluation Id linked to the other (later) policy evaluation to compare * @param {boolean} [includeViolationTimes] Set to true to include policy violation times (open, legacy, waived, fixed) in the response if set. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationReportDataApiInterface */ getPolicyViolationDiffRaw(requestParameters: ApplicationReportDataApiGetPolicyViolationDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * By configuring Lifecycle with SCM, policy evaluations can be linked to the Git commit hash. Use this method to compare the violations between policy evaluations for 2 commits, by providing the linked commit hashes. Permissions required: View IQ Elements */ getPolicyViolationDiff(requestParameters: ApplicationReportDataApiGetPolicyViolationDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve the policy violation data generated as a result of an application evaluation, for each component identified in the application evaluation./n/nPermissions required: View IQ Elements * @param {string} applicationPublicId Enter the applicationPublicId created at the time of creating the application. * @param {string} scanId Enter the reportId (scanId) created at the time of evaluating the application. * @param {boolean} [includeViolationTimes] Set to true to include policy violation times (open, legacy, waived, fixed) in the response if set. * @param {number} [page] Page number (1-indexed). Must be provided together with \'pageSize\'. When omitted, all components are returned. * @param {number} [pageSize] Number of components per page (1-500). Must be provided together with \'page\'. When omitted, all components are returned. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationReportDataApiInterface */ getPolicyViolations2Raw(requestParameters: ApplicationReportDataApiGetPolicyViolations2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve the policy violation data generated as a result of an application evaluation, for each component identified in the application evaluation./n/nPermissions required: View IQ Elements */ getPolicyViolations2(requestParameters: ApplicationReportDataApiGetPolicyViolations2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve the \'raw\' data generated as a result of an application evaluation. \'raw\' data includes: the components identified in the application, and the licenses and vulnerabilities associated with the identified components. Optionally set `includeCustomSecurityVulnerabilityData=true` to include any configured security vulnerability custom data (remediation, cweId, cvssVector, cvssSeverity) for each securityIssue. NOT to be confused with `SecurityVulnerabilityOverride` (hash-based violation-state override). Permissions required: View IQ Elements * @param {string} applicationPublicId Enter the applicationPublicId (assigned at the time of creating a new application.) * @param {string} scanId Enter the reportId (scanId) created at the time of evaluating the application. * @param {boolean} [includeCustomSecurityVulnerabilityData] Set to true to include security vulnerability custom data (remediation, cweId, cvssVector, cvssSeverity) for each securityIssue. Defaults to false. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationReportDataApiInterface */ getRawData1Raw(requestParameters: ApplicationReportDataApiGetRawData1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve the \'raw\' data generated as a result of an application evaluation. \'raw\' data includes: the components identified in the application, and the licenses and vulnerabilities associated with the identified components. Optionally set `includeCustomSecurityVulnerabilityData=true` to include any configured security vulnerability custom data (remediation, cweId, cvssVector, cvssSeverity) for each securityIssue. NOT to be confused with `SecurityVulnerabilityOverride` (hash-based violation-state override). Permissions required: View IQ Elements */ getRawData1(requestParameters: ApplicationReportDataApiGetRawData1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * */ export declare class ApplicationReportDataApi extends runtime.BaseAPI implements ApplicationReportDataApiInterface { /** * This is an older version of the endpoint. This call will now be redirected to /api/v2/applications/{applicationPublicId}/reports/{scanId}/raw. */ getDataRaw(requestParameters: ApplicationReportDataApiGetDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * This is an older version of the endpoint. This call will now be redirected to /api/v2/applications/{applicationPublicId}/reports/{scanId}/raw. */ getData(requestParameters: ApplicationReportDataApiGetDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve the dependencies related to the component identified at the time of application evaluation. This is currently available only for Java (Maven) and NPM applications. Permissions required: View IQ Elements */ getDependencyTree1Raw(requestParameters: ApplicationReportDataApiGetDependencyTree1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve the dependencies related to the component identified at the time of application evaluation. This is currently available only for Java (Maven) and NPM applications. Permissions required: View IQ Elements */ getDependencyTree1(requestParameters: ApplicationReportDataApiGetDependencyTree1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Get evaluation metadata for a specific scan. Requires READ permission on the application. */ getMetadataRaw(requestParameters: ApplicationReportDataApiGetMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get evaluation metadata for a specific scan. Requires READ permission on the application. */ getMetadata(requestParameters: ApplicationReportDataApiGetMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * By configuring Lifecycle with SCM, policy evaluations can be linked to the Git commit hash. Use this method to compare the violations between policy evaluations for 2 commits, by providing the linked commit hashes. Permissions required: View IQ Elements */ getPolicyViolationDiffRaw(requestParameters: ApplicationReportDataApiGetPolicyViolationDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * By configuring Lifecycle with SCM, policy evaluations can be linked to the Git commit hash. Use this method to compare the violations between policy evaluations for 2 commits, by providing the linked commit hashes. Permissions required: View IQ Elements */ getPolicyViolationDiff(requestParameters: ApplicationReportDataApiGetPolicyViolationDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve the policy violation data generated as a result of an application evaluation, for each component identified in the application evaluation./n/nPermissions required: View IQ Elements */ getPolicyViolations2Raw(requestParameters: ApplicationReportDataApiGetPolicyViolations2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve the policy violation data generated as a result of an application evaluation, for each component identified in the application evaluation./n/nPermissions required: View IQ Elements */ getPolicyViolations2(requestParameters: ApplicationReportDataApiGetPolicyViolations2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve the \'raw\' data generated as a result of an application evaluation. \'raw\' data includes: the components identified in the application, and the licenses and vulnerabilities associated with the identified components. Optionally set `includeCustomSecurityVulnerabilityData=true` to include any configured security vulnerability custom data (remediation, cweId, cvssVector, cvssSeverity) for each securityIssue. NOT to be confused with `SecurityVulnerabilityOverride` (hash-based violation-state override). Permissions required: View IQ Elements */ getRawData1Raw(requestParameters: ApplicationReportDataApiGetRawData1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve the \'raw\' data generated as a result of an application evaluation. \'raw\' data includes: the components identified in the application, and the licenses and vulnerabilities associated with the identified components. Optionally set `includeCustomSecurityVulnerabilityData=true` to include any configured security vulnerability custom data (remediation, cweId, cvssVector, cvssSeverity) for each securityIssue. NOT to be confused with `SecurityVulnerabilityOverride` (hash-based violation-state override). Permissions required: View IQ Elements */ getRawData1(requestParameters: ApplicationReportDataApiGetRawData1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }