@sonatype/nexus-iq-api-client 0.156.1 → 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/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
- package/dist/apis/ApplicationCategoriesApi.js +42 -12
- package/dist/apis/ApplicationsApi.d.ts +1 -1
- package/dist/apis/ApplicationsApi.js +53 -14
- 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 +1 -1
- package/dist/esm/apis/ApplicationsApi.js +40 -1
- 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 +41 -2
- 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 { 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
|
}
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ import type {
|
|
|
19
19
|
ApplicableTagsDTO,
|
|
20
20
|
AppliedTagsDTO,
|
|
21
21
|
PolicyTag,
|
|
22
|
-
} from '../models';
|
|
22
|
+
} from '../models/index';
|
|
23
23
|
import {
|
|
24
24
|
ApiApplicationCategoryDTOFromJSON,
|
|
25
25
|
ApiApplicationCategoryDTOToJSON,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
AppliedTagsDTOToJSON,
|
|
30
30
|
PolicyTagFromJSON,
|
|
31
31
|
PolicyTagToJSON,
|
|
32
|
-
} from '../models';
|
|
32
|
+
} from '../models/index';
|
|
33
33
|
|
|
34
34
|
export interface AddTagRequest {
|
|
35
35
|
organizationId: string;
|
|
@@ -229,6 +229,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI implements Applica
|
|
|
229
229
|
|
|
230
230
|
headerParameters['Content-Type'] = 'application/json';
|
|
231
231
|
|
|
232
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
233
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
234
|
+
}
|
|
232
235
|
const response = await this.request({
|
|
233
236
|
path: `/api/v2/applicationCategories/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
234
237
|
method: 'POST',
|
|
@@ -262,6 +265,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI implements Applica
|
|
|
262
265
|
|
|
263
266
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
264
267
|
|
|
268
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
269
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
270
|
+
}
|
|
265
271
|
const response = await this.request({
|
|
266
272
|
path: `/api/v2/applicationCategories/organization/{organizationId}/{tagId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"tagId"}}`, encodeURIComponent(String(requestParameters.tagId))),
|
|
267
273
|
method: 'DELETE',
|
|
@@ -289,6 +295,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI implements Applica
|
|
|
289
295
|
|
|
290
296
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
291
297
|
|
|
298
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
299
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
300
|
+
}
|
|
292
301
|
const response = await this.request({
|
|
293
302
|
path: `/api/v2/applicationCategories/organization/{organizationId}/applicable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
294
303
|
method: 'GET',
|
|
@@ -317,6 +326,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI implements Applica
|
|
|
317
326
|
|
|
318
327
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
319
328
|
|
|
329
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
330
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
331
|
+
}
|
|
320
332
|
const response = await this.request({
|
|
321
333
|
path: `/api/v2/applicationCategories/application/{applicationPublicId}/applicable`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))),
|
|
322
334
|
method: 'GET',
|
|
@@ -345,6 +357,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI implements Applica
|
|
|
345
357
|
|
|
346
358
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
347
359
|
|
|
360
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
361
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
362
|
+
}
|
|
348
363
|
const response = await this.request({
|
|
349
364
|
path: `/api/v2/applicationCategories/application/{applicationPublicId}`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))),
|
|
350
365
|
method: 'GET',
|
|
@@ -373,6 +388,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI implements Applica
|
|
|
373
388
|
|
|
374
389
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
375
390
|
|
|
391
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
392
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
393
|
+
}
|
|
376
394
|
const response = await this.request({
|
|
377
395
|
path: `/api/v2/applicationCategories/organization/{organizationId}/policy`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
378
396
|
method: 'GET',
|
|
@@ -401,6 +419,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI implements Applica
|
|
|
401
419
|
|
|
402
420
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
403
421
|
|
|
422
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
423
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
424
|
+
}
|
|
404
425
|
const response = await this.request({
|
|
405
426
|
path: `/api/v2/applicationCategories/organization/{organizationId}/applied`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
406
427
|
method: 'GET',
|
|
@@ -429,6 +450,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI implements Applica
|
|
|
429
450
|
|
|
430
451
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
431
452
|
|
|
453
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
454
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
455
|
+
}
|
|
432
456
|
const response = await this.request({
|
|
433
457
|
path: `/api/v2/applicationCategories/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
434
458
|
method: 'GET',
|
|
@@ -453,6 +477,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI implements Applica
|
|
|
453
477
|
|
|
454
478
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
455
479
|
|
|
480
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
481
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
482
|
+
}
|
|
456
483
|
const response = await this.request({
|
|
457
484
|
path: `/api/v2/applicationCategories/application`,
|
|
458
485
|
method: 'GET',
|
|
@@ -483,6 +510,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI implements Applica
|
|
|
483
510
|
|
|
484
511
|
headerParameters['Content-Type'] = 'application/json';
|
|
485
512
|
|
|
513
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
514
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
515
|
+
}
|
|
486
516
|
const response = await this.request({
|
|
487
517
|
path: `/api/v2/applicationCategories/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
488
518
|
method: 'PUT',
|
|
@@ -22,7 +22,7 @@ import type {
|
|
|
22
22
|
ApiPolicyViolationDiffDTO,
|
|
23
23
|
ApiReportPolicyDataDTOV2,
|
|
24
24
|
ApiReportRawDataDTOV2,
|
|
25
|
-
} from '../models';
|
|
25
|
+
} from '../models/index';
|
|
26
26
|
import {
|
|
27
27
|
ApiApplicationDTOFromJSON,
|
|
28
28
|
ApiApplicationDTOToJSON,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
ApiReportPolicyDataDTOV2ToJSON,
|
|
39
39
|
ApiReportRawDataDTOV2FromJSON,
|
|
40
40
|
ApiReportRawDataDTOV2ToJSON,
|
|
41
|
-
} from '../models';
|
|
41
|
+
} from '../models/index';
|
|
42
42
|
|
|
43
43
|
export interface AddApplicationRequest {
|
|
44
44
|
apiApplicationDTO?: ApiApplicationDTO;
|
|
@@ -310,6 +310,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
310
310
|
|
|
311
311
|
headerParameters['Content-Type'] = 'application/json';
|
|
312
312
|
|
|
313
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
314
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
315
|
+
}
|
|
313
316
|
const response = await this.request({
|
|
314
317
|
path: `/api/v2/applications`,
|
|
315
318
|
method: 'POST',
|
|
@@ -347,6 +350,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
347
350
|
|
|
348
351
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
349
352
|
|
|
353
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
354
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
355
|
+
}
|
|
350
356
|
const response = await this.request({
|
|
351
357
|
path: `/api/v2/applications/{sourceApplicationId}/clone`.replace(`{${"sourceApplicationId"}}`, encodeURIComponent(String(requestParameters.sourceApplicationId))),
|
|
352
358
|
method: 'POST',
|
|
@@ -375,6 +381,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
375
381
|
|
|
376
382
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
377
383
|
|
|
384
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
385
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
386
|
+
}
|
|
378
387
|
const response = await this.request({
|
|
379
388
|
path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
380
389
|
method: 'DELETE',
|
|
@@ -402,6 +411,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
402
411
|
|
|
403
412
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
404
413
|
|
|
414
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
415
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
416
|
+
}
|
|
405
417
|
const response = await this.request({
|
|
406
418
|
path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
407
419
|
method: 'GET',
|
|
@@ -434,6 +446,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
434
446
|
|
|
435
447
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
436
448
|
|
|
449
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
450
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
451
|
+
}
|
|
437
452
|
const response = await this.request({
|
|
438
453
|
path: `/api/v2/applications`,
|
|
439
454
|
method: 'GET',
|
|
@@ -462,6 +477,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
462
477
|
|
|
463
478
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
464
479
|
|
|
480
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
481
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
482
|
+
}
|
|
465
483
|
const response = await this.request({
|
|
466
484
|
path: `/api/v2/applications/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
467
485
|
method: 'GET',
|
|
@@ -494,6 +512,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
494
512
|
|
|
495
513
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
496
514
|
|
|
515
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
516
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
517
|
+
}
|
|
497
518
|
const response = await this.request({
|
|
498
519
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
499
520
|
method: 'GET',
|
|
@@ -525,6 +546,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
525
546
|
|
|
526
547
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
527
548
|
|
|
549
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
550
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
551
|
+
}
|
|
528
552
|
const response = await this.request({
|
|
529
553
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/dependencyTree`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
530
554
|
method: 'GET',
|
|
@@ -569,6 +593,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
569
593
|
|
|
570
594
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
571
595
|
|
|
596
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
597
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
598
|
+
}
|
|
572
599
|
const response = await this.request({
|
|
573
600
|
path: `/api/v2/applications/{applicationPublicId}/reports/policyViolations/diff`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))),
|
|
574
601
|
method: 'GET',
|
|
@@ -601,6 +628,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
601
628
|
|
|
602
629
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
603
630
|
|
|
631
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
632
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
633
|
+
}
|
|
604
634
|
const response = await this.request({
|
|
605
635
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/policy`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
606
636
|
method: 'GET',
|
|
@@ -633,6 +663,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
633
663
|
|
|
634
664
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
635
665
|
|
|
666
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
667
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
668
|
+
}
|
|
636
669
|
const response = await this.request({
|
|
637
670
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/raw`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
638
671
|
method: 'GET',
|
|
@@ -665,6 +698,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
665
698
|
|
|
666
699
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
667
700
|
|
|
701
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
702
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
703
|
+
}
|
|
668
704
|
const response = await this.request({
|
|
669
705
|
path: `/api/v2/applications/{applicationId}/move/organization/{organizationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
670
706
|
method: 'POST',
|
|
@@ -695,6 +731,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
695
731
|
|
|
696
732
|
headerParameters['Content-Type'] = 'application/json';
|
|
697
733
|
|
|
734
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
735
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
736
|
+
}
|
|
698
737
|
const response = await this.request({
|
|
699
738
|
path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
700
739
|
method: 'PUT',
|
package/src/apis/ClaimApi.ts
CHANGED
|
@@ -17,13 +17,13 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ApiHashComponentIdentifierDTO,
|
|
19
19
|
ApiHashComponentIdentifiersDTO,
|
|
20
|
-
} from '../models';
|
|
20
|
+
} from '../models/index';
|
|
21
21
|
import {
|
|
22
22
|
ApiHashComponentIdentifierDTOFromJSON,
|
|
23
23
|
ApiHashComponentIdentifierDTOToJSON,
|
|
24
24
|
ApiHashComponentIdentifiersDTOFromJSON,
|
|
25
25
|
ApiHashComponentIdentifiersDTOToJSON,
|
|
26
|
-
} from '../models';
|
|
26
|
+
} from '../models/index';
|
|
27
27
|
|
|
28
28
|
export interface DeleteRequest {
|
|
29
29
|
hash: string;
|
|
@@ -113,6 +113,9 @@ export class ClaimApi extends runtime.BaseAPI implements ClaimApiInterface {
|
|
|
113
113
|
|
|
114
114
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
115
115
|
|
|
116
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
117
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
118
|
+
}
|
|
116
119
|
const response = await this.request({
|
|
117
120
|
path: `/api/v2/claim/components/{hash}`.replace(`{${"hash"}}`, encodeURIComponent(String(requestParameters.hash))),
|
|
118
121
|
method: 'DELETE',
|
|
@@ -140,6 +143,9 @@ export class ClaimApi extends runtime.BaseAPI implements ClaimApiInterface {
|
|
|
140
143
|
|
|
141
144
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
142
145
|
|
|
146
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
147
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
148
|
+
}
|
|
143
149
|
const response = await this.request({
|
|
144
150
|
path: `/api/v2/claim/components/{hash}`.replace(`{${"hash"}}`, encodeURIComponent(String(requestParameters.hash))),
|
|
145
151
|
method: 'GET',
|
|
@@ -164,6 +170,9 @@ export class ClaimApi extends runtime.BaseAPI implements ClaimApiInterface {
|
|
|
164
170
|
|
|
165
171
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
166
172
|
|
|
173
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
174
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
175
|
+
}
|
|
167
176
|
const response = await this.request({
|
|
168
177
|
path: `/api/v2/claim/components`,
|
|
169
178
|
method: 'GET',
|
|
@@ -190,6 +199,9 @@ export class ClaimApi extends runtime.BaseAPI implements ClaimApiInterface {
|
|
|
190
199
|
|
|
191
200
|
headerParameters['Content-Type'] = 'application/json';
|
|
192
201
|
|
|
202
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
203
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
204
|
+
}
|
|
193
205
|
const response = await this.request({
|
|
194
206
|
path: `/api/v2/claim/components`,
|
|
195
207
|
method: 'POST',
|