/* tslint:disable */ /* eslint-disable */ /** * 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 { ApiBulkWaiversDTO, ApiComponentPolicyWaiversDTO, ApiPolicyWaiverDTO, ApiRequestPolicyWaiverDTO, ApiWaiverOptionsDTO, ComponentIdentifier, } from '../models/index'; import { ApiBulkWaiversDTOFromJSON, ApiBulkWaiversDTOToJSON, ApiComponentPolicyWaiversDTOFromJSON, ApiComponentPolicyWaiversDTOToJSON, ApiPolicyWaiverDTOFromJSON, ApiPolicyWaiverDTOToJSON, ApiRequestPolicyWaiverDTOFromJSON, ApiRequestPolicyWaiverDTOToJSON, ApiWaiverOptionsDTOFromJSON, ApiWaiverOptionsDTOToJSON, ComponentIdentifierFromJSON, ComponentIdentifierToJSON, } from '../models/index'; export interface PolicyWaiversApiAddBulkPolicyWaiversRequest { ownerType: AddBulkPolicyWaiversOwnerTypeEnum; ownerId: string; apiBulkWaiversDTO: ApiBulkWaiversDTO; } export interface PolicyWaiversApiAddPolicyWaiverByPolicyViolationIdRequest { ownerType: AddPolicyWaiverByPolicyViolationIdOwnerTypeEnum; ownerId: string; policyViolationId: string; apiWaiverOptionsDTO: ApiWaiverOptionsDTO; } export interface PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByAppScanComponentRequest { ownerType: AddWaiverToTransitivePolicyViolationsByAppScanComponentOwnerTypeEnum; ownerId: string; scanId: string; componentIdentifier?: ComponentIdentifier; packageUrl?: string; hash?: string; apiWaiverOptionsDTO?: ApiWaiverOptionsDTO; } export interface PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByOwnerStageComponentRequest { ownerType: AddWaiverToTransitivePolicyViolationsByOwnerStageComponentOwnerTypeEnum; ownerId: string; stageId: string; apiWaiverOptionsDTO: ApiWaiverOptionsDTO; componentIdentifier?: ComponentIdentifier; packageUrl?: string; hash?: string; } export interface PolicyWaiversApiDeletePolicyWaiverRequest { ownerType: DeletePolicyWaiverOwnerTypeEnum; ownerId: string; policyWaiverId: string; } export interface PolicyWaiversApiGetPolicyWaiver1Request { ownerType: GetPolicyWaiver1OwnerTypeEnum; ownerId: string; policyWaiverId: string; } export interface PolicyWaiversApiGetPolicyWaiversRequest { ownerType: GetPolicyWaiversOwnerTypeEnum; ownerId: string; expiringWithin?: number; } export interface PolicyWaiversApiGetTransitivePolicyWaiversByAppScanComponentRequest { ownerType: GetTransitivePolicyWaiversByAppScanComponentOwnerTypeEnum; ownerId: string; scanId: string; componentIdentifier?: ComponentIdentifier; packageUrl?: string; hash?: string; } export interface PolicyWaiversApiRequestPolicyWaiverRequest { policyViolationId: string; apiRequestPolicyWaiverDTO?: ApiRequestPolicyWaiverDTO; } export interface PolicyWaiversApiUpdatePolicyWaiverRequest { ownerType: UpdatePolicyWaiverOwnerTypeEnum; ownerId: string; policyWaiverId: string; apiWaiverOptionsDTO: ApiWaiverOptionsDTO; } /** * PolicyWaiversApi - interface * * @export * @interface PolicyWaiversApiInterface */ export interface PolicyWaiversApiInterface { /** * Use this method to create policy waivers for multiple policy violations. Permissions required: Waive Policy Violations * @param {'application' | 'organization' | 'repository_container' | 'repository_manager' | 'repository'} ownerType Indicates the scope of the waiver. Possible values are application, organization, repository, repository_manager, repository_container. * @param {string} ownerId Enter the id for the ownerType provided above. E.g. applicationId if the ownerType is application. * @param {ApiBulkWaiversDTO} apiBulkWaiversDTO The request JSON should include:<ol><li>violationIds (required, list of policy violation IDs, maximum 1000)</li><li>apiWaiverOptionsDTO (required) containing:<ul><li>comment (optional, to indicate the reason of the waiver)</li><li>matcherStrategy (enumeration, required) can have values EXACT_COMPONENT or ALL_VERSIONS</li><li>expiryTime (optional) to set the datetime when the waiver expires</li><li>waiverReasonId (optional) waiver reason ID</li><li>expireWhenRemediationAvailable (optional boolean, default false) expire waiver when remediation is available, can only be applied to Exact Components.</li></ul></li></ol> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PolicyWaiversApiInterface */ addBulkPolicyWaiversRaw(requestParameters: PolicyWaiversApiAddBulkPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to create policy waivers for multiple policy violations. Permissions required: Waive Policy Violations */ addBulkPolicyWaivers(requestParameters: PolicyWaiversApiAddBulkPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to create a policy waiver. Permissions required: Waive Policy Violations * @param {'application' | 'organization' | 'repository_container' | 'repository_manager' | 'repository'} ownerType Indicates the scope of the waiver. Possible values are application, organization, repository, repository_manager, repository_container. * @param {string} ownerId Enter the id for the ownerType provided above. E.g. applicationId if the ownerType is application. * @param {string} policyViolationId Enter the policyViolationId for the policy on which you want to create a waiver. Use the Policy Violation REST API or Reports REST API to obtain the policyViolationId. * @param {ApiWaiverOptionsDTO} apiWaiverOptionsDTO The request JSON can include the fields<ol><li>comment (optional, to indicate the reason of the waiver) default value is null</li><li>applyToAllComponents (boolean, default \'false\'),deprecated in favor of matcherStrategy. If matcherStrategy is not set, \'true\' means this will apply the waiver to all components, \'false\' means this will apply to a specific component.</li><li>matcherStrategy (enumeration, required) can have values DEFAULT, EXACT_COMPONENT, ALL_COMPONENTS, ALL_VERSIONS. DEFAULT will match all components if no hash is provided.</li><li>expiryTime (default null) to set the datetime when the waiver expires.</li></ol> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PolicyWaiversApiInterface */ addPolicyWaiverByPolicyViolationIdRaw(requestParameters: PolicyWaiversApiAddPolicyWaiverByPolicyViolationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to create a policy waiver. Permissions required: Waive Policy Violations */ addPolicyWaiverByPolicyViolationId(requestParameters: PolicyWaiversApiAddPolicyWaiverByPolicyViolationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to create a policy waiver on a transitive component detected during the specified scan. NOTE: Any one of the input parameters, i.e. component identifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: Waive Policy Violations * @param {'application'} ownerType Indicates the scope of the waiver that will be created. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. * @param {string} scanId Enter the scanId (reportId) of the evaluation report that shows the transitive component. * @param {ComponentIdentifier} [componentIdentifier] Enter the component identifier of the transitive component on which you want to create a policy waiver. * @param {string} [packageUrl] Enter the package URL of the transitive component on which you want to create a policy waiver. * @param {string} [hash] Enter the hash of the transitive component on which you want to create a policy waiver. * @param {ApiWaiverOptionsDTO} [apiWaiverOptionsDTO] The request JSON can include the fields<ol><li>comment (optional, to indicate the reason of the waiver) default value is null</li><li>applyToAllComponents (boolean, default \'false\'),deprecated in favor of matcherStrategy. If matcherStrategy is not set, \'true\' means this will apply the waiver to all components, \'false\' means this will apply to a specific component.</li><li>matcherStrategy (enumeration, required) can have values DEFAULT, EXACT_COMPONENT, ALL_COMPONENTS, ALL_VERSIONS. DEFAULT will match all components if no hash is provided.</li><li>expiryTime (default null) to set the datetime when the waiver expires.</li></ol> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PolicyWaiversApiInterface */ addWaiverToTransitivePolicyViolationsByAppScanComponentRaw(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to create a policy waiver on a transitive component detected during the specified scan. NOTE: Any one of the input parameters, i.e. component identifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: Waive Policy Violations */ addWaiverToTransitivePolicyViolationsByAppScanComponent(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to add a waiver for all transitive violations for a given component, detected in the latest scan at the stage specified. Permissions required: Waive Policy Violations * @param {'application' | 'organization'} ownerType Indicates the scope of the waiver that will be created. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. E.g. applicationId for ownerType \'application\' or organizationId for ownerType \'organization\'. * @param {string} stageId Enter the stageId corresponding to the evaluation stage at which you want to create a waiver. Possible values are \'develop\', \'source\', \'build\', \'stage-release\', \'release\' and \'operate\'. * @param {ApiWaiverOptionsDTO} apiWaiverOptionsDTO <ol><li>comment (optional, to indicate the reason of the waiver) default value is null</li><li>applyToAllComponents (boolean, default \'false\'),deprecated in favor of matcherStrategy. If matcherStrategy is not set, \'true\' means this will apply the waiver to all components, \'false\' means this will apply to a specific component.</li><li>matcherStrategy (enumeration, required) can have values DEFAULT, EXACT_COMPONENT, ALL_COMPONENTS, ALL_VERSIONS. DEFAULT will match all components if no hash is provided.</li><li>expiryTime (default null) to set the datetime when the waiver expires.</li></ol> * @param {ComponentIdentifier} [componentIdentifier] Enter the component identifier and coordinates of the component for which you want to waive the transitive violations. * @param {string} [packageUrl] Enter the package URL of the component for which you want to waive the transitive violations. * @param {string} [hash] Enter the hash for the component for which you want to waive the transitive violations * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PolicyWaiversApiInterface */ addWaiverToTransitivePolicyViolationsByOwnerStageComponentRaw(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByOwnerStageComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to add a waiver for all transitive violations for a given component, detected in the latest scan at the stage specified. Permissions required: Waive Policy Violations */ addWaiverToTransitivePolicyViolationsByOwnerStageComponent(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByOwnerStageComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to delete a waiver, specified by the policyWaiverId. Permissions required: Waive Policy Violations * @param {'application' | 'organization' | 'repository_container' | 'repository_manager' | 'repository'} ownerType Enter the ownerType to specify the scope. A waiver corresponding to the policyWaiverId provided and within the scope specified will be deleted. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. * @param {string} policyWaiverId Enter the policyWaiverId to be deleted. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PolicyWaiversApiInterface */ deletePolicyWaiverRaw(requestParameters: PolicyWaiversApiDeletePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to delete a waiver, specified by the policyWaiverId. Permissions required: Waive Policy Violations */ deletePolicyWaiver(requestParameters: PolicyWaiversApiDeletePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve waiver details for the waiverId specified. Permissions required: View IQ Elements * @param {'application' | 'organization' | 'repository_container' | 'repository_manager' | 'repository'} ownerType Enter the ownerType to specify the scope. The response will contain the details for waivers within the scope. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. * @param {string} policyWaiverId Enter the policyWaiverId for which you want to retrieve the waiver details. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PolicyWaiversApiInterface */ getPolicyWaiver1Raw(requestParameters: PolicyWaiversApiGetPolicyWaiver1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve waiver details for the waiverId specified. Permissions required: View IQ Elements */ getPolicyWaiver1(requestParameters: PolicyWaiversApiGetPolicyWaiver1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve waiver details for all policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements * @param {'application' | 'organization' | 'repository_container' | 'repository_manager' | 'repository'} ownerType Enter the ownerType to specify the scope. The response will contain waivers that are within the scope specified. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. * @param {number} [expiringWithin] When specified, only returns active waivers expiring within this many days from now. Must be a positive integer. For example, expiringWithin=7 returns waivers expiring in the next 7 days. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PolicyWaiversApiInterface */ getPolicyWaiversRaw(requestParameters: PolicyWaiversApiGetPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Use this method to retrieve waiver details for all policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements */ getPolicyWaivers(requestParameters: PolicyWaiversApiGetPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve all waivers on policy violations due to transitive dependencies for a specific component detected in a specific scan. Any one of the input parameters, i.e. componentIdentifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: View IQ Elements * @param {'application'} ownerType Enter the ownerType to specify the scope. The response will contain the policy violations that are within the scope specified. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. * @param {string} scanId Enter the scanId (reportId) of the scan for which you want to retrieve the waivers on transitive policy violations occurring due the dependencies of a component. * @param {ComponentIdentifier} [componentIdentifier] Enter the component identifier for the component for which you want to retrieve the waivers on transitive policy violations, for the specified scanId. * @param {string} [packageUrl] Enter the package URL for the component for which you want to retrieve the waivers on transitive policy violations, for the specified scanId. * @param {string} [hash] Enter the hash for the component for which you want to retrieve the waivers on transitive policy violations, for the specified scanId. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PolicyWaiversApiInterface */ getTransitivePolicyWaiversByAppScanComponentRaw(requestParameters: PolicyWaiversApiGetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve all waivers on policy violations due to transitive dependencies for a specific component detected in a specific scan. Any one of the input parameters, i.e. componentIdentifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: View IQ Elements */ getTransitivePolicyWaiversByAppScanComponent(requestParameters: PolicyWaiversApiGetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Deprecated since IQ Server 1.192. Triggers a \'Waiver Request\' webhook event. Deprecated because the webhook event is now integrated into the policy waiver request process. Please use `api/v2/policyWaiverRequests{ownerType}/policyViolation/{policyViolationId}` instead. Scheduled for removal in December 2025. * @param {string} policyViolationId Enter the policyViolationId for which you want to trigger the waiver request event. * @param {ApiRequestPolicyWaiverDTO} [apiRequestPolicyWaiverDTO] The request JSON should contain<ol><li>comment (optional, default null) to indicate the waiver request reason</li><li>policyViolationLink (link to the policy violation page in the Lifecycle UI)</li><li>addWaiverLink (link to the Add Waiver page in the Lifecycle UI)</li></ol> * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} * @memberof PolicyWaiversApiInterface */ requestPolicyWaiverRaw(requestParameters: PolicyWaiversApiRequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Deprecated since IQ Server 1.192. Triggers a \'Waiver Request\' webhook event. Deprecated because the webhook event is now integrated into the policy waiver request process. Please use `api/v2/policyWaiverRequests{ownerType}/policyViolation/{policyViolationId}` instead. Scheduled for removal in December 2025. * @deprecated */ requestPolicyWaiver(requestParameters: PolicyWaiversApiRequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to update an existing policy waiver. Permissions required: Waive Policy Violations * @param {'application' | 'organization' | 'repository_container' | 'repository_manager' | 'repository'} ownerType Indicates the scope of the policy waiver. Possible values are application, organization, repository, repository_manager, and repository_container. * @param {string} ownerId Enter the id for the `ownerType` provided above. E.g. `applicationId` if the `ownerType` is application. * @param {string} policyWaiverId Enter the id for the policy waiver. * @param {ApiWaiverOptionsDTO} apiWaiverOptionsDTO Enter the policy waiver details to update. Note that updating `matcherStrategy` is currently unsupported. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PolicyWaiversApiInterface */ updatePolicyWaiverRaw(requestParameters: PolicyWaiversApiUpdatePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to update an existing policy waiver. Permissions required: Waive Policy Violations */ updatePolicyWaiver(requestParameters: PolicyWaiversApiUpdatePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * */ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversApiInterface { /** * Use this method to create policy waivers for multiple policy violations. Permissions required: Waive Policy Violations */ async addBulkPolicyWaiversRaw(requestParameters: PolicyWaiversApiAddBulkPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['ownerType'] == null) { throw new runtime.RequiredError( 'ownerType', 'Required parameter "ownerType" was null or undefined when calling addBulkPolicyWaivers().' ); } if (requestParameters['ownerId'] == null) { throw new runtime.RequiredError( 'ownerId', 'Required parameter "ownerId" was null or undefined when calling addBulkPolicyWaivers().' ); } if (requestParameters['apiBulkWaiversDTO'] == null) { throw new runtime.RequiredError( 'apiBulkWaiversDTO', 'Required parameter "apiBulkWaiversDTO" was null or undefined when calling addBulkPolicyWaivers().' ); } const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); } if (this.configuration && this.configuration.accessToken) { const token = this.configuration.accessToken; const tokenString = await token("BearerAuth", []); if (tokenString) { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } let urlPath = `/api/v2/policyWaivers/{ownerType}/{ownerId}`; urlPath = urlPath.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters['ownerType']))); urlPath = urlPath.replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters['ownerId']))); const response = await this.request({ path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, body: ApiBulkWaiversDTOToJSON(requestParameters['apiBulkWaiversDTO']), }, initOverrides); return new runtime.VoidApiResponse(response); } /** * Use this method to create policy waivers for multiple policy violations. Permissions required: Waive Policy Violations */ async addBulkPolicyWaivers(requestParameters: PolicyWaiversApiAddBulkPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { await this.addBulkPolicyWaiversRaw(requestParameters, initOverrides); } /** * Use this method to create a policy waiver. Permissions required: Waive Policy Violations */ async addPolicyWaiverByPolicyViolationIdRaw(requestParameters: PolicyWaiversApiAddPolicyWaiverByPolicyViolationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['ownerType'] == null) { throw new runtime.RequiredError( 'ownerType', 'Required parameter "ownerType" was null or undefined when calling addPolicyWaiverByPolicyViolationId().' ); } if (requestParameters['ownerId'] == null) { throw new runtime.RequiredError( 'ownerId', 'Required parameter "ownerId" was null or undefined when calling addPolicyWaiverByPolicyViolationId().' ); } if (requestParameters['policyViolationId'] == null) { throw new runtime.RequiredError( 'policyViolationId', 'Required parameter "policyViolationId" was null or undefined when calling addPolicyWaiverByPolicyViolationId().' ); } if (requestParameters['apiWaiverOptionsDTO'] == null) { throw new runtime.RequiredError( 'apiWaiverOptionsDTO', 'Required parameter "apiWaiverOptionsDTO" was null or undefined when calling addPolicyWaiverByPolicyViolationId().' ); } const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); } if (this.configuration && this.configuration.accessToken) { const token = this.configuration.accessToken; const tokenString = await token("BearerAuth", []); if (tokenString) { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } let urlPath = `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyViolationId}`; urlPath = urlPath.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters['ownerType']))); urlPath = urlPath.replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters['ownerId']))); urlPath = urlPath.replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters['policyViolationId']))); const response = await this.request({ path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, body: ApiWaiverOptionsDTOToJSON(requestParameters['apiWaiverOptionsDTO']), }, initOverrides); return new runtime.VoidApiResponse(response); } /** * Use this method to create a policy waiver. Permissions required: Waive Policy Violations */ async addPolicyWaiverByPolicyViolationId(requestParameters: PolicyWaiversApiAddPolicyWaiverByPolicyViolationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { await this.addPolicyWaiverByPolicyViolationIdRaw(requestParameters, initOverrides); } /** * Use this method to create a policy waiver on a transitive component detected during the specified scan. NOTE: Any one of the input parameters, i.e. component identifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: Waive Policy Violations */ async addWaiverToTransitivePolicyViolationsByAppScanComponentRaw(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['ownerType'] == null) { throw new runtime.RequiredError( 'ownerType', 'Required parameter "ownerType" was null or undefined when calling addWaiverToTransitivePolicyViolationsByAppScanComponent().' ); } if (requestParameters['ownerId'] == null) { throw new runtime.RequiredError( 'ownerId', 'Required parameter "ownerId" was null or undefined when calling addWaiverToTransitivePolicyViolationsByAppScanComponent().' ); } if (requestParameters['scanId'] == null) { throw new runtime.RequiredError( 'scanId', 'Required parameter "scanId" was null or undefined when calling addWaiverToTransitivePolicyViolationsByAppScanComponent().' ); } const queryParameters: any = {}; if (requestParameters['componentIdentifier'] != null) { queryParameters['componentIdentifier'] = requestParameters['componentIdentifier']; } if (requestParameters['packageUrl'] != null) { queryParameters['packageUrl'] = requestParameters['packageUrl']; } if (requestParameters['hash'] != null) { queryParameters['hash'] = requestParameters['hash']; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); } if (this.configuration && this.configuration.accessToken) { const token = this.configuration.accessToken; const tokenString = await token("BearerAuth", []); if (tokenString) { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } let urlPath = `/api/v2/policyWaivers/transitive/{ownerType}/{ownerId}/{scanId}`; urlPath = urlPath.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters['ownerType']))); urlPath = urlPath.replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters['ownerId']))); urlPath = urlPath.replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters['scanId']))); const response = await this.request({ path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, body: ApiWaiverOptionsDTOToJSON(requestParameters['apiWaiverOptionsDTO']), }, initOverrides); return new runtime.VoidApiResponse(response); } /** * Use this method to create a policy waiver on a transitive component detected during the specified scan. NOTE: Any one of the input parameters, i.e. component identifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: Waive Policy Violations */ async addWaiverToTransitivePolicyViolationsByAppScanComponent(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { await this.addWaiverToTransitivePolicyViolationsByAppScanComponentRaw(requestParameters, initOverrides); } /** * Use this method to add a waiver for all transitive violations for a given component, detected in the latest scan at the stage specified. Permissions required: Waive Policy Violations */ async addWaiverToTransitivePolicyViolationsByOwnerStageComponentRaw(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByOwnerStageComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['ownerType'] == null) { throw new runtime.RequiredError( 'ownerType', 'Required parameter "ownerType" was null or undefined when calling addWaiverToTransitivePolicyViolationsByOwnerStageComponent().' ); } if (requestParameters['ownerId'] == null) { throw new runtime.RequiredError( 'ownerId', 'Required parameter "ownerId" was null or undefined when calling addWaiverToTransitivePolicyViolationsByOwnerStageComponent().' ); } if (requestParameters['stageId'] == null) { throw new runtime.RequiredError( 'stageId', 'Required parameter "stageId" was null or undefined when calling addWaiverToTransitivePolicyViolationsByOwnerStageComponent().' ); } if (requestParameters['apiWaiverOptionsDTO'] == null) { throw new runtime.RequiredError( 'apiWaiverOptionsDTO', 'Required parameter "apiWaiverOptionsDTO" was null or undefined when calling addWaiverToTransitivePolicyViolationsByOwnerStageComponent().' ); } const queryParameters: any = {}; if (requestParameters['componentIdentifier'] != null) { queryParameters['componentIdentifier'] = requestParameters['componentIdentifier']; } if (requestParameters['packageUrl'] != null) { queryParameters['packageUrl'] = requestParameters['packageUrl']; } if (requestParameters['hash'] != null) { queryParameters['hash'] = requestParameters['hash']; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); } if (this.configuration && this.configuration.accessToken) { const token = this.configuration.accessToken; const tokenString = await token("BearerAuth", []); if (tokenString) { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } let urlPath = `/api/v2/policyWaivers/transitive/{ownerType}/{ownerId}/stages/{stageId}`; urlPath = urlPath.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters['ownerType']))); urlPath = urlPath.replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters['ownerId']))); urlPath = urlPath.replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters['stageId']))); const response = await this.request({ path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, body: ApiWaiverOptionsDTOToJSON(requestParameters['apiWaiverOptionsDTO']), }, initOverrides); return new runtime.VoidApiResponse(response); } /** * Use this method to add a waiver for all transitive violations for a given component, detected in the latest scan at the stage specified. Permissions required: Waive Policy Violations */ async addWaiverToTransitivePolicyViolationsByOwnerStageComponent(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByOwnerStageComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { await this.addWaiverToTransitivePolicyViolationsByOwnerStageComponentRaw(requestParameters, initOverrides); } /** * Use this method to delete a waiver, specified by the policyWaiverId. Permissions required: Waive Policy Violations */ async deletePolicyWaiverRaw(requestParameters: PolicyWaiversApiDeletePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['ownerType'] == null) { throw new runtime.RequiredError( 'ownerType', 'Required parameter "ownerType" was null or undefined when calling deletePolicyWaiver().' ); } if (requestParameters['ownerId'] == null) { throw new runtime.RequiredError( 'ownerId', 'Required parameter "ownerId" was null or undefined when calling deletePolicyWaiver().' ); } if (requestParameters['policyWaiverId'] == null) { throw new runtime.RequiredError( 'policyWaiverId', 'Required parameter "policyWaiverId" was null or undefined when calling deletePolicyWaiver().' ); } const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); } if (this.configuration && this.configuration.accessToken) { const token = this.configuration.accessToken; const tokenString = await token("BearerAuth", []); if (tokenString) { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } let urlPath = `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyWaiverId}`; urlPath = urlPath.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters['ownerType']))); urlPath = urlPath.replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters['ownerId']))); urlPath = urlPath.replace(`{${"policyWaiverId"}}`, encodeURIComponent(String(requestParameters['policyWaiverId']))); const response = await this.request({ path: urlPath, method: 'DELETE', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.VoidApiResponse(response); } /** * Use this method to delete a waiver, specified by the policyWaiverId. Permissions required: Waive Policy Violations */ async deletePolicyWaiver(requestParameters: PolicyWaiversApiDeletePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { await this.deletePolicyWaiverRaw(requestParameters, initOverrides); } /** * Use this method to retrieve waiver details for the waiverId specified. Permissions required: View IQ Elements */ async getPolicyWaiver1Raw(requestParameters: PolicyWaiversApiGetPolicyWaiver1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['ownerType'] == null) { throw new runtime.RequiredError( 'ownerType', 'Required parameter "ownerType" was null or undefined when calling getPolicyWaiver1().' ); } if (requestParameters['ownerId'] == null) { throw new runtime.RequiredError( 'ownerId', 'Required parameter "ownerId" was null or undefined when calling getPolicyWaiver1().' ); } if (requestParameters['policyWaiverId'] == null) { throw new runtime.RequiredError( 'policyWaiverId', 'Required parameter "policyWaiverId" was null or undefined when calling getPolicyWaiver1().' ); } const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); } if (this.configuration && this.configuration.accessToken) { const token = this.configuration.accessToken; const tokenString = await token("BearerAuth", []); if (tokenString) { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } let urlPath = `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyWaiverId}`; urlPath = urlPath.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters['ownerType']))); urlPath = urlPath.replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters['ownerId']))); urlPath = urlPath.replace(`{${"policyWaiverId"}}`, encodeURIComponent(String(requestParameters['policyWaiverId']))); const response = await this.request({ path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ApiPolicyWaiverDTOFromJSON(jsonValue)); } /** * Use this method to retrieve waiver details for the waiverId specified. Permissions required: View IQ Elements */ async getPolicyWaiver1(requestParameters: PolicyWaiversApiGetPolicyWaiver1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getPolicyWaiver1Raw(requestParameters, initOverrides); return await response.value(); } /** * Use this method to retrieve waiver details for all policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements */ async getPolicyWaiversRaw(requestParameters: PolicyWaiversApiGetPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { if (requestParameters['ownerType'] == null) { throw new runtime.RequiredError( 'ownerType', 'Required parameter "ownerType" was null or undefined when calling getPolicyWaivers().' ); } if (requestParameters['ownerId'] == null) { throw new runtime.RequiredError( 'ownerId', 'Required parameter "ownerId" was null or undefined when calling getPolicyWaivers().' ); } const queryParameters: any = {}; if (requestParameters['expiringWithin'] != null) { queryParameters['expiringWithin'] = requestParameters['expiringWithin']; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); } if (this.configuration && this.configuration.accessToken) { const token = this.configuration.accessToken; const tokenString = await token("BearerAuth", []); if (tokenString) { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } let urlPath = `/api/v2/policyWaivers/{ownerType}/{ownerId}`; urlPath = urlPath.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters['ownerType']))); urlPath = urlPath.replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters['ownerId']))); const response = await this.request({ path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiPolicyWaiverDTOFromJSON)); } /** * Use this method to retrieve waiver details for all policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements */ async getPolicyWaivers(requestParameters: PolicyWaiversApiGetPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.getPolicyWaiversRaw(requestParameters, initOverrides); return await response.value(); } /** * Use this method to retrieve all waivers on policy violations due to transitive dependencies for a specific component detected in a specific scan. Any one of the input parameters, i.e. componentIdentifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: View IQ Elements */ async getTransitivePolicyWaiversByAppScanComponentRaw(requestParameters: PolicyWaiversApiGetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['ownerType'] == null) { throw new runtime.RequiredError( 'ownerType', 'Required parameter "ownerType" was null or undefined when calling getTransitivePolicyWaiversByAppScanComponent().' ); } if (requestParameters['ownerId'] == null) { throw new runtime.RequiredError( 'ownerId', 'Required parameter "ownerId" was null or undefined when calling getTransitivePolicyWaiversByAppScanComponent().' ); } if (requestParameters['scanId'] == null) { throw new runtime.RequiredError( 'scanId', 'Required parameter "scanId" was null or undefined when calling getTransitivePolicyWaiversByAppScanComponent().' ); } const queryParameters: any = {}; if (requestParameters['componentIdentifier'] != null) { queryParameters['componentIdentifier'] = requestParameters['componentIdentifier']; } if (requestParameters['packageUrl'] != null) { queryParameters['packageUrl'] = requestParameters['packageUrl']; } if (requestParameters['hash'] != null) { queryParameters['hash'] = requestParameters['hash']; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); } if (this.configuration && this.configuration.accessToken) { const token = this.configuration.accessToken; const tokenString = await token("BearerAuth", []); if (tokenString) { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } let urlPath = `/api/v2/policyWaivers/transitive/{ownerType}/{ownerId}/{scanId}`; urlPath = urlPath.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters['ownerType']))); urlPath = urlPath.replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters['ownerId']))); urlPath = urlPath.replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters['scanId']))); const response = await this.request({ path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ApiComponentPolicyWaiversDTOFromJSON(jsonValue)); } /** * Use this method to retrieve all waivers on policy violations due to transitive dependencies for a specific component detected in a specific scan. Any one of the input parameters, i.e. componentIdentifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: View IQ Elements */ async getTransitivePolicyWaiversByAppScanComponent(requestParameters: PolicyWaiversApiGetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getTransitivePolicyWaiversByAppScanComponentRaw(requestParameters, initOverrides); return await response.value(); } /** * Deprecated since IQ Server 1.192. Triggers a \'Waiver Request\' webhook event. Deprecated because the webhook event is now integrated into the policy waiver request process. Please use `api/v2/policyWaiverRequests{ownerType}/policyViolation/{policyViolationId}` instead. Scheduled for removal in December 2025. * @deprecated */ async requestPolicyWaiverRaw(requestParameters: PolicyWaiversApiRequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['policyViolationId'] == null) { throw new runtime.RequiredError( 'policyViolationId', 'Required parameter "policyViolationId" was null or undefined when calling requestPolicyWaiver().' ); } const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); } if (this.configuration && this.configuration.accessToken) { const token = this.configuration.accessToken; const tokenString = await token("BearerAuth", []); if (tokenString) { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } let urlPath = `/api/v2/policyWaivers/waiverRequests/{policyViolationId}`; urlPath = urlPath.replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters['policyViolationId']))); const response = await this.request({ path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, body: ApiRequestPolicyWaiverDTOToJSON(requestParameters['apiRequestPolicyWaiverDTO']), }, initOverrides); return new runtime.VoidApiResponse(response); } /** * Deprecated since IQ Server 1.192. Triggers a \'Waiver Request\' webhook event. Deprecated because the webhook event is now integrated into the policy waiver request process. Please use `api/v2/policyWaiverRequests{ownerType}/policyViolation/{policyViolationId}` instead. Scheduled for removal in December 2025. * @deprecated */ async requestPolicyWaiver(requestParameters: PolicyWaiversApiRequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { await this.requestPolicyWaiverRaw(requestParameters, initOverrides); } /** * Use this method to update an existing policy waiver. Permissions required: Waive Policy Violations */ async updatePolicyWaiverRaw(requestParameters: PolicyWaiversApiUpdatePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['ownerType'] == null) { throw new runtime.RequiredError( 'ownerType', 'Required parameter "ownerType" was null or undefined when calling updatePolicyWaiver().' ); } if (requestParameters['ownerId'] == null) { throw new runtime.RequiredError( 'ownerId', 'Required parameter "ownerId" was null or undefined when calling updatePolicyWaiver().' ); } if (requestParameters['policyWaiverId'] == null) { throw new runtime.RequiredError( 'policyWaiverId', 'Required parameter "policyWaiverId" was null or undefined when calling updatePolicyWaiver().' ); } if (requestParameters['apiWaiverOptionsDTO'] == null) { throw new runtime.RequiredError( 'apiWaiverOptionsDTO', 'Required parameter "apiWaiverOptionsDTO" was null or undefined when calling updatePolicyWaiver().' ); } const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); } if (this.configuration && this.configuration.accessToken) { const token = this.configuration.accessToken; const tokenString = await token("BearerAuth", []); if (tokenString) { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } let urlPath = `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyWaiverId}`; urlPath = urlPath.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters['ownerType']))); urlPath = urlPath.replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters['ownerId']))); urlPath = urlPath.replace(`{${"policyWaiverId"}}`, encodeURIComponent(String(requestParameters['policyWaiverId']))); const response = await this.request({ path: urlPath, method: 'PUT', headers: headerParameters, query: queryParameters, body: ApiWaiverOptionsDTOToJSON(requestParameters['apiWaiverOptionsDTO']), }, initOverrides); return new runtime.VoidApiResponse(response); } /** * Use this method to update an existing policy waiver. Permissions required: Waive Policy Violations */ async updatePolicyWaiver(requestParameters: PolicyWaiversApiUpdatePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { await this.updatePolicyWaiverRaw(requestParameters, initOverrides); } } /** * @export */ export const AddBulkPolicyWaiversOwnerTypeEnum = { Application: 'application', Organization: 'organization', RepositoryContainer: 'repository_container', RepositoryManager: 'repository_manager', Repository: 'repository' } as const; export type AddBulkPolicyWaiversOwnerTypeEnum = typeof AddBulkPolicyWaiversOwnerTypeEnum[keyof typeof AddBulkPolicyWaiversOwnerTypeEnum]; /** * @export */ export const AddPolicyWaiverByPolicyViolationIdOwnerTypeEnum = { Application: 'application', Organization: 'organization', RepositoryContainer: 'repository_container', RepositoryManager: 'repository_manager', Repository: 'repository' } as const; export type AddPolicyWaiverByPolicyViolationIdOwnerTypeEnum = typeof AddPolicyWaiverByPolicyViolationIdOwnerTypeEnum[keyof typeof AddPolicyWaiverByPolicyViolationIdOwnerTypeEnum]; /** * @export */ export const AddWaiverToTransitivePolicyViolationsByAppScanComponentOwnerTypeEnum = { Application: 'application' } as const; export type AddWaiverToTransitivePolicyViolationsByAppScanComponentOwnerTypeEnum = typeof AddWaiverToTransitivePolicyViolationsByAppScanComponentOwnerTypeEnum[keyof typeof AddWaiverToTransitivePolicyViolationsByAppScanComponentOwnerTypeEnum]; /** * @export */ export const AddWaiverToTransitivePolicyViolationsByOwnerStageComponentOwnerTypeEnum = { Application: 'application', Organization: 'organization' } as const; export type AddWaiverToTransitivePolicyViolationsByOwnerStageComponentOwnerTypeEnum = typeof AddWaiverToTransitivePolicyViolationsByOwnerStageComponentOwnerTypeEnum[keyof typeof AddWaiverToTransitivePolicyViolationsByOwnerStageComponentOwnerTypeEnum]; /** * @export */ export const DeletePolicyWaiverOwnerTypeEnum = { Application: 'application', Organization: 'organization', RepositoryContainer: 'repository_container', RepositoryManager: 'repository_manager', Repository: 'repository' } as const; export type DeletePolicyWaiverOwnerTypeEnum = typeof DeletePolicyWaiverOwnerTypeEnum[keyof typeof DeletePolicyWaiverOwnerTypeEnum]; /** * @export */ export const GetPolicyWaiver1OwnerTypeEnum = { Application: 'application', Organization: 'organization', RepositoryContainer: 'repository_container', RepositoryManager: 'repository_manager', Repository: 'repository' } as const; export type GetPolicyWaiver1OwnerTypeEnum = typeof GetPolicyWaiver1OwnerTypeEnum[keyof typeof GetPolicyWaiver1OwnerTypeEnum]; /** * @export */ export const GetPolicyWaiversOwnerTypeEnum = { Application: 'application', Organization: 'organization', RepositoryContainer: 'repository_container', RepositoryManager: 'repository_manager', Repository: 'repository' } as const; export type GetPolicyWaiversOwnerTypeEnum = typeof GetPolicyWaiversOwnerTypeEnum[keyof typeof GetPolicyWaiversOwnerTypeEnum]; /** * @export */ export const GetTransitivePolicyWaiversByAppScanComponentOwnerTypeEnum = { Application: 'application' } as const; export type GetTransitivePolicyWaiversByAppScanComponentOwnerTypeEnum = typeof GetTransitivePolicyWaiversByAppScanComponentOwnerTypeEnum[keyof typeof GetTransitivePolicyWaiversByAppScanComponentOwnerTypeEnum]; /** * @export */ export const UpdatePolicyWaiverOwnerTypeEnum = { Application: 'application', Organization: 'organization', RepositoryContainer: 'repository_container', RepositoryManager: 'repository_manager', Repository: 'repository' } as const; export type UpdatePolicyWaiverOwnerTypeEnum = typeof UpdatePolicyWaiverOwnerTypeEnum[keyof typeof UpdatePolicyWaiverOwnerTypeEnum];