@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
|
@@ -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;
|
|
@@ -174,11 +174,11 @@ export interface ApplicationsApiInterface {
|
|
|
174
174
|
* @throws {RequiredError}
|
|
175
175
|
* @memberof ApplicationsApiInterface
|
|
176
176
|
*/
|
|
177
|
-
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
177
|
+
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiApplicationDTO>>>;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
*/
|
|
181
|
-
getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
181
|
+
getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiApplicationDTO>>;
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
*
|
|
@@ -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',
|
|
@@ -421,7 +433,7 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
421
433
|
|
|
422
434
|
/**
|
|
423
435
|
*/
|
|
424
|
-
async getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
436
|
+
async getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiApplicationDTO>>> {
|
|
425
437
|
const queryParameters: any = {};
|
|
426
438
|
|
|
427
439
|
if (requestParameters.publicId) {
|
|
@@ -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',
|
|
@@ -441,13 +456,14 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
441
456
|
query: queryParameters,
|
|
442
457
|
}, initOverrides);
|
|
443
458
|
|
|
444
|
-
return new runtime.
|
|
459
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiApplicationDTOFromJSON));
|
|
445
460
|
}
|
|
446
461
|
|
|
447
462
|
/**
|
|
448
463
|
*/
|
|
449
|
-
async getApplications(requestParameters: GetApplicationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
450
|
-
await this.getApplicationsRaw(requestParameters, initOverrides);
|
|
464
|
+
async getApplications(requestParameters: GetApplicationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiApplicationDTO>> {
|
|
465
|
+
const response = await this.getApplicationsRaw(requestParameters, initOverrides);
|
|
466
|
+
return await response.value();
|
|
451
467
|
}
|
|
452
468
|
|
|
453
469
|
/**
|
|
@@ -461,6 +477,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
461
477
|
|
|
462
478
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
463
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
|
+
}
|
|
464
483
|
const response = await this.request({
|
|
465
484
|
path: `/api/v2/applications/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
466
485
|
method: 'GET',
|
|
@@ -493,6 +512,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
493
512
|
|
|
494
513
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
495
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
|
+
}
|
|
496
518
|
const response = await this.request({
|
|
497
519
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
498
520
|
method: 'GET',
|
|
@@ -524,6 +546,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
524
546
|
|
|
525
547
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
526
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
|
+
}
|
|
527
552
|
const response = await this.request({
|
|
528
553
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/dependencyTree`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
529
554
|
method: 'GET',
|
|
@@ -568,6 +593,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
568
593
|
|
|
569
594
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
570
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
|
+
}
|
|
571
599
|
const response = await this.request({
|
|
572
600
|
path: `/api/v2/applications/{applicationPublicId}/reports/policyViolations/diff`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))),
|
|
573
601
|
method: 'GET',
|
|
@@ -600,6 +628,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
600
628
|
|
|
601
629
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
602
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
|
+
}
|
|
603
634
|
const response = await this.request({
|
|
604
635
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/policy`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
605
636
|
method: 'GET',
|
|
@@ -632,6 +663,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
632
663
|
|
|
633
664
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
634
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
|
+
}
|
|
635
669
|
const response = await this.request({
|
|
636
670
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/raw`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
637
671
|
method: 'GET',
|
|
@@ -664,6 +698,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
664
698
|
|
|
665
699
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
666
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
|
+
}
|
|
667
704
|
const response = await this.request({
|
|
668
705
|
path: `/api/v2/applications/{applicationId}/move/organization/{organizationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
669
706
|
method: 'POST',
|
|
@@ -694,6 +731,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
694
731
|
|
|
695
732
|
headerParameters['Content-Type'] = 'application/json';
|
|
696
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
|
+
}
|
|
697
737
|
const response = await this.request({
|
|
698
738
|
path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
699
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',
|
|
@@ -20,7 +20,7 @@ import type {
|
|
|
20
20
|
ApiComponentDetailsResultDTOV2,
|
|
21
21
|
ApiComponentOrPurlIdentifierDTOV2,
|
|
22
22
|
ApiComponentRemediationDTO,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
import {
|
|
25
25
|
ApiComponentDTOV2FromJSON,
|
|
26
26
|
ApiComponentDTOV2ToJSON,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
ApiComponentOrPurlIdentifierDTOV2ToJSON,
|
|
33
33
|
ApiComponentRemediationDTOFromJSON,
|
|
34
34
|
ApiComponentRemediationDTOToJSON,
|
|
35
|
-
} from '../models';
|
|
35
|
+
} from '../models/index';
|
|
36
36
|
|
|
37
37
|
export interface DeleteComponentLabelRequest {
|
|
38
38
|
ownerType: DeleteComponentLabelOwnerTypeEnum;
|
|
@@ -178,6 +178,9 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
|
|
|
178
178
|
|
|
179
179
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
180
180
|
|
|
181
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
182
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
183
|
+
}
|
|
181
184
|
const response = await this.request({
|
|
182
185
|
path: `/api/v2/components/{componentHash}/labels/{labelName}/{ownerType}s/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"componentHash"}}`, encodeURIComponent(String(requestParameters.componentHash))).replace(`{${"labelName"}}`, encodeURIComponent(String(requestParameters.labelName))),
|
|
183
186
|
method: 'DELETE',
|
|
@@ -203,6 +206,9 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
|
|
|
203
206
|
|
|
204
207
|
headerParameters['Content-Type'] = 'application/json';
|
|
205
208
|
|
|
209
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
210
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
211
|
+
}
|
|
206
212
|
const response = await this.request({
|
|
207
213
|
path: `/api/v2/components/details`,
|
|
208
214
|
method: 'POST',
|
|
@@ -230,6 +236,9 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
|
|
|
230
236
|
|
|
231
237
|
headerParameters['Content-Type'] = 'application/json';
|
|
232
238
|
|
|
239
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
240
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
241
|
+
}
|
|
233
242
|
const response = await this.request({
|
|
234
243
|
path: `/api/v2/components/versions`,
|
|
235
244
|
method: 'POST',
|
|
@@ -277,6 +286,9 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
|
|
|
277
286
|
|
|
278
287
|
headerParameters['Content-Type'] = 'application/json';
|
|
279
288
|
|
|
289
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
290
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
291
|
+
}
|
|
280
292
|
const response = await this.request({
|
|
281
293
|
path: `/api/v2/components/remediation/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
282
294
|
method: 'POST',
|
|
@@ -318,6 +330,9 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
|
|
|
318
330
|
|
|
319
331
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
320
332
|
|
|
333
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
334
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
335
|
+
}
|
|
321
336
|
const response = await this.request({
|
|
322
337
|
path: `/api/v2/components/{componentHash}/labels/{labelName}/{ownerType}s/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"componentHash"}}`, encodeURIComponent(String(requestParameters.componentHash))).replace(`{${"labelName"}}`, encodeURIComponent(String(requestParameters.labelName))),
|
|
323
338
|
method: 'POST',
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiCompositeSourceControlDTO,
|
|
19
|
-
} from '../models';
|
|
19
|
+
} from '../models/index';
|
|
20
20
|
import {
|
|
21
21
|
ApiCompositeSourceControlDTOFromJSON,
|
|
22
22
|
ApiCompositeSourceControlDTOToJSON,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface GetCompositeSourceControlByOwnerRequest {
|
|
26
26
|
ownerType: GetCompositeSourceControlByOwnerOwnerTypeEnum;
|
|
@@ -70,6 +70,9 @@ export class CompositeSourceControlApi extends runtime.BaseAPI implements Compos
|
|
|
70
70
|
|
|
71
71
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
72
72
|
|
|
73
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
74
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
75
|
+
}
|
|
73
76
|
const response = await this.request({
|
|
74
77
|
path: `/api/v2/compositeSourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
75
78
|
method: 'GET',
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ConfigurationValidationResult,
|
|
19
|
-
} from '../models';
|
|
19
|
+
} from '../models/index';
|
|
20
20
|
import {
|
|
21
21
|
ConfigurationValidationResultFromJSON,
|
|
22
22
|
ConfigurationValidationResultToJSON,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface ValidateSourceControlConfigRequest {
|
|
26
26
|
applicationId: string;
|
|
@@ -64,6 +64,9 @@ export class CompositeSourceControlConfigValidatorApi extends runtime.BaseAPI im
|
|
|
64
64
|
|
|
65
65
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
66
66
|
|
|
67
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
68
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
69
|
+
}
|
|
67
70
|
const response = await this.request({
|
|
68
71
|
path: `/api/v2/compositeSourceControlConfigValidator/application/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
69
72
|
method: 'GET',
|
package/src/apis/ConfigApi.ts
CHANGED
|
@@ -125,6 +125,9 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
125
125
|
|
|
126
126
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
127
127
|
|
|
128
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
129
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
130
|
+
}
|
|
128
131
|
const response = await this.request({
|
|
129
132
|
path: `/api/v2/config`,
|
|
130
133
|
method: 'DELETE',
|
|
@@ -152,6 +155,9 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
152
155
|
|
|
153
156
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
154
157
|
|
|
158
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
159
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
160
|
+
}
|
|
155
161
|
const response = await this.request({
|
|
156
162
|
path: `/api/v2/config/features/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters.feature))),
|
|
157
163
|
method: 'DELETE',
|
|
@@ -179,6 +185,9 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
179
185
|
|
|
180
186
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
181
187
|
|
|
188
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
189
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
190
|
+
}
|
|
182
191
|
const response = await this.request({
|
|
183
192
|
path: `/api/v2/config/features/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters.feature))),
|
|
184
193
|
method: 'POST',
|
|
@@ -206,6 +215,9 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
206
215
|
|
|
207
216
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
208
217
|
|
|
218
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
219
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
220
|
+
}
|
|
209
221
|
const response = await this.request({
|
|
210
222
|
path: `/api/v2/config`,
|
|
211
223
|
method: 'GET',
|
|
@@ -232,6 +244,9 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
232
244
|
|
|
233
245
|
headerParameters['Content-Type'] = 'application/json';
|
|
234
246
|
|
|
247
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
248
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
249
|
+
}
|
|
235
250
|
const response = await this.request({
|
|
236
251
|
path: `/api/v2/config`,
|
|
237
252
|
method: 'PUT',
|
|
@@ -19,7 +19,7 @@ import type {
|
|
|
19
19
|
ApiArtifactoryConnectionStatusRequestDTO,
|
|
20
20
|
ApiOwnerArtifactoryConnectionDTO,
|
|
21
21
|
ApiStatusDTO,
|
|
22
|
-
} from '../models';
|
|
22
|
+
} from '../models/index';
|
|
23
23
|
import {
|
|
24
24
|
ApiArtifactoryConnectionDTOFromJSON,
|
|
25
25
|
ApiArtifactoryConnectionDTOToJSON,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
ApiOwnerArtifactoryConnectionDTOToJSON,
|
|
30
30
|
ApiStatusDTOFromJSON,
|
|
31
31
|
ApiStatusDTOToJSON,
|
|
32
|
-
} from '../models';
|
|
32
|
+
} from '../models/index';
|
|
33
33
|
|
|
34
34
|
export interface AddArtifactoryConnectionRequest {
|
|
35
35
|
ownerType: AddArtifactoryConnectionOwnerTypeEnum;
|
|
@@ -232,6 +232,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
232
232
|
|
|
233
233
|
headerParameters['Content-Type'] = 'application/json';
|
|
234
234
|
|
|
235
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
236
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
237
|
+
}
|
|
235
238
|
const response = await this.request({
|
|
236
239
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
237
240
|
method: 'POST',
|
|
@@ -269,6 +272,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
269
272
|
|
|
270
273
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
271
274
|
|
|
275
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
276
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
277
|
+
}
|
|
272
278
|
const response = await this.request({
|
|
273
279
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
|
|
274
280
|
method: 'DELETE',
|
|
@@ -304,6 +310,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
304
310
|
|
|
305
311
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
306
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
|
+
}
|
|
307
316
|
const response = await this.request({
|
|
308
317
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
|
|
309
318
|
method: 'GET',
|
|
@@ -340,6 +349,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
340
349
|
|
|
341
350
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
342
351
|
|
|
352
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
353
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
354
|
+
}
|
|
343
355
|
const response = await this.request({
|
|
344
356
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
345
357
|
method: 'GET',
|
|
@@ -374,6 +386,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
374
386
|
|
|
375
387
|
headerParameters['Content-Type'] = 'application/json';
|
|
376
388
|
|
|
389
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
390
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
391
|
+
}
|
|
377
392
|
const response = await this.request({
|
|
378
393
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
379
394
|
method: 'POST',
|
|
@@ -411,6 +426,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
411
426
|
|
|
412
427
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
413
428
|
|
|
429
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
430
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
431
|
+
}
|
|
414
432
|
const response = await this.request({
|
|
415
433
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
|
|
416
434
|
method: 'POST',
|
|
@@ -449,6 +467,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
449
467
|
|
|
450
468
|
headerParameters['Content-Type'] = 'application/json';
|
|
451
469
|
|
|
470
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
471
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
472
|
+
}
|
|
452
473
|
const response = await this.request({
|
|
453
474
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
|
|
454
475
|
method: 'PUT',
|
|
@@ -484,6 +505,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
484
505
|
|
|
485
506
|
headerParameters['Content-Type'] = 'application/json';
|
|
486
507
|
|
|
508
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
509
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
510
|
+
}
|
|
487
511
|
const response = await this.request({
|
|
488
512
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
489
513
|
method: 'PUT',
|