@sonatype/nexus-iq-api-client 0.156.0 → 0.156.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/VERSION +1 -1
- package/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
- package/dist/apis/ApplicationCategoriesApi.js +42 -12
- package/dist/apis/ApplicationsApi.d.ts +5 -5
- package/dist/apis/ApplicationsApi.js +55 -15
- package/dist/apis/ClaimApi.d.ts +1 -1
- package/dist/apis/ClaimApi.js +17 -5
- package/dist/apis/ComponentsApi.d.ts +1 -1
- package/dist/apis/ComponentsApi.js +21 -6
- package/dist/apis/CompositeSourceControlApi.d.ts +1 -1
- package/dist/apis/CompositeSourceControlApi.js +5 -2
- package/dist/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
- package/dist/apis/CompositeSourceControlConfigValidatorApi.js +5 -2
- package/dist/apis/ConfigApi.js +15 -0
- package/dist/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
- package/dist/apis/ConfigArtifactoryConnectionApi.js +35 -11
- package/dist/apis/ConfigCrowdApi.d.ts +1 -1
- package/dist/apis/ConfigCrowdApi.js +17 -5
- package/dist/apis/ConfigJIRAApi.d.ts +1 -1
- package/dist/apis/ConfigJIRAApi.js +11 -2
- package/dist/apis/ConfigMailApi.d.ts +1 -1
- package/dist/apis/ConfigMailApi.js +16 -4
- package/dist/apis/ConfigProxyServerApi.d.ts +1 -1
- package/dist/apis/ConfigProxyServerApi.js +12 -3
- package/dist/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
- package/dist/apis/ConfigReverseProxyAuthenticationApi.js +12 -3
- package/dist/apis/ConfigSAMLApi.d.ts +1 -1
- package/dist/apis/ConfigSAMLApi.js +11 -2
- package/dist/apis/ConfigSourceControlApi.d.ts +1 -1
- package/dist/apis/ConfigSourceControlApi.js +11 -2
- package/dist/apis/CycloneDxApi.js +12 -0
- package/dist/apis/DataRetentionPoliciesApi.d.ts +1 -1
- package/dist/apis/DataRetentionPoliciesApi.js +9 -3
- package/dist/apis/EndpointsApi.js +3 -0
- package/dist/apis/EvaluationApi.d.ts +1 -1
- package/dist/apis/EvaluationApi.js +29 -11
- package/dist/apis/FirewallApi.d.ts +1 -1
- package/dist/apis/FirewallApi.js +30 -6
- package/dist/apis/LabelsApi.d.ts +1 -1
- package/dist/apis/LabelsApi.js +26 -8
- package/dist/apis/LicenseLegalMetadataApi.d.ts +1 -1
- package/dist/apis/LicenseLegalMetadataApi.js +48 -9
- package/dist/apis/OrganizationsApi.d.ts +1 -1
- package/dist/apis/OrganizationsApi.js +14 -5
- package/dist/apis/PoliciesApi.d.ts +1 -1
- package/dist/apis/PoliciesApi.js +5 -2
- package/dist/apis/PolicyViolationsApi.d.ts +1 -1
- package/dist/apis/PolicyViolationsApi.js +25 -7
- package/dist/apis/PolicyWaiverApi.js +3 -0
- package/dist/apis/PolicyWaiversApi.d.ts +1 -1
- package/dist/apis/PolicyWaiversApi.js +28 -7
- package/dist/apis/ReportsApi.d.ts +1 -1
- package/dist/apis/ReportsApi.js +29 -8
- package/dist/apis/RepositoriesApi.d.ts +1 -1
- package/dist/apis/RepositoriesApi.js +9 -3
- package/dist/apis/RoleMembershipsApi.d.ts +1 -1
- package/dist/apis/RoleMembershipsApi.js +21 -3
- package/dist/apis/RolesApi.d.ts +1 -1
- package/dist/apis/RolesApi.js +5 -2
- package/dist/apis/ScanApi.d.ts +1 -1
- package/dist/apis/ScanApi.js +8 -2
- package/dist/apis/SearchApi.d.ts +1 -1
- package/dist/apis/SearchApi.js +15 -3
- package/dist/apis/SecurityOverridesApi.d.ts +1 -1
- package/dist/apis/SecurityOverridesApi.js +5 -2
- package/dist/apis/SourceControlApi.d.ts +1 -1
- package/dist/apis/SourceControlApi.js +22 -7
- package/dist/apis/SourceControlMetricsApi.d.ts +1 -1
- package/dist/apis/SourceControlMetricsApi.js +5 -2
- package/dist/apis/TelemetryApi.js +3 -0
- package/dist/apis/UserTokensApi.d.ts +1 -1
- package/dist/apis/UserTokensApi.js +26 -5
- package/dist/apis/UsersApi.d.ts +1 -1
- package/dist/apis/UsersApi.js +21 -6
- package/dist/apis/VulnerabilitiesApi.d.ts +1 -1
- package/dist/apis/VulnerabilitiesApi.js +5 -2
- package/dist/esm/apis/ApplicationCategoriesApi.d.ts +1 -1
- package/dist/esm/apis/ApplicationCategoriesApi.js +31 -1
- package/dist/esm/apis/ApplicationsApi.d.ts +5 -5
- package/dist/esm/apis/ApplicationsApi.js +43 -3
- package/dist/esm/apis/ClaimApi.d.ts +1 -1
- package/dist/esm/apis/ClaimApi.js +13 -1
- package/dist/esm/apis/ComponentsApi.d.ts +1 -1
- package/dist/esm/apis/ComponentsApi.js +16 -1
- package/dist/esm/apis/CompositeSourceControlApi.d.ts +1 -1
- package/dist/esm/apis/CompositeSourceControlApi.js +4 -1
- package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
- package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.js +4 -1
- package/dist/esm/apis/ConfigApi.js +15 -0
- package/dist/esm/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
- package/dist/esm/apis/ConfigArtifactoryConnectionApi.js +25 -1
- package/dist/esm/apis/ConfigCrowdApi.d.ts +1 -1
- package/dist/esm/apis/ConfigCrowdApi.js +13 -1
- package/dist/esm/apis/ConfigJIRAApi.d.ts +1 -1
- package/dist/esm/apis/ConfigJIRAApi.js +10 -1
- package/dist/esm/apis/ConfigMailApi.d.ts +1 -1
- package/dist/esm/apis/ConfigMailApi.js +13 -1
- package/dist/esm/apis/ConfigProxyServerApi.d.ts +1 -1
- package/dist/esm/apis/ConfigProxyServerApi.js +10 -1
- package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
- package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.js +10 -1
- package/dist/esm/apis/ConfigSAMLApi.d.ts +1 -1
- package/dist/esm/apis/ConfigSAMLApi.js +10 -1
- package/dist/esm/apis/ConfigSourceControlApi.d.ts +1 -1
- package/dist/esm/apis/ConfigSourceControlApi.js +10 -1
- package/dist/esm/apis/CycloneDxApi.js +12 -0
- package/dist/esm/apis/DataRetentionPoliciesApi.d.ts +1 -1
- package/dist/esm/apis/DataRetentionPoliciesApi.js +7 -1
- package/dist/esm/apis/EndpointsApi.js +3 -0
- package/dist/esm/apis/EvaluationApi.d.ts +1 -1
- package/dist/esm/apis/EvaluationApi.js +19 -1
- package/dist/esm/apis/FirewallApi.d.ts +1 -1
- package/dist/esm/apis/FirewallApi.js +25 -1
- package/dist/esm/apis/LabelsApi.d.ts +1 -1
- package/dist/esm/apis/LabelsApi.js +19 -1
- package/dist/esm/apis/LicenseLegalMetadataApi.d.ts +1 -1
- package/dist/esm/apis/LicenseLegalMetadataApi.js +40 -1
- package/dist/esm/apis/OrganizationsApi.d.ts +1 -1
- package/dist/esm/apis/OrganizationsApi.js +10 -1
- package/dist/esm/apis/PoliciesApi.d.ts +1 -1
- package/dist/esm/apis/PoliciesApi.js +4 -1
- package/dist/esm/apis/PolicyViolationsApi.d.ts +1 -1
- package/dist/esm/apis/PolicyViolationsApi.js +19 -1
- package/dist/esm/apis/PolicyWaiverApi.js +3 -0
- package/dist/esm/apis/PolicyWaiversApi.d.ts +1 -1
- package/dist/esm/apis/PolicyWaiversApi.js +22 -1
- package/dist/esm/apis/ReportsApi.d.ts +1 -1
- package/dist/esm/apis/ReportsApi.js +22 -1
- package/dist/esm/apis/RepositoriesApi.d.ts +1 -1
- package/dist/esm/apis/RepositoriesApi.js +7 -1
- package/dist/esm/apis/RoleMembershipsApi.d.ts +1 -1
- package/dist/esm/apis/RoleMembershipsApi.js +19 -1
- package/dist/esm/apis/RolesApi.d.ts +1 -1
- package/dist/esm/apis/RolesApi.js +4 -1
- package/dist/esm/apis/ScanApi.d.ts +1 -1
- package/dist/esm/apis/ScanApi.js +7 -1
- package/dist/esm/apis/SearchApi.d.ts +1 -1
- package/dist/esm/apis/SearchApi.js +13 -1
- package/dist/esm/apis/SecurityOverridesApi.d.ts +1 -1
- package/dist/esm/apis/SecurityOverridesApi.js +4 -1
- package/dist/esm/apis/SourceControlApi.d.ts +1 -1
- package/dist/esm/apis/SourceControlApi.js +16 -1
- package/dist/esm/apis/SourceControlMetricsApi.d.ts +1 -1
- package/dist/esm/apis/SourceControlMetricsApi.js +4 -1
- package/dist/esm/apis/TelemetryApi.js +3 -0
- package/dist/esm/apis/UserTokensApi.d.ts +1 -1
- package/dist/esm/apis/UserTokensApi.js +22 -1
- package/dist/esm/apis/UsersApi.d.ts +1 -1
- package/dist/esm/apis/UsersApi.js +16 -1
- package/dist/esm/apis/VulnerabilitiesApi.d.ts +1 -1
- package/dist/esm/apis/VulnerabilitiesApi.js +4 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/runtime.js +13 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/runtime.js +13 -5
- package/package.json +1 -1
- package/src/apis/ApplicationCategoriesApi.ts +32 -2
- package/src/apis/ApplicationsApi.ts +48 -8
- package/src/apis/ClaimApi.ts +14 -2
- package/src/apis/ComponentsApi.ts +17 -2
- package/src/apis/CompositeSourceControlApi.ts +5 -2
- package/src/apis/CompositeSourceControlConfigValidatorApi.ts +5 -2
- package/src/apis/ConfigApi.ts +15 -0
- package/src/apis/ConfigArtifactoryConnectionApi.ts +26 -2
- package/src/apis/ConfigCrowdApi.ts +14 -2
- package/src/apis/ConfigJIRAApi.ts +11 -2
- package/src/apis/ConfigMailApi.ts +14 -2
- package/src/apis/ConfigProxyServerApi.ts +11 -2
- package/src/apis/ConfigReverseProxyAuthenticationApi.ts +11 -2
- package/src/apis/ConfigSAMLApi.ts +11 -2
- package/src/apis/ConfigSourceControlApi.ts +11 -2
- package/src/apis/CycloneDxApi.ts +12 -0
- package/src/apis/DataRetentionPoliciesApi.ts +8 -2
- package/src/apis/EndpointsApi.ts +3 -0
- package/src/apis/EvaluationApi.ts +20 -2
- package/src/apis/FirewallApi.ts +26 -2
- package/src/apis/LabelsApi.ts +20 -2
- package/src/apis/LicenseLegalMetadataApi.ts +41 -2
- package/src/apis/OrganizationsApi.ts +11 -2
- package/src/apis/PoliciesApi.ts +5 -2
- package/src/apis/PolicyViolationsApi.ts +20 -2
- package/src/apis/PolicyWaiverApi.ts +3 -0
- package/src/apis/PolicyWaiversApi.ts +23 -2
- package/src/apis/ReportsApi.ts +23 -2
- package/src/apis/RepositoriesApi.ts +8 -2
- package/src/apis/RoleMembershipsApi.ts +20 -2
- package/src/apis/RolesApi.ts +5 -2
- package/src/apis/ScanApi.ts +8 -2
- package/src/apis/SearchApi.ts +14 -2
- package/src/apis/SecurityOverridesApi.ts +5 -2
- package/src/apis/SourceControlApi.ts +17 -2
- package/src/apis/SourceControlMetricsApi.ts +5 -2
- package/src/apis/TelemetryApi.ts +3 -0
- package/src/apis/UserTokensApi.ts +23 -2
- package/src/apis/UsersApi.ts +17 -2
- package/src/apis/VulnerabilitiesApi.ts +5 -2
- package/src/index.ts +2 -2
- package/src/runtime.ts +12 -6
|
@@ -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 { ApiRoleListDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiRoleListDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -32,6 +32,9 @@ export class RolesApi extends runtime.BaseAPI {
|
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
const queryParameters = {};
|
|
34
34
|
const headerParameters = {};
|
|
35
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
36
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
37
|
+
}
|
|
35
38
|
const response = yield this.request({
|
|
36
39
|
path: `/api/v2/roles`,
|
|
37
40
|
method: 'GET',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiThirdPartyScanResultDTO } from '../models';
|
|
13
|
+
import type { ApiThirdPartyScanResultDTO } from '../models/index';
|
|
14
14
|
export interface GetScanStatusRequest {
|
|
15
15
|
applicationId: string;
|
|
16
16
|
scanRequestId: string;
|
package/dist/esm/apis/ScanApi.js
CHANGED
|
@@ -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 { ApiThirdPartyScanResultDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiThirdPartyScanResultDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -38,6 +38,9 @@ export class ScanApi extends runtime.BaseAPI {
|
|
|
38
38
|
}
|
|
39
39
|
const queryParameters = {};
|
|
40
40
|
const headerParameters = {};
|
|
41
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
42
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
43
|
+
}
|
|
41
44
|
const response = yield this.request({
|
|
42
45
|
path: `/api/v2/scan/applications/{applicationId}/status/{scanRequestId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"scanRequestId"}}`, encodeURIComponent(String(requestParameters.scanRequestId))),
|
|
43
46
|
method: 'GET',
|
|
@@ -71,6 +74,9 @@ export class ScanApi extends runtime.BaseAPI {
|
|
|
71
74
|
}
|
|
72
75
|
const headerParameters = {};
|
|
73
76
|
headerParameters['Content-Type'] = 'application/xml';
|
|
77
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
78
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
79
|
+
}
|
|
74
80
|
const response = yield this.request({
|
|
75
81
|
path: `/api/v2/scan/applications/{applicationId}/sources/{source}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"source"}}`, encodeURIComponent(String(requestParameters.source))),
|
|
76
82
|
method: 'POST',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiSearchResultsDTOV2, ComponentIdentifier, SearchResultDTO } from '../models';
|
|
13
|
+
import type { ApiSearchResultsDTOV2, ComponentIdentifier, SearchResultDTO } from '../models/index';
|
|
14
14
|
export interface GetExportResultsRequest {
|
|
15
15
|
query?: string;
|
|
16
16
|
allComponents?: boolean;
|
|
@@ -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 { ApiSearchResultsDTOV2FromJSON, SearchResultDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiSearchResultsDTOV2FromJSON, SearchResultDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -32,6 +32,9 @@ export class SearchApi extends runtime.BaseAPI {
|
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
const queryParameters = {};
|
|
34
34
|
const headerParameters = {};
|
|
35
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
36
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
37
|
+
}
|
|
35
38
|
const response = yield this.request({
|
|
36
39
|
path: `/api/v2/search/advanced/index`,
|
|
37
40
|
method: 'POST',
|
|
@@ -60,6 +63,9 @@ export class SearchApi extends runtime.BaseAPI {
|
|
|
60
63
|
queryParameters['allComponents'] = requestParameters.allComponents;
|
|
61
64
|
}
|
|
62
65
|
const headerParameters = {};
|
|
66
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
67
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
68
|
+
}
|
|
63
69
|
const response = yield this.request({
|
|
64
70
|
path: `/api/v2/search/advanced/export/csv`,
|
|
65
71
|
method: 'GET',
|
|
@@ -94,6 +100,9 @@ export class SearchApi extends runtime.BaseAPI {
|
|
|
94
100
|
queryParameters['packageUrl'] = requestParameters.packageUrl;
|
|
95
101
|
}
|
|
96
102
|
const headerParameters = {};
|
|
103
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
104
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
105
|
+
}
|
|
97
106
|
const response = yield this.request({
|
|
98
107
|
path: `/api/v2/search/component`,
|
|
99
108
|
method: 'GET',
|
|
@@ -129,6 +138,9 @@ export class SearchApi extends runtime.BaseAPI {
|
|
|
129
138
|
queryParameters['allComponents'] = requestParameters.allComponents;
|
|
130
139
|
}
|
|
131
140
|
const headerParameters = {};
|
|
141
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
142
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
143
|
+
}
|
|
132
144
|
const response = yield this.request({
|
|
133
145
|
path: `/api/v2/search/advanced`,
|
|
134
146
|
method: 'GET',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiSecurityVulnerabilityOverrideResponseDTOV2 } from '../models';
|
|
13
|
+
import type { ApiSecurityVulnerabilityOverrideResponseDTOV2 } from '../models/index';
|
|
14
14
|
export interface GetSecurityVulnerabilityOverridesRequest {
|
|
15
15
|
refId?: string;
|
|
16
16
|
componentPurl?: string;
|
|
@@ -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 { ApiSecurityVulnerabilityOverrideResponseDTOV2FromJSON, } from '../models';
|
|
24
|
+
import { ApiSecurityVulnerabilityOverrideResponseDTOV2FromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -41,6 +41,9 @@ export class SecurityOverridesApi extends runtime.BaseAPI {
|
|
|
41
41
|
queryParameters['ownerId'] = requestParameters.ownerId;
|
|
42
42
|
}
|
|
43
43
|
const headerParameters = {};
|
|
44
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
45
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
46
|
+
}
|
|
44
47
|
const response = yield this.request({
|
|
45
48
|
path: `/api/v2/securityOverrides`,
|
|
46
49
|
method: 'GET',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiSourceControlDTO } from '../models';
|
|
13
|
+
import type { ApiSourceControlDTO } from '../models/index';
|
|
14
14
|
export interface AddOrUpdateSourceControlRequest {
|
|
15
15
|
publicId?: string;
|
|
16
16
|
repositoryUrl?: string;
|
|
@@ -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 { ApiSourceControlDTOFromJSON, ApiSourceControlDTOToJSON, } from '../models';
|
|
24
|
+
import { ApiSourceControlDTOFromJSON, ApiSourceControlDTOToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -38,6 +38,9 @@ export class SourceControlApi extends runtime.BaseAPI {
|
|
|
38
38
|
queryParameters['repositoryUrl'] = requestParameters.repositoryUrl;
|
|
39
39
|
}
|
|
40
40
|
const headerParameters = {};
|
|
41
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
42
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
43
|
+
}
|
|
41
44
|
const response = yield this.request({
|
|
42
45
|
path: `/api/v2/sourceControl`,
|
|
43
46
|
method: 'POST',
|
|
@@ -68,6 +71,9 @@ export class SourceControlApi extends runtime.BaseAPI {
|
|
|
68
71
|
const queryParameters = {};
|
|
69
72
|
const headerParameters = {};
|
|
70
73
|
headerParameters['Content-Type'] = 'application/json';
|
|
74
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
75
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
76
|
+
}
|
|
71
77
|
const response = yield this.request({
|
|
72
78
|
path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
73
79
|
method: 'POST',
|
|
@@ -98,6 +104,9 @@ export class SourceControlApi extends runtime.BaseAPI {
|
|
|
98
104
|
}
|
|
99
105
|
const queryParameters = {};
|
|
100
106
|
const headerParameters = {};
|
|
107
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
108
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
109
|
+
}
|
|
101
110
|
const response = yield this.request({
|
|
102
111
|
path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
103
112
|
method: 'DELETE',
|
|
@@ -126,6 +135,9 @@ export class SourceControlApi extends runtime.BaseAPI {
|
|
|
126
135
|
}
|
|
127
136
|
const queryParameters = {};
|
|
128
137
|
const headerParameters = {};
|
|
138
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
139
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
140
|
+
}
|
|
129
141
|
const response = yield this.request({
|
|
130
142
|
path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
131
143
|
method: 'GET',
|
|
@@ -156,6 +168,9 @@ export class SourceControlApi extends runtime.BaseAPI {
|
|
|
156
168
|
const queryParameters = {};
|
|
157
169
|
const headerParameters = {};
|
|
158
170
|
headerParameters['Content-Type'] = 'application/json';
|
|
171
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
172
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
173
|
+
}
|
|
159
174
|
const response = yield this.request({
|
|
160
175
|
path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
161
176
|
method: 'PUT',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiPullRequestResults } from '../models';
|
|
13
|
+
import type { ApiPullRequestResults } from '../models/index';
|
|
14
14
|
export interface GetSourceControlRequest {
|
|
15
15
|
ownerType: GetSourceControlOwnerTypeEnum;
|
|
16
16
|
internalOwnerId: string;
|
|
@@ -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 { ApiPullRequestResultsFromJSON, } from '../models';
|
|
24
|
+
import { ApiPullRequestResultsFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -38,6 +38,9 @@ export class SourceControlMetricsApi extends runtime.BaseAPI {
|
|
|
38
38
|
}
|
|
39
39
|
const queryParameters = {};
|
|
40
40
|
const headerParameters = {};
|
|
41
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
42
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
43
|
+
}
|
|
41
44
|
const response = yield this.request({
|
|
42
45
|
path: `/api/v2/sourceControlMetrics/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
43
46
|
method: 'GET',
|
|
@@ -35,6 +35,9 @@ export class TelemetryApi extends runtime.BaseAPI {
|
|
|
35
35
|
if (requestParameters.userAgent !== undefined && requestParameters.userAgent !== null) {
|
|
36
36
|
headerParameters['user-agent'] = String(requestParameters.userAgent);
|
|
37
37
|
}
|
|
38
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
39
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
40
|
+
}
|
|
38
41
|
const response = yield this.request({
|
|
39
42
|
path: `/api/v2/telemetry`,
|
|
40
43
|
method: 'POST',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiUserTokenDTO, ApiUserTokenExistsDTO } from '../models';
|
|
13
|
+
import type { ApiUserTokenDTO, ApiUserTokenExistsDTO } from '../models/index';
|
|
14
14
|
export interface DeleteUserTokenByUserCodeRequest {
|
|
15
15
|
userCode: string;
|
|
16
16
|
}
|
|
@@ -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 { ApiUserTokenDTOFromJSON, ApiUserTokenExistsDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiUserTokenDTOFromJSON, ApiUserTokenExistsDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -32,6 +32,9 @@ export class UserTokensApi extends runtime.BaseAPI {
|
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
const queryParameters = {};
|
|
34
34
|
const headerParameters = {};
|
|
35
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
36
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
37
|
+
}
|
|
35
38
|
const response = yield this.request({
|
|
36
39
|
path: `/api/v2/userTokens/currentUser`,
|
|
37
40
|
method: 'POST',
|
|
@@ -55,6 +58,9 @@ export class UserTokensApi extends runtime.BaseAPI {
|
|
|
55
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
59
|
const queryParameters = {};
|
|
57
60
|
const headerParameters = {};
|
|
61
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
62
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
63
|
+
}
|
|
58
64
|
const response = yield this.request({
|
|
59
65
|
path: `/api/v2/userTokens/currentUser`,
|
|
60
66
|
method: 'DELETE',
|
|
@@ -80,6 +86,9 @@ export class UserTokensApi extends runtime.BaseAPI {
|
|
|
80
86
|
}
|
|
81
87
|
const queryParameters = {};
|
|
82
88
|
const headerParameters = {};
|
|
89
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
90
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
91
|
+
}
|
|
83
92
|
const response = yield this.request({
|
|
84
93
|
path: `/api/v2/userTokens/userCode/{userCode}`.replace(`{${"userCode"}}`, encodeURIComponent(String(requestParameters.userCode))),
|
|
85
94
|
method: 'DELETE',
|
|
@@ -108,6 +117,9 @@ export class UserTokensApi extends runtime.BaseAPI {
|
|
|
108
117
|
queryParameters['realm'] = requestParameters.realm;
|
|
109
118
|
}
|
|
110
119
|
const headerParameters = {};
|
|
120
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
121
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
122
|
+
}
|
|
111
123
|
const response = yield this.request({
|
|
112
124
|
path: `/api/v2/userTokens/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
|
|
113
125
|
method: 'GET',
|
|
@@ -131,6 +143,9 @@ export class UserTokensApi extends runtime.BaseAPI {
|
|
|
131
143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
132
144
|
const queryParameters = {};
|
|
133
145
|
const headerParameters = {};
|
|
146
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
147
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
148
|
+
}
|
|
134
149
|
const response = yield this.request({
|
|
135
150
|
path: `/api/v2/userTokens/currentUser/hasToken`,
|
|
136
151
|
method: 'GET',
|
|
@@ -163,6 +178,9 @@ export class UserTokensApi extends runtime.BaseAPI {
|
|
|
163
178
|
queryParameters['realm'] = requestParameters.realm;
|
|
164
179
|
}
|
|
165
180
|
const headerParameters = {};
|
|
181
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
182
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
183
|
+
}
|
|
166
184
|
const response = yield this.request({
|
|
167
185
|
path: `/api/v2/userTokens`,
|
|
168
186
|
method: 'GET',
|
|
@@ -186,6 +204,9 @@ export class UserTokensApi extends runtime.BaseAPI {
|
|
|
186
204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
205
|
const queryParameters = {};
|
|
188
206
|
const headerParameters = {};
|
|
207
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
208
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
209
|
+
}
|
|
189
210
|
const response = yield this.request({
|
|
190
211
|
path: `/api/v2/userTokens/purge`,
|
|
191
212
|
method: 'DELETE',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiUserDTO, ApiUserListDTO } from '../models';
|
|
13
|
+
import type { ApiUserDTO, ApiUserListDTO } from '../models/index';
|
|
14
14
|
export interface AddRequest {
|
|
15
15
|
apiUserDTO?: ApiUserDTO;
|
|
16
16
|
}
|
|
@@ -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 { ApiUserDTOFromJSON, ApiUserDTOToJSON, ApiUserListDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiUserDTOFromJSON, ApiUserDTOToJSON, ApiUserListDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -33,6 +33,9 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
33
33
|
const queryParameters = {};
|
|
34
34
|
const headerParameters = {};
|
|
35
35
|
headerParameters['Content-Type'] = 'application/json';
|
|
36
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
37
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
38
|
+
}
|
|
36
39
|
const response = yield this.request({
|
|
37
40
|
path: `/api/v2/users`,
|
|
38
41
|
method: 'POST',
|
|
@@ -62,6 +65,9 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
62
65
|
queryParameters['realm'] = requestParameters.realm;
|
|
63
66
|
}
|
|
64
67
|
const headerParameters = {};
|
|
68
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
69
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
70
|
+
}
|
|
65
71
|
const response = yield this.request({
|
|
66
72
|
path: `/api/v2/users/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
|
|
67
73
|
method: 'DELETE',
|
|
@@ -90,6 +96,9 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
90
96
|
queryParameters['realm'] = requestParameters.realm;
|
|
91
97
|
}
|
|
92
98
|
const headerParameters = {};
|
|
99
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
100
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
101
|
+
}
|
|
93
102
|
const response = yield this.request({
|
|
94
103
|
path: `/api/v2/users/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
|
|
95
104
|
method: 'GET',
|
|
@@ -116,6 +125,9 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
116
125
|
queryParameters['realm'] = requestParameters.realm;
|
|
117
126
|
}
|
|
118
127
|
const headerParameters = {};
|
|
128
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
129
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
130
|
+
}
|
|
119
131
|
const response = yield this.request({
|
|
120
132
|
path: `/api/v2/users`,
|
|
121
133
|
method: 'GET',
|
|
@@ -143,6 +155,9 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
143
155
|
const queryParameters = {};
|
|
144
156
|
const headerParameters = {};
|
|
145
157
|
headerParameters['Content-Type'] = 'application/json';
|
|
158
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
159
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
160
|
+
}
|
|
146
161
|
const response = yield this.request({
|
|
147
162
|
path: `/api/v2/users/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
|
|
148
163
|
method: 'PUT',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ComponentIdentifier, SecurityVulnerabilityData } from '../models';
|
|
13
|
+
import type { ComponentIdentifier, SecurityVulnerabilityData } from '../models/index';
|
|
14
14
|
export interface GetSecurityVulnerabilityDetailsRequest {
|
|
15
15
|
refId: string;
|
|
16
16
|
componentIdentifier?: ComponentIdentifier;
|
|
@@ -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 { SecurityVulnerabilityDataFromJSON, } from '../models';
|
|
24
|
+
import { SecurityVulnerabilityDataFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -50,6 +50,9 @@ export class VulnerabilitiesApi extends runtime.BaseAPI {
|
|
|
50
50
|
queryParameters['ownerId'] = requestParameters.ownerId;
|
|
51
51
|
}
|
|
52
52
|
const headerParameters = {};
|
|
53
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
54
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
55
|
+
}
|
|
53
56
|
const response = yield this.request({
|
|
54
57
|
path: `/api/v2/vulnerabilities/{refId}`.replace(`{${"refId"}}`, encodeURIComponent(String(requestParameters.refId))),
|
|
55
58
|
method: 'GET',
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from './runtime';
|
|
2
|
-
export * from './apis';
|
|
3
|
-
export * from './models';
|
|
2
|
+
export * from './apis/index';
|
|
3
|
+
export * from './models/index';
|
package/dist/esm/index.js
CHANGED
package/dist/esm/runtime.js
CHANGED
|
@@ -183,11 +183,19 @@ export class BaseAPI {
|
|
|
183
183
|
init: initParams,
|
|
184
184
|
context,
|
|
185
185
|
})));
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
186
|
+
let body;
|
|
187
|
+
if (isFormData(overriddenInit.body)
|
|
188
|
+
|| (overriddenInit.body instanceof URLSearchParams)
|
|
189
|
+
|| isBlob(overriddenInit.body)) {
|
|
190
|
+
body = overriddenInit.body;
|
|
191
|
+
}
|
|
192
|
+
else if (this.isJsonMime(headers['Content-Type'])) {
|
|
193
|
+
body = JSON.stringify(overriddenInit.body);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
body = overriddenInit.body;
|
|
197
|
+
}
|
|
198
|
+
const init = Object.assign(Object.assign({}, overriddenInit), { body });
|
|
191
199
|
return { url, init };
|
|
192
200
|
});
|
|
193
201
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from './runtime';
|
|
2
|
-
export * from './apis';
|
|
3
|
-
export * from './models';
|
|
2
|
+
export * from './apis/index';
|
|
3
|
+
export * from './models/index';
|
package/dist/index.js
CHANGED
|
@@ -17,5 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./runtime"), exports);
|
|
20
|
-
__exportStar(require("./apis"), exports);
|
|
21
|
-
__exportStar(require("./models"), exports);
|
|
20
|
+
__exportStar(require("./apis/index"), exports);
|
|
21
|
+
__exportStar(require("./models/index"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -187,11 +187,19 @@ class BaseAPI {
|
|
|
187
187
|
init: initParams,
|
|
188
188
|
context,
|
|
189
189
|
})));
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
let body;
|
|
191
|
+
if (isFormData(overriddenInit.body)
|
|
192
|
+
|| (overriddenInit.body instanceof URLSearchParams)
|
|
193
|
+
|| isBlob(overriddenInit.body)) {
|
|
194
|
+
body = overriddenInit.body;
|
|
195
|
+
}
|
|
196
|
+
else if (this.isJsonMime(headers['Content-Type'])) {
|
|
197
|
+
body = JSON.stringify(overriddenInit.body);
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
body = overriddenInit.body;
|
|
201
|
+
}
|
|
202
|
+
const init = Object.assign(Object.assign({}, overriddenInit), { body });
|
|
195
203
|
return { url, init };
|
|
196
204
|
});
|
|
197
205
|
}
|