@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
@@ -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',
@@ -18,7 +18,7 @@ import type {
18
18
  ApiFirewallQuarantineSummaryDTO,
19
19
  ApiFirewallReleaseQuarantineConfigDTO,
20
20
  ApiFirewallReleaseQuarantineSummaryDTO,
21
- } from '../models';
21
+ } from '../models/index';
22
22
  import {
23
23
  ApiFirewallQuarantineSummaryDTOFromJSON,
24
24
  ApiFirewallQuarantineSummaryDTOToJSON,
@@ -26,7 +26,7 @@ import {
26
26
  ApiFirewallReleaseQuarantineConfigDTOToJSON,
27
27
  ApiFirewallReleaseQuarantineSummaryDTOFromJSON,
28
28
  ApiFirewallReleaseQuarantineSummaryDTOToJSON,
29
- } from '../models';
29
+ } from '../models/index';
30
30
 
31
31
  export interface GetQuarantineListRequest {
32
32
  page?: number;
@@ -181,6 +181,9 @@ export class FirewallApi extends runtime.BaseAPI implements FirewallApiInterface
181
181
 
182
182
  const headerParameters: runtime.HTTPHeaders = {};
183
183
 
184
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
185
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
186
+ }
184
187
  const response = await this.request({
185
188
  path: `/api/v2/firewall/releaseQuarantine/configuration`,
186
189
  method: 'GET',
@@ -205,6 +208,9 @@ export class FirewallApi extends runtime.BaseAPI implements FirewallApiInterface
205
208
 
206
209
  const headerParameters: runtime.HTTPHeaders = {};
207
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
+ }
208
214
  const response = await this.request({
209
215
  path: `/api/v2/firewall/releaseQuarantine/summary`,
210
216
  method: 'GET',
@@ -249,6 +255,9 @@ export class FirewallApi extends runtime.BaseAPI implements FirewallApiInterface
249
255
 
250
256
  const headerParameters: runtime.HTTPHeaders = {};
251
257
 
258
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
259
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
260
+ }
252
261
  const response = await this.request({
253
262
  path: `/api/v2/firewall/components/quarantined`,
254
263
  method: 'GET',
@@ -272,6 +281,9 @@ export class FirewallApi extends runtime.BaseAPI implements FirewallApiInterface
272
281
 
273
282
  const headerParameters: runtime.HTTPHeaders = {};
274
283
 
284
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
285
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
286
+ }
275
287
  const response = await this.request({
276
288
  path: `/api/v2/firewall/quarantine/summary`,
277
289
  method: 'GET',
@@ -296,6 +308,9 @@ export class FirewallApi extends runtime.BaseAPI implements FirewallApiInterface
296
308
 
297
309
  const headerParameters: runtime.HTTPHeaders = {};
298
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
+ }
299
314
  const response = await this.request({
300
315
  path: `/api/v2/firewall/quarantinedComponentView/configuration/anonymousAccess`,
301
316
  method: 'GET',
@@ -339,6 +354,9 @@ export class FirewallApi extends runtime.BaseAPI implements FirewallApiInterface
339
354
 
340
355
  const headerParameters: runtime.HTTPHeaders = {};
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/firewall/components/autoReleasedFromQuarantine`,
344
362
  method: 'GET',
@@ -364,6 +382,9 @@ export class FirewallApi extends runtime.BaseAPI implements FirewallApiInterface
364
382
 
365
383
  headerParameters['Content-Type'] = 'application/json';
366
384
 
385
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
386
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
387
+ }
367
388
  const response = await this.request({
368
389
  path: `/api/v2/firewall/releaseQuarantine/configuration`,
369
390
  method: 'PUT',
@@ -393,6 +414,9 @@ export class FirewallApi extends runtime.BaseAPI implements FirewallApiInterface
393
414
 
394
415
  const headerParameters: runtime.HTTPHeaders = {};
395
416
 
417
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
418
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
419
+ }
396
420
  const response = await this.request({
397
421
  path: `/api/v2/firewall/quarantinedComponentView/configuration/anonymousAccess/{enabled}`.replace(`{${"enabled"}}`, encodeURIComponent(String(requestParameters.enabled))),
398
422
  method: 'PUT',
@@ -18,7 +18,7 @@ import type {
18
18
  ApiLabelDTO,
19
19
  ApplicableContext,
20
20
  ApplicableLabels,
21
- } from '../models';
21
+ } from '../models/index';
22
22
  import {
23
23
  ApiLabelDTOFromJSON,
24
24
  ApiLabelDTOToJSON,
@@ -26,7 +26,7 @@ import {
26
26
  ApplicableContextToJSON,
27
27
  ApplicableLabelsFromJSON,
28
28
  ApplicableLabelsToJSON,
29
- } from '../models';
29
+ } from '../models/index';
30
30
 
31
31
  export interface AddLabelRequest {
32
32
  ownerType: AddLabelOwnerTypeEnum;
@@ -183,6 +183,9 @@ export class LabelsApi extends runtime.BaseAPI implements LabelsApiInterface {
183
183
 
184
184
  headerParameters['Content-Type'] = 'application/json';
185
185
 
186
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
187
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
188
+ }
186
189
  const response = await this.request({
187
190
  path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
188
191
  method: 'POST',
@@ -220,6 +223,9 @@ export class LabelsApi extends runtime.BaseAPI implements LabelsApiInterface {
220
223
 
221
224
  const headerParameters: runtime.HTTPHeaders = {};
222
225
 
226
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
227
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
228
+ }
223
229
  const response = await this.request({
224
230
  path: `/api/v2/labels/{ownerType}/{ownerId}/{labelId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"labelId"}}`, encodeURIComponent(String(requestParameters.labelId))),
225
231
  method: 'DELETE',
@@ -255,6 +261,9 @@ export class LabelsApi extends runtime.BaseAPI implements LabelsApiInterface {
255
261
 
256
262
  const headerParameters: runtime.HTTPHeaders = {};
257
263
 
264
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
265
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
266
+ }
258
267
  const response = await this.request({
259
268
  path: `/api/v2/labels/{ownerType}/{ownerId}/applicable/context/{labelId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"labelId"}}`, encodeURIComponent(String(requestParameters.labelId))),
260
269
  method: 'GET',
@@ -287,6 +296,9 @@ export class LabelsApi extends runtime.BaseAPI implements LabelsApiInterface {
287
296
 
288
297
  const headerParameters: runtime.HTTPHeaders = {};
289
298
 
299
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
300
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
301
+ }
290
302
  const response = await this.request({
291
303
  path: `/api/v2/labels/{ownerType}/{ownerId}/applicable`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
292
304
  method: 'GET',
@@ -323,6 +335,9 @@ export class LabelsApi extends runtime.BaseAPI implements LabelsApiInterface {
323
335
 
324
336
  const headerParameters: runtime.HTTPHeaders = {};
325
337
 
338
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
339
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
340
+ }
326
341
  const response = await this.request({
327
342
  path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
328
343
  method: 'GET',
@@ -357,6 +372,9 @@ export class LabelsApi extends runtime.BaseAPI implements LabelsApiInterface {
357
372
 
358
373
  headerParameters['Content-Type'] = 'application/json';
359
374
 
375
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
376
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
377
+ }
360
378
  const response = await this.request({
361
379
  path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
362
380
  method: 'PUT',
@@ -20,7 +20,7 @@ import type {
20
20
  AttributionReportTemplateDTO,
21
21
  ComponentIdentifier,
22
22
  FormDataMultiPart,
23
- } from '../models';
23
+ } from '../models/index';
24
24
  import {
25
25
  ApiLicenseLegalApplicationReportDTOFromJSON,
26
26
  ApiLicenseLegalApplicationReportDTOToJSON,
@@ -32,7 +32,7 @@ import {
32
32
  ComponentIdentifierToJSON,
33
33
  FormDataMultiPartFromJSON,
34
34
  FormDataMultiPartToJSON,
35
- } from '../models';
35
+ } from '../models/index';
36
36
 
37
37
  export interface DeleteAttributionReportTemplateRequest {
38
38
  id: string;
@@ -294,6 +294,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
294
294
 
295
295
  const headerParameters: runtime.HTTPHeaders = {};
296
296
 
297
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
298
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
299
+ }
297
300
  const response = await this.request({
298
301
  path: `/api/v2/licenseLegalMetadata/report-template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
299
302
  method: 'DELETE',
@@ -317,6 +320,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
317
320
 
318
321
  const headerParameters: runtime.HTTPHeaders = {};
319
322
 
323
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
324
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
325
+ }
320
326
  const response = await this.request({
321
327
  path: `/api/v2/licenseLegalMetadata/report-template`,
322
328
  method: 'GET',
@@ -345,6 +351,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
345
351
 
346
352
  const headerParameters: runtime.HTTPHeaders = {};
347
353
 
354
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
355
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
356
+ }
348
357
  const response = await this.request({
349
358
  path: `/api/v2/licenseLegalMetadata/report-template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
350
359
  method: 'GET',
@@ -377,6 +386,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
377
386
 
378
387
  const headerParameters: runtime.HTTPHeaders = {};
379
388
 
389
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
390
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
391
+ }
380
392
  const response = await this.request({
381
393
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
382
394
  method: 'GET',
@@ -409,6 +421,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
409
421
 
410
422
  const headerParameters: runtime.HTTPHeaders = {};
411
423
 
424
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
425
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
426
+ }
412
427
  const response = await this.request({
413
428
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
414
429
  method: 'GET',
@@ -441,6 +456,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
441
456
 
442
457
  const headerParameters: runtime.HTTPHeaders = {};
443
458
 
459
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
460
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
461
+ }
444
462
  const response = await this.request({
445
463
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
446
464
  method: 'GET',
@@ -493,6 +511,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
493
511
 
494
512
  const headerParameters: runtime.HTTPHeaders = {};
495
513
 
514
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
515
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
516
+ }
496
517
  const response = await this.request({
497
518
  path: `/api/v2/licenseLegalMetadata/{ownerType}/{ownerId}/component`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
498
519
  method: 'GET',
@@ -527,6 +548,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
527
548
 
528
549
  headerParameters['Content-Type'] = 'application/json';
529
550
 
551
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
552
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
553
+ }
530
554
  const response = await this.request({
531
555
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
532
556
  method: 'POST',
@@ -568,6 +592,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
568
592
 
569
593
  const headerParameters: runtime.HTTPHeaders = {};
570
594
 
595
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
596
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
597
+ }
571
598
  const response = await this.request({
572
599
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report/templateId/{templateId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))).replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
573
600
  method: 'POST',
@@ -600,6 +627,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
600
627
 
601
628
  const headerParameters: runtime.HTTPHeaders = {};
602
629
 
630
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
631
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
632
+ }
603
633
  const response = await this.request({
604
634
  path: `/api/v2/licenseLegalMetadata/multiApplication/report/templateId/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
605
635
  method: 'POST',
@@ -628,6 +658,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
628
658
 
629
659
  const headerParameters: runtime.HTTPHeaders = {};
630
660
 
661
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
662
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
663
+ }
631
664
  const response = await this.request({
632
665
  path: `/api/v2/licenseLegalMetadata/multiApplication/report`,
633
666
  method: 'POST',
@@ -660,6 +693,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
660
693
 
661
694
  const headerParameters: runtime.HTTPHeaders = {};
662
695
 
696
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
697
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
698
+ }
663
699
  const response = await this.request({
664
700
  path: `/api/v2/licenseLegalMetadata/multiApplication/activeUserFilter/report/templateId/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
665
701
  method: 'POST',
@@ -690,6 +726,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI implements LicenseL
690
726
 
691
727
  headerParameters['Content-Type'] = 'application/json';
692
728
 
729
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
730
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
731
+ }
693
732
  const response = await this.request({
694
733
  path: `/api/v2/licenseLegalMetadata/report-template`,
695
734
  method: 'POST',
@@ -17,13 +17,13 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiOrganizationDTO,
19
19
  ApiOrganizationListDTO,
20
- } from '../models';
20
+ } from '../models/index';
21
21
  import {
22
22
  ApiOrganizationDTOFromJSON,
23
23
  ApiOrganizationDTOToJSON,
24
24
  ApiOrganizationListDTOFromJSON,
25
25
  ApiOrganizationListDTOToJSON,
26
- } from '../models';
26
+ } from '../models/index';
27
27
 
28
28
  export interface AddOrganizationRequest {
29
29
  apiOrganizationDTO?: ApiOrganizationDTO;
@@ -99,6 +99,9 @@ export class OrganizationsApi extends runtime.BaseAPI implements OrganizationsAp
99
99
 
100
100
  headerParameters['Content-Type'] = 'application/json';
101
101
 
102
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
103
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
104
+ }
102
105
  const response = await this.request({
103
106
  path: `/api/v2/organizations`,
104
107
  method: 'POST',
@@ -128,6 +131,9 @@ export class OrganizationsApi extends runtime.BaseAPI implements OrganizationsAp
128
131
 
129
132
  const headerParameters: runtime.HTTPHeaders = {};
130
133
 
134
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
135
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
136
+ }
131
137
  const response = await this.request({
132
138
  path: `/api/v2/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
133
139
  method: 'GET',
@@ -156,6 +162,9 @@ export class OrganizationsApi extends runtime.BaseAPI implements OrganizationsAp
156
162
 
157
163
  const headerParameters: runtime.HTTPHeaders = {};
158
164
 
165
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
166
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
167
+ }
159
168
  const response = await this.request({
160
169
  path: `/api/v2/organizations`,
161
170
  method: 'GET',
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiPolicyListDTO,
19
- } from '../models';
19
+ } from '../models/index';
20
20
  import {
21
21
  ApiPolicyListDTOFromJSON,
22
22
  ApiPolicyListDTOToJSON,
23
- } from '../models';
23
+ } from '../models/index';
24
24
 
25
25
  /**
26
26
  * PoliciesApi - interface
@@ -55,6 +55,9 @@ export class PoliciesApi extends runtime.BaseAPI implements PoliciesApiInterface
55
55
 
56
56
  const headerParameters: runtime.HTTPHeaders = {};
57
57
 
58
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
59
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
60
+ }
58
61
  const response = await this.request({
59
62
  path: `/api/v2/policies`,
60
63
  method: 'GET',
@@ -20,7 +20,7 @@ import type {
20
20
  ApiCrossStageViolationDTOV2,
21
21
  ApiPolicyWaiversApplicableToViolationDTO,
22
22
  ComponentIdentifier,
23
- } from '../models';
23
+ } from '../models/index';
24
24
  import {
25
25
  ApiApplicationViolationListDTOV2FromJSON,
26
26
  ApiApplicationViolationListDTOV2ToJSON,
@@ -32,7 +32,7 @@ import {
32
32
  ApiPolicyWaiversApplicableToViolationDTOToJSON,
33
33
  ComponentIdentifierFromJSON,
34
34
  ComponentIdentifierToJSON,
35
- } from '../models';
35
+ } from '../models/index';
36
36
 
37
37
  export interface GetApplicableWaiversRequest {
38
38
  violationId: string;
@@ -181,6 +181,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI implements PolicyViolat
181
181
 
182
182
  const headerParameters: runtime.HTTPHeaders = {};
183
183
 
184
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
185
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
186
+ }
184
187
  const response = await this.request({
185
188
  path: `/api/v2/policyViolations/{violationId}/applicableWaivers`.replace(`{${"violationId"}}`, encodeURIComponent(String(requestParameters.violationId))),
186
189
  method: 'GET',
@@ -209,6 +212,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI implements PolicyViolat
209
212
 
210
213
  const headerParameters: runtime.HTTPHeaders = {};
211
214
 
215
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
216
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
217
+ }
212
218
  const response = await this.request({
213
219
  path: `/api/v2/policyViolations/crossStage`,
214
220
  method: 'GET',
@@ -237,6 +243,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI implements PolicyViolat
237
243
 
238
244
  const headerParameters: runtime.HTTPHeaders = {};
239
245
 
246
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
247
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
248
+ }
240
249
  const response = await this.request({
241
250
  path: `/api/v2/policyViolations/crossStage/{violationId}`.replace(`{${"violationId"}}`, encodeURIComponent(String(requestParameters.violationId))),
242
251
  method: 'GET',
@@ -265,6 +274,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI implements PolicyViolat
265
274
 
266
275
  const headerParameters: runtime.HTTPHeaders = {};
267
276
 
277
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
278
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
279
+ }
268
280
  const response = await this.request({
269
281
  path: `/api/v2/policyViolations`,
270
282
  method: 'GET',
@@ -313,6 +325,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI implements PolicyViolat
313
325
 
314
326
  const headerParameters: runtime.HTTPHeaders = {};
315
327
 
328
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
329
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
330
+ }
316
331
  const response = await this.request({
317
332
  path: `/api/v2/policyViolations/transitive/{ownerType}/{ownerId}/{scanId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
318
333
  method: 'GET',
@@ -361,6 +376,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI implements PolicyViolat
361
376
 
362
377
  const headerParameters: runtime.HTTPHeaders = {};
363
378
 
379
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
380
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
381
+ }
364
382
  const response = await this.request({
365
383
  path: `/api/v2/policyViolations/transitive/{ownerType}/{ownerId}/stages/{stageId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
366
384
  method: 'GET',
@@ -68,6 +68,9 @@ export class PolicyWaiverApi extends runtime.BaseAPI implements PolicyWaiverApiI
68
68
 
69
69
  headerParameters['Content-Type'] = 'text/plain';
70
70
 
71
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
72
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
73
+ }
71
74
  const response = await this.request({
72
75
  path: `/api/v2/policyWaiver/{policyViolationId}/{ownerType}`.replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters.policyViolationId))).replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))),
73
76
  method: 'POST',