@sonatype/nexus-iq-api-client 0.156.1 → 0.156.3

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.
Files changed (210) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
  3. package/dist/apis/ApplicationCategoriesApi.js +42 -12
  4. package/dist/apis/ApplicationsApi.d.ts +5 -5
  5. package/dist/apis/ApplicationsApi.js +53 -14
  6. package/dist/apis/ClaimApi.d.ts +1 -1
  7. package/dist/apis/ClaimApi.js +17 -5
  8. package/dist/apis/ComponentsApi.d.ts +1 -1
  9. package/dist/apis/ComponentsApi.js +21 -6
  10. package/dist/apis/CompositeSourceControlApi.d.ts +1 -1
  11. package/dist/apis/CompositeSourceControlApi.js +5 -2
  12. package/dist/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  13. package/dist/apis/CompositeSourceControlConfigValidatorApi.js +5 -2
  14. package/dist/apis/ConfigApi.js +15 -0
  15. package/dist/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  16. package/dist/apis/ConfigArtifactoryConnectionApi.js +35 -11
  17. package/dist/apis/ConfigCrowdApi.d.ts +1 -1
  18. package/dist/apis/ConfigCrowdApi.js +17 -5
  19. package/dist/apis/ConfigJIRAApi.d.ts +1 -1
  20. package/dist/apis/ConfigJIRAApi.js +11 -2
  21. package/dist/apis/ConfigMailApi.d.ts +1 -1
  22. package/dist/apis/ConfigMailApi.js +16 -4
  23. package/dist/apis/ConfigProxyServerApi.d.ts +1 -1
  24. package/dist/apis/ConfigProxyServerApi.js +12 -3
  25. package/dist/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  26. package/dist/apis/ConfigReverseProxyAuthenticationApi.js +12 -3
  27. package/dist/apis/ConfigSAMLApi.d.ts +1 -1
  28. package/dist/apis/ConfigSAMLApi.js +11 -2
  29. package/dist/apis/ConfigSourceControlApi.d.ts +1 -1
  30. package/dist/apis/ConfigSourceControlApi.js +11 -2
  31. package/dist/apis/CycloneDxApi.js +12 -0
  32. package/dist/apis/DataRetentionPoliciesApi.d.ts +1 -1
  33. package/dist/apis/DataRetentionPoliciesApi.js +9 -3
  34. package/dist/apis/EndpointsApi.js +3 -0
  35. package/dist/apis/EvaluationApi.d.ts +1 -1
  36. package/dist/apis/EvaluationApi.js +29 -11
  37. package/dist/apis/FirewallApi.d.ts +1 -1
  38. package/dist/apis/FirewallApi.js +30 -6
  39. package/dist/apis/LabelsApi.d.ts +1 -1
  40. package/dist/apis/LabelsApi.js +26 -8
  41. package/dist/apis/LicenseLegalMetadataApi.d.ts +1 -1
  42. package/dist/apis/LicenseLegalMetadataApi.js +48 -9
  43. package/dist/apis/OrganizationsApi.d.ts +1 -1
  44. package/dist/apis/OrganizationsApi.js +14 -5
  45. package/dist/apis/PoliciesApi.d.ts +1 -1
  46. package/dist/apis/PoliciesApi.js +5 -2
  47. package/dist/apis/PolicyViolationsApi.d.ts +1 -1
  48. package/dist/apis/PolicyViolationsApi.js +25 -7
  49. package/dist/apis/PolicyWaiverApi.js +3 -0
  50. package/dist/apis/PolicyWaiversApi.d.ts +1 -1
  51. package/dist/apis/PolicyWaiversApi.js +28 -7
  52. package/dist/apis/ReportsApi.d.ts +1 -1
  53. package/dist/apis/ReportsApi.js +29 -8
  54. package/dist/apis/RepositoriesApi.d.ts +1 -1
  55. package/dist/apis/RepositoriesApi.js +9 -3
  56. package/dist/apis/RoleMembershipsApi.d.ts +1 -1
  57. package/dist/apis/RoleMembershipsApi.js +21 -3
  58. package/dist/apis/RolesApi.d.ts +1 -1
  59. package/dist/apis/RolesApi.js +5 -2
  60. package/dist/apis/ScanApi.d.ts +1 -1
  61. package/dist/apis/ScanApi.js +8 -2
  62. package/dist/apis/SearchApi.d.ts +1 -1
  63. package/dist/apis/SearchApi.js +15 -3
  64. package/dist/apis/SecurityOverridesApi.d.ts +1 -1
  65. package/dist/apis/SecurityOverridesApi.js +5 -2
  66. package/dist/apis/SourceControlApi.d.ts +1 -1
  67. package/dist/apis/SourceControlApi.js +22 -7
  68. package/dist/apis/SourceControlMetricsApi.d.ts +1 -1
  69. package/dist/apis/SourceControlMetricsApi.js +5 -2
  70. package/dist/apis/TelemetryApi.js +3 -0
  71. package/dist/apis/UserTokensApi.d.ts +1 -1
  72. package/dist/apis/UserTokensApi.js +26 -5
  73. package/dist/apis/UsersApi.d.ts +1 -1
  74. package/dist/apis/UsersApi.js +21 -6
  75. package/dist/apis/VulnerabilitiesApi.d.ts +1 -1
  76. package/dist/apis/VulnerabilitiesApi.js +5 -2
  77. package/dist/esm/apis/ApplicationCategoriesApi.d.ts +1 -1
  78. package/dist/esm/apis/ApplicationCategoriesApi.js +31 -1
  79. package/dist/esm/apis/ApplicationsApi.d.ts +5 -5
  80. package/dist/esm/apis/ApplicationsApi.js +41 -2
  81. package/dist/esm/apis/ClaimApi.d.ts +1 -1
  82. package/dist/esm/apis/ClaimApi.js +13 -1
  83. package/dist/esm/apis/ComponentsApi.d.ts +1 -1
  84. package/dist/esm/apis/ComponentsApi.js +16 -1
  85. package/dist/esm/apis/CompositeSourceControlApi.d.ts +1 -1
  86. package/dist/esm/apis/CompositeSourceControlApi.js +4 -1
  87. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  88. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.js +4 -1
  89. package/dist/esm/apis/ConfigApi.js +15 -0
  90. package/dist/esm/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  91. package/dist/esm/apis/ConfigArtifactoryConnectionApi.js +25 -1
  92. package/dist/esm/apis/ConfigCrowdApi.d.ts +1 -1
  93. package/dist/esm/apis/ConfigCrowdApi.js +13 -1
  94. package/dist/esm/apis/ConfigJIRAApi.d.ts +1 -1
  95. package/dist/esm/apis/ConfigJIRAApi.js +10 -1
  96. package/dist/esm/apis/ConfigMailApi.d.ts +1 -1
  97. package/dist/esm/apis/ConfigMailApi.js +13 -1
  98. package/dist/esm/apis/ConfigProxyServerApi.d.ts +1 -1
  99. package/dist/esm/apis/ConfigProxyServerApi.js +10 -1
  100. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  101. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.js +10 -1
  102. package/dist/esm/apis/ConfigSAMLApi.d.ts +1 -1
  103. package/dist/esm/apis/ConfigSAMLApi.js +10 -1
  104. package/dist/esm/apis/ConfigSourceControlApi.d.ts +1 -1
  105. package/dist/esm/apis/ConfigSourceControlApi.js +10 -1
  106. package/dist/esm/apis/CycloneDxApi.js +12 -0
  107. package/dist/esm/apis/DataRetentionPoliciesApi.d.ts +1 -1
  108. package/dist/esm/apis/DataRetentionPoliciesApi.js +7 -1
  109. package/dist/esm/apis/EndpointsApi.js +3 -0
  110. package/dist/esm/apis/EvaluationApi.d.ts +1 -1
  111. package/dist/esm/apis/EvaluationApi.js +19 -1
  112. package/dist/esm/apis/FirewallApi.d.ts +1 -1
  113. package/dist/esm/apis/FirewallApi.js +25 -1
  114. package/dist/esm/apis/LabelsApi.d.ts +1 -1
  115. package/dist/esm/apis/LabelsApi.js +19 -1
  116. package/dist/esm/apis/LicenseLegalMetadataApi.d.ts +1 -1
  117. package/dist/esm/apis/LicenseLegalMetadataApi.js +40 -1
  118. package/dist/esm/apis/OrganizationsApi.d.ts +1 -1
  119. package/dist/esm/apis/OrganizationsApi.js +10 -1
  120. package/dist/esm/apis/PoliciesApi.d.ts +1 -1
  121. package/dist/esm/apis/PoliciesApi.js +4 -1
  122. package/dist/esm/apis/PolicyViolationsApi.d.ts +1 -1
  123. package/dist/esm/apis/PolicyViolationsApi.js +19 -1
  124. package/dist/esm/apis/PolicyWaiverApi.js +3 -0
  125. package/dist/esm/apis/PolicyWaiversApi.d.ts +1 -1
  126. package/dist/esm/apis/PolicyWaiversApi.js +22 -1
  127. package/dist/esm/apis/ReportsApi.d.ts +1 -1
  128. package/dist/esm/apis/ReportsApi.js +22 -1
  129. package/dist/esm/apis/RepositoriesApi.d.ts +1 -1
  130. package/dist/esm/apis/RepositoriesApi.js +7 -1
  131. package/dist/esm/apis/RoleMembershipsApi.d.ts +1 -1
  132. package/dist/esm/apis/RoleMembershipsApi.js +19 -1
  133. package/dist/esm/apis/RolesApi.d.ts +1 -1
  134. package/dist/esm/apis/RolesApi.js +4 -1
  135. package/dist/esm/apis/ScanApi.d.ts +1 -1
  136. package/dist/esm/apis/ScanApi.js +7 -1
  137. package/dist/esm/apis/SearchApi.d.ts +1 -1
  138. package/dist/esm/apis/SearchApi.js +13 -1
  139. package/dist/esm/apis/SecurityOverridesApi.d.ts +1 -1
  140. package/dist/esm/apis/SecurityOverridesApi.js +4 -1
  141. package/dist/esm/apis/SourceControlApi.d.ts +1 -1
  142. package/dist/esm/apis/SourceControlApi.js +16 -1
  143. package/dist/esm/apis/SourceControlMetricsApi.d.ts +1 -1
  144. package/dist/esm/apis/SourceControlMetricsApi.js +4 -1
  145. package/dist/esm/apis/TelemetryApi.js +3 -0
  146. package/dist/esm/apis/UserTokensApi.d.ts +1 -1
  147. package/dist/esm/apis/UserTokensApi.js +22 -1
  148. package/dist/esm/apis/UsersApi.d.ts +1 -1
  149. package/dist/esm/apis/UsersApi.js +16 -1
  150. package/dist/esm/apis/VulnerabilitiesApi.d.ts +1 -1
  151. package/dist/esm/apis/VulnerabilitiesApi.js +4 -1
  152. package/dist/esm/index.d.ts +2 -2
  153. package/dist/esm/index.js +2 -2
  154. package/dist/esm/models/GetApplicationsDefaultResponse.d.ts +32 -0
  155. package/dist/esm/models/GetApplicationsDefaultResponse.js +44 -0
  156. package/dist/esm/models/index.d.ts +1 -0
  157. package/dist/esm/models/index.js +1 -0
  158. package/dist/esm/runtime.js +13 -5
  159. package/dist/index.d.ts +2 -2
  160. package/dist/index.js +2 -2
  161. package/dist/models/GetApplicationsDefaultResponse.d.ts +32 -0
  162. package/dist/models/GetApplicationsDefaultResponse.js +51 -0
  163. package/dist/models/index.d.ts +1 -0
  164. package/dist/models/index.js +1 -0
  165. package/dist/runtime.js +13 -5
  166. package/package.json +1 -1
  167. package/src/apis/ApplicationCategoriesApi.ts +32 -2
  168. package/src/apis/ApplicationsApi.ts +49 -7
  169. package/src/apis/ClaimApi.ts +14 -2
  170. package/src/apis/ComponentsApi.ts +17 -2
  171. package/src/apis/CompositeSourceControlApi.ts +5 -2
  172. package/src/apis/CompositeSourceControlConfigValidatorApi.ts +5 -2
  173. package/src/apis/ConfigApi.ts +15 -0
  174. package/src/apis/ConfigArtifactoryConnectionApi.ts +26 -2
  175. package/src/apis/ConfigCrowdApi.ts +14 -2
  176. package/src/apis/ConfigJIRAApi.ts +11 -2
  177. package/src/apis/ConfigMailApi.ts +14 -2
  178. package/src/apis/ConfigProxyServerApi.ts +11 -2
  179. package/src/apis/ConfigReverseProxyAuthenticationApi.ts +11 -2
  180. package/src/apis/ConfigSAMLApi.ts +11 -2
  181. package/src/apis/ConfigSourceControlApi.ts +11 -2
  182. package/src/apis/CycloneDxApi.ts +12 -0
  183. package/src/apis/DataRetentionPoliciesApi.ts +8 -2
  184. package/src/apis/EndpointsApi.ts +3 -0
  185. package/src/apis/EvaluationApi.ts +20 -2
  186. package/src/apis/FirewallApi.ts +26 -2
  187. package/src/apis/LabelsApi.ts +20 -2
  188. package/src/apis/LicenseLegalMetadataApi.ts +41 -2
  189. package/src/apis/OrganizationsApi.ts +11 -2
  190. package/src/apis/PoliciesApi.ts +5 -2
  191. package/src/apis/PolicyViolationsApi.ts +20 -2
  192. package/src/apis/PolicyWaiverApi.ts +3 -0
  193. package/src/apis/PolicyWaiversApi.ts +23 -2
  194. package/src/apis/ReportsApi.ts +23 -2
  195. package/src/apis/RepositoriesApi.ts +8 -2
  196. package/src/apis/RoleMembershipsApi.ts +20 -2
  197. package/src/apis/RolesApi.ts +5 -2
  198. package/src/apis/ScanApi.ts +8 -2
  199. package/src/apis/SearchApi.ts +14 -2
  200. package/src/apis/SecurityOverridesApi.ts +5 -2
  201. package/src/apis/SourceControlApi.ts +17 -2
  202. package/src/apis/SourceControlMetricsApi.ts +5 -2
  203. package/src/apis/TelemetryApi.ts +3 -0
  204. package/src/apis/UserTokensApi.ts +23 -2
  205. package/src/apis/UsersApi.ts +17 -2
  206. package/src/apis/VulnerabilitiesApi.ts +5 -2
  207. package/src/index.ts +2 -2
  208. package/src/models/GetApplicationsDefaultResponse.ts +72 -0
  209. package/src/models/index.ts +1 -0
  210. package/src/runtime.ts +12 -6
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Sonatype Nexus IQ Server
6
+ * This documents the available APIs into [Sonatype Nexus IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management) (also knwon as Nexus Lifecycle).
7
+ *
8
+ * The version of the OpenAPI document: 156
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetApplicationsDefaultResponseToJSON = exports.GetApplicationsDefaultResponseFromJSONTyped = exports.GetApplicationsDefaultResponseFromJSON = exports.instanceOfGetApplicationsDefaultResponse = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const ApiApplicationDTO_1 = require("./ApiApplicationDTO");
19
+ /**
20
+ * Check if a given object implements the GetApplicationsDefaultResponse interface.
21
+ */
22
+ function instanceOfGetApplicationsDefaultResponse(value) {
23
+ let isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfGetApplicationsDefaultResponse = instanceOfGetApplicationsDefaultResponse;
27
+ function GetApplicationsDefaultResponseFromJSON(json) {
28
+ return GetApplicationsDefaultResponseFromJSONTyped(json, false);
29
+ }
30
+ exports.GetApplicationsDefaultResponseFromJSON = GetApplicationsDefaultResponseFromJSON;
31
+ function GetApplicationsDefaultResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'applications': !(0, runtime_1.exists)(json, 'applications') ? undefined : (json['applications'].map(ApiApplicationDTO_1.ApiApplicationDTOFromJSON)),
37
+ };
38
+ }
39
+ exports.GetApplicationsDefaultResponseFromJSONTyped = GetApplicationsDefaultResponseFromJSONTyped;
40
+ function GetApplicationsDefaultResponseToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'applications': value.applications === undefined ? undefined : (value.applications.map(ApiApplicationDTO_1.ApiApplicationDTOToJSON)),
49
+ };
50
+ }
51
+ exports.GetApplicationsDefaultResponseToJSON = GetApplicationsDefaultResponseToJSON;
@@ -170,6 +170,7 @@ export * from './CweId';
170
170
  export * from './FormDataBodyPart';
171
171
  export * from './FormDataContentDisposition';
172
172
  export * from './FormDataMultiPart';
173
+ export * from './GetApplicationsDefaultResponse';
173
174
  export * from './GroupingByDTO';
174
175
  export * from './InnerSourceData';
175
176
  export * from './LabelsByOwner';
@@ -188,6 +188,7 @@ __exportStar(require("./CweId"), exports);
188
188
  __exportStar(require("./FormDataBodyPart"), exports);
189
189
  __exportStar(require("./FormDataContentDisposition"), exports);
190
190
  __exportStar(require("./FormDataMultiPart"), exports);
191
+ __exportStar(require("./GetApplicationsDefaultResponse"), exports);
191
192
  __exportStar(require("./GroupingByDTO"), exports);
192
193
  __exportStar(require("./InnerSourceData"), exports);
193
194
  __exportStar(require("./LabelsByOwner"), exports);
package/dist/runtime.js CHANGED
@@ -187,11 +187,19 @@ class BaseAPI {
187
187
  init: initParams,
188
188
  context,
189
189
  })));
190
- const init = Object.assign(Object.assign({}, overriddenInit), { body: isFormData(overriddenInit.body) ||
191
- overriddenInit.body instanceof URLSearchParams ||
192
- isBlob(overriddenInit.body)
193
- ? overriddenInit.body
194
- : JSON.stringify(overriddenInit.body) });
190
+ let body;
191
+ if (isFormData(overriddenInit.body)
192
+ || (overriddenInit.body instanceof URLSearchParams)
193
+ || isBlob(overriddenInit.body)) {
194
+ body = overriddenInit.body;
195
+ }
196
+ else if (this.isJsonMime(headers['Content-Type'])) {
197
+ body = JSON.stringify(overriddenInit.body);
198
+ }
199
+ else {
200
+ body = overriddenInit.body;
201
+ }
202
+ const init = Object.assign(Object.assign({}, overriddenInit), { body });
195
203
  return { url, init };
196
204
  });
197
205
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonatype/nexus-iq-api-client",
3
- "version": "0.156.1",
3
+ "version": "0.156.3",
4
4
  "description": "OpenAPI client for @sonatype/nexus-iq-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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,8 @@ import type {
22
22
  ApiPolicyViolationDiffDTO,
23
23
  ApiReportPolicyDataDTOV2,
24
24
  ApiReportRawDataDTOV2,
25
- } from '../models';
25
+ GetApplicationsDefaultResponse,
26
+ } from '../models/index';
26
27
  import {
27
28
  ApiApplicationDTOFromJSON,
28
29
  ApiApplicationDTOToJSON,
@@ -38,7 +39,9 @@ import {
38
39
  ApiReportPolicyDataDTOV2ToJSON,
39
40
  ApiReportRawDataDTOV2FromJSON,
40
41
  ApiReportRawDataDTOV2ToJSON,
41
- } from '../models';
42
+ GetApplicationsDefaultResponseFromJSON,
43
+ GetApplicationsDefaultResponseToJSON,
44
+ } from '../models/index';
42
45
 
43
46
  export interface AddApplicationRequest {
44
47
  apiApplicationDTO?: ApiApplicationDTO;
@@ -174,11 +177,11 @@ export interface ApplicationsApiInterface {
174
177
  * @throws {RequiredError}
175
178
  * @memberof ApplicationsApiInterface
176
179
  */
177
- getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiApplicationDTO>>>;
180
+ getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetApplicationsDefaultResponse>>;
178
181
 
179
182
  /**
180
183
  */
181
- getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiApplicationDTO>>;
184
+ getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetApplicationsDefaultResponse>;
182
185
 
183
186
  /**
184
187
  *
@@ -310,6 +313,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
310
313
 
311
314
  headerParameters['Content-Type'] = 'application/json';
312
315
 
316
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
317
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
318
+ }
313
319
  const response = await this.request({
314
320
  path: `/api/v2/applications`,
315
321
  method: 'POST',
@@ -347,6 +353,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
347
353
 
348
354
  const headerParameters: runtime.HTTPHeaders = {};
349
355
 
356
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
357
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
358
+ }
350
359
  const response = await this.request({
351
360
  path: `/api/v2/applications/{sourceApplicationId}/clone`.replace(`{${"sourceApplicationId"}}`, encodeURIComponent(String(requestParameters.sourceApplicationId))),
352
361
  method: 'POST',
@@ -375,6 +384,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
375
384
 
376
385
  const headerParameters: runtime.HTTPHeaders = {};
377
386
 
387
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
388
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
389
+ }
378
390
  const response = await this.request({
379
391
  path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
380
392
  method: 'DELETE',
@@ -402,6 +414,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
402
414
 
403
415
  const headerParameters: runtime.HTTPHeaders = {};
404
416
 
417
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
418
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
419
+ }
405
420
  const response = await this.request({
406
421
  path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
407
422
  method: 'GET',
@@ -421,7 +436,7 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
421
436
 
422
437
  /**
423
438
  */
424
- async getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiApplicationDTO>>> {
439
+ async getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetApplicationsDefaultResponse>> {
425
440
  const queryParameters: any = {};
426
441
 
427
442
  if (requestParameters.publicId) {
@@ -434,6 +449,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
434
449
 
435
450
  const headerParameters: runtime.HTTPHeaders = {};
436
451
 
452
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
453
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
454
+ }
437
455
  const response = await this.request({
438
456
  path: `/api/v2/applications`,
439
457
  method: 'GET',
@@ -441,12 +459,12 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
441
459
  query: queryParameters,
442
460
  }, initOverrides);
443
461
 
444
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiApplicationDTOFromJSON));
462
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetApplicationsDefaultResponseFromJSON(jsonValue));
445
463
  }
446
464
 
447
465
  /**
448
466
  */
449
- async getApplications(requestParameters: GetApplicationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiApplicationDTO>> {
467
+ async getApplications(requestParameters: GetApplicationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetApplicationsDefaultResponse> {
450
468
  const response = await this.getApplicationsRaw(requestParameters, initOverrides);
451
469
  return await response.value();
452
470
  }
@@ -462,6 +480,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
462
480
 
463
481
  const headerParameters: runtime.HTTPHeaders = {};
464
482
 
483
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
484
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
485
+ }
465
486
  const response = await this.request({
466
487
  path: `/api/v2/applications/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
467
488
  method: 'GET',
@@ -494,6 +515,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
494
515
 
495
516
  const headerParameters: runtime.HTTPHeaders = {};
496
517
 
518
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
519
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
520
+ }
497
521
  const response = await this.request({
498
522
  path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
499
523
  method: 'GET',
@@ -525,6 +549,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
525
549
 
526
550
  const headerParameters: runtime.HTTPHeaders = {};
527
551
 
552
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
553
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
554
+ }
528
555
  const response = await this.request({
529
556
  path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/dependencyTree`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
530
557
  method: 'GET',
@@ -569,6 +596,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
569
596
 
570
597
  const headerParameters: runtime.HTTPHeaders = {};
571
598
 
599
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
600
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
601
+ }
572
602
  const response = await this.request({
573
603
  path: `/api/v2/applications/{applicationPublicId}/reports/policyViolations/diff`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))),
574
604
  method: 'GET',
@@ -601,6 +631,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
601
631
 
602
632
  const headerParameters: runtime.HTTPHeaders = {};
603
633
 
634
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
635
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
636
+ }
604
637
  const response = await this.request({
605
638
  path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/policy`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
606
639
  method: 'GET',
@@ -633,6 +666,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
633
666
 
634
667
  const headerParameters: runtime.HTTPHeaders = {};
635
668
 
669
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
670
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
671
+ }
636
672
  const response = await this.request({
637
673
  path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/raw`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
638
674
  method: 'GET',
@@ -665,6 +701,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
665
701
 
666
702
  const headerParameters: runtime.HTTPHeaders = {};
667
703
 
704
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
705
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
706
+ }
668
707
  const response = await this.request({
669
708
  path: `/api/v2/applications/{applicationId}/move/organization/{organizationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
670
709
  method: 'POST',
@@ -695,6 +734,9 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
695
734
 
696
735
  headerParameters['Content-Type'] = 'application/json';
697
736
 
737
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
738
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
739
+ }
698
740
  const response = await this.request({
699
741
  path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
700
742
  method: 'PUT',
@@ -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',
@@ -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',