@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
@@ -19,7 +19,7 @@ import type {
19
19
  ApiArtifactoryConnectionStatusRequestDTO,
20
20
  ApiOwnerArtifactoryConnectionDTO,
21
21
  ApiStatusDTO,
22
- } from '../models';
22
+ } from '../models/index';
23
23
  import {
24
24
  ApiArtifactoryConnectionDTOFromJSON,
25
25
  ApiArtifactoryConnectionDTOToJSON,
@@ -29,7 +29,7 @@ import {
29
29
  ApiOwnerArtifactoryConnectionDTOToJSON,
30
30
  ApiStatusDTOFromJSON,
31
31
  ApiStatusDTOToJSON,
32
- } from '../models';
32
+ } from '../models/index';
33
33
 
34
34
  export interface AddArtifactoryConnectionRequest {
35
35
  ownerType: AddArtifactoryConnectionOwnerTypeEnum;
@@ -232,6 +232,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
232
232
 
233
233
  headerParameters['Content-Type'] = 'application/json';
234
234
 
235
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
236
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
237
+ }
235
238
  const response = await this.request({
236
239
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
237
240
  method: 'POST',
@@ -269,6 +272,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
269
272
 
270
273
  const headerParameters: runtime.HTTPHeaders = {};
271
274
 
275
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
276
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
277
+ }
272
278
  const response = await this.request({
273
279
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
274
280
  method: 'DELETE',
@@ -304,6 +310,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
304
310
 
305
311
  const headerParameters: runtime.HTTPHeaders = {};
306
312
 
313
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
314
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
315
+ }
307
316
  const response = await this.request({
308
317
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
309
318
  method: 'GET',
@@ -340,6 +349,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
340
349
 
341
350
  const headerParameters: runtime.HTTPHeaders = {};
342
351
 
352
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
353
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
354
+ }
343
355
  const response = await this.request({
344
356
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
345
357
  method: 'GET',
@@ -374,6 +386,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
374
386
 
375
387
  headerParameters['Content-Type'] = 'application/json';
376
388
 
389
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
390
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
391
+ }
377
392
  const response = await this.request({
378
393
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
379
394
  method: 'POST',
@@ -411,6 +426,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
411
426
 
412
427
  const headerParameters: runtime.HTTPHeaders = {};
413
428
 
429
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
430
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
431
+ }
414
432
  const response = await this.request({
415
433
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
416
434
  method: 'POST',
@@ -449,6 +467,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
449
467
 
450
468
  headerParameters['Content-Type'] = 'application/json';
451
469
 
470
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
471
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
472
+ }
452
473
  const response = await this.request({
453
474
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
454
475
  method: 'PUT',
@@ -484,6 +505,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
484
505
 
485
506
  headerParameters['Content-Type'] = 'application/json';
486
507
 
508
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
509
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
510
+ }
487
511
  const response = await this.request({
488
512
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
489
513
  method: 'PUT',
@@ -17,13 +17,13 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiCrowdConfigurationDTO,
19
19
  ApiStatusDTO,
20
- } from '../models';
20
+ } from '../models/index';
21
21
  import {
22
22
  ApiCrowdConfigurationDTOFromJSON,
23
23
  ApiCrowdConfigurationDTOToJSON,
24
24
  ApiStatusDTOFromJSON,
25
25
  ApiStatusDTOToJSON,
26
- } from '../models';
26
+ } from '../models/index';
27
27
 
28
28
  export interface InsertOrUpdateCrowdConfigurationRequest {
29
29
  apiCrowdConfigurationDTO?: ApiCrowdConfigurationDTO;
@@ -104,6 +104,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI implements ConfigCrowdApiInt
104
104
 
105
105
  const headerParameters: runtime.HTTPHeaders = {};
106
106
 
107
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
108
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
109
+ }
107
110
  const response = await this.request({
108
111
  path: `/api/v2/config/crowd`,
109
112
  method: 'DELETE',
@@ -127,6 +130,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI implements ConfigCrowdApiInt
127
130
 
128
131
  const headerParameters: runtime.HTTPHeaders = {};
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/config/crowd`,
132
138
  method: 'GET',
@@ -153,6 +159,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI implements ConfigCrowdApiInt
153
159
 
154
160
  headerParameters['Content-Type'] = 'application/json';
155
161
 
162
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
163
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
164
+ }
156
165
  const response = await this.request({
157
166
  path: `/api/v2/config/crowd`,
158
167
  method: 'PUT',
@@ -179,6 +188,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI implements ConfigCrowdApiInt
179
188
 
180
189
  headerParameters['Content-Type'] = 'application/json';
181
190
 
191
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
192
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
193
+ }
182
194
  const response = await this.request({
183
195
  path: `/api/v2/config/crowd/test`,
184
196
  method: 'POST',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiJiraConfigurationDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiJiraConfigurationDTOFromJSON,
22
22
  ApiJiraConfigurationDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  export interface SetConfiguration1Request {
26
26
  body?: object;
@@ -84,6 +84,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI implements ConfigJIRAApiInter
84
84
 
85
85
  const headerParameters: runtime.HTTPHeaders = {};
86
86
 
87
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
88
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
89
+ }
87
90
  const response = await this.request({
88
91
  path: `/api/v2/config/jira`,
89
92
  method: 'DELETE',
@@ -107,6 +110,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI implements ConfigJIRAApiInter
107
110
 
108
111
  const headerParameters: runtime.HTTPHeaders = {};
109
112
 
113
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
114
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
115
+ }
110
116
  const response = await this.request({
111
117
  path: `/api/v2/config/jira`,
112
118
  method: 'GET',
@@ -133,6 +139,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI implements ConfigJIRAApiInter
133
139
 
134
140
  headerParameters['Content-Type'] = 'application/json';
135
141
 
142
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
143
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
144
+ }
136
145
  const response = await this.request({
137
146
  path: `/api/v2/config/jira`,
138
147
  method: 'PUT',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiMailConfigurationDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiMailConfigurationDTOFromJSON,
22
22
  ApiMailConfigurationDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  export interface SetConfiguration2Request {
26
26
  apiMailConfigurationDTO?: ApiMailConfigurationDTO;
@@ -103,6 +103,9 @@ export class ConfigMailApi extends runtime.BaseAPI implements ConfigMailApiInter
103
103
 
104
104
  const headerParameters: runtime.HTTPHeaders = {};
105
105
 
106
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
107
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
108
+ }
106
109
  const response = await this.request({
107
110
  path: `/api/v2/config/mail`,
108
111
  method: 'DELETE',
@@ -126,6 +129,9 @@ export class ConfigMailApi extends runtime.BaseAPI implements ConfigMailApiInter
126
129
 
127
130
  const headerParameters: runtime.HTTPHeaders = {};
128
131
 
132
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
133
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
134
+ }
129
135
  const response = await this.request({
130
136
  path: `/api/v2/config/mail`,
131
137
  method: 'GET',
@@ -152,6 +158,9 @@ export class ConfigMailApi extends runtime.BaseAPI implements ConfigMailApiInter
152
158
 
153
159
  headerParameters['Content-Type'] = 'application/json';
154
160
 
161
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
162
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
163
+ }
155
164
  const response = await this.request({
156
165
  path: `/api/v2/config/mail`,
157
166
  method: 'PUT',
@@ -182,6 +191,9 @@ export class ConfigMailApi extends runtime.BaseAPI implements ConfigMailApiInter
182
191
 
183
192
  headerParameters['Content-Type'] = 'application/json';
184
193
 
194
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
195
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
196
+ }
185
197
  const response = await this.request({
186
198
  path: `/api/v2/config/mail/test/{recipientEmail}`.replace(`{${"recipientEmail"}}`, encodeURIComponent(String(requestParameters.recipientEmail))),
187
199
  method: 'POST',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiProxyServerConfigurationDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiProxyServerConfigurationDTOFromJSON,
22
22
  ApiProxyServerConfigurationDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  export interface SetConfiguration3Request {
26
26
  apiProxyServerConfigurationDTO?: ApiProxyServerConfigurationDTO;
@@ -84,6 +84,9 @@ export class ConfigProxyServerApi extends runtime.BaseAPI implements ConfigProxy
84
84
 
85
85
  const headerParameters: runtime.HTTPHeaders = {};
86
86
 
87
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
88
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
89
+ }
87
90
  const response = await this.request({
88
91
  path: `/api/v2/config/httpProxyServer`,
89
92
  method: 'DELETE',
@@ -107,6 +110,9 @@ export class ConfigProxyServerApi extends runtime.BaseAPI implements ConfigProxy
107
110
 
108
111
  const headerParameters: runtime.HTTPHeaders = {};
109
112
 
113
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
114
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
115
+ }
110
116
  const response = await this.request({
111
117
  path: `/api/v2/config/httpProxyServer`,
112
118
  method: 'GET',
@@ -133,6 +139,9 @@ export class ConfigProxyServerApi extends runtime.BaseAPI implements ConfigProxy
133
139
 
134
140
  headerParameters['Content-Type'] = 'application/json';
135
141
 
142
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
143
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
144
+ }
136
145
  const response = await this.request({
137
146
  path: `/api/v2/config/httpProxyServer`,
138
147
  method: 'PUT',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiReverseProxyAuthenticationConfigurationDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiReverseProxyAuthenticationConfigurationDTOFromJSON,
22
22
  ApiReverseProxyAuthenticationConfigurationDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  export interface SetConfiguration4Request {
26
26
  apiReverseProxyAuthenticationConfigurationDTO?: ApiReverseProxyAuthenticationConfigurationDTO;
@@ -84,6 +84,9 @@ export class ConfigReverseProxyAuthenticationApi extends runtime.BaseAPI impleme
84
84
 
85
85
  const headerParameters: runtime.HTTPHeaders = {};
86
86
 
87
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
88
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
89
+ }
87
90
  const response = await this.request({
88
91
  path: `/api/v2/config/reverseProxyAuthentication`,
89
92
  method: 'DELETE',
@@ -107,6 +110,9 @@ export class ConfigReverseProxyAuthenticationApi extends runtime.BaseAPI impleme
107
110
 
108
111
  const headerParameters: runtime.HTTPHeaders = {};
109
112
 
113
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
114
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
115
+ }
110
116
  const response = await this.request({
111
117
  path: `/api/v2/config/reverseProxyAuthentication`,
112
118
  method: 'GET',
@@ -133,6 +139,9 @@ export class ConfigReverseProxyAuthenticationApi extends runtime.BaseAPI impleme
133
139
 
134
140
  headerParameters['Content-Type'] = 'application/json';
135
141
 
142
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
143
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
144
+ }
136
145
  const response = await this.request({
137
146
  path: `/api/v2/config/reverseProxyAuthentication`,
138
147
  method: 'PUT',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiSamlConfigurationResponseDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiSamlConfigurationResponseDTOFromJSON,
22
22
  ApiSamlConfigurationResponseDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  /**
26
26
  * ConfigSAMLApi - interface
@@ -79,6 +79,9 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
79
79
 
80
80
  const headerParameters: runtime.HTTPHeaders = {};
81
81
 
82
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
83
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
84
+ }
82
85
  const response = await this.request({
83
86
  path: `/api/v2/config/saml`,
84
87
  method: 'DELETE',
@@ -102,6 +105,9 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
102
105
 
103
106
  const headerParameters: runtime.HTTPHeaders = {};
104
107
 
108
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
109
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
110
+ }
105
111
  const response = await this.request({
106
112
  path: `/api/v2/config/saml/metadata`,
107
113
  method: 'GET',
@@ -130,6 +136,9 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
130
136
 
131
137
  const headerParameters: runtime.HTTPHeaders = {};
132
138
 
139
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
140
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
141
+ }
133
142
  const response = await this.request({
134
143
  path: `/api/v2/config/saml`,
135
144
  method: 'GET',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiSourceControlConfigurationDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiSourceControlConfigurationDTOFromJSON,
22
22
  ApiSourceControlConfigurationDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  export interface SetConfiguration5Request {
26
26
  body?: object;
@@ -84,6 +84,9 @@ export class ConfigSourceControlApi extends runtime.BaseAPI implements ConfigSou
84
84
 
85
85
  const headerParameters: runtime.HTTPHeaders = {};
86
86
 
87
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
88
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
89
+ }
87
90
  const response = await this.request({
88
91
  path: `/api/v2/config/sourceControl`,
89
92
  method: 'DELETE',
@@ -107,6 +110,9 @@ export class ConfigSourceControlApi extends runtime.BaseAPI implements ConfigSou
107
110
 
108
111
  const headerParameters: runtime.HTTPHeaders = {};
109
112
 
113
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
114
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
115
+ }
110
116
  const response = await this.request({
111
117
  path: `/api/v2/config/sourceControl`,
112
118
  method: 'GET',
@@ -133,6 +139,9 @@ export class ConfigSourceControlApi extends runtime.BaseAPI implements ConfigSou
133
139
 
134
140
  headerParameters['Content-Type'] = 'application/json';
135
141
 
142
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
143
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
144
+ }
136
145
  const response = await this.request({
137
146
  path: `/api/v2/config/sourceControl`,
138
147
  method: 'PUT',
@@ -124,6 +124,9 @@ export class CycloneDxApi extends runtime.BaseAPI implements CycloneDxApiInterfa
124
124
 
125
125
  const headerParameters: runtime.HTTPHeaders = {};
126
126
 
127
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
128
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
129
+ }
127
130
  const response = await this.request({
128
131
  path: `/api/v2/cycloneDx/{applicationId}/reports/{reportId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"reportId"}}`, encodeURIComponent(String(requestParameters.reportId))),
129
132
  method: 'GET',
@@ -159,6 +162,9 @@ export class CycloneDxApi extends runtime.BaseAPI implements CycloneDxApiInterfa
159
162
 
160
163
  const headerParameters: runtime.HTTPHeaders = {};
161
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
+ }
162
168
  const response = await this.request({
163
169
  path: `/api/v2/cycloneDx/{cdxVersion}/{applicationId}/reports/{reportId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"reportId"}}`, encodeURIComponent(String(requestParameters.reportId))).replace(`{${"cdxVersion"}}`, encodeURIComponent(String(requestParameters.cdxVersion))),
164
170
  method: 'GET',
@@ -190,6 +196,9 @@ export class CycloneDxApi extends runtime.BaseAPI implements CycloneDxApiInterfa
190
196
 
191
197
  const headerParameters: runtime.HTTPHeaders = {};
192
198
 
199
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
200
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
201
+ }
193
202
  const response = await this.request({
194
203
  path: `/api/v2/cycloneDx/{applicationId}/stages/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
195
204
  method: 'GET',
@@ -225,6 +234,9 @@ export class CycloneDxApi extends runtime.BaseAPI implements CycloneDxApiInterfa
225
234
 
226
235
  const headerParameters: runtime.HTTPHeaders = {};
227
236
 
237
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
238
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
239
+ }
228
240
  const response = await this.request({
229
241
  path: `/api/v2/cycloneDx/{cdxVersion}/{applicationId}/stages/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))).replace(`{${"cdxVersion"}}`, encodeURIComponent(String(requestParameters.cdxVersion))),
230
242
  method: 'GET',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiDataRetentionPoliciesDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiDataRetentionPoliciesDTOFromJSON,
22
22
  ApiDataRetentionPoliciesDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  export interface GetDataRetentionPoliciesRequest {
26
26
  organizationId: string;
@@ -83,6 +83,9 @@ export class DataRetentionPoliciesApi extends runtime.BaseAPI implements DataRet
83
83
 
84
84
  const headerParameters: runtime.HTTPHeaders = {};
85
85
 
86
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
87
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
88
+ }
86
89
  const response = await this.request({
87
90
  path: `/api/v2/dataRetentionPolicies/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
88
91
  method: 'GET',
@@ -113,6 +116,9 @@ export class DataRetentionPoliciesApi extends runtime.BaseAPI implements DataRet
113
116
 
114
117
  headerParameters['Content-Type'] = 'application/json';
115
118
 
119
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
120
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
121
+ }
116
122
  const response = await this.request({
117
123
  path: `/api/v2/dataRetentionPolicies/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
118
124
  method: 'PUT',
@@ -57,6 +57,9 @@ export class EndpointsApi extends runtime.BaseAPI implements EndpointsApiInterfa
57
57
 
58
58
  const headerParameters: runtime.HTTPHeaders = {};
59
59
 
60
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
61
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
62
+ }
60
63
  const response = await this.request({
61
64
  path: `/api/v2/endpoints/{apiType}`.replace(`{${"apiType"}}`, encodeURIComponent(String(requestParameters.apiType))),
62
65
  method: 'GET',
@@ -22,7 +22,7 @@ import type {
22
22
  ApiComponentEvaluationTicketDTOV2,
23
23
  ApiPromoteScanRequestDTOV2,
24
24
  ApiSourceControlEvaluationRequestDTO,
25
- } from '../models';
25
+ } from '../models/index';
26
26
  import {
27
27
  ApiApplicationEvaluationResultDTOV2FromJSON,
28
28
  ApiApplicationEvaluationResultDTOV2ToJSON,
@@ -38,7 +38,7 @@ import {
38
38
  ApiPromoteScanRequestDTOV2ToJSON,
39
39
  ApiSourceControlEvaluationRequestDTOFromJSON,
40
40
  ApiSourceControlEvaluationRequestDTOToJSON,
41
- } from '../models';
41
+ } from '../models/index';
42
42
 
43
43
  export interface DeprecatedManifestEvaluationRequest {
44
44
  applicationId: string;
@@ -182,6 +182,9 @@ export class EvaluationApi extends runtime.BaseAPI implements EvaluationApiInter
182
182
 
183
183
  headerParameters['Content-Type'] = 'application/json';
184
184
 
185
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
186
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
187
+ }
185
188
  const response = await this.request({
186
189
  path: `/api/v2/evaluation/applications/{applicationId}/manifestEvaluation`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
187
190
  method: 'POST',
@@ -213,6 +216,9 @@ export class EvaluationApi extends runtime.BaseAPI implements EvaluationApiInter
213
216
 
214
217
  headerParameters['Content-Type'] = 'application/json';
215
218
 
219
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
220
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
221
+ }
216
222
  const response = await this.request({
217
223
  path: `/api/v2/evaluation/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
218
224
  method: 'POST',
@@ -244,6 +250,9 @@ export class EvaluationApi extends runtime.BaseAPI implements EvaluationApiInter
244
250
 
245
251
  headerParameters['Content-Type'] = 'application/json';
246
252
 
253
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
254
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
255
+ }
247
256
  const response = await this.request({
248
257
  path: `/api/v2/evaluation/applications/{applicationId}/sourceControlEvaluation`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
249
258
  method: 'POST',
@@ -277,6 +286,9 @@ export class EvaluationApi extends runtime.BaseAPI implements EvaluationApiInter
277
286
 
278
287
  const headerParameters: runtime.HTTPHeaders = {};
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/evaluation/applications/{applicationId}/status/{statusId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"statusId"}}`, encodeURIComponent(String(requestParameters.statusId))),
282
294
  method: 'GET',
@@ -309,6 +321,9 @@ export class EvaluationApi extends runtime.BaseAPI implements EvaluationApiInter
309
321
 
310
322
  const headerParameters: runtime.HTTPHeaders = {};
311
323
 
324
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
325
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
326
+ }
312
327
  const response = await this.request({
313
328
  path: `/api/v2/evaluation/applications/{applicationId}/results/{resultId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"resultId"}}`, encodeURIComponent(String(requestParameters.resultId))),
314
329
  method: 'GET',
@@ -339,6 +354,9 @@ export class EvaluationApi extends runtime.BaseAPI implements EvaluationApiInter
339
354
 
340
355
  headerParameters['Content-Type'] = 'application/json';
341
356
 
357
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
358
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
359
+ }
342
360
  const response = await this.request({
343
361
  path: `/api/v2/evaluation/applications/{applicationId}/promoteScan`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
344
362
  method: 'POST',