@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
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.UpdateSourceControlOwnerTypeEnum = exports.GetSourceControl1OwnerTypeEnum = exports.DeleteSourceControlOwnerTypeEnum = exports.AddSourceControlOwnerTypeEnum = exports.SourceControlApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -41,13 +41,16 @@ class SourceControlApi extends runtime.BaseAPI {
|
|
|
41
41
|
queryParameters['repositoryUrl'] = requestParameters.repositoryUrl;
|
|
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/sourceControl`,
|
|
46
49
|
method: 'POST',
|
|
47
50
|
headers: headerParameters,
|
|
48
51
|
query: queryParameters,
|
|
49
52
|
}, initOverrides);
|
|
50
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSourceControlDTOFromJSON)(jsonValue));
|
|
51
54
|
});
|
|
52
55
|
}
|
|
53
56
|
/**
|
|
@@ -71,14 +74,17 @@ class SourceControlApi extends runtime.BaseAPI {
|
|
|
71
74
|
const queryParameters = {};
|
|
72
75
|
const headerParameters = {};
|
|
73
76
|
headerParameters['Content-Type'] = 'application/json';
|
|
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/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
76
82
|
method: 'POST',
|
|
77
83
|
headers: headerParameters,
|
|
78
84
|
query: queryParameters,
|
|
79
|
-
body: (0,
|
|
85
|
+
body: (0, index_1.ApiSourceControlDTOToJSON)(requestParameters.apiSourceControlDTO),
|
|
80
86
|
}, initOverrides);
|
|
81
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
87
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSourceControlDTOFromJSON)(jsonValue));
|
|
82
88
|
});
|
|
83
89
|
}
|
|
84
90
|
/**
|
|
@@ -101,6 +107,9 @@ class SourceControlApi extends runtime.BaseAPI {
|
|
|
101
107
|
}
|
|
102
108
|
const queryParameters = {};
|
|
103
109
|
const headerParameters = {};
|
|
110
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
111
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
112
|
+
}
|
|
104
113
|
const response = yield this.request({
|
|
105
114
|
path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
106
115
|
method: 'DELETE',
|
|
@@ -129,13 +138,16 @@ class SourceControlApi extends runtime.BaseAPI {
|
|
|
129
138
|
}
|
|
130
139
|
const queryParameters = {};
|
|
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/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
134
146
|
method: 'GET',
|
|
135
147
|
headers: headerParameters,
|
|
136
148
|
query: queryParameters,
|
|
137
149
|
}, initOverrides);
|
|
138
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
150
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSourceControlDTOFromJSON)(jsonValue));
|
|
139
151
|
});
|
|
140
152
|
}
|
|
141
153
|
/**
|
|
@@ -159,14 +171,17 @@ class SourceControlApi extends runtime.BaseAPI {
|
|
|
159
171
|
const queryParameters = {};
|
|
160
172
|
const headerParameters = {};
|
|
161
173
|
headerParameters['Content-Type'] = 'application/json';
|
|
174
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
175
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
176
|
+
}
|
|
162
177
|
const response = yield this.request({
|
|
163
178
|
path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
164
179
|
method: 'PUT',
|
|
165
180
|
headers: headerParameters,
|
|
166
181
|
query: queryParameters,
|
|
167
|
-
body: (0,
|
|
182
|
+
body: (0, index_1.ApiSourceControlDTOToJSON)(requestParameters.apiSourceControlDTO),
|
|
168
183
|
}, initOverrides);
|
|
169
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
184
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSourceControlDTOFromJSON)(jsonValue));
|
|
170
185
|
});
|
|
171
186
|
}
|
|
172
187
|
/**
|
|
@@ -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;
|
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.GetSourceControlOwnerTypeEnum = exports.SourceControlMetricsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -41,13 +41,16 @@ class SourceControlMetricsApi extends runtime.BaseAPI {
|
|
|
41
41
|
}
|
|
42
42
|
const queryParameters = {};
|
|
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/sourceControlMetrics/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
46
49
|
method: 'GET',
|
|
47
50
|
headers: headerParameters,
|
|
48
51
|
query: queryParameters,
|
|
49
52
|
}, initOverrides);
|
|
50
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPullRequestResultsFromJSON)(jsonValue));
|
|
51
54
|
});
|
|
52
55
|
}
|
|
53
56
|
/**
|
|
@@ -38,6 +38,9 @@ class TelemetryApi extends runtime.BaseAPI {
|
|
|
38
38
|
if (requestParameters.userAgent !== undefined && requestParameters.userAgent !== null) {
|
|
39
39
|
headerParameters['user-agent'] = String(requestParameters.userAgent);
|
|
40
40
|
}
|
|
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/telemetry`,
|
|
43
46
|
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
|
}
|
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.UserTokensApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -35,13 +35,16 @@ class UserTokensApi extends runtime.BaseAPI {
|
|
|
35
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
36
|
const queryParameters = {};
|
|
37
37
|
const headerParameters = {};
|
|
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/userTokens/currentUser`,
|
|
40
43
|
method: 'POST',
|
|
41
44
|
headers: headerParameters,
|
|
42
45
|
query: queryParameters,
|
|
43
46
|
}, initOverrides);
|
|
44
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
47
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserTokenDTOFromJSON)(jsonValue));
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
/**
|
|
@@ -58,6 +61,9 @@ class UserTokensApi extends runtime.BaseAPI {
|
|
|
58
61
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
62
|
const queryParameters = {};
|
|
60
63
|
const headerParameters = {};
|
|
64
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
65
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
66
|
+
}
|
|
61
67
|
const response = yield this.request({
|
|
62
68
|
path: `/api/v2/userTokens/currentUser`,
|
|
63
69
|
method: 'DELETE',
|
|
@@ -83,6 +89,9 @@ class UserTokensApi extends runtime.BaseAPI {
|
|
|
83
89
|
}
|
|
84
90
|
const queryParameters = {};
|
|
85
91
|
const headerParameters = {};
|
|
92
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
93
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
94
|
+
}
|
|
86
95
|
const response = yield this.request({
|
|
87
96
|
path: `/api/v2/userTokens/userCode/{userCode}`.replace(`{${"userCode"}}`, encodeURIComponent(String(requestParameters.userCode))),
|
|
88
97
|
method: 'DELETE',
|
|
@@ -111,13 +120,16 @@ class UserTokensApi extends runtime.BaseAPI {
|
|
|
111
120
|
queryParameters['realm'] = requestParameters.realm;
|
|
112
121
|
}
|
|
113
122
|
const headerParameters = {};
|
|
123
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
124
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
125
|
+
}
|
|
114
126
|
const response = yield this.request({
|
|
115
127
|
path: `/api/v2/userTokens/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
|
|
116
128
|
method: 'GET',
|
|
117
129
|
headers: headerParameters,
|
|
118
130
|
query: queryParameters,
|
|
119
131
|
}, initOverrides);
|
|
120
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserTokenDTOFromJSON)(jsonValue));
|
|
121
133
|
});
|
|
122
134
|
}
|
|
123
135
|
/**
|
|
@@ -134,13 +146,16 @@ class UserTokensApi extends runtime.BaseAPI {
|
|
|
134
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
135
147
|
const queryParameters = {};
|
|
136
148
|
const headerParameters = {};
|
|
149
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
150
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
151
|
+
}
|
|
137
152
|
const response = yield this.request({
|
|
138
153
|
path: `/api/v2/userTokens/currentUser/hasToken`,
|
|
139
154
|
method: 'GET',
|
|
140
155
|
headers: headerParameters,
|
|
141
156
|
query: queryParameters,
|
|
142
157
|
}, initOverrides);
|
|
143
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
158
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserTokenExistsDTOFromJSON)(jsonValue));
|
|
144
159
|
});
|
|
145
160
|
}
|
|
146
161
|
/**
|
|
@@ -166,13 +181,16 @@ class UserTokensApi extends runtime.BaseAPI {
|
|
|
166
181
|
queryParameters['realm'] = requestParameters.realm;
|
|
167
182
|
}
|
|
168
183
|
const headerParameters = {};
|
|
184
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
185
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
186
|
+
}
|
|
169
187
|
const response = yield this.request({
|
|
170
188
|
path: `/api/v2/userTokens`,
|
|
171
189
|
method: 'GET',
|
|
172
190
|
headers: headerParameters,
|
|
173
191
|
query: queryParameters,
|
|
174
192
|
}, initOverrides);
|
|
175
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
193
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiUserTokenDTOFromJSON));
|
|
176
194
|
});
|
|
177
195
|
}
|
|
178
196
|
/**
|
|
@@ -189,6 +207,9 @@ class UserTokensApi extends runtime.BaseAPI {
|
|
|
189
207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
208
|
const queryParameters = {};
|
|
191
209
|
const headerParameters = {};
|
|
210
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
211
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
212
|
+
}
|
|
192
213
|
const response = yield this.request({
|
|
193
214
|
path: `/api/v2/userTokens/purge`,
|
|
194
215
|
method: 'DELETE',
|
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/apis/UsersApi.js
CHANGED
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.UsersApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -36,12 +36,15 @@ class UsersApi extends runtime.BaseAPI {
|
|
|
36
36
|
const queryParameters = {};
|
|
37
37
|
const headerParameters = {};
|
|
38
38
|
headerParameters['Content-Type'] = 'application/json';
|
|
39
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
40
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
41
|
+
}
|
|
39
42
|
const response = yield this.request({
|
|
40
43
|
path: `/api/v2/users`,
|
|
41
44
|
method: 'POST',
|
|
42
45
|
headers: headerParameters,
|
|
43
46
|
query: queryParameters,
|
|
44
|
-
body: (0,
|
|
47
|
+
body: (0, index_1.ApiUserDTOToJSON)(requestParameters.apiUserDTO),
|
|
45
48
|
}, initOverrides);
|
|
46
49
|
return new runtime.VoidApiResponse(response);
|
|
47
50
|
});
|
|
@@ -65,6 +68,9 @@ class UsersApi extends runtime.BaseAPI {
|
|
|
65
68
|
queryParameters['realm'] = requestParameters.realm;
|
|
66
69
|
}
|
|
67
70
|
const headerParameters = {};
|
|
71
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
72
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
73
|
+
}
|
|
68
74
|
const response = yield this.request({
|
|
69
75
|
path: `/api/v2/users/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
|
|
70
76
|
method: 'DELETE',
|
|
@@ -93,13 +99,16 @@ class UsersApi extends runtime.BaseAPI {
|
|
|
93
99
|
queryParameters['realm'] = requestParameters.realm;
|
|
94
100
|
}
|
|
95
101
|
const headerParameters = {};
|
|
102
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
103
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
104
|
+
}
|
|
96
105
|
const response = yield this.request({
|
|
97
106
|
path: `/api/v2/users/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
|
|
98
107
|
method: 'GET',
|
|
99
108
|
headers: headerParameters,
|
|
100
109
|
query: queryParameters,
|
|
101
110
|
}, initOverrides);
|
|
102
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
111
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserDTOFromJSON)(jsonValue));
|
|
103
112
|
});
|
|
104
113
|
}
|
|
105
114
|
/**
|
|
@@ -119,13 +128,16 @@ class UsersApi extends runtime.BaseAPI {
|
|
|
119
128
|
queryParameters['realm'] = requestParameters.realm;
|
|
120
129
|
}
|
|
121
130
|
const headerParameters = {};
|
|
131
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
132
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
133
|
+
}
|
|
122
134
|
const response = yield this.request({
|
|
123
135
|
path: `/api/v2/users`,
|
|
124
136
|
method: 'GET',
|
|
125
137
|
headers: headerParameters,
|
|
126
138
|
query: queryParameters,
|
|
127
139
|
}, initOverrides);
|
|
128
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
140
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserListDTOFromJSON)(jsonValue));
|
|
129
141
|
});
|
|
130
142
|
}
|
|
131
143
|
/**
|
|
@@ -146,14 +158,17 @@ class UsersApi extends runtime.BaseAPI {
|
|
|
146
158
|
const queryParameters = {};
|
|
147
159
|
const headerParameters = {};
|
|
148
160
|
headerParameters['Content-Type'] = 'application/json';
|
|
161
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
162
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
163
|
+
}
|
|
149
164
|
const response = yield this.request({
|
|
150
165
|
path: `/api/v2/users/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
|
|
151
166
|
method: 'PUT',
|
|
152
167
|
headers: headerParameters,
|
|
153
168
|
query: queryParameters,
|
|
154
|
-
body: (0,
|
|
169
|
+
body: (0, index_1.ApiUserDTOToJSON)(requestParameters.apiUserDTO),
|
|
155
170
|
}, initOverrides);
|
|
156
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
171
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserDTOFromJSON)(jsonValue));
|
|
157
172
|
});
|
|
158
173
|
}
|
|
159
174
|
/**
|
|
@@ -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;
|
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.GetSecurityVulnerabilityDetailsOwnerTypeEnum = exports.VulnerabilitiesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -53,13 +53,16 @@ class VulnerabilitiesApi extends runtime.BaseAPI {
|
|
|
53
53
|
queryParameters['ownerId'] = requestParameters.ownerId;
|
|
54
54
|
}
|
|
55
55
|
const headerParameters = {};
|
|
56
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
57
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
58
|
+
}
|
|
56
59
|
const response = yield this.request({
|
|
57
60
|
path: `/api/v2/vulnerabilities/{refId}`.replace(`{${"refId"}}`, encodeURIComponent(String(requestParameters.refId))),
|
|
58
61
|
method: 'GET',
|
|
59
62
|
headers: headerParameters,
|
|
60
63
|
query: queryParameters,
|
|
61
64
|
}, initOverrides);
|
|
62
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
65
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SecurityVulnerabilityDataFromJSON)(jsonValue));
|
|
63
66
|
});
|
|
64
67
|
}
|
|
65
68
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiApplicationCategoryDTO, ApplicableTagsDTO, AppliedTagsDTO, PolicyTag } from '../models';
|
|
13
|
+
import type { ApiApplicationCategoryDTO, ApplicableTagsDTO, AppliedTagsDTO, PolicyTag } from '../models/index';
|
|
14
14
|
export interface AddTagRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
apiApplicationCategoryDTO?: ApiApplicationCategoryDTO;
|
|
@@ -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 { ApiApplicationCategoryDTOFromJSON, ApiApplicationCategoryDTOToJSON, ApplicableTagsDTOFromJSON, AppliedTagsDTOFromJSON, PolicyTagFromJSON, } from '../models';
|
|
24
|
+
import { ApiApplicationCategoryDTOFromJSON, ApiApplicationCategoryDTOToJSON, ApplicableTagsDTOFromJSON, AppliedTagsDTOFromJSON, PolicyTagFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -36,6 +36,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
36
36
|
const queryParameters = {};
|
|
37
37
|
const headerParameters = {};
|
|
38
38
|
headerParameters['Content-Type'] = 'application/json';
|
|
39
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
40
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
41
|
+
}
|
|
39
42
|
const response = yield this.request({
|
|
40
43
|
path: `/api/v2/applicationCategories/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
41
44
|
method: 'POST',
|
|
@@ -66,6 +69,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
66
69
|
}
|
|
67
70
|
const queryParameters = {};
|
|
68
71
|
const headerParameters = {};
|
|
72
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
73
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
74
|
+
}
|
|
69
75
|
const response = yield this.request({
|
|
70
76
|
path: `/api/v2/applicationCategories/organization/{organizationId}/{tagId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"tagId"}}`, encodeURIComponent(String(requestParameters.tagId))),
|
|
71
77
|
method: 'DELETE',
|
|
@@ -91,6 +97,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
91
97
|
}
|
|
92
98
|
const queryParameters = {};
|
|
93
99
|
const headerParameters = {};
|
|
100
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
101
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
102
|
+
}
|
|
94
103
|
const response = yield this.request({
|
|
95
104
|
path: `/api/v2/applicationCategories/organization/{organizationId}/applicable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
96
105
|
method: 'GET',
|
|
@@ -117,6 +126,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
117
126
|
}
|
|
118
127
|
const queryParameters = {};
|
|
119
128
|
const headerParameters = {};
|
|
129
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
130
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
131
|
+
}
|
|
120
132
|
const response = yield this.request({
|
|
121
133
|
path: `/api/v2/applicationCategories/application/{applicationPublicId}/applicable`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))),
|
|
122
134
|
method: 'GET',
|
|
@@ -143,6 +155,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
143
155
|
}
|
|
144
156
|
const queryParameters = {};
|
|
145
157
|
const headerParameters = {};
|
|
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/applicationCategories/application/{applicationPublicId}`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))),
|
|
148
163
|
method: 'GET',
|
|
@@ -169,6 +184,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
169
184
|
}
|
|
170
185
|
const queryParameters = {};
|
|
171
186
|
const headerParameters = {};
|
|
187
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
188
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
189
|
+
}
|
|
172
190
|
const response = yield this.request({
|
|
173
191
|
path: `/api/v2/applicationCategories/organization/{organizationId}/policy`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
174
192
|
method: 'GET',
|
|
@@ -195,6 +213,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
195
213
|
}
|
|
196
214
|
const queryParameters = {};
|
|
197
215
|
const headerParameters = {};
|
|
216
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
217
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
218
|
+
}
|
|
198
219
|
const response = yield this.request({
|
|
199
220
|
path: `/api/v2/applicationCategories/organization/{organizationId}/applied`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
200
221
|
method: 'GET',
|
|
@@ -221,6 +242,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
221
242
|
}
|
|
222
243
|
const queryParameters = {};
|
|
223
244
|
const headerParameters = {};
|
|
245
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
246
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
247
|
+
}
|
|
224
248
|
const response = yield this.request({
|
|
225
249
|
path: `/api/v2/applicationCategories/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
226
250
|
method: 'GET',
|
|
@@ -244,6 +268,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
244
268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
245
269
|
const queryParameters = {};
|
|
246
270
|
const headerParameters = {};
|
|
271
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
272
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
273
|
+
}
|
|
247
274
|
const response = yield this.request({
|
|
248
275
|
path: `/api/v2/applicationCategories/application`,
|
|
249
276
|
method: 'GET',
|
|
@@ -271,6 +298,9 @@ export class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
271
298
|
const queryParameters = {};
|
|
272
299
|
const headerParameters = {};
|
|
273
300
|
headerParameters['Content-Type'] = 'application/json';
|
|
301
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
302
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
303
|
+
}
|
|
274
304
|
const response = yield this.request({
|
|
275
305
|
path: `/api/v2/applicationCategories/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
276
306
|
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 { ApiApplicationDTO, ApiApplicationListDTO, ApiDependencyTreeResponseDTO, ApiMoveApplicationResponseDTOV2, ApiPolicyViolationDiffDTO, ApiReportPolicyDataDTOV2, ApiReportRawDataDTOV2 } from '../models';
|
|
13
|
+
import type { ApiApplicationDTO, ApiApplicationListDTO, ApiDependencyTreeResponseDTO, ApiMoveApplicationResponseDTOV2, ApiPolicyViolationDiffDTO, ApiReportPolicyDataDTOV2, ApiReportRawDataDTOV2 } from '../models/index';
|
|
14
14
|
export interface AddApplicationRequest {
|
|
15
15
|
apiApplicationDTO?: ApiApplicationDTO;
|
|
16
16
|
}
|
|
@@ -124,10 +124,10 @@ export interface ApplicationsApiInterface {
|
|
|
124
124
|
* @throws {RequiredError}
|
|
125
125
|
* @memberof ApplicationsApiInterface
|
|
126
126
|
*/
|
|
127
|
-
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
127
|
+
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiApplicationDTO>>>;
|
|
128
128
|
/**
|
|
129
129
|
*/
|
|
130
|
-
getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
130
|
+
getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiApplicationDTO>>;
|
|
131
131
|
/**
|
|
132
132
|
*
|
|
133
133
|
* @param {string} organizationId
|
|
@@ -257,10 +257,10 @@ export declare class ApplicationsApi extends runtime.BaseAPI implements Applicat
|
|
|
257
257
|
getApplication(requestParameters: GetApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiApplicationDTO>;
|
|
258
258
|
/**
|
|
259
259
|
*/
|
|
260
|
-
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
260
|
+
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiApplicationDTO>>>;
|
|
261
261
|
/**
|
|
262
262
|
*/
|
|
263
|
-
getApplications(requestParameters?: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
263
|
+
getApplications(requestParameters?: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiApplicationDTO>>;
|
|
264
264
|
/**
|
|
265
265
|
*/
|
|
266
266
|
getApplicationsByOrganizationIdRaw(requestParameters: GetApplicationsByOrganizationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiApplicationListDTO>>;
|