@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.
Files changed (200) hide show
  1. package/.openapi-generator/VERSION +1 -1
  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 +55 -15
  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 +43 -3
  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/runtime.js +13 -5
  155. package/dist/index.d.ts +2 -2
  156. package/dist/index.js +2 -2
  157. package/dist/runtime.js +13 -5
  158. package/package.json +1 -1
  159. package/src/apis/ApplicationCategoriesApi.ts +32 -2
  160. package/src/apis/ApplicationsApi.ts +48 -8
  161. package/src/apis/ClaimApi.ts +14 -2
  162. package/src/apis/ComponentsApi.ts +17 -2
  163. package/src/apis/CompositeSourceControlApi.ts +5 -2
  164. package/src/apis/CompositeSourceControlConfigValidatorApi.ts +5 -2
  165. package/src/apis/ConfigApi.ts +15 -0
  166. package/src/apis/ConfigArtifactoryConnectionApi.ts +26 -2
  167. package/src/apis/ConfigCrowdApi.ts +14 -2
  168. package/src/apis/ConfigJIRAApi.ts +11 -2
  169. package/src/apis/ConfigMailApi.ts +14 -2
  170. package/src/apis/ConfigProxyServerApi.ts +11 -2
  171. package/src/apis/ConfigReverseProxyAuthenticationApi.ts +11 -2
  172. package/src/apis/ConfigSAMLApi.ts +11 -2
  173. package/src/apis/ConfigSourceControlApi.ts +11 -2
  174. package/src/apis/CycloneDxApi.ts +12 -0
  175. package/src/apis/DataRetentionPoliciesApi.ts +8 -2
  176. package/src/apis/EndpointsApi.ts +3 -0
  177. package/src/apis/EvaluationApi.ts +20 -2
  178. package/src/apis/FirewallApi.ts +26 -2
  179. package/src/apis/LabelsApi.ts +20 -2
  180. package/src/apis/LicenseLegalMetadataApi.ts +41 -2
  181. package/src/apis/OrganizationsApi.ts +11 -2
  182. package/src/apis/PoliciesApi.ts +5 -2
  183. package/src/apis/PolicyViolationsApi.ts +20 -2
  184. package/src/apis/PolicyWaiverApi.ts +3 -0
  185. package/src/apis/PolicyWaiversApi.ts +23 -2
  186. package/src/apis/ReportsApi.ts +23 -2
  187. package/src/apis/RepositoriesApi.ts +8 -2
  188. package/src/apis/RoleMembershipsApi.ts +20 -2
  189. package/src/apis/RolesApi.ts +5 -2
  190. package/src/apis/ScanApi.ts +8 -2
  191. package/src/apis/SearchApi.ts +14 -2
  192. package/src/apis/SecurityOverridesApi.ts +5 -2
  193. package/src/apis/SourceControlApi.ts +17 -2
  194. package/src/apis/SourceControlMetricsApi.ts +5 -2
  195. package/src/apis/TelemetryApi.ts +3 -0
  196. package/src/apis/UserTokensApi.ts +23 -2
  197. package/src/apis/UsersApi.ts +17 -2
  198. package/src/apis/VulnerabilitiesApi.ts +5 -2
  199. package/src/index.ts +2 -2
  200. package/src/runtime.ts +12 -6
@@ -18,7 +18,7 @@ import type {
18
18
  ApiLabelDTO,
19
19
  ApplicableContext,
20
20
  ApplicableLabels,
21
- } from '../models';
21
+ } from '../models/index';
22
22
  import {
23
23
  ApiLabelDTOFromJSON,
24
24
  ApiLabelDTOToJSON,
@@ -26,7 +26,7 @@ import {
26
26
  ApplicableContextToJSON,
27
27
  ApplicableLabelsFromJSON,
28
28
  ApplicableLabelsToJSON,
29
- } from '../models';
29
+ } from '../models/index';
30
30
 
31
31
  export interface AddLabelRequest {
32
32
  ownerType: AddLabelOwnerTypeEnum;
@@ -183,6 +183,9 @@ export class LabelsApi extends runtime.BaseAPI implements LabelsApiInterface {
183
183
 
184
184
  headerParameters['Content-Type'] = 'application/json';
185
185
 
186
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
187
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
188
+ }
186
189
  const response = await this.request({
187
190
  path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
188
191
  method: 'POST',
@@ -220,6 +223,9 @@ export class LabelsApi extends runtime.BaseAPI implements LabelsApiInterface {
220
223
 
221
224
  const headerParameters: runtime.HTTPHeaders = {};
222
225
 
226
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
227
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
228
+ }
223
229
  const response = await this.request({
224
230
  path: `/api/v2/labels/{ownerType}/{ownerId}/{labelId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"labelId"}}`, encodeURIComponent(String(requestParameters.labelId))),
225
231
  method: 'DELETE',
@@ -255,6 +261,9 @@ export class LabelsApi extends runtime.BaseAPI implements LabelsApiInterface {
255
261
 
256
262
  const headerParameters: runtime.HTTPHeaders = {};
257
263
 
264
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
265
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
266
+ }
258
267
  const response = await this.request({
259
268
  path: `/api/v2/labels/{ownerType}/{ownerId}/applicable/context/{labelId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"labelId"}}`, encodeURIComponent(String(requestParameters.labelId))),
260
269
  method: 'GET',
@@ -287,6 +296,9 @@ export class LabelsApi extends runtime.BaseAPI implements LabelsApiInterface {
287
296
 
288
297
  const headerParameters: runtime.HTTPHeaders = {};
289
298
 
299
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
300
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
301
+ }
290
302
  const response = await this.request({
291
303
  path: `/api/v2/labels/{ownerType}/{ownerId}/applicable`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
292
304
  method: 'GET',
@@ -323,6 +335,9 @@ export class LabelsApi extends runtime.BaseAPI implements LabelsApiInterface {
323
335
 
324
336
  const headerParameters: runtime.HTTPHeaders = {};
325
337
 
338
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
339
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
340
+ }
326
341
  const response = await this.request({
327
342
  path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
328
343
  method: 'GET',
@@ -357,6 +372,9 @@ export class LabelsApi extends runtime.BaseAPI implements LabelsApiInterface {
357
372
 
358
373
  headerParameters['Content-Type'] = 'application/json';
359
374
 
375
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
376
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
377
+ }
360
378
  const response = await this.request({
361
379
  path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
362
380
  method: 'PUT',
@@ -20,7 +20,7 @@ import type {
20
20
  AttributionReportTemplateDTO,
21
21
  ComponentIdentifier,
22
22
  FormDataMultiPart,
23
- } from '../models';
23
+ } from '../models/index';
24
24
  import {
25
25
  ApiLicenseLegalApplicationReportDTOFromJSON,
26
26
  ApiLicenseLegalApplicationReportDTOToJSON,
@@ -32,7 +32,7 @@ import {
32
32
  ComponentIdentifierToJSON,
33
33
  FormDataMultiPartFromJSON,
34
34
  FormDataMultiPartToJSON,
35
- } from '../models';
35
+ } from '../models/index';
36
36
 
37
37
  export interface DeleteAttributionReportTemplateRequest {
38
38
  id: string;
@@ -294,6 +294,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
294
294
 
295
295
  const headerParameters: runtime.HTTPHeaders = {};
296
296
 
297
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
298
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
299
+ }
297
300
  const response = await this.request({
298
301
  path: `/api/v2/licenseLegalMetadata/report-template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
299
302
  method: 'DELETE',
@@ -317,6 +320,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
317
320
 
318
321
  const headerParameters: runtime.HTTPHeaders = {};
319
322
 
323
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
324
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
325
+ }
320
326
  const response = await this.request({
321
327
  path: `/api/v2/licenseLegalMetadata/report-template`,
322
328
  method: 'GET',
@@ -345,6 +351,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
345
351
 
346
352
  const headerParameters: runtime.HTTPHeaders = {};
347
353
 
354
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
355
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
356
+ }
348
357
  const response = await this.request({
349
358
  path: `/api/v2/licenseLegalMetadata/report-template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
350
359
  method: 'GET',
@@ -377,6 +386,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
377
386
 
378
387
  const headerParameters: runtime.HTTPHeaders = {};
379
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
+ }
380
392
  const response = await this.request({
381
393
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
382
394
  method: 'GET',
@@ -409,6 +421,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
409
421
 
410
422
  const headerParameters: runtime.HTTPHeaders = {};
411
423
 
424
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
425
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
426
+ }
412
427
  const response = await this.request({
413
428
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
414
429
  method: 'GET',
@@ -441,6 +456,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
441
456
 
442
457
  const headerParameters: runtime.HTTPHeaders = {};
443
458
 
459
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
460
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
461
+ }
444
462
  const response = await this.request({
445
463
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
446
464
  method: 'GET',
@@ -493,6 +511,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
493
511
 
494
512
  const headerParameters: runtime.HTTPHeaders = {};
495
513
 
514
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
515
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
516
+ }
496
517
  const response = await this.request({
497
518
  path: `/api/v2/licenseLegalMetadata/{ownerType}/{ownerId}/component`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
498
519
  method: 'GET',
@@ -527,6 +548,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
527
548
 
528
549
  headerParameters['Content-Type'] = 'application/json';
529
550
 
551
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
552
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
553
+ }
530
554
  const response = await this.request({
531
555
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
532
556
  method: 'POST',
@@ -568,6 +592,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
568
592
 
569
593
  const headerParameters: runtime.HTTPHeaders = {};
570
594
 
595
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
596
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
597
+ }
571
598
  const response = await this.request({
572
599
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report/templateId/{templateId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))).replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
573
600
  method: 'POST',
@@ -600,6 +627,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
600
627
 
601
628
  const headerParameters: runtime.HTTPHeaders = {};
602
629
 
630
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
631
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
632
+ }
603
633
  const response = await this.request({
604
634
  path: `/api/v2/licenseLegalMetadata/multiApplication/report/templateId/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
605
635
  method: 'POST',
@@ -628,6 +658,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
628
658
 
629
659
  const headerParameters: runtime.HTTPHeaders = {};
630
660
 
661
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
662
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
663
+ }
631
664
  const response = await this.request({
632
665
  path: `/api/v2/licenseLegalMetadata/multiApplication/report`,
633
666
  method: 'POST',
@@ -660,6 +693,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
660
693
 
661
694
  const headerParameters: runtime.HTTPHeaders = {};
662
695
 
696
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
697
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
698
+ }
663
699
  const response = await this.request({
664
700
  path: `/api/v2/licenseLegalMetadata/multiApplication/activeUserFilter/report/templateId/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
665
701
  method: 'POST',
@@ -690,6 +726,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
690
726
 
691
727
  headerParameters['Content-Type'] = 'application/json';
692
728
 
729
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
730
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
731
+ }
693
732
  const response = await this.request({
694
733
  path: `/api/v2/licenseLegalMetadata/report-template`,
695
734
  method: 'POST',
@@ -17,13 +17,13 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiOrganizationDTO,
19
19
  ApiOrganizationListDTO,
20
- } from '../models';
20
+ } from '../models/index';
21
21
  import {
22
22
  ApiOrganizationDTOFromJSON,
23
23
  ApiOrganizationDTOToJSON,
24
24
  ApiOrganizationListDTOFromJSON,
25
25
  ApiOrganizationListDTOToJSON,
26
- } from '../models';
26
+ } from '../models/index';
27
27
 
28
28
  export interface AddOrganizationRequest {
29
29
  apiOrganizationDTO?: ApiOrganizationDTO;
@@ -99,6 +99,9 @@ export class OrganizationsApi extends runtime.BaseAPI implements OrganizationsAp
99
99
 
100
100
  headerParameters['Content-Type'] = 'application/json';
101
101
 
102
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
103
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
104
+ }
102
105
  const response = await this.request({
103
106
  path: `/api/v2/organizations`,
104
107
  method: 'POST',
@@ -128,6 +131,9 @@ export class OrganizationsApi extends runtime.BaseAPI implements OrganizationsAp
128
131
 
129
132
  const headerParameters: runtime.HTTPHeaders = {};
130
133
 
134
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
135
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
136
+ }
131
137
  const response = await this.request({
132
138
  path: `/api/v2/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
133
139
  method: 'GET',
@@ -156,6 +162,9 @@ export class OrganizationsApi extends runtime.BaseAPI implements OrganizationsAp
156
162
 
157
163
  const headerParameters: runtime.HTTPHeaders = {};
158
164
 
165
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
166
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
167
+ }
159
168
  const response = await this.request({
160
169
  path: `/api/v2/organizations`,
161
170
  method: 'GET',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiPolicyListDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiPolicyListDTOFromJSON,
22
22
  ApiPolicyListDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  /**
26
26
  * PoliciesApi - interface
@@ -55,6 +55,9 @@ export class PoliciesApi extends runtime.BaseAPI implements PoliciesApiInterface
55
55
 
56
56
  const headerParameters: runtime.HTTPHeaders = {};
57
57
 
58
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
59
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
60
+ }
58
61
  const response = await this.request({
59
62
  path: `/api/v2/policies`,
60
63
  method: 'GET',
@@ -20,7 +20,7 @@ import type {
20
20
  ApiCrossStageViolationDTOV2,
21
21
  ApiPolicyWaiversApplicableToViolationDTO,
22
22
  ComponentIdentifier,
23
- } from '../models';
23
+ } from '../models/index';
24
24
  import {
25
25
  ApiApplicationViolationListDTOV2FromJSON,
26
26
  ApiApplicationViolationListDTOV2ToJSON,
@@ -32,7 +32,7 @@ import {
32
32
  ApiPolicyWaiversApplicableToViolationDTOToJSON,
33
33
  ComponentIdentifierFromJSON,
34
34
  ComponentIdentifierToJSON,
35
- } from '../models';
35
+ } from '../models/index';
36
36
 
37
37
  export interface GetApplicableWaiversRequest {
38
38
  violationId: string;
@@ -181,6 +181,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI implements PolicyViolat
181
181
 
182
182
  const headerParameters: runtime.HTTPHeaders = {};
183
183
 
184
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
185
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
186
+ }
184
187
  const response = await this.request({
185
188
  path: `/api/v2/policyViolations/{violationId}/applicableWaivers`.replace(`{${"violationId"}}`, encodeURIComponent(String(requestParameters.violationId))),
186
189
  method: 'GET',
@@ -209,6 +212,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI implements PolicyViolat
209
212
 
210
213
  const headerParameters: runtime.HTTPHeaders = {};
211
214
 
215
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
216
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
217
+ }
212
218
  const response = await this.request({
213
219
  path: `/api/v2/policyViolations/crossStage`,
214
220
  method: 'GET',
@@ -237,6 +243,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI implements PolicyViolat
237
243
 
238
244
  const headerParameters: runtime.HTTPHeaders = {};
239
245
 
246
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
247
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
248
+ }
240
249
  const response = await this.request({
241
250
  path: `/api/v2/policyViolations/crossStage/{violationId}`.replace(`{${"violationId"}}`, encodeURIComponent(String(requestParameters.violationId))),
242
251
  method: 'GET',
@@ -265,6 +274,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI implements PolicyViolat
265
274
 
266
275
  const headerParameters: runtime.HTTPHeaders = {};
267
276
 
277
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
278
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
279
+ }
268
280
  const response = await this.request({
269
281
  path: `/api/v2/policyViolations`,
270
282
  method: 'GET',
@@ -313,6 +325,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI implements PolicyViolat
313
325
 
314
326
  const headerParameters: runtime.HTTPHeaders = {};
315
327
 
328
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
329
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
330
+ }
316
331
  const response = await this.request({
317
332
  path: `/api/v2/policyViolations/transitive/{ownerType}/{ownerId}/{scanId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
318
333
  method: 'GET',
@@ -361,6 +376,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI implements PolicyViolat
361
376
 
362
377
  const headerParameters: runtime.HTTPHeaders = {};
363
378
 
379
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
380
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
381
+ }
364
382
  const response = await this.request({
365
383
  path: `/api/v2/policyViolations/transitive/{ownerType}/{ownerId}/stages/{stageId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
366
384
  method: 'GET',
@@ -68,6 +68,9 @@ export class PolicyWaiverApi extends runtime.BaseAPI implements PolicyWaiverApiI
68
68
 
69
69
  headerParameters['Content-Type'] = 'text/plain';
70
70
 
71
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
72
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
73
+ }
71
74
  const response = await this.request({
72
75
  path: `/api/v2/policyWaiver/{policyViolationId}/{ownerType}`.replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters.policyViolationId))).replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))),
73
76
  method: 'POST',
@@ -19,7 +19,7 @@ import type {
19
19
  ApiPolicyWaiverDTO,
20
20
  ApiWaiverOptionsDTO,
21
21
  ComponentIdentifier,
22
- } from '../models';
22
+ } from '../models/index';
23
23
  import {
24
24
  ApiComponentPolicyWaiversDTOFromJSON,
25
25
  ApiComponentPolicyWaiversDTOToJSON,
@@ -29,7 +29,7 @@ import {
29
29
  ApiWaiverOptionsDTOToJSON,
30
30
  ComponentIdentifierFromJSON,
31
31
  ComponentIdentifierToJSON,
32
- } from '../models';
32
+ } from '../models/index';
33
33
 
34
34
  export interface AddPolicyWaiverByPolicyViolationIdRequest {
35
35
  ownerType: AddPolicyWaiverByPolicyViolationIdOwnerTypeEnum;
@@ -235,6 +235,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
235
235
 
236
236
  headerParameters['Content-Type'] = 'application/json';
237
237
 
238
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
239
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
240
+ }
238
241
  const response = await this.request({
239
242
  path: `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyViolationId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters.policyViolationId))),
240
243
  method: 'POST',
@@ -285,6 +288,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
285
288
 
286
289
  headerParameters['Content-Type'] = 'application/json';
287
290
 
291
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
292
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
293
+ }
288
294
  const response = await this.request({
289
295
  path: `/api/v2/policyWaivers/transitive/{ownerType}/{ownerId}/{scanId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
290
296
  method: 'POST',
@@ -335,6 +341,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
335
341
 
336
342
  headerParameters['Content-Type'] = 'application/json';
337
343
 
344
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
345
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
346
+ }
338
347
  const response = await this.request({
339
348
  path: `/api/v2/policyWaivers/transitive/{ownerType}/{ownerId}/stages/{stageId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
340
349
  method: 'POST',
@@ -371,6 +380,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
371
380
 
372
381
  const headerParameters: runtime.HTTPHeaders = {};
373
382
 
383
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
384
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
385
+ }
374
386
  const response = await this.request({
375
387
  path: `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyWaiverId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"policyWaiverId"}}`, encodeURIComponent(String(requestParameters.policyWaiverId))),
376
388
  method: 'DELETE',
@@ -406,6 +418,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
406
418
 
407
419
  const headerParameters: runtime.HTTPHeaders = {};
408
420
 
421
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
422
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
423
+ }
409
424
  const response = await this.request({
410
425
  path: `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyWaiverId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"policyWaiverId"}}`, encodeURIComponent(String(requestParameters.policyWaiverId))),
411
426
  method: 'GET',
@@ -438,6 +453,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
438
453
 
439
454
  const headerParameters: runtime.HTTPHeaders = {};
440
455
 
456
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
457
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
458
+ }
441
459
  const response = await this.request({
442
460
  path: `/api/v2/policyWaivers/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
443
461
  method: 'GET',
@@ -486,6 +504,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
486
504
 
487
505
  const headerParameters: runtime.HTTPHeaders = {};
488
506
 
507
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
508
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
509
+ }
489
510
  const response = await this.request({
490
511
  path: `/api/v2/policyWaivers/transitive/{ownerType}/{ownerId}/{scanId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
491
512
  method: 'GET',
@@ -21,7 +21,7 @@ import type {
21
21
  ApiMetricsReportingQueryDTOV2,
22
22
  ApiReportHistoryDTO,
23
23
  ApiStaleWaiversResponseDTO,
24
- } from '../models';
24
+ } from '../models/index';
25
25
  import {
26
26
  ApiApplicationReportDTOV2FromJSON,
27
27
  ApiApplicationReportDTOV2ToJSON,
@@ -35,7 +35,7 @@ import {
35
35
  ApiReportHistoryDTOToJSON,
36
36
  ApiStaleWaiversResponseDTOFromJSON,
37
37
  ApiStaleWaiversResponseDTOToJSON,
38
- } from '../models';
38
+ } from '../models/index';
39
39
 
40
40
  export interface GetByApplicationIdRequest {
41
41
  applicationId: string;
@@ -162,6 +162,9 @@ export class ReportsApi extends runtime.BaseAPI implements ReportsApiInterface {
162
162
 
163
163
  const headerParameters: runtime.HTTPHeaders = {};
164
164
 
165
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
166
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
167
+ }
165
168
  const response = await this.request({
166
169
  path: `/api/v2/reports/applications`,
167
170
  method: 'GET',
@@ -190,6 +193,9 @@ export class ReportsApi extends runtime.BaseAPI implements ReportsApiInterface {
190
193
 
191
194
  const headerParameters: runtime.HTTPHeaders = {};
192
195
 
196
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
197
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
198
+ }
193
199
  const response = await this.request({
194
200
  path: `/api/v2/reports/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
195
201
  method: 'GET',
@@ -214,6 +220,9 @@ export class ReportsApi extends runtime.BaseAPI implements ReportsApiInterface {
214
220
 
215
221
  const headerParameters: runtime.HTTPHeaders = {};
216
222
 
223
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
224
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
225
+ }
217
226
  const response = await this.request({
218
227
  path: `/api/v2/reports/components/quarantined`,
219
228
  method: 'GET',
@@ -242,6 +251,9 @@ export class ReportsApi extends runtime.BaseAPI implements ReportsApiInterface {
242
251
 
243
252
  const headerParameters: runtime.HTTPHeaders = {};
244
253
 
254
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
255
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
256
+ }
245
257
  const response = await this.request({
246
258
  path: `/api/v2/reports/components/waivers`,
247
259
  method: 'GET',
@@ -268,6 +280,9 @@ export class ReportsApi extends runtime.BaseAPI implements ReportsApiInterface {
268
280
 
269
281
  headerParameters['Content-Type'] = 'application/json';
270
282
 
283
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
284
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
285
+ }
271
286
  const response = await this.request({
272
287
  path: `/api/v2/reports/metrics`,
273
288
  method: 'POST',
@@ -296,6 +311,9 @@ export class ReportsApi extends runtime.BaseAPI implements ReportsApiInterface {
296
311
 
297
312
  const headerParameters: runtime.HTTPHeaders = {};
298
313
 
314
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
315
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
316
+ }
299
317
  const response = await this.request({
300
318
  path: `/api/v2/reports/applications/{applicationId}/history`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
301
319
  method: 'GET',
@@ -320,6 +338,9 @@ export class ReportsApi extends runtime.BaseAPI implements ReportsApiInterface {
320
338
 
321
339
  const headerParameters: runtime.HTTPHeaders = {};
322
340
 
341
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
342
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
343
+ }
323
344
  const response = await this.request({
324
345
  path: `/api/v2/reports/waivers/stale`,
325
346
  method: 'GET',
@@ -17,13 +17,13 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiComponentReleasedFromQuarantineDTO,
19
19
  ApiRepositoryPathResponseDTO,
20
- } from '../models';
20
+ } from '../models/index';
21
21
  import {
22
22
  ApiComponentReleasedFromQuarantineDTOFromJSON,
23
23
  ApiComponentReleasedFromQuarantineDTOToJSON,
24
24
  ApiRepositoryPathResponseDTOFromJSON,
25
25
  ApiRepositoryPathResponseDTOToJSON,
26
- } from '../models';
26
+ } from '../models/index';
27
27
 
28
28
  export interface GetQuarantinedByPathRequest {
29
29
  repositoryManagerInstanceId: string;
@@ -96,6 +96,9 @@ export class RepositoriesApi extends runtime.BaseAPI implements RepositoriesApiI
96
96
 
97
97
  headerParameters['Content-Type'] = 'application/json';
98
98
 
99
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
100
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
101
+ }
99
102
  const response = await this.request({
100
103
  path: `/api/v2/repositories/{repositoryManagerInstanceId}/{repositoryPublicId}/components/quarantined/pathnames`.replace(`{${"repositoryManagerInstanceId"}}`, encodeURIComponent(String(requestParameters.repositoryManagerInstanceId))).replace(`{${"repositoryPublicId"}}`, encodeURIComponent(String(requestParameters.repositoryPublicId))),
101
104
  method: 'POST',
@@ -127,6 +130,9 @@ export class RepositoriesApi extends runtime.BaseAPI implements RepositoriesApiI
127
130
 
128
131
  headerParameters['Content-Type'] = 'text/plain';
129
132
 
133
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
134
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
135
+ }
130
136
  const response = await this.request({
131
137
  path: `/api/v2/repositories/quarantine/{quarantineId}/release`.replace(`{${"quarantineId"}}`, encodeURIComponent(String(requestParameters.quarantineId))),
132
138
  method: 'POST',