@sonatype/nexus-iq-api-client 0.165.0 → 0.165.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/dist/apis/ConfigApi.d.ts +11 -20
  3. package/dist/apis/ConfigApi.js +3 -2
  4. package/dist/apis/PolicyWaiversApi.d.ts +23 -1
  5. package/dist/apis/PolicyWaiversApi.js +30 -0
  6. package/dist/esm/apis/ConfigApi.d.ts +11 -20
  7. package/dist/esm/apis/ConfigApi.js +3 -2
  8. package/dist/esm/apis/PolicyWaiversApi.d.ts +23 -1
  9. package/dist/esm/apis/PolicyWaiversApi.js +31 -1
  10. package/dist/esm/models/ApiRequestPolicyWaiverDTO.d.ts +43 -0
  11. package/dist/esm/models/ApiRequestPolicyWaiverDTO.js +47 -0
  12. package/dist/esm/models/SystemConfig.d.ts +37 -0
  13. package/dist/esm/models/SystemConfig.js +45 -0
  14. package/dist/esm/models/SystemConfigProperty.d.ts +23 -0
  15. package/dist/esm/models/SystemConfigProperty.js +30 -0
  16. package/dist/esm/models/index.d.ts +3 -0
  17. package/dist/esm/models/index.js +3 -0
  18. package/dist/models/ApiRequestPolicyWaiverDTO.d.ts +43 -0
  19. package/dist/models/ApiRequestPolicyWaiverDTO.js +54 -0
  20. package/dist/models/SystemConfig.d.ts +37 -0
  21. package/dist/models/SystemConfig.js +52 -0
  22. package/dist/models/SystemConfigProperty.d.ts +23 -0
  23. package/dist/models/SystemConfigProperty.js +36 -0
  24. package/dist/models/index.d.ts +3 -0
  25. package/dist/models/index.js +3 -0
  26. package/package.json +1 -1
  27. package/src/apis/ConfigApi.ts +22 -12
  28. package/src/apis/PolicyWaiversApi.ts +55 -0
  29. package/src/models/ApiRequestPolicyWaiverDTO.ts +81 -0
  30. package/src/models/SystemConfig.ts +73 -0
  31. package/src/models/SystemConfigProperty.ts +38 -0
  32. package/src/models/index.ts +3 -0
@@ -161,6 +161,7 @@ src/models/ApiRepositoryDTO.ts
161
161
  src/models/ApiRepositoryPathResponseDTO.ts
162
162
  src/models/ApiRepositoryPathVersions.ts
163
163
  src/models/ApiRepositoryWaiverDTO.ts
164
+ src/models/ApiRequestPolicyWaiverDTO.ts
164
165
  src/models/ApiReverseProxyAuthenticationConfigurationDTO.ts
165
166
  src/models/ApiRoleDTO.ts
166
167
  src/models/ApiRoleListDTO.ts
@@ -241,6 +242,8 @@ src/models/SecurityVulnerabilityData.ts
241
242
  src/models/SecurityVulnerabilitySeverity.ts
242
243
  src/models/SecurityVulnerabilityWeakness.ts
243
244
  src/models/StageData.ts
245
+ src/models/SystemConfig.ts
246
+ src/models/SystemConfigProperty.ts
244
247
  src/models/TagsByOwnerDTO.ts
245
248
  src/models/TriggerReference.ts
246
249
  src/models/ValidationResult.ts
@@ -10,8 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
+ import type { SystemConfig, SystemConfigProperty } from '../models/index';
13
14
  export interface DeleteConfigurationRequest {
14
- property?: Set<string>;
15
+ property?: Set<SystemConfigProperty>;
15
16
  }
16
17
  export interface DisableFeatureRequest {
17
18
  feature: string;
@@ -20,12 +21,10 @@ export interface EnabledFeatureRequest {
20
21
  feature: string;
21
22
  }
22
23
  export interface GetConfigurationRequest {
23
- property?: Set<string>;
24
+ property?: Set<SystemConfigProperty>;
24
25
  }
25
26
  export interface SetConfigurationRequest {
26
- requestBody?: {
27
- [key: string]: object;
28
- };
27
+ systemConfig?: SystemConfig;
29
28
  }
30
29
  /**
31
30
  * ConfigApi - interface
@@ -36,7 +35,7 @@ export interface SetConfigurationRequest {
36
35
  export interface ConfigApiInterface {
37
36
  /**
38
37
  *
39
- * @param {Set<string>} [property]
38
+ * @param {Set<SystemConfigProperty>} [property]
40
39
  * @param {*} [options] Override http request option.
41
40
  * @throws {RequiredError}
42
41
  * @memberof ConfigApiInterface
@@ -69,22 +68,18 @@ export interface ConfigApiInterface {
69
68
  enabledFeature(requestParameters: EnabledFeatureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
70
69
  /**
71
70
  *
72
- * @param {Set<string>} [property]
71
+ * @param {Set<SystemConfigProperty>} [property]
73
72
  * @param {*} [options] Override http request option.
74
73
  * @throws {RequiredError}
75
74
  * @memberof ConfigApiInterface
76
75
  */
77
- getConfigurationRaw(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
78
- [key: string]: object;
79
- }>>;
76
+ getConfigurationRaw(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemConfig>>;
80
77
  /**
81
78
  */
82
- getConfiguration(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
83
- [key: string]: object;
84
- }>;
79
+ getConfiguration(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemConfig>;
85
80
  /**
86
81
  *
87
- * @param {{ [key: string]: object; }} [requestBody]
82
+ * @param {SystemConfig} [systemConfig]
88
83
  * @param {*} [options] Override http request option.
89
84
  * @throws {RequiredError}
90
85
  * @memberof ConfigApiInterface
@@ -118,14 +113,10 @@ export declare class ConfigApi extends runtime.BaseAPI implements ConfigApiInter
118
113
  enabledFeature(requestParameters: EnabledFeatureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
119
114
  /**
120
115
  */
121
- getConfigurationRaw(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
122
- [key: string]: object;
123
- }>>;
116
+ getConfigurationRaw(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemConfig>>;
124
117
  /**
125
118
  */
126
- getConfiguration(requestParameters?: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
127
- [key: string]: object;
128
- }>;
119
+ getConfiguration(requestParameters?: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemConfig>;
129
120
  /**
130
121
  */
131
122
  setConfigurationRaw(requestParameters: SetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ConfigApi = void 0;
26
26
  const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
27
28
  /**
28
29
  *
29
30
  */
@@ -130,7 +131,7 @@ class ConfigApi extends runtime.BaseAPI {
130
131
  headers: headerParameters,
131
132
  query: queryParameters,
132
133
  }, initOverrides);
133
- return new runtime.JSONApiResponse(response);
134
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SystemConfigFromJSON)(jsonValue));
134
135
  });
135
136
  }
136
137
  /**
@@ -156,7 +157,7 @@ class ConfigApi extends runtime.BaseAPI {
156
157
  method: 'PUT',
157
158
  headers: headerParameters,
158
159
  query: queryParameters,
159
- body: requestParameters.requestBody,
160
+ body: (0, index_1.SystemConfigToJSON)(requestParameters.systemConfig),
160
161
  }, initOverrides);
161
162
  return new runtime.VoidApiResponse(response);
162
163
  });
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiComponentPolicyWaiversDTO, ApiPolicyWaiverDTO, ApiWaiverOptionsDTO, ComponentIdentifier } from '../models/index';
13
+ import type { ApiComponentPolicyWaiversDTO, ApiPolicyWaiverDTO, ApiRequestPolicyWaiverDTO, ApiWaiverOptionsDTO, ComponentIdentifier } from '../models/index';
14
14
  export interface AddPolicyWaiverByPolicyViolationIdRequest {
15
15
  ownerType: AddPolicyWaiverByPolicyViolationIdOwnerTypeEnum;
16
16
  ownerId: string;
@@ -57,6 +57,10 @@ export interface GetTransitivePolicyWaiversByAppScanComponentRequest {
57
57
  packageUrl?: string;
58
58
  hash?: string;
59
59
  }
60
+ export interface RequestPolicyWaiverRequest {
61
+ policyViolationId: string;
62
+ apiRequestPolicyWaiverDTO?: ApiRequestPolicyWaiverDTO;
63
+ }
60
64
  /**
61
65
  * PolicyWaiversApi - interface
62
66
  *
@@ -166,6 +170,18 @@ export interface PolicyWaiversApiInterface {
166
170
  /**
167
171
  */
168
172
  getTransitivePolicyWaiversByAppScanComponent(requestParameters: GetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentPolicyWaiversDTO>;
173
+ /**
174
+ *
175
+ * @param {string} policyViolationId
176
+ * @param {ApiRequestPolicyWaiverDTO} [apiRequestPolicyWaiverDTO]
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ * @memberof PolicyWaiversApiInterface
180
+ */
181
+ requestPolicyWaiverRaw(requestParameters: RequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
182
+ /**
183
+ */
184
+ requestPolicyWaiver(requestParameters: RequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
169
185
  }
170
186
  /**
171
187
  *
@@ -213,6 +229,12 @@ export declare class PolicyWaiversApi extends runtime.BaseAPI implements PolicyW
213
229
  /**
214
230
  */
215
231
  getTransitivePolicyWaiversByAppScanComponent(requestParameters: GetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentPolicyWaiversDTO>;
232
+ /**
233
+ */
234
+ requestPolicyWaiverRaw(requestParameters: RequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
235
+ /**
236
+ */
237
+ requestPolicyWaiver(requestParameters: RequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
216
238
  }
217
239
  /**
218
240
  * @export
@@ -300,6 +300,36 @@ class PolicyWaiversApi extends runtime.BaseAPI {
300
300
  return yield response.value();
301
301
  });
302
302
  }
303
+ /**
304
+ */
305
+ requestPolicyWaiverRaw(requestParameters, initOverrides) {
306
+ return __awaiter(this, void 0, void 0, function* () {
307
+ if (requestParameters.policyViolationId === null || requestParameters.policyViolationId === undefined) {
308
+ throw new runtime.RequiredError('policyViolationId', 'Required parameter requestParameters.policyViolationId was null or undefined when calling requestPolicyWaiver.');
309
+ }
310
+ const queryParameters = {};
311
+ const headerParameters = {};
312
+ headerParameters['Content-Type'] = 'application/json';
313
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
314
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
315
+ }
316
+ const response = yield this.request({
317
+ path: `/api/v2/policyWaivers/waiverRequests/{policyViolationId}`.replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters.policyViolationId))),
318
+ method: 'POST',
319
+ headers: headerParameters,
320
+ query: queryParameters,
321
+ body: (0, index_1.ApiRequestPolicyWaiverDTOToJSON)(requestParameters.apiRequestPolicyWaiverDTO),
322
+ }, initOverrides);
323
+ return new runtime.VoidApiResponse(response);
324
+ });
325
+ }
326
+ /**
327
+ */
328
+ requestPolicyWaiver(requestParameters, initOverrides) {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ yield this.requestPolicyWaiverRaw(requestParameters, initOverrides);
331
+ });
332
+ }
303
333
  }
304
334
  exports.PolicyWaiversApi = PolicyWaiversApi;
305
335
  /**
@@ -10,8 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
+ import type { SystemConfig, SystemConfigProperty } from '../models/index';
13
14
  export interface DeleteConfigurationRequest {
14
- property?: Set<string>;
15
+ property?: Set<SystemConfigProperty>;
15
16
  }
16
17
  export interface DisableFeatureRequest {
17
18
  feature: string;
@@ -20,12 +21,10 @@ export interface EnabledFeatureRequest {
20
21
  feature: string;
21
22
  }
22
23
  export interface GetConfigurationRequest {
23
- property?: Set<string>;
24
+ property?: Set<SystemConfigProperty>;
24
25
  }
25
26
  export interface SetConfigurationRequest {
26
- requestBody?: {
27
- [key: string]: object;
28
- };
27
+ systemConfig?: SystemConfig;
29
28
  }
30
29
  /**
31
30
  * ConfigApi - interface
@@ -36,7 +35,7 @@ export interface SetConfigurationRequest {
36
35
  export interface ConfigApiInterface {
37
36
  /**
38
37
  *
39
- * @param {Set<string>} [property]
38
+ * @param {Set<SystemConfigProperty>} [property]
40
39
  * @param {*} [options] Override http request option.
41
40
  * @throws {RequiredError}
42
41
  * @memberof ConfigApiInterface
@@ -69,22 +68,18 @@ export interface ConfigApiInterface {
69
68
  enabledFeature(requestParameters: EnabledFeatureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
70
69
  /**
71
70
  *
72
- * @param {Set<string>} [property]
71
+ * @param {Set<SystemConfigProperty>} [property]
73
72
  * @param {*} [options] Override http request option.
74
73
  * @throws {RequiredError}
75
74
  * @memberof ConfigApiInterface
76
75
  */
77
- getConfigurationRaw(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
78
- [key: string]: object;
79
- }>>;
76
+ getConfigurationRaw(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemConfig>>;
80
77
  /**
81
78
  */
82
- getConfiguration(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
83
- [key: string]: object;
84
- }>;
79
+ getConfiguration(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemConfig>;
85
80
  /**
86
81
  *
87
- * @param {{ [key: string]: object; }} [requestBody]
82
+ * @param {SystemConfig} [systemConfig]
88
83
  * @param {*} [options] Override http request option.
89
84
  * @throws {RequiredError}
90
85
  * @memberof ConfigApiInterface
@@ -118,14 +113,10 @@ export declare class ConfigApi extends runtime.BaseAPI implements ConfigApiInter
118
113
  enabledFeature(requestParameters: EnabledFeatureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
119
114
  /**
120
115
  */
121
- getConfigurationRaw(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
122
- [key: string]: object;
123
- }>>;
116
+ getConfigurationRaw(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemConfig>>;
124
117
  /**
125
118
  */
126
- getConfiguration(requestParameters?: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
127
- [key: string]: object;
128
- }>;
119
+ getConfiguration(requestParameters?: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemConfig>;
129
120
  /**
130
121
  */
131
122
  setConfigurationRaw(requestParameters: SetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
@@ -21,6 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
+ import { SystemConfigFromJSON, SystemConfigToJSON, } from '../models/index';
24
25
  /**
25
26
  *
26
27
  */
@@ -127,7 +128,7 @@ export class ConfigApi extends runtime.BaseAPI {
127
128
  headers: headerParameters,
128
129
  query: queryParameters,
129
130
  }, initOverrides);
130
- return new runtime.JSONApiResponse(response);
131
+ return new runtime.JSONApiResponse(response, (jsonValue) => SystemConfigFromJSON(jsonValue));
131
132
  });
132
133
  }
133
134
  /**
@@ -153,7 +154,7 @@ export class ConfigApi extends runtime.BaseAPI {
153
154
  method: 'PUT',
154
155
  headers: headerParameters,
155
156
  query: queryParameters,
156
- body: requestParameters.requestBody,
157
+ body: SystemConfigToJSON(requestParameters.systemConfig),
157
158
  }, initOverrides);
158
159
  return new runtime.VoidApiResponse(response);
159
160
  });
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiComponentPolicyWaiversDTO, ApiPolicyWaiverDTO, ApiWaiverOptionsDTO, ComponentIdentifier } from '../models/index';
13
+ import type { ApiComponentPolicyWaiversDTO, ApiPolicyWaiverDTO, ApiRequestPolicyWaiverDTO, ApiWaiverOptionsDTO, ComponentIdentifier } from '../models/index';
14
14
  export interface AddPolicyWaiverByPolicyViolationIdRequest {
15
15
  ownerType: AddPolicyWaiverByPolicyViolationIdOwnerTypeEnum;
16
16
  ownerId: string;
@@ -57,6 +57,10 @@ export interface GetTransitivePolicyWaiversByAppScanComponentRequest {
57
57
  packageUrl?: string;
58
58
  hash?: string;
59
59
  }
60
+ export interface RequestPolicyWaiverRequest {
61
+ policyViolationId: string;
62
+ apiRequestPolicyWaiverDTO?: ApiRequestPolicyWaiverDTO;
63
+ }
60
64
  /**
61
65
  * PolicyWaiversApi - interface
62
66
  *
@@ -166,6 +170,18 @@ export interface PolicyWaiversApiInterface {
166
170
  /**
167
171
  */
168
172
  getTransitivePolicyWaiversByAppScanComponent(requestParameters: GetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentPolicyWaiversDTO>;
173
+ /**
174
+ *
175
+ * @param {string} policyViolationId
176
+ * @param {ApiRequestPolicyWaiverDTO} [apiRequestPolicyWaiverDTO]
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ * @memberof PolicyWaiversApiInterface
180
+ */
181
+ requestPolicyWaiverRaw(requestParameters: RequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
182
+ /**
183
+ */
184
+ requestPolicyWaiver(requestParameters: RequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
169
185
  }
170
186
  /**
171
187
  *
@@ -213,6 +229,12 @@ export declare class PolicyWaiversApi extends runtime.BaseAPI implements PolicyW
213
229
  /**
214
230
  */
215
231
  getTransitivePolicyWaiversByAppScanComponent(requestParameters: GetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentPolicyWaiversDTO>;
232
+ /**
233
+ */
234
+ requestPolicyWaiverRaw(requestParameters: RequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
235
+ /**
236
+ */
237
+ requestPolicyWaiver(requestParameters: RequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
216
238
  }
217
239
  /**
218
240
  * @export
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiComponentPolicyWaiversDTOFromJSON, ApiPolicyWaiverDTOFromJSON, ApiWaiverOptionsDTOToJSON, } from '../models/index';
24
+ import { ApiComponentPolicyWaiversDTOFromJSON, ApiPolicyWaiverDTOFromJSON, ApiRequestPolicyWaiverDTOToJSON, ApiWaiverOptionsDTOToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -297,6 +297,36 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
297
297
  return yield response.value();
298
298
  });
299
299
  }
300
+ /**
301
+ */
302
+ requestPolicyWaiverRaw(requestParameters, initOverrides) {
303
+ return __awaiter(this, void 0, void 0, function* () {
304
+ if (requestParameters.policyViolationId === null || requestParameters.policyViolationId === undefined) {
305
+ throw new runtime.RequiredError('policyViolationId', 'Required parameter requestParameters.policyViolationId was null or undefined when calling requestPolicyWaiver.');
306
+ }
307
+ const queryParameters = {};
308
+ const headerParameters = {};
309
+ headerParameters['Content-Type'] = 'application/json';
310
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
311
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
312
+ }
313
+ const response = yield this.request({
314
+ path: `/api/v2/policyWaivers/waiverRequests/{policyViolationId}`.replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters.policyViolationId))),
315
+ method: 'POST',
316
+ headers: headerParameters,
317
+ query: queryParameters,
318
+ body: ApiRequestPolicyWaiverDTOToJSON(requestParameters.apiRequestPolicyWaiverDTO),
319
+ }, initOverrides);
320
+ return new runtime.VoidApiResponse(response);
321
+ });
322
+ }
323
+ /**
324
+ */
325
+ requestPolicyWaiver(requestParameters, initOverrides) {
326
+ return __awaiter(this, void 0, void 0, function* () {
327
+ yield this.requestPolicyWaiverRaw(requestParameters, initOverrides);
328
+ });
329
+ }
300
330
  }
301
331
  /**
302
332
  * @export
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Sonatype IQ Server
3
+ * This documents the available APIs into [Sonatype IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management).
4
+ *
5
+ * The version of the OpenAPI document: 165
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ApiRequestPolicyWaiverDTO
16
+ */
17
+ export interface ApiRequestPolicyWaiverDTO {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiRequestPolicyWaiverDTO
22
+ */
23
+ addWaiverLink?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApiRequestPolicyWaiverDTO
28
+ */
29
+ comment?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ApiRequestPolicyWaiverDTO
34
+ */
35
+ policyViolationLink?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ApiRequestPolicyWaiverDTO interface.
39
+ */
40
+ export declare function instanceOfApiRequestPolicyWaiverDTO(value: object): boolean;
41
+ export declare function ApiRequestPolicyWaiverDTOFromJSON(json: any): ApiRequestPolicyWaiverDTO;
42
+ export declare function ApiRequestPolicyWaiverDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiRequestPolicyWaiverDTO;
43
+ export declare function ApiRequestPolicyWaiverDTOToJSON(value?: ApiRequestPolicyWaiverDTO | null): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sonatype IQ Server
5
+ * This documents the available APIs into [Sonatype IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management).
6
+ *
7
+ * The version of the OpenAPI document: 165
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the ApiRequestPolicyWaiverDTO interface.
17
+ */
18
+ export function instanceOfApiRequestPolicyWaiverDTO(value) {
19
+ let isInstance = true;
20
+ return isInstance;
21
+ }
22
+ export function ApiRequestPolicyWaiverDTOFromJSON(json) {
23
+ return ApiRequestPolicyWaiverDTOFromJSONTyped(json, false);
24
+ }
25
+ export function ApiRequestPolicyWaiverDTOFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'addWaiverLink': !exists(json, 'addWaiverLink') ? undefined : json['addWaiverLink'],
31
+ 'comment': !exists(json, 'comment') ? undefined : json['comment'],
32
+ 'policyViolationLink': !exists(json, 'policyViolationLink') ? undefined : json['policyViolationLink'],
33
+ };
34
+ }
35
+ export function ApiRequestPolicyWaiverDTOToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'addWaiverLink': value.addWaiverLink,
44
+ 'comment': value.comment,
45
+ 'policyViolationLink': value.policyViolationLink,
46
+ };
47
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Sonatype IQ Server
3
+ * This documents the available APIs into [Sonatype IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management).
4
+ *
5
+ * The version of the OpenAPI document: 165
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SystemConfig
16
+ */
17
+ export interface SystemConfig {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SystemConfig
22
+ */
23
+ baseUrl?: string | null;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof SystemConfig
28
+ */
29
+ forceBaseUrl?: boolean | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SystemConfig interface.
33
+ */
34
+ export declare function instanceOfSystemConfig(value: object): boolean;
35
+ export declare function SystemConfigFromJSON(json: any): SystemConfig;
36
+ export declare function SystemConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfig;
37
+ export declare function SystemConfigToJSON(value?: SystemConfig | null): any;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sonatype IQ Server
5
+ * This documents the available APIs into [Sonatype IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management).
6
+ *
7
+ * The version of the OpenAPI document: 165
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the SystemConfig interface.
17
+ */
18
+ export function instanceOfSystemConfig(value) {
19
+ let isInstance = true;
20
+ return isInstance;
21
+ }
22
+ export function SystemConfigFromJSON(json) {
23
+ return SystemConfigFromJSONTyped(json, false);
24
+ }
25
+ export function SystemConfigFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'baseUrl': !exists(json, 'baseUrl') ? undefined : json['baseUrl'],
31
+ 'forceBaseUrl': !exists(json, 'forceBaseUrl') ? undefined : json['forceBaseUrl'],
32
+ };
33
+ }
34
+ export function SystemConfigToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'baseUrl': value.baseUrl,
43
+ 'forceBaseUrl': value.forceBaseUrl,
44
+ };
45
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Sonatype IQ Server
3
+ * This documents the available APIs into [Sonatype IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management).
4
+ *
5
+ * The version of the OpenAPI document: 165
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const SystemConfigProperty: {
17
+ readonly BaseUrl: "baseUrl";
18
+ readonly ForceBaseUrl: "forceBaseUrl";
19
+ };
20
+ export type SystemConfigProperty = typeof SystemConfigProperty[keyof typeof SystemConfigProperty];
21
+ export declare function SystemConfigPropertyFromJSON(json: any): SystemConfigProperty;
22
+ export declare function SystemConfigPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigProperty;
23
+ export declare function SystemConfigPropertyToJSON(value?: SystemConfigProperty | null): any;
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sonatype IQ Server
5
+ * This documents the available APIs into [Sonatype IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management).
6
+ *
7
+ * The version of the OpenAPI document: 165
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ *
16
+ * @export
17
+ */
18
+ export const SystemConfigProperty = {
19
+ BaseUrl: 'baseUrl',
20
+ ForceBaseUrl: 'forceBaseUrl'
21
+ };
22
+ export function SystemConfigPropertyFromJSON(json) {
23
+ return SystemConfigPropertyFromJSONTyped(json, false);
24
+ }
25
+ export function SystemConfigPropertyFromJSONTyped(json, ignoreDiscriminator) {
26
+ return json;
27
+ }
28
+ export function SystemConfigPropertyToJSON(value) {
29
+ return value;
30
+ }
@@ -113,6 +113,7 @@ export * from './ApiRepositoryDTO';
113
113
  export * from './ApiRepositoryPathResponseDTO';
114
114
  export * from './ApiRepositoryPathVersions';
115
115
  export * from './ApiRepositoryWaiverDTO';
116
+ export * from './ApiRequestPolicyWaiverDTO';
116
117
  export * from './ApiReverseProxyAuthenticationConfigurationDTO';
117
118
  export * from './ApiRoleDTO';
118
119
  export * from './ApiRoleListDTO';
@@ -193,6 +194,8 @@ export * from './SecurityVulnerabilityData';
193
194
  export * from './SecurityVulnerabilitySeverity';
194
195
  export * from './SecurityVulnerabilityWeakness';
195
196
  export * from './StageData';
197
+ export * from './SystemConfig';
198
+ export * from './SystemConfigProperty';
196
199
  export * from './TagsByOwnerDTO';
197
200
  export * from './TriggerReference';
198
201
  export * from './ValidationResult';