@sonatype/nexus-iq-api-client 0.156.0 → 0.156.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/.openapi-generator/VERSION +1 -1
  2. package/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
  3. package/dist/apis/ApplicationCategoriesApi.js +42 -12
  4. package/dist/apis/ApplicationsApi.d.ts +5 -5
  5. package/dist/apis/ApplicationsApi.js +55 -15
  6. package/dist/apis/ClaimApi.d.ts +1 -1
  7. package/dist/apis/ClaimApi.js +17 -5
  8. package/dist/apis/ComponentsApi.d.ts +1 -1
  9. package/dist/apis/ComponentsApi.js +21 -6
  10. package/dist/apis/CompositeSourceControlApi.d.ts +1 -1
  11. package/dist/apis/CompositeSourceControlApi.js +5 -2
  12. package/dist/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  13. package/dist/apis/CompositeSourceControlConfigValidatorApi.js +5 -2
  14. package/dist/apis/ConfigApi.js +15 -0
  15. package/dist/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  16. package/dist/apis/ConfigArtifactoryConnectionApi.js +35 -11
  17. package/dist/apis/ConfigCrowdApi.d.ts +1 -1
  18. package/dist/apis/ConfigCrowdApi.js +17 -5
  19. package/dist/apis/ConfigJIRAApi.d.ts +1 -1
  20. package/dist/apis/ConfigJIRAApi.js +11 -2
  21. package/dist/apis/ConfigMailApi.d.ts +1 -1
  22. package/dist/apis/ConfigMailApi.js +16 -4
  23. package/dist/apis/ConfigProxyServerApi.d.ts +1 -1
  24. package/dist/apis/ConfigProxyServerApi.js +12 -3
  25. package/dist/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  26. package/dist/apis/ConfigReverseProxyAuthenticationApi.js +12 -3
  27. package/dist/apis/ConfigSAMLApi.d.ts +1 -1
  28. package/dist/apis/ConfigSAMLApi.js +11 -2
  29. package/dist/apis/ConfigSourceControlApi.d.ts +1 -1
  30. package/dist/apis/ConfigSourceControlApi.js +11 -2
  31. package/dist/apis/CycloneDxApi.js +12 -0
  32. package/dist/apis/DataRetentionPoliciesApi.d.ts +1 -1
  33. package/dist/apis/DataRetentionPoliciesApi.js +9 -3
  34. package/dist/apis/EndpointsApi.js +3 -0
  35. package/dist/apis/EvaluationApi.d.ts +1 -1
  36. package/dist/apis/EvaluationApi.js +29 -11
  37. package/dist/apis/FirewallApi.d.ts +1 -1
  38. package/dist/apis/FirewallApi.js +30 -6
  39. package/dist/apis/LabelsApi.d.ts +1 -1
  40. package/dist/apis/LabelsApi.js +26 -8
  41. package/dist/apis/LicenseLegalMetadataApi.d.ts +1 -1
  42. package/dist/apis/LicenseLegalMetadataApi.js +48 -9
  43. package/dist/apis/OrganizationsApi.d.ts +1 -1
  44. package/dist/apis/OrganizationsApi.js +14 -5
  45. package/dist/apis/PoliciesApi.d.ts +1 -1
  46. package/dist/apis/PoliciesApi.js +5 -2
  47. package/dist/apis/PolicyViolationsApi.d.ts +1 -1
  48. package/dist/apis/PolicyViolationsApi.js +25 -7
  49. package/dist/apis/PolicyWaiverApi.js +3 -0
  50. package/dist/apis/PolicyWaiversApi.d.ts +1 -1
  51. package/dist/apis/PolicyWaiversApi.js +28 -7
  52. package/dist/apis/ReportsApi.d.ts +1 -1
  53. package/dist/apis/ReportsApi.js +29 -8
  54. package/dist/apis/RepositoriesApi.d.ts +1 -1
  55. package/dist/apis/RepositoriesApi.js +9 -3
  56. package/dist/apis/RoleMembershipsApi.d.ts +1 -1
  57. package/dist/apis/RoleMembershipsApi.js +21 -3
  58. package/dist/apis/RolesApi.d.ts +1 -1
  59. package/dist/apis/RolesApi.js +5 -2
  60. package/dist/apis/ScanApi.d.ts +1 -1
  61. package/dist/apis/ScanApi.js +8 -2
  62. package/dist/apis/SearchApi.d.ts +1 -1
  63. package/dist/apis/SearchApi.js +15 -3
  64. package/dist/apis/SecurityOverridesApi.d.ts +1 -1
  65. package/dist/apis/SecurityOverridesApi.js +5 -2
  66. package/dist/apis/SourceControlApi.d.ts +1 -1
  67. package/dist/apis/SourceControlApi.js +22 -7
  68. package/dist/apis/SourceControlMetricsApi.d.ts +1 -1
  69. package/dist/apis/SourceControlMetricsApi.js +5 -2
  70. package/dist/apis/TelemetryApi.js +3 -0
  71. package/dist/apis/UserTokensApi.d.ts +1 -1
  72. package/dist/apis/UserTokensApi.js +26 -5
  73. package/dist/apis/UsersApi.d.ts +1 -1
  74. package/dist/apis/UsersApi.js +21 -6
  75. package/dist/apis/VulnerabilitiesApi.d.ts +1 -1
  76. package/dist/apis/VulnerabilitiesApi.js +5 -2
  77. package/dist/esm/apis/ApplicationCategoriesApi.d.ts +1 -1
  78. package/dist/esm/apis/ApplicationCategoriesApi.js +31 -1
  79. package/dist/esm/apis/ApplicationsApi.d.ts +5 -5
  80. package/dist/esm/apis/ApplicationsApi.js +43 -3
  81. package/dist/esm/apis/ClaimApi.d.ts +1 -1
  82. package/dist/esm/apis/ClaimApi.js +13 -1
  83. package/dist/esm/apis/ComponentsApi.d.ts +1 -1
  84. package/dist/esm/apis/ComponentsApi.js +16 -1
  85. package/dist/esm/apis/CompositeSourceControlApi.d.ts +1 -1
  86. package/dist/esm/apis/CompositeSourceControlApi.js +4 -1
  87. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  88. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.js +4 -1
  89. package/dist/esm/apis/ConfigApi.js +15 -0
  90. package/dist/esm/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  91. package/dist/esm/apis/ConfigArtifactoryConnectionApi.js +25 -1
  92. package/dist/esm/apis/ConfigCrowdApi.d.ts +1 -1
  93. package/dist/esm/apis/ConfigCrowdApi.js +13 -1
  94. package/dist/esm/apis/ConfigJIRAApi.d.ts +1 -1
  95. package/dist/esm/apis/ConfigJIRAApi.js +10 -1
  96. package/dist/esm/apis/ConfigMailApi.d.ts +1 -1
  97. package/dist/esm/apis/ConfigMailApi.js +13 -1
  98. package/dist/esm/apis/ConfigProxyServerApi.d.ts +1 -1
  99. package/dist/esm/apis/ConfigProxyServerApi.js +10 -1
  100. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  101. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.js +10 -1
  102. package/dist/esm/apis/ConfigSAMLApi.d.ts +1 -1
  103. package/dist/esm/apis/ConfigSAMLApi.js +10 -1
  104. package/dist/esm/apis/ConfigSourceControlApi.d.ts +1 -1
  105. package/dist/esm/apis/ConfigSourceControlApi.js +10 -1
  106. package/dist/esm/apis/CycloneDxApi.js +12 -0
  107. package/dist/esm/apis/DataRetentionPoliciesApi.d.ts +1 -1
  108. package/dist/esm/apis/DataRetentionPoliciesApi.js +7 -1
  109. package/dist/esm/apis/EndpointsApi.js +3 -0
  110. package/dist/esm/apis/EvaluationApi.d.ts +1 -1
  111. package/dist/esm/apis/EvaluationApi.js +19 -1
  112. package/dist/esm/apis/FirewallApi.d.ts +1 -1
  113. package/dist/esm/apis/FirewallApi.js +25 -1
  114. package/dist/esm/apis/LabelsApi.d.ts +1 -1
  115. package/dist/esm/apis/LabelsApi.js +19 -1
  116. package/dist/esm/apis/LicenseLegalMetadataApi.d.ts +1 -1
  117. package/dist/esm/apis/LicenseLegalMetadataApi.js +40 -1
  118. package/dist/esm/apis/OrganizationsApi.d.ts +1 -1
  119. package/dist/esm/apis/OrganizationsApi.js +10 -1
  120. package/dist/esm/apis/PoliciesApi.d.ts +1 -1
  121. package/dist/esm/apis/PoliciesApi.js +4 -1
  122. package/dist/esm/apis/PolicyViolationsApi.d.ts +1 -1
  123. package/dist/esm/apis/PolicyViolationsApi.js +19 -1
  124. package/dist/esm/apis/PolicyWaiverApi.js +3 -0
  125. package/dist/esm/apis/PolicyWaiversApi.d.ts +1 -1
  126. package/dist/esm/apis/PolicyWaiversApi.js +22 -1
  127. package/dist/esm/apis/ReportsApi.d.ts +1 -1
  128. package/dist/esm/apis/ReportsApi.js +22 -1
  129. package/dist/esm/apis/RepositoriesApi.d.ts +1 -1
  130. package/dist/esm/apis/RepositoriesApi.js +7 -1
  131. package/dist/esm/apis/RoleMembershipsApi.d.ts +1 -1
  132. package/dist/esm/apis/RoleMembershipsApi.js +19 -1
  133. package/dist/esm/apis/RolesApi.d.ts +1 -1
  134. package/dist/esm/apis/RolesApi.js +4 -1
  135. package/dist/esm/apis/ScanApi.d.ts +1 -1
  136. package/dist/esm/apis/ScanApi.js +7 -1
  137. package/dist/esm/apis/SearchApi.d.ts +1 -1
  138. package/dist/esm/apis/SearchApi.js +13 -1
  139. package/dist/esm/apis/SecurityOverridesApi.d.ts +1 -1
  140. package/dist/esm/apis/SecurityOverridesApi.js +4 -1
  141. package/dist/esm/apis/SourceControlApi.d.ts +1 -1
  142. package/dist/esm/apis/SourceControlApi.js +16 -1
  143. package/dist/esm/apis/SourceControlMetricsApi.d.ts +1 -1
  144. package/dist/esm/apis/SourceControlMetricsApi.js +4 -1
  145. package/dist/esm/apis/TelemetryApi.js +3 -0
  146. package/dist/esm/apis/UserTokensApi.d.ts +1 -1
  147. package/dist/esm/apis/UserTokensApi.js +22 -1
  148. package/dist/esm/apis/UsersApi.d.ts +1 -1
  149. package/dist/esm/apis/UsersApi.js +16 -1
  150. package/dist/esm/apis/VulnerabilitiesApi.d.ts +1 -1
  151. package/dist/esm/apis/VulnerabilitiesApi.js +4 -1
  152. package/dist/esm/index.d.ts +2 -2
  153. package/dist/esm/index.js +2 -2
  154. package/dist/esm/runtime.js +13 -5
  155. package/dist/index.d.ts +2 -2
  156. package/dist/index.js +2 -2
  157. package/dist/runtime.js +13 -5
  158. package/package.json +1 -1
  159. package/src/apis/ApplicationCategoriesApi.ts +32 -2
  160. package/src/apis/ApplicationsApi.ts +48 -8
  161. package/src/apis/ClaimApi.ts +14 -2
  162. package/src/apis/ComponentsApi.ts +17 -2
  163. package/src/apis/CompositeSourceControlApi.ts +5 -2
  164. package/src/apis/CompositeSourceControlConfigValidatorApi.ts +5 -2
  165. package/src/apis/ConfigApi.ts +15 -0
  166. package/src/apis/ConfigArtifactoryConnectionApi.ts +26 -2
  167. package/src/apis/ConfigCrowdApi.ts +14 -2
  168. package/src/apis/ConfigJIRAApi.ts +11 -2
  169. package/src/apis/ConfigMailApi.ts +14 -2
  170. package/src/apis/ConfigProxyServerApi.ts +11 -2
  171. package/src/apis/ConfigReverseProxyAuthenticationApi.ts +11 -2
  172. package/src/apis/ConfigSAMLApi.ts +11 -2
  173. package/src/apis/ConfigSourceControlApi.ts +11 -2
  174. package/src/apis/CycloneDxApi.ts +12 -0
  175. package/src/apis/DataRetentionPoliciesApi.ts +8 -2
  176. package/src/apis/EndpointsApi.ts +3 -0
  177. package/src/apis/EvaluationApi.ts +20 -2
  178. package/src/apis/FirewallApi.ts +26 -2
  179. package/src/apis/LabelsApi.ts +20 -2
  180. package/src/apis/LicenseLegalMetadataApi.ts +41 -2
  181. package/src/apis/OrganizationsApi.ts +11 -2
  182. package/src/apis/PoliciesApi.ts +5 -2
  183. package/src/apis/PolicyViolationsApi.ts +20 -2
  184. package/src/apis/PolicyWaiverApi.ts +3 -0
  185. package/src/apis/PolicyWaiversApi.ts +23 -2
  186. package/src/apis/ReportsApi.ts +23 -2
  187. package/src/apis/RepositoriesApi.ts +8 -2
  188. package/src/apis/RoleMembershipsApi.ts +20 -2
  189. package/src/apis/RolesApi.ts +5 -2
  190. package/src/apis/ScanApi.ts +8 -2
  191. package/src/apis/SearchApi.ts +14 -2
  192. package/src/apis/SecurityOverridesApi.ts +5 -2
  193. package/src/apis/SourceControlApi.ts +17 -2
  194. package/src/apis/SourceControlMetricsApi.ts +5 -2
  195. package/src/apis/TelemetryApi.ts +3 -0
  196. package/src/apis/UserTokensApi.ts +23 -2
  197. package/src/apis/UsersApi.ts +17 -2
  198. package/src/apis/VulnerabilitiesApi.ts +5 -2
  199. package/src/index.ts +2 -2
  200. package/src/runtime.ts +12 -6
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiApplicationDTOFromJSON, ApiApplicationDTOToJSON, ApiApplicationListDTOFromJSON, ApiDependencyTreeResponseDTOFromJSON, ApiMoveApplicationResponseDTOV2FromJSON, ApiPolicyViolationDiffDTOFromJSON, ApiReportPolicyDataDTOV2FromJSON, ApiReportRawDataDTOV2FromJSON, } from '../models';
24
+ import { ApiApplicationDTOFromJSON, ApiApplicationDTOToJSON, ApiApplicationListDTOFromJSON, ApiDependencyTreeResponseDTOFromJSON, ApiMoveApplicationResponseDTOV2FromJSON, ApiPolicyViolationDiffDTOFromJSON, ApiReportPolicyDataDTOV2FromJSON, ApiReportRawDataDTOV2FromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -33,6 +33,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
35
  headerParameters['Content-Type'] = 'application/json';
36
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
37
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
38
+ }
36
39
  const response = yield this.request({
37
40
  path: `/api/v2/applications`,
38
41
  method: 'POST',
@@ -66,6 +69,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
66
69
  queryParameters['clonedApplicationPublicId'] = requestParameters.clonedApplicationPublicId;
67
70
  }
68
71
  const headerParameters = {};
72
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
73
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
74
+ }
69
75
  const response = yield this.request({
70
76
  path: `/api/v2/applications/{sourceApplicationId}/clone`.replace(`{${"sourceApplicationId"}}`, encodeURIComponent(String(requestParameters.sourceApplicationId))),
71
77
  method: 'POST',
@@ -92,6 +98,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
92
98
  }
93
99
  const queryParameters = {};
94
100
  const headerParameters = {};
101
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
102
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
103
+ }
95
104
  const response = yield this.request({
96
105
  path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
97
106
  method: 'DELETE',
@@ -117,6 +126,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
117
126
  }
118
127
  const queryParameters = {};
119
128
  const headerParameters = {};
129
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
130
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
131
+ }
120
132
  const response = yield this.request({
121
133
  path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
122
134
  method: 'GET',
@@ -146,20 +158,24 @@ export class ApplicationsApi extends runtime.BaseAPI {
146
158
  queryParameters['includeCategories'] = requestParameters.includeCategories;
147
159
  }
148
160
  const headerParameters = {};
161
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
162
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
163
+ }
149
164
  const response = yield this.request({
150
165
  path: `/api/v2/applications`,
151
166
  method: 'GET',
152
167
  headers: headerParameters,
153
168
  query: queryParameters,
154
169
  }, initOverrides);
155
- return new runtime.VoidApiResponse(response);
170
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiApplicationDTOFromJSON));
156
171
  });
157
172
  }
158
173
  /**
159
174
  */
160
175
  getApplications(requestParameters = {}, initOverrides) {
161
176
  return __awaiter(this, void 0, void 0, function* () {
162
- yield this.getApplicationsRaw(requestParameters, initOverrides);
177
+ const response = yield this.getApplicationsRaw(requestParameters, initOverrides);
178
+ return yield response.value();
163
179
  });
164
180
  }
165
181
  /**
@@ -171,6 +187,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
171
187
  }
172
188
  const queryParameters = {};
173
189
  const headerParameters = {};
190
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
191
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
192
+ }
174
193
  const response = yield this.request({
175
194
  path: `/api/v2/applications/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
176
195
  method: 'GET',
@@ -200,6 +219,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
200
219
  }
201
220
  const queryParameters = {};
202
221
  const headerParameters = {};
222
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
223
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
224
+ }
203
225
  const response = yield this.request({
204
226
  path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
205
227
  method: 'GET',
@@ -228,6 +250,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
228
250
  }
229
251
  const queryParameters = {};
230
252
  const headerParameters = {};
253
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
254
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
255
+ }
231
256
  const response = yield this.request({
232
257
  path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/dependencyTree`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
233
258
  method: 'GET',
@@ -266,6 +291,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
266
291
  queryParameters['toPolicyEvaluationId'] = requestParameters.toPolicyEvaluationId;
267
292
  }
268
293
  const headerParameters = {};
294
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
295
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
296
+ }
269
297
  const response = yield this.request({
270
298
  path: `/api/v2/applications/{applicationPublicId}/reports/policyViolations/diff`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))),
271
299
  method: 'GET',
@@ -295,6 +323,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
295
323
  }
296
324
  const queryParameters = {};
297
325
  const headerParameters = {};
326
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
327
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
328
+ }
298
329
  const response = yield this.request({
299
330
  path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/policy`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
300
331
  method: 'GET',
@@ -324,6 +355,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
324
355
  }
325
356
  const queryParameters = {};
326
357
  const headerParameters = {};
358
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
359
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
360
+ }
327
361
  const response = yield this.request({
328
362
  path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/raw`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
329
363
  method: 'GET',
@@ -353,6 +387,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
353
387
  }
354
388
  const queryParameters = {};
355
389
  const headerParameters = {};
390
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
391
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
392
+ }
356
393
  const response = yield this.request({
357
394
  path: `/api/v2/applications/{applicationId}/move/organization/{organizationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
358
395
  method: 'POST',
@@ -380,6 +417,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
380
417
  const queryParameters = {};
381
418
  const headerParameters = {};
382
419
  headerParameters['Content-Type'] = 'application/json';
420
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
421
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
422
+ }
383
423
  const response = yield this.request({
384
424
  path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
385
425
  method: 'PUT',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiHashComponentIdentifierDTO, ApiHashComponentIdentifiersDTO } from '../models';
13
+ import type { ApiHashComponentIdentifierDTO, ApiHashComponentIdentifiersDTO } from '../models/index';
14
14
  export interface DeleteRequest {
15
15
  hash: string;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiHashComponentIdentifierDTOFromJSON, ApiHashComponentIdentifierDTOToJSON, ApiHashComponentIdentifiersDTOFromJSON, } from '../models';
24
+ import { ApiHashComponentIdentifierDTOFromJSON, ApiHashComponentIdentifierDTOToJSON, ApiHashComponentIdentifiersDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -35,6 +35,9 @@ export class ClaimApi extends runtime.BaseAPI {
35
35
  }
36
36
  const queryParameters = {};
37
37
  const headerParameters = {};
38
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
39
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
40
+ }
38
41
  const response = yield this.request({
39
42
  path: `/api/v2/claim/components/{hash}`.replace(`{${"hash"}}`, encodeURIComponent(String(requestParameters.hash))),
40
43
  method: 'DELETE',
@@ -60,6 +63,9 @@ export class ClaimApi extends runtime.BaseAPI {
60
63
  }
61
64
  const queryParameters = {};
62
65
  const headerParameters = {};
66
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
67
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
68
+ }
63
69
  const response = yield this.request({
64
70
  path: `/api/v2/claim/components/{hash}`.replace(`{${"hash"}}`, encodeURIComponent(String(requestParameters.hash))),
65
71
  method: 'GET',
@@ -83,6 +89,9 @@ export class ClaimApi extends runtime.BaseAPI {
83
89
  return __awaiter(this, void 0, void 0, function* () {
84
90
  const queryParameters = {};
85
91
  const headerParameters = {};
92
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
93
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
94
+ }
86
95
  const response = yield this.request({
87
96
  path: `/api/v2/claim/components`,
88
97
  method: 'GET',
@@ -107,6 +116,9 @@ export class ClaimApi extends runtime.BaseAPI {
107
116
  const queryParameters = {};
108
117
  const headerParameters = {};
109
118
  headerParameters['Content-Type'] = 'application/json';
119
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
120
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
121
+ }
110
122
  const response = yield this.request({
111
123
  path: `/api/v2/claim/components`,
112
124
  method: 'POST',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2, ApiComponentRemediationDTO } from '../models';
13
+ import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2, ApiComponentRemediationDTO } from '../models/index';
14
14
  export interface DeleteComponentLabelRequest {
15
15
  ownerType: DeleteComponentLabelOwnerTypeEnum;
16
16
  internalOwnerId: string;
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiComponentDTOV2ToJSON, ApiComponentDetailsRequestDTOV2ToJSON, ApiComponentDetailsResultDTOV2FromJSON, ApiComponentOrPurlIdentifierDTOV2ToJSON, ApiComponentRemediationDTOFromJSON, } from '../models';
24
+ import { ApiComponentDTOV2ToJSON, ApiComponentDetailsRequestDTOV2ToJSON, ApiComponentDetailsResultDTOV2FromJSON, ApiComponentOrPurlIdentifierDTOV2ToJSON, ApiComponentRemediationDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -44,6 +44,9 @@ export class ComponentsApi extends runtime.BaseAPI {
44
44
  }
45
45
  const queryParameters = {};
46
46
  const headerParameters = {};
47
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
48
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
49
+ }
47
50
  const response = yield this.request({
48
51
  path: `/api/v2/components/{componentHash}/labels/{labelName}/{ownerType}s/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"componentHash"}}`, encodeURIComponent(String(requestParameters.componentHash))).replace(`{${"labelName"}}`, encodeURIComponent(String(requestParameters.labelName))),
49
52
  method: 'DELETE',
@@ -67,6 +70,9 @@ export class ComponentsApi extends runtime.BaseAPI {
67
70
  const queryParameters = {};
68
71
  const headerParameters = {};
69
72
  headerParameters['Content-Type'] = 'application/json';
73
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
74
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
75
+ }
70
76
  const response = yield this.request({
71
77
  path: `/api/v2/components/details`,
72
78
  method: 'POST',
@@ -92,6 +98,9 @@ export class ComponentsApi extends runtime.BaseAPI {
92
98
  const queryParameters = {};
93
99
  const headerParameters = {};
94
100
  headerParameters['Content-Type'] = 'application/json';
101
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
102
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
103
+ }
95
104
  const response = yield this.request({
96
105
  path: `/api/v2/components/versions`,
97
106
  method: 'POST',
@@ -132,6 +141,9 @@ export class ComponentsApi extends runtime.BaseAPI {
132
141
  }
133
142
  const headerParameters = {};
134
143
  headerParameters['Content-Type'] = 'application/json';
144
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
145
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
146
+ }
135
147
  const response = yield this.request({
136
148
  path: `/api/v2/components/remediation/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
137
149
  method: 'POST',
@@ -168,6 +180,9 @@ export class ComponentsApi extends runtime.BaseAPI {
168
180
  }
169
181
  const queryParameters = {};
170
182
  const headerParameters = {};
183
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
184
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
185
+ }
171
186
  const response = yield this.request({
172
187
  path: `/api/v2/components/{componentHash}/labels/{labelName}/{ownerType}s/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"componentHash"}}`, encodeURIComponent(String(requestParameters.componentHash))).replace(`{${"labelName"}}`, encodeURIComponent(String(requestParameters.labelName))),
173
188
  method: 'POST',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiCompositeSourceControlDTO } from '../models';
13
+ import type { ApiCompositeSourceControlDTO } from '../models/index';
14
14
  export interface GetCompositeSourceControlByOwnerRequest {
15
15
  ownerType: GetCompositeSourceControlByOwnerOwnerTypeEnum;
16
16
  internalOwnerId: string;
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiCompositeSourceControlDTOFromJSON, } from '../models';
24
+ import { ApiCompositeSourceControlDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -38,6 +38,9 @@ export class CompositeSourceControlApi extends runtime.BaseAPI {
38
38
  }
39
39
  const queryParameters = {};
40
40
  const headerParameters = {};
41
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
42
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
43
+ }
41
44
  const response = yield this.request({
42
45
  path: `/api/v2/compositeSourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
43
46
  method: 'GET',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ConfigurationValidationResult } from '../models';
13
+ import type { ConfigurationValidationResult } from '../models/index';
14
14
  export interface ValidateSourceControlConfigRequest {
15
15
  applicationId: string;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ConfigurationValidationResultFromJSON, } from '../models';
24
+ import { ConfigurationValidationResultFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -35,6 +35,9 @@ export class CompositeSourceControlConfigValidatorApi extends runtime.BaseAPI {
35
35
  }
36
36
  const queryParameters = {};
37
37
  const headerParameters = {};
38
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
39
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
40
+ }
38
41
  const response = yield this.request({
39
42
  path: `/api/v2/compositeSourceControlConfigValidator/application/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
40
43
  method: 'GET',
@@ -34,6 +34,9 @@ export class ConfigApi extends runtime.BaseAPI {
34
34
  queryParameters['property'] = requestParameters.property;
35
35
  }
36
36
  const headerParameters = {};
37
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
38
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
39
+ }
37
40
  const response = yield this.request({
38
41
  path: `/api/v2/config`,
39
42
  method: 'DELETE',
@@ -59,6 +62,9 @@ export class ConfigApi extends runtime.BaseAPI {
59
62
  }
60
63
  const queryParameters = {};
61
64
  const headerParameters = {};
65
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
66
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
67
+ }
62
68
  const response = yield this.request({
63
69
  path: `/api/v2/config/features/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters.feature))),
64
70
  method: 'DELETE',
@@ -84,6 +90,9 @@ export class ConfigApi extends runtime.BaseAPI {
84
90
  }
85
91
  const queryParameters = {};
86
92
  const headerParameters = {};
93
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
94
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
95
+ }
87
96
  const response = yield this.request({
88
97
  path: `/api/v2/config/features/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters.feature))),
89
98
  method: 'POST',
@@ -109,6 +118,9 @@ export class ConfigApi extends runtime.BaseAPI {
109
118
  queryParameters['property'] = requestParameters.property;
110
119
  }
111
120
  const headerParameters = {};
121
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
122
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
123
+ }
112
124
  const response = yield this.request({
113
125
  path: `/api/v2/config`,
114
126
  method: 'GET',
@@ -133,6 +145,9 @@ export class ConfigApi extends runtime.BaseAPI {
133
145
  const queryParameters = {};
134
146
  const headerParameters = {};
135
147
  headerParameters['Content-Type'] = 'application/json';
148
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
149
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
150
+ }
136
151
  const response = yield this.request({
137
152
  path: `/api/v2/config`,
138
153
  method: 'PUT',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiArtifactoryConnectionDTO, ApiArtifactoryConnectionStatusRequestDTO, ApiOwnerArtifactoryConnectionDTO, ApiStatusDTO } from '../models';
13
+ import type { ApiArtifactoryConnectionDTO, ApiArtifactoryConnectionStatusRequestDTO, ApiOwnerArtifactoryConnectionDTO, ApiStatusDTO } from '../models/index';
14
14
  export interface AddArtifactoryConnectionRequest {
15
15
  ownerType: AddArtifactoryConnectionOwnerTypeEnum;
16
16
  internalOwnerId: string;
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiArtifactoryConnectionDTOFromJSON, ApiArtifactoryConnectionDTOToJSON, ApiArtifactoryConnectionStatusRequestDTOToJSON, ApiOwnerArtifactoryConnectionDTOFromJSON, ApiStatusDTOFromJSON, } from '../models';
24
+ import { ApiArtifactoryConnectionDTOFromJSON, ApiArtifactoryConnectionDTOToJSON, ApiArtifactoryConnectionStatusRequestDTOToJSON, ApiOwnerArtifactoryConnectionDTOFromJSON, ApiStatusDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -39,6 +39,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
39
39
  const queryParameters = {};
40
40
  const headerParameters = {};
41
41
  headerParameters['Content-Type'] = 'application/json';
42
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
43
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
44
+ }
42
45
  const response = yield this.request({
43
46
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
44
47
  method: 'POST',
@@ -72,6 +75,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
72
75
  }
73
76
  const queryParameters = {};
74
77
  const headerParameters = {};
78
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
79
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
80
+ }
75
81
  const response = yield this.request({
76
82
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
77
83
  method: 'DELETE',
@@ -103,6 +109,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
103
109
  }
104
110
  const queryParameters = {};
105
111
  const headerParameters = {};
112
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
113
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
114
+ }
106
115
  const response = yield this.request({
107
116
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
108
117
  method: 'GET',
@@ -135,6 +144,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
135
144
  queryParameters['inherit'] = requestParameters.inherit;
136
145
  }
137
146
  const headerParameters = {};
147
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
148
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
149
+ }
138
150
  const response = yield this.request({
139
151
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
140
152
  method: 'GET',
@@ -165,6 +177,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
165
177
  const queryParameters = {};
166
178
  const headerParameters = {};
167
179
  headerParameters['Content-Type'] = 'application/json';
180
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
181
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
182
+ }
168
183
  const response = yield this.request({
169
184
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
170
185
  method: 'POST',
@@ -198,6 +213,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
198
213
  }
199
214
  const queryParameters = {};
200
215
  const headerParameters = {};
216
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
217
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
218
+ }
201
219
  const response = yield this.request({
202
220
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
203
221
  method: 'POST',
@@ -231,6 +249,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
231
249
  const queryParameters = {};
232
250
  const headerParameters = {};
233
251
  headerParameters['Content-Type'] = 'application/json';
252
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
253
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
254
+ }
234
255
  const response = yield this.request({
235
256
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
236
257
  method: 'PUT',
@@ -262,6 +283,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
262
283
  const queryParameters = {};
263
284
  const headerParameters = {};
264
285
  headerParameters['Content-Type'] = 'application/json';
286
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
287
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
288
+ }
265
289
  const response = yield this.request({
266
290
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
267
291
  method: 'PUT',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiCrowdConfigurationDTO, ApiStatusDTO } from '../models';
13
+ import type { ApiCrowdConfigurationDTO, ApiStatusDTO } from '../models/index';
14
14
  export interface InsertOrUpdateCrowdConfigurationRequest {
15
15
  apiCrowdConfigurationDTO?: ApiCrowdConfigurationDTO;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiCrowdConfigurationDTOFromJSON, ApiCrowdConfigurationDTOToJSON, ApiStatusDTOFromJSON, } from '../models';
24
+ import { ApiCrowdConfigurationDTOFromJSON, ApiCrowdConfigurationDTOToJSON, ApiStatusDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
36
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
37
+ }
35
38
  const response = yield this.request({
36
39
  path: `/api/v2/config/crowd`,
37
40
  method: 'DELETE',
@@ -54,6 +57,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI {
54
57
  return __awaiter(this, void 0, void 0, function* () {
55
58
  const queryParameters = {};
56
59
  const headerParameters = {};
60
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
61
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
62
+ }
57
63
  const response = yield this.request({
58
64
  path: `/api/v2/config/crowd`,
59
65
  method: 'GET',
@@ -78,6 +84,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI {
78
84
  const queryParameters = {};
79
85
  const headerParameters = {};
80
86
  headerParameters['Content-Type'] = 'application/json';
87
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
88
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
89
+ }
81
90
  const response = yield this.request({
82
91
  path: `/api/v2/config/crowd`,
83
92
  method: 'PUT',
@@ -102,6 +111,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI {
102
111
  const queryParameters = {};
103
112
  const headerParameters = {};
104
113
  headerParameters['Content-Type'] = 'application/json';
114
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
115
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
116
+ }
105
117
  const response = yield this.request({
106
118
  path: `/api/v2/config/crowd/test`,
107
119
  method: 'POST',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiJiraConfigurationDTO } from '../models';
13
+ import type { ApiJiraConfigurationDTO } from '../models/index';
14
14
  export interface SetConfiguration1Request {
15
15
  body?: object;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiJiraConfigurationDTOFromJSON, } from '../models';
24
+ import { ApiJiraConfigurationDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
36
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
37
+ }
35
38
  const response = yield this.request({
36
39
  path: `/api/v2/config/jira`,
37
40
  method: 'DELETE',
@@ -54,6 +57,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI {
54
57
  return __awaiter(this, void 0, void 0, function* () {
55
58
  const queryParameters = {};
56
59
  const headerParameters = {};
60
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
61
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
62
+ }
57
63
  const response = yield this.request({
58
64
  path: `/api/v2/config/jira`,
59
65
  method: 'GET',
@@ -78,6 +84,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI {
78
84
  const queryParameters = {};
79
85
  const headerParameters = {};
80
86
  headerParameters['Content-Type'] = 'application/json';
87
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
88
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
89
+ }
81
90
  const response = yield this.request({
82
91
  path: `/api/v2/config/jira`,
83
92
  method: 'PUT',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiMailConfigurationDTO } from '../models';
13
+ import type { ApiMailConfigurationDTO } from '../models/index';
14
14
  export interface SetConfiguration2Request {
15
15
  apiMailConfigurationDTO?: ApiMailConfigurationDTO;
16
16
  }