@sonatype/nexus-iq-api-client 0.156.1 → 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 (199) hide show
  1. package/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
  2. package/dist/apis/ApplicationCategoriesApi.js +42 -12
  3. package/dist/apis/ApplicationsApi.d.ts +1 -1
  4. package/dist/apis/ApplicationsApi.js +53 -14
  5. package/dist/apis/ClaimApi.d.ts +1 -1
  6. package/dist/apis/ClaimApi.js +17 -5
  7. package/dist/apis/ComponentsApi.d.ts +1 -1
  8. package/dist/apis/ComponentsApi.js +21 -6
  9. package/dist/apis/CompositeSourceControlApi.d.ts +1 -1
  10. package/dist/apis/CompositeSourceControlApi.js +5 -2
  11. package/dist/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  12. package/dist/apis/CompositeSourceControlConfigValidatorApi.js +5 -2
  13. package/dist/apis/ConfigApi.js +15 -0
  14. package/dist/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  15. package/dist/apis/ConfigArtifactoryConnectionApi.js +35 -11
  16. package/dist/apis/ConfigCrowdApi.d.ts +1 -1
  17. package/dist/apis/ConfigCrowdApi.js +17 -5
  18. package/dist/apis/ConfigJIRAApi.d.ts +1 -1
  19. package/dist/apis/ConfigJIRAApi.js +11 -2
  20. package/dist/apis/ConfigMailApi.d.ts +1 -1
  21. package/dist/apis/ConfigMailApi.js +16 -4
  22. package/dist/apis/ConfigProxyServerApi.d.ts +1 -1
  23. package/dist/apis/ConfigProxyServerApi.js +12 -3
  24. package/dist/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  25. package/dist/apis/ConfigReverseProxyAuthenticationApi.js +12 -3
  26. package/dist/apis/ConfigSAMLApi.d.ts +1 -1
  27. package/dist/apis/ConfigSAMLApi.js +11 -2
  28. package/dist/apis/ConfigSourceControlApi.d.ts +1 -1
  29. package/dist/apis/ConfigSourceControlApi.js +11 -2
  30. package/dist/apis/CycloneDxApi.js +12 -0
  31. package/dist/apis/DataRetentionPoliciesApi.d.ts +1 -1
  32. package/dist/apis/DataRetentionPoliciesApi.js +9 -3
  33. package/dist/apis/EndpointsApi.js +3 -0
  34. package/dist/apis/EvaluationApi.d.ts +1 -1
  35. package/dist/apis/EvaluationApi.js +29 -11
  36. package/dist/apis/FirewallApi.d.ts +1 -1
  37. package/dist/apis/FirewallApi.js +30 -6
  38. package/dist/apis/LabelsApi.d.ts +1 -1
  39. package/dist/apis/LabelsApi.js +26 -8
  40. package/dist/apis/LicenseLegalMetadataApi.d.ts +1 -1
  41. package/dist/apis/LicenseLegalMetadataApi.js +48 -9
  42. package/dist/apis/OrganizationsApi.d.ts +1 -1
  43. package/dist/apis/OrganizationsApi.js +14 -5
  44. package/dist/apis/PoliciesApi.d.ts +1 -1
  45. package/dist/apis/PoliciesApi.js +5 -2
  46. package/dist/apis/PolicyViolationsApi.d.ts +1 -1
  47. package/dist/apis/PolicyViolationsApi.js +25 -7
  48. package/dist/apis/PolicyWaiverApi.js +3 -0
  49. package/dist/apis/PolicyWaiversApi.d.ts +1 -1
  50. package/dist/apis/PolicyWaiversApi.js +28 -7
  51. package/dist/apis/ReportsApi.d.ts +1 -1
  52. package/dist/apis/ReportsApi.js +29 -8
  53. package/dist/apis/RepositoriesApi.d.ts +1 -1
  54. package/dist/apis/RepositoriesApi.js +9 -3
  55. package/dist/apis/RoleMembershipsApi.d.ts +1 -1
  56. package/dist/apis/RoleMembershipsApi.js +21 -3
  57. package/dist/apis/RolesApi.d.ts +1 -1
  58. package/dist/apis/RolesApi.js +5 -2
  59. package/dist/apis/ScanApi.d.ts +1 -1
  60. package/dist/apis/ScanApi.js +8 -2
  61. package/dist/apis/SearchApi.d.ts +1 -1
  62. package/dist/apis/SearchApi.js +15 -3
  63. package/dist/apis/SecurityOverridesApi.d.ts +1 -1
  64. package/dist/apis/SecurityOverridesApi.js +5 -2
  65. package/dist/apis/SourceControlApi.d.ts +1 -1
  66. package/dist/apis/SourceControlApi.js +22 -7
  67. package/dist/apis/SourceControlMetricsApi.d.ts +1 -1
  68. package/dist/apis/SourceControlMetricsApi.js +5 -2
  69. package/dist/apis/TelemetryApi.js +3 -0
  70. package/dist/apis/UserTokensApi.d.ts +1 -1
  71. package/dist/apis/UserTokensApi.js +26 -5
  72. package/dist/apis/UsersApi.d.ts +1 -1
  73. package/dist/apis/UsersApi.js +21 -6
  74. package/dist/apis/VulnerabilitiesApi.d.ts +1 -1
  75. package/dist/apis/VulnerabilitiesApi.js +5 -2
  76. package/dist/esm/apis/ApplicationCategoriesApi.d.ts +1 -1
  77. package/dist/esm/apis/ApplicationCategoriesApi.js +31 -1
  78. package/dist/esm/apis/ApplicationsApi.d.ts +1 -1
  79. package/dist/esm/apis/ApplicationsApi.js +40 -1
  80. package/dist/esm/apis/ClaimApi.d.ts +1 -1
  81. package/dist/esm/apis/ClaimApi.js +13 -1
  82. package/dist/esm/apis/ComponentsApi.d.ts +1 -1
  83. package/dist/esm/apis/ComponentsApi.js +16 -1
  84. package/dist/esm/apis/CompositeSourceControlApi.d.ts +1 -1
  85. package/dist/esm/apis/CompositeSourceControlApi.js +4 -1
  86. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  87. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.js +4 -1
  88. package/dist/esm/apis/ConfigApi.js +15 -0
  89. package/dist/esm/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  90. package/dist/esm/apis/ConfigArtifactoryConnectionApi.js +25 -1
  91. package/dist/esm/apis/ConfigCrowdApi.d.ts +1 -1
  92. package/dist/esm/apis/ConfigCrowdApi.js +13 -1
  93. package/dist/esm/apis/ConfigJIRAApi.d.ts +1 -1
  94. package/dist/esm/apis/ConfigJIRAApi.js +10 -1
  95. package/dist/esm/apis/ConfigMailApi.d.ts +1 -1
  96. package/dist/esm/apis/ConfigMailApi.js +13 -1
  97. package/dist/esm/apis/ConfigProxyServerApi.d.ts +1 -1
  98. package/dist/esm/apis/ConfigProxyServerApi.js +10 -1
  99. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  100. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.js +10 -1
  101. package/dist/esm/apis/ConfigSAMLApi.d.ts +1 -1
  102. package/dist/esm/apis/ConfigSAMLApi.js +10 -1
  103. package/dist/esm/apis/ConfigSourceControlApi.d.ts +1 -1
  104. package/dist/esm/apis/ConfigSourceControlApi.js +10 -1
  105. package/dist/esm/apis/CycloneDxApi.js +12 -0
  106. package/dist/esm/apis/DataRetentionPoliciesApi.d.ts +1 -1
  107. package/dist/esm/apis/DataRetentionPoliciesApi.js +7 -1
  108. package/dist/esm/apis/EndpointsApi.js +3 -0
  109. package/dist/esm/apis/EvaluationApi.d.ts +1 -1
  110. package/dist/esm/apis/EvaluationApi.js +19 -1
  111. package/dist/esm/apis/FirewallApi.d.ts +1 -1
  112. package/dist/esm/apis/FirewallApi.js +25 -1
  113. package/dist/esm/apis/LabelsApi.d.ts +1 -1
  114. package/dist/esm/apis/LabelsApi.js +19 -1
  115. package/dist/esm/apis/LicenseLegalMetadataApi.d.ts +1 -1
  116. package/dist/esm/apis/LicenseLegalMetadataApi.js +40 -1
  117. package/dist/esm/apis/OrganizationsApi.d.ts +1 -1
  118. package/dist/esm/apis/OrganizationsApi.js +10 -1
  119. package/dist/esm/apis/PoliciesApi.d.ts +1 -1
  120. package/dist/esm/apis/PoliciesApi.js +4 -1
  121. package/dist/esm/apis/PolicyViolationsApi.d.ts +1 -1
  122. package/dist/esm/apis/PolicyViolationsApi.js +19 -1
  123. package/dist/esm/apis/PolicyWaiverApi.js +3 -0
  124. package/dist/esm/apis/PolicyWaiversApi.d.ts +1 -1
  125. package/dist/esm/apis/PolicyWaiversApi.js +22 -1
  126. package/dist/esm/apis/ReportsApi.d.ts +1 -1
  127. package/dist/esm/apis/ReportsApi.js +22 -1
  128. package/dist/esm/apis/RepositoriesApi.d.ts +1 -1
  129. package/dist/esm/apis/RepositoriesApi.js +7 -1
  130. package/dist/esm/apis/RoleMembershipsApi.d.ts +1 -1
  131. package/dist/esm/apis/RoleMembershipsApi.js +19 -1
  132. package/dist/esm/apis/RolesApi.d.ts +1 -1
  133. package/dist/esm/apis/RolesApi.js +4 -1
  134. package/dist/esm/apis/ScanApi.d.ts +1 -1
  135. package/dist/esm/apis/ScanApi.js +7 -1
  136. package/dist/esm/apis/SearchApi.d.ts +1 -1
  137. package/dist/esm/apis/SearchApi.js +13 -1
  138. package/dist/esm/apis/SecurityOverridesApi.d.ts +1 -1
  139. package/dist/esm/apis/SecurityOverridesApi.js +4 -1
  140. package/dist/esm/apis/SourceControlApi.d.ts +1 -1
  141. package/dist/esm/apis/SourceControlApi.js +16 -1
  142. package/dist/esm/apis/SourceControlMetricsApi.d.ts +1 -1
  143. package/dist/esm/apis/SourceControlMetricsApi.js +4 -1
  144. package/dist/esm/apis/TelemetryApi.js +3 -0
  145. package/dist/esm/apis/UserTokensApi.d.ts +1 -1
  146. package/dist/esm/apis/UserTokensApi.js +22 -1
  147. package/dist/esm/apis/UsersApi.d.ts +1 -1
  148. package/dist/esm/apis/UsersApi.js +16 -1
  149. package/dist/esm/apis/VulnerabilitiesApi.d.ts +1 -1
  150. package/dist/esm/apis/VulnerabilitiesApi.js +4 -1
  151. package/dist/esm/index.d.ts +2 -2
  152. package/dist/esm/index.js +2 -2
  153. package/dist/esm/runtime.js +13 -5
  154. package/dist/index.d.ts +2 -2
  155. package/dist/index.js +2 -2
  156. package/dist/runtime.js +13 -5
  157. package/package.json +1 -1
  158. package/src/apis/ApplicationCategoriesApi.ts +32 -2
  159. package/src/apis/ApplicationsApi.ts +41 -2
  160. package/src/apis/ClaimApi.ts +14 -2
  161. package/src/apis/ComponentsApi.ts +17 -2
  162. package/src/apis/CompositeSourceControlApi.ts +5 -2
  163. package/src/apis/CompositeSourceControlConfigValidatorApi.ts +5 -2
  164. package/src/apis/ConfigApi.ts +15 -0
  165. package/src/apis/ConfigArtifactoryConnectionApi.ts +26 -2
  166. package/src/apis/ConfigCrowdApi.ts +14 -2
  167. package/src/apis/ConfigJIRAApi.ts +11 -2
  168. package/src/apis/ConfigMailApi.ts +14 -2
  169. package/src/apis/ConfigProxyServerApi.ts +11 -2
  170. package/src/apis/ConfigReverseProxyAuthenticationApi.ts +11 -2
  171. package/src/apis/ConfigSAMLApi.ts +11 -2
  172. package/src/apis/ConfigSourceControlApi.ts +11 -2
  173. package/src/apis/CycloneDxApi.ts +12 -0
  174. package/src/apis/DataRetentionPoliciesApi.ts +8 -2
  175. package/src/apis/EndpointsApi.ts +3 -0
  176. package/src/apis/EvaluationApi.ts +20 -2
  177. package/src/apis/FirewallApi.ts +26 -2
  178. package/src/apis/LabelsApi.ts +20 -2
  179. package/src/apis/LicenseLegalMetadataApi.ts +41 -2
  180. package/src/apis/OrganizationsApi.ts +11 -2
  181. package/src/apis/PoliciesApi.ts +5 -2
  182. package/src/apis/PolicyViolationsApi.ts +20 -2
  183. package/src/apis/PolicyWaiverApi.ts +3 -0
  184. package/src/apis/PolicyWaiversApi.ts +23 -2
  185. package/src/apis/ReportsApi.ts +23 -2
  186. package/src/apis/RepositoriesApi.ts +8 -2
  187. package/src/apis/RoleMembershipsApi.ts +20 -2
  188. package/src/apis/RolesApi.ts +5 -2
  189. package/src/apis/ScanApi.ts +8 -2
  190. package/src/apis/SearchApi.ts +14 -2
  191. package/src/apis/SecurityOverridesApi.ts +5 -2
  192. package/src/apis/SourceControlApi.ts +17 -2
  193. package/src/apis/SourceControlMetricsApi.ts +5 -2
  194. package/src/apis/TelemetryApi.ts +3 -0
  195. package/src/apis/UserTokensApi.ts +23 -2
  196. package/src/apis/UsersApi.ts +17 -2
  197. package/src/apis/VulnerabilitiesApi.ts +5 -2
  198. package/src/index.ts +2 -2
  199. package/src/runtime.ts +12 -6
@@ -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',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiRoleMemberMappingListDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiRoleMemberMappingListDTOFromJSON,
22
22
  ApiRoleMemberMappingListDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  export interface GetRoleMembershipsApplicationOrOrganizationRequest {
26
26
  ownerType: GetRoleMembershipsApplicationOrOrganizationOwnerTypeEnum;
@@ -183,6 +183,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI implements RoleMembershi
183
183
 
184
184
  const headerParameters: runtime.HTTPHeaders = {};
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/roleMemberships/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
188
191
  method: 'GET',
@@ -211,6 +214,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI implements RoleMembershi
211
214
 
212
215
  const headerParameters: runtime.HTTPHeaders = {};
213
216
 
217
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
218
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
219
+ }
214
220
  const response = await this.request({
215
221
  path: `/api/v2/roleMemberships/{ownerType}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))),
216
222
  method: 'GET',
@@ -255,6 +261,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI implements RoleMembershi
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/roleMemberships/{ownerType}/{internalOwnerId}/role/{roleId}/{memberType}/{memberName}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"memberType"}}`, encodeURIComponent(String(requestParameters.memberType))).replace(`{${"memberName"}}`, encodeURIComponent(String(requestParameters.memberName))),
260
269
  method: 'PUT',
@@ -294,6 +303,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI implements RoleMembershi
294
303
 
295
304
  const headerParameters: runtime.HTTPHeaders = {};
296
305
 
306
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
307
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
308
+ }
297
309
  const response = await this.request({
298
310
  path: `/api/v2/roleMemberships/{ownerType}/role/{roleId}/{memberType}/{memberName}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"memberType"}}`, encodeURIComponent(String(requestParameters.memberType))).replace(`{${"memberName"}}`, encodeURIComponent(String(requestParameters.memberName))),
299
311
  method: 'PUT',
@@ -337,6 +349,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI implements RoleMembershi
337
349
 
338
350
  const headerParameters: runtime.HTTPHeaders = {};
339
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
+ }
340
355
  const response = await this.request({
341
356
  path: `/api/v2/roleMemberships/{ownerType}/{internalOwnerId}/role/{roleId}/{memberType}/{memberName}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"memberType"}}`, encodeURIComponent(String(requestParameters.memberType))).replace(`{${"memberName"}}`, encodeURIComponent(String(requestParameters.memberName))),
342
357
  method: 'DELETE',
@@ -376,6 +391,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI implements RoleMembershi
376
391
 
377
392
  const headerParameters: runtime.HTTPHeaders = {};
378
393
 
394
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
395
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
396
+ }
379
397
  const response = await this.request({
380
398
  path: `/api/v2/roleMemberships/{ownerType}/role/{roleId}/{memberType}/{memberName}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"memberType"}}`, encodeURIComponent(String(requestParameters.memberType))).replace(`{${"memberName"}}`, encodeURIComponent(String(requestParameters.memberName))),
381
399
  method: 'DELETE',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiRoleListDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiRoleListDTOFromJSON,
22
22
  ApiRoleListDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  /**
26
26
  * RolesApi - interface
@@ -55,6 +55,9 @@ export class RolesApi extends runtime.BaseAPI implements RolesApiInterface {
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/roles`,
60
63
  method: 'GET',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiThirdPartyScanResultDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiThirdPartyScanResultDTOFromJSON,
22
22
  ApiThirdPartyScanResultDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  export interface GetScanStatusRequest {
26
26
  applicationId: string;
@@ -93,6 +93,9 @@ export class ScanApi extends runtime.BaseAPI implements ScanApiInterface {
93
93
 
94
94
  const headerParameters: runtime.HTTPHeaders = {};
95
95
 
96
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
97
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
98
+ }
96
99
  const response = await this.request({
97
100
  path: `/api/v2/scan/applications/{applicationId}/status/{scanRequestId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"scanRequestId"}}`, encodeURIComponent(String(requestParameters.scanRequestId))),
98
101
  method: 'GET',
@@ -131,6 +134,9 @@ export class ScanApi extends runtime.BaseAPI implements ScanApiInterface {
131
134
 
132
135
  headerParameters['Content-Type'] = 'application/xml';
133
136
 
137
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
138
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
139
+ }
134
140
  const response = await this.request({
135
141
  path: `/api/v2/scan/applications/{applicationId}/sources/{source}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"source"}}`, encodeURIComponent(String(requestParameters.source))),
136
142
  method: 'POST',
@@ -18,7 +18,7 @@ import type {
18
18
  ApiSearchResultsDTOV2,
19
19
  ComponentIdentifier,
20
20
  SearchResultDTO,
21
- } from '../models';
21
+ } from '../models/index';
22
22
  import {
23
23
  ApiSearchResultsDTOV2FromJSON,
24
24
  ApiSearchResultsDTOV2ToJSON,
@@ -26,7 +26,7 @@ import {
26
26
  ComponentIdentifierToJSON,
27
27
  SearchResultDTOFromJSON,
28
28
  SearchResultDTOToJSON,
29
- } from '../models';
29
+ } from '../models/index';
30
30
 
31
31
  export interface GetExportResultsRequest {
32
32
  query?: string;
@@ -126,6 +126,9 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface {
126
126
 
127
127
  const headerParameters: runtime.HTTPHeaders = {};
128
128
 
129
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
130
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
131
+ }
129
132
  const response = await this.request({
130
133
  path: `/api/v2/search/advanced/index`,
131
134
  method: 'POST',
@@ -157,6 +160,9 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface {
157
160
 
158
161
  const headerParameters: runtime.HTTPHeaders = {};
159
162
 
163
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
164
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
165
+ }
160
166
  const response = await this.request({
161
167
  path: `/api/v2/search/advanced/export/csv`,
162
168
  method: 'GET',
@@ -196,6 +202,9 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface {
196
202
 
197
203
  const headerParameters: runtime.HTTPHeaders = {};
198
204
 
205
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
206
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
207
+ }
199
208
  const response = await this.request({
200
209
  path: `/api/v2/search/component`,
201
210
  method: 'GET',
@@ -236,6 +245,9 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface {
236
245
 
237
246
  const headerParameters: runtime.HTTPHeaders = {};
238
247
 
248
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
249
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
250
+ }
239
251
  const response = await this.request({
240
252
  path: `/api/v2/search/advanced`,
241
253
  method: 'GET',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiSecurityVulnerabilityOverrideResponseDTOV2,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiSecurityVulnerabilityOverrideResponseDTOV2FromJSON,
22
22
  ApiSecurityVulnerabilityOverrideResponseDTOV2ToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  export interface GetSecurityVulnerabilityOverridesRequest {
26
26
  refId?: string;
@@ -76,6 +76,9 @@ export class SecurityOverridesApi extends runtime.BaseAPI implements SecurityOve
76
76
 
77
77
  const headerParameters: runtime.HTTPHeaders = {};
78
78
 
79
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
80
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
81
+ }
79
82
  const response = await this.request({
80
83
  path: `/api/v2/securityOverrides`,
81
84
  method: 'GET',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiSourceControlDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiSourceControlDTOFromJSON,
22
22
  ApiSourceControlDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  export interface AddOrUpdateSourceControlRequest {
26
26
  publicId?: string;
@@ -150,6 +150,9 @@ export class SourceControlApi extends runtime.BaseAPI implements SourceControlAp
150
150
 
151
151
  const headerParameters: runtime.HTTPHeaders = {};
152
152
 
153
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
154
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
155
+ }
153
156
  const response = await this.request({
154
157
  path: `/api/v2/sourceControl`,
155
158
  method: 'POST',
@@ -184,6 +187,9 @@ export class SourceControlApi extends runtime.BaseAPI implements SourceControlAp
184
187
 
185
188
  headerParameters['Content-Type'] = 'application/json';
186
189
 
190
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
191
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
192
+ }
187
193
  const response = await this.request({
188
194
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
189
195
  method: 'POST',
@@ -217,6 +223,9 @@ export class SourceControlApi extends runtime.BaseAPI implements SourceControlAp
217
223
 
218
224
  const headerParameters: runtime.HTTPHeaders = {};
219
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
+ }
220
229
  const response = await this.request({
221
230
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
222
231
  method: 'DELETE',
@@ -248,6 +257,9 @@ export class SourceControlApi extends runtime.BaseAPI implements SourceControlAp
248
257
 
249
258
  const headerParameters: runtime.HTTPHeaders = {};
250
259
 
260
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
261
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
262
+ }
251
263
  const response = await this.request({
252
264
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
253
265
  method: 'GET',
@@ -282,6 +294,9 @@ export class SourceControlApi extends runtime.BaseAPI implements SourceControlAp
282
294
 
283
295
  headerParameters['Content-Type'] = 'application/json';
284
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
+ }
285
300
  const response = await this.request({
286
301
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
287
302
  method: 'PUT',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiPullRequestResults,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiPullRequestResultsFromJSON,
22
22
  ApiPullRequestResultsToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  export interface GetSourceControlRequest {
26
26
  ownerType: GetSourceControlOwnerTypeEnum;
@@ -70,6 +70,9 @@ export class SourceControlMetricsApi extends runtime.BaseAPI implements SourceCo
70
70
 
71
71
  const headerParameters: runtime.HTTPHeaders = {};
72
72
 
73
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
74
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
75
+ }
73
76
  const response = await this.request({
74
77
  path: `/api/v2/sourceControlMetrics/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
75
78
  method: 'GET',
@@ -61,6 +61,9 @@ export class TelemetryApi extends runtime.BaseAPI implements TelemetryApiInterfa
61
61
  headerParameters['user-agent'] = String(requestParameters.userAgent);
62
62
  }
63
63
 
64
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
65
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
66
+ }
64
67
  const response = await this.request({
65
68
  path: `/api/v2/telemetry`,
66
69
  method: 'POST',
@@ -17,13 +17,13 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiUserTokenDTO,
19
19
  ApiUserTokenExistsDTO,
20
- } from '../models';
20
+ } from '../models/index';
21
21
  import {
22
22
  ApiUserTokenDTOFromJSON,
23
23
  ApiUserTokenDTOToJSON,
24
24
  ApiUserTokenExistsDTOFromJSON,
25
25
  ApiUserTokenExistsDTOToJSON,
26
- } from '../models';
26
+ } from '../models/index';
27
27
 
28
28
  export interface DeleteUserTokenByUserCodeRequest {
29
29
  userCode: string;
@@ -151,6 +151,9 @@ export class UserTokensApi extends runtime.BaseAPI implements UserTokensApiInter
151
151
 
152
152
  const headerParameters: runtime.HTTPHeaders = {};
153
153
 
154
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
155
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
156
+ }
154
157
  const response = await this.request({
155
158
  path: `/api/v2/userTokens/currentUser`,
156
159
  method: 'POST',
@@ -175,6 +178,9 @@ export class UserTokensApi extends runtime.BaseAPI implements UserTokensApiInter
175
178
 
176
179
  const headerParameters: runtime.HTTPHeaders = {};
177
180
 
181
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
182
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
183
+ }
178
184
  const response = await this.request({
179
185
  path: `/api/v2/userTokens/currentUser`,
180
186
  method: 'DELETE',
@@ -202,6 +208,9 @@ export class UserTokensApi extends runtime.BaseAPI implements UserTokensApiInter
202
208
 
203
209
  const headerParameters: runtime.HTTPHeaders = {};
204
210
 
211
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
212
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
213
+ }
205
214
  const response = await this.request({
206
215
  path: `/api/v2/userTokens/userCode/{userCode}`.replace(`{${"userCode"}}`, encodeURIComponent(String(requestParameters.userCode))),
207
216
  method: 'DELETE',
@@ -233,6 +242,9 @@ export class UserTokensApi extends runtime.BaseAPI implements UserTokensApiInter
233
242
 
234
243
  const headerParameters: runtime.HTTPHeaders = {};
235
244
 
245
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
246
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
247
+ }
236
248
  const response = await this.request({
237
249
  path: `/api/v2/userTokens/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
238
250
  method: 'GET',
@@ -257,6 +269,9 @@ export class UserTokensApi extends runtime.BaseAPI implements UserTokensApiInter
257
269
 
258
270
  const headerParameters: runtime.HTTPHeaders = {};
259
271
 
272
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
273
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
274
+ }
260
275
  const response = await this.request({
261
276
  path: `/api/v2/userTokens/currentUser/hasToken`,
262
277
  method: 'GET',
@@ -293,6 +308,9 @@ export class UserTokensApi extends runtime.BaseAPI implements UserTokensApiInter
293
308
 
294
309
  const headerParameters: runtime.HTTPHeaders = {};
295
310
 
311
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
312
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
313
+ }
296
314
  const response = await this.request({
297
315
  path: `/api/v2/userTokens`,
298
316
  method: 'GET',
@@ -317,6 +335,9 @@ export class UserTokensApi extends runtime.BaseAPI implements UserTokensApiInter
317
335
 
318
336
  const headerParameters: runtime.HTTPHeaders = {};
319
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
+ }
320
341
  const response = await this.request({
321
342
  path: `/api/v2/userTokens/purge`,
322
343
  method: 'DELETE',