@sonatype/nexus-iq-api-client 0.165.0 → 0.165.2
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.
- package/.openapi-generator/FILES +3 -0
- package/dist/apis/ConfigApi.d.ts +11 -20
- package/dist/apis/ConfigApi.js +3 -2
- package/dist/apis/PolicyWaiversApi.d.ts +23 -1
- package/dist/apis/PolicyWaiversApi.js +30 -0
- package/dist/esm/apis/ConfigApi.d.ts +11 -20
- package/dist/esm/apis/ConfigApi.js +3 -2
- package/dist/esm/apis/PolicyWaiversApi.d.ts +23 -1
- package/dist/esm/apis/PolicyWaiversApi.js +31 -1
- package/dist/esm/models/ApiMailConfigurationDTO.d.ts +2 -2
- package/dist/esm/models/ApiRequestPolicyWaiverDTO.d.ts +43 -0
- package/dist/esm/models/ApiRequestPolicyWaiverDTO.js +47 -0
- package/dist/esm/models/SystemConfig.d.ts +37 -0
- package/dist/esm/models/SystemConfig.js +45 -0
- package/dist/esm/models/SystemConfigProperty.d.ts +23 -0
- package/dist/esm/models/SystemConfigProperty.js +30 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/ApiMailConfigurationDTO.d.ts +2 -2
- package/dist/models/ApiRequestPolicyWaiverDTO.d.ts +43 -0
- package/dist/models/ApiRequestPolicyWaiverDTO.js +54 -0
- package/dist/models/SystemConfig.d.ts +37 -0
- package/dist/models/SystemConfig.js +52 -0
- package/dist/models/SystemConfigProperty.d.ts +23 -0
- package/dist/models/SystemConfigProperty.js +36 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/ConfigApi.ts +22 -12
- package/src/apis/PolicyWaiversApi.ts +55 -0
- package/src/models/ApiMailConfigurationDTO.ts +2 -2
- package/src/models/ApiRequestPolicyWaiverDTO.ts +81 -0
- package/src/models/SystemConfig.ts +73 -0
- package/src/models/SystemConfigProperty.ts +38 -0
- package/src/models/index.ts +3 -0
|
@@ -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';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -115,6 +115,7 @@ export * from './ApiRepositoryDTO';
|
|
|
115
115
|
export * from './ApiRepositoryPathResponseDTO';
|
|
116
116
|
export * from './ApiRepositoryPathVersions';
|
|
117
117
|
export * from './ApiRepositoryWaiverDTO';
|
|
118
|
+
export * from './ApiRequestPolicyWaiverDTO';
|
|
118
119
|
export * from './ApiReverseProxyAuthenticationConfigurationDTO';
|
|
119
120
|
export * from './ApiRoleDTO';
|
|
120
121
|
export * from './ApiRoleListDTO';
|
|
@@ -195,6 +196,8 @@ export * from './SecurityVulnerabilityData';
|
|
|
195
196
|
export * from './SecurityVulnerabilitySeverity';
|
|
196
197
|
export * from './SecurityVulnerabilityWeakness';
|
|
197
198
|
export * from './StageData';
|
|
199
|
+
export * from './SystemConfig';
|
|
200
|
+
export * from './SystemConfigProperty';
|
|
198
201
|
export * from './TagsByOwnerDTO';
|
|
199
202
|
export * from './TriggerReference';
|
|
200
203
|
export * from './ValidationResult';
|
|
@@ -23,10 +23,10 @@ export interface ApiMailConfigurationDTO {
|
|
|
23
23
|
hostname?: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {string}
|
|
27
27
|
* @memberof ApiMailConfigurationDTO
|
|
28
28
|
*/
|
|
29
|
-
password?:
|
|
29
|
+
password?: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {boolean}
|
|
@@ -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,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sonatype IQ Server
|
|
6
|
+
* This documents the available APIs into [Sonatype IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management).
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 165
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ApiRequestPolicyWaiverDTOToJSON = exports.ApiRequestPolicyWaiverDTOFromJSONTyped = exports.ApiRequestPolicyWaiverDTOFromJSON = exports.instanceOfApiRequestPolicyWaiverDTO = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ApiRequestPolicyWaiverDTO interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfApiRequestPolicyWaiverDTO(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfApiRequestPolicyWaiverDTO = instanceOfApiRequestPolicyWaiverDTO;
|
|
26
|
+
function ApiRequestPolicyWaiverDTOFromJSON(json) {
|
|
27
|
+
return ApiRequestPolicyWaiverDTOFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ApiRequestPolicyWaiverDTOFromJSON = ApiRequestPolicyWaiverDTOFromJSON;
|
|
30
|
+
function ApiRequestPolicyWaiverDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'addWaiverLink': !(0, runtime_1.exists)(json, 'addWaiverLink') ? undefined : json['addWaiverLink'],
|
|
36
|
+
'comment': !(0, runtime_1.exists)(json, 'comment') ? undefined : json['comment'],
|
|
37
|
+
'policyViolationLink': !(0, runtime_1.exists)(json, 'policyViolationLink') ? undefined : json['policyViolationLink'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.ApiRequestPolicyWaiverDTOFromJSONTyped = ApiRequestPolicyWaiverDTOFromJSONTyped;
|
|
41
|
+
function ApiRequestPolicyWaiverDTOToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'addWaiverLink': value.addWaiverLink,
|
|
50
|
+
'comment': value.comment,
|
|
51
|
+
'policyViolationLink': value.policyViolationLink,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.ApiRequestPolicyWaiverDTOToJSON = ApiRequestPolicyWaiverDTOToJSON;
|
|
@@ -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,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sonatype IQ Server
|
|
6
|
+
* This documents the available APIs into [Sonatype IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management).
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 165
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SystemConfigToJSON = exports.SystemConfigFromJSONTyped = exports.SystemConfigFromJSON = exports.instanceOfSystemConfig = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SystemConfig interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSystemConfig(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfSystemConfig = instanceOfSystemConfig;
|
|
26
|
+
function SystemConfigFromJSON(json) {
|
|
27
|
+
return SystemConfigFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.SystemConfigFromJSON = SystemConfigFromJSON;
|
|
30
|
+
function SystemConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'baseUrl': !(0, runtime_1.exists)(json, 'baseUrl') ? undefined : json['baseUrl'],
|
|
36
|
+
'forceBaseUrl': !(0, runtime_1.exists)(json, 'forceBaseUrl') ? undefined : json['forceBaseUrl'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.SystemConfigFromJSONTyped = SystemConfigFromJSONTyped;
|
|
40
|
+
function SystemConfigToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'baseUrl': value.baseUrl,
|
|
49
|
+
'forceBaseUrl': value.forceBaseUrl,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.SystemConfigToJSON = SystemConfigToJSON;
|
|
@@ -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,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sonatype IQ Server
|
|
6
|
+
* This documents the available APIs into [Sonatype IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management).
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 165
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SystemConfigPropertyToJSON = exports.SystemConfigPropertyFromJSONTyped = exports.SystemConfigPropertyFromJSON = exports.SystemConfigProperty = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.SystemConfigProperty = {
|
|
22
|
+
BaseUrl: 'baseUrl',
|
|
23
|
+
ForceBaseUrl: 'forceBaseUrl'
|
|
24
|
+
};
|
|
25
|
+
function SystemConfigPropertyFromJSON(json) {
|
|
26
|
+
return SystemConfigPropertyFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.SystemConfigPropertyFromJSON = SystemConfigPropertyFromJSON;
|
|
29
|
+
function SystemConfigPropertyFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
exports.SystemConfigPropertyFromJSONTyped = SystemConfigPropertyFromJSONTyped;
|
|
33
|
+
function SystemConfigPropertyToJSON(value) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
exports.SystemConfigPropertyToJSON = SystemConfigPropertyToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -131,6 +131,7 @@ __exportStar(require("./ApiRepositoryDTO"), exports);
|
|
|
131
131
|
__exportStar(require("./ApiRepositoryPathResponseDTO"), exports);
|
|
132
132
|
__exportStar(require("./ApiRepositoryPathVersions"), exports);
|
|
133
133
|
__exportStar(require("./ApiRepositoryWaiverDTO"), exports);
|
|
134
|
+
__exportStar(require("./ApiRequestPolicyWaiverDTO"), exports);
|
|
134
135
|
__exportStar(require("./ApiReverseProxyAuthenticationConfigurationDTO"), exports);
|
|
135
136
|
__exportStar(require("./ApiRoleDTO"), exports);
|
|
136
137
|
__exportStar(require("./ApiRoleListDTO"), exports);
|
|
@@ -211,6 +212,8 @@ __exportStar(require("./SecurityVulnerabilityData"), exports);
|
|
|
211
212
|
__exportStar(require("./SecurityVulnerabilitySeverity"), exports);
|
|
212
213
|
__exportStar(require("./SecurityVulnerabilityWeakness"), exports);
|
|
213
214
|
__exportStar(require("./StageData"), exports);
|
|
215
|
+
__exportStar(require("./SystemConfig"), exports);
|
|
216
|
+
__exportStar(require("./SystemConfigProperty"), exports);
|
|
214
217
|
__exportStar(require("./TagsByOwnerDTO"), exports);
|
|
215
218
|
__exportStar(require("./TriggerReference"), exports);
|
|
216
219
|
__exportStar(require("./ValidationResult"), exports);
|
package/package.json
CHANGED
package/src/apis/ConfigApi.ts
CHANGED
|
@@ -14,9 +14,19 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
SystemConfig,
|
|
19
|
+
SystemConfigProperty,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
SystemConfigFromJSON,
|
|
23
|
+
SystemConfigToJSON,
|
|
24
|
+
SystemConfigPropertyFromJSON,
|
|
25
|
+
SystemConfigPropertyToJSON,
|
|
26
|
+
} from '../models/index';
|
|
17
27
|
|
|
18
28
|
export interface DeleteConfigurationRequest {
|
|
19
|
-
property?: Set<
|
|
29
|
+
property?: Set<SystemConfigProperty>;
|
|
20
30
|
}
|
|
21
31
|
|
|
22
32
|
export interface DisableFeatureRequest {
|
|
@@ -28,11 +38,11 @@ export interface EnabledFeatureRequest {
|
|
|
28
38
|
}
|
|
29
39
|
|
|
30
40
|
export interface GetConfigurationRequest {
|
|
31
|
-
property?: Set<
|
|
41
|
+
property?: Set<SystemConfigProperty>;
|
|
32
42
|
}
|
|
33
43
|
|
|
34
44
|
export interface SetConfigurationRequest {
|
|
35
|
-
|
|
45
|
+
systemConfig?: SystemConfig;
|
|
36
46
|
}
|
|
37
47
|
|
|
38
48
|
/**
|
|
@@ -44,7 +54,7 @@ export interface SetConfigurationRequest {
|
|
|
44
54
|
export interface ConfigApiInterface {
|
|
45
55
|
/**
|
|
46
56
|
*
|
|
47
|
-
* @param {Set<
|
|
57
|
+
* @param {Set<SystemConfigProperty>} [property]
|
|
48
58
|
* @param {*} [options] Override http request option.
|
|
49
59
|
* @throws {RequiredError}
|
|
50
60
|
* @memberof ConfigApiInterface
|
|
@@ -83,20 +93,20 @@ export interface ConfigApiInterface {
|
|
|
83
93
|
|
|
84
94
|
/**
|
|
85
95
|
*
|
|
86
|
-
* @param {Set<
|
|
96
|
+
* @param {Set<SystemConfigProperty>} [property]
|
|
87
97
|
* @param {*} [options] Override http request option.
|
|
88
98
|
* @throws {RequiredError}
|
|
89
99
|
* @memberof ConfigApiInterface
|
|
90
100
|
*/
|
|
91
|
-
getConfigurationRaw(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
101
|
+
getConfigurationRaw(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemConfig>>;
|
|
92
102
|
|
|
93
103
|
/**
|
|
94
104
|
*/
|
|
95
|
-
getConfiguration(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
105
|
+
getConfiguration(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemConfig>;
|
|
96
106
|
|
|
97
107
|
/**
|
|
98
108
|
*
|
|
99
|
-
* @param {
|
|
109
|
+
* @param {SystemConfig} [systemConfig]
|
|
100
110
|
* @param {*} [options] Override http request option.
|
|
101
111
|
* @throws {RequiredError}
|
|
102
112
|
* @memberof ConfigApiInterface
|
|
@@ -206,7 +216,7 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
206
216
|
|
|
207
217
|
/**
|
|
208
218
|
*/
|
|
209
|
-
async getConfigurationRaw(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
219
|
+
async getConfigurationRaw(requestParameters: GetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemConfig>> {
|
|
210
220
|
const queryParameters: any = {};
|
|
211
221
|
|
|
212
222
|
if (requestParameters.property) {
|
|
@@ -225,12 +235,12 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
225
235
|
query: queryParameters,
|
|
226
236
|
}, initOverrides);
|
|
227
237
|
|
|
228
|
-
return new runtime.JSONApiResponse
|
|
238
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SystemConfigFromJSON(jsonValue));
|
|
229
239
|
}
|
|
230
240
|
|
|
231
241
|
/**
|
|
232
242
|
*/
|
|
233
|
-
async getConfiguration(requestParameters: GetConfigurationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
243
|
+
async getConfiguration(requestParameters: GetConfigurationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemConfig> {
|
|
234
244
|
const response = await this.getConfigurationRaw(requestParameters, initOverrides);
|
|
235
245
|
return await response.value();
|
|
236
246
|
}
|
|
@@ -252,7 +262,7 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
252
262
|
method: 'PUT',
|
|
253
263
|
headers: headerParameters,
|
|
254
264
|
query: queryParameters,
|
|
255
|
-
body: requestParameters.
|
|
265
|
+
body: SystemConfigToJSON(requestParameters.systemConfig),
|
|
256
266
|
}, initOverrides);
|
|
257
267
|
|
|
258
268
|
return new runtime.VoidApiResponse(response);
|
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ApiComponentPolicyWaiversDTO,
|
|
19
19
|
ApiPolicyWaiverDTO,
|
|
20
|
+
ApiRequestPolicyWaiverDTO,
|
|
20
21
|
ApiWaiverOptionsDTO,
|
|
21
22
|
ComponentIdentifier,
|
|
22
23
|
} from '../models/index';
|
|
@@ -25,6 +26,8 @@ import {
|
|
|
25
26
|
ApiComponentPolicyWaiversDTOToJSON,
|
|
26
27
|
ApiPolicyWaiverDTOFromJSON,
|
|
27
28
|
ApiPolicyWaiverDTOToJSON,
|
|
29
|
+
ApiRequestPolicyWaiverDTOFromJSON,
|
|
30
|
+
ApiRequestPolicyWaiverDTOToJSON,
|
|
28
31
|
ApiWaiverOptionsDTOFromJSON,
|
|
29
32
|
ApiWaiverOptionsDTOToJSON,
|
|
30
33
|
ComponentIdentifierFromJSON,
|
|
@@ -84,6 +87,11 @@ export interface GetTransitivePolicyWaiversByAppScanComponentRequest {
|
|
|
84
87
|
hash?: string;
|
|
85
88
|
}
|
|
86
89
|
|
|
90
|
+
export interface RequestPolicyWaiverRequest {
|
|
91
|
+
policyViolationId: string;
|
|
92
|
+
apiRequestPolicyWaiverDTO?: ApiRequestPolicyWaiverDTO;
|
|
93
|
+
}
|
|
94
|
+
|
|
87
95
|
/**
|
|
88
96
|
* PolicyWaiversApi - interface
|
|
89
97
|
*
|
|
@@ -207,6 +215,20 @@ export interface PolicyWaiversApiInterface {
|
|
|
207
215
|
*/
|
|
208
216
|
getTransitivePolicyWaiversByAppScanComponent(requestParameters: GetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentPolicyWaiversDTO>;
|
|
209
217
|
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @param {string} policyViolationId
|
|
221
|
+
* @param {ApiRequestPolicyWaiverDTO} [apiRequestPolicyWaiverDTO]
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
* @memberof PolicyWaiversApiInterface
|
|
225
|
+
*/
|
|
226
|
+
requestPolicyWaiverRaw(requestParameters: RequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
*/
|
|
230
|
+
requestPolicyWaiver(requestParameters: RequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
231
|
+
|
|
210
232
|
}
|
|
211
233
|
|
|
212
234
|
/**
|
|
@@ -524,6 +546,39 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
524
546
|
return await response.value();
|
|
525
547
|
}
|
|
526
548
|
|
|
549
|
+
/**
|
|
550
|
+
*/
|
|
551
|
+
async requestPolicyWaiverRaw(requestParameters: RequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
552
|
+
if (requestParameters.policyViolationId === null || requestParameters.policyViolationId === undefined) {
|
|
553
|
+
throw new runtime.RequiredError('policyViolationId','Required parameter requestParameters.policyViolationId was null or undefined when calling requestPolicyWaiver.');
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
const queryParameters: any = {};
|
|
557
|
+
|
|
558
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
559
|
+
|
|
560
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
561
|
+
|
|
562
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
563
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
564
|
+
}
|
|
565
|
+
const response = await this.request({
|
|
566
|
+
path: `/api/v2/policyWaivers/waiverRequests/{policyViolationId}`.replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters.policyViolationId))),
|
|
567
|
+
method: 'POST',
|
|
568
|
+
headers: headerParameters,
|
|
569
|
+
query: queryParameters,
|
|
570
|
+
body: ApiRequestPolicyWaiverDTOToJSON(requestParameters.apiRequestPolicyWaiverDTO),
|
|
571
|
+
}, initOverrides);
|
|
572
|
+
|
|
573
|
+
return new runtime.VoidApiResponse(response);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
*/
|
|
578
|
+
async requestPolicyWaiver(requestParameters: RequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
579
|
+
await this.requestPolicyWaiverRaw(requestParameters, initOverrides);
|
|
580
|
+
}
|
|
581
|
+
|
|
527
582
|
}
|
|
528
583
|
|
|
529
584
|
/**
|
|
@@ -27,10 +27,10 @@ export interface ApiMailConfigurationDTO {
|
|
|
27
27
|
hostname?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {string}
|
|
31
31
|
* @memberof ApiMailConfigurationDTO
|
|
32
32
|
*/
|
|
33
|
-
password?:
|
|
33
|
+
password?: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {boolean}
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiRequestPolicyWaiverDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiRequestPolicyWaiverDTO {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiRequestPolicyWaiverDTO
|
|
26
|
+
*/
|
|
27
|
+
addWaiverLink?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiRequestPolicyWaiverDTO
|
|
32
|
+
*/
|
|
33
|
+
comment?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiRequestPolicyWaiverDTO
|
|
38
|
+
*/
|
|
39
|
+
policyViolationLink?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ApiRequestPolicyWaiverDTO interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfApiRequestPolicyWaiverDTO(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
|
|
48
|
+
return isInstance;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ApiRequestPolicyWaiverDTOFromJSON(json: any): ApiRequestPolicyWaiverDTO {
|
|
52
|
+
return ApiRequestPolicyWaiverDTOFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ApiRequestPolicyWaiverDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiRequestPolicyWaiverDTO {
|
|
56
|
+
if ((json === undefined) || (json === null)) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'addWaiverLink': !exists(json, 'addWaiverLink') ? undefined : json['addWaiverLink'],
|
|
62
|
+
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
63
|
+
'policyViolationLink': !exists(json, 'policyViolationLink') ? undefined : json['policyViolationLink'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ApiRequestPolicyWaiverDTOToJSON(value?: ApiRequestPolicyWaiverDTO | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'addWaiverLink': value.addWaiverLink,
|
|
77
|
+
'comment': value.comment,
|
|
78
|
+
'policyViolationLink': value.policyViolationLink,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|