@sonatype/nexus-iq-api-client 0.156.1 → 0.156.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
  3. package/dist/apis/ApplicationCategoriesApi.js +42 -12
  4. package/dist/apis/ApplicationsApi.d.ts +5 -5
  5. package/dist/apis/ApplicationsApi.js +53 -14
  6. package/dist/apis/ClaimApi.d.ts +1 -1
  7. package/dist/apis/ClaimApi.js +17 -5
  8. package/dist/apis/ComponentsApi.d.ts +1 -1
  9. package/dist/apis/ComponentsApi.js +21 -6
  10. package/dist/apis/CompositeSourceControlApi.d.ts +1 -1
  11. package/dist/apis/CompositeSourceControlApi.js +5 -2
  12. package/dist/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  13. package/dist/apis/CompositeSourceControlConfigValidatorApi.js +5 -2
  14. package/dist/apis/ConfigApi.js +15 -0
  15. package/dist/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  16. package/dist/apis/ConfigArtifactoryConnectionApi.js +35 -11
  17. package/dist/apis/ConfigCrowdApi.d.ts +1 -1
  18. package/dist/apis/ConfigCrowdApi.js +17 -5
  19. package/dist/apis/ConfigJIRAApi.d.ts +1 -1
  20. package/dist/apis/ConfigJIRAApi.js +11 -2
  21. package/dist/apis/ConfigMailApi.d.ts +1 -1
  22. package/dist/apis/ConfigMailApi.js +16 -4
  23. package/dist/apis/ConfigProxyServerApi.d.ts +1 -1
  24. package/dist/apis/ConfigProxyServerApi.js +12 -3
  25. package/dist/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  26. package/dist/apis/ConfigReverseProxyAuthenticationApi.js +12 -3
  27. package/dist/apis/ConfigSAMLApi.d.ts +1 -1
  28. package/dist/apis/ConfigSAMLApi.js +11 -2
  29. package/dist/apis/ConfigSourceControlApi.d.ts +1 -1
  30. package/dist/apis/ConfigSourceControlApi.js +11 -2
  31. package/dist/apis/CycloneDxApi.js +12 -0
  32. package/dist/apis/DataRetentionPoliciesApi.d.ts +1 -1
  33. package/dist/apis/DataRetentionPoliciesApi.js +9 -3
  34. package/dist/apis/EndpointsApi.js +3 -0
  35. package/dist/apis/EvaluationApi.d.ts +1 -1
  36. package/dist/apis/EvaluationApi.js +29 -11
  37. package/dist/apis/FirewallApi.d.ts +1 -1
  38. package/dist/apis/FirewallApi.js +30 -6
  39. package/dist/apis/LabelsApi.d.ts +1 -1
  40. package/dist/apis/LabelsApi.js +26 -8
  41. package/dist/apis/LicenseLegalMetadataApi.d.ts +1 -1
  42. package/dist/apis/LicenseLegalMetadataApi.js +48 -9
  43. package/dist/apis/OrganizationsApi.d.ts +1 -1
  44. package/dist/apis/OrganizationsApi.js +14 -5
  45. package/dist/apis/PoliciesApi.d.ts +1 -1
  46. package/dist/apis/PoliciesApi.js +5 -2
  47. package/dist/apis/PolicyViolationsApi.d.ts +1 -1
  48. package/dist/apis/PolicyViolationsApi.js +25 -7
  49. package/dist/apis/PolicyWaiverApi.js +3 -0
  50. package/dist/apis/PolicyWaiversApi.d.ts +1 -1
  51. package/dist/apis/PolicyWaiversApi.js +28 -7
  52. package/dist/apis/ReportsApi.d.ts +1 -1
  53. package/dist/apis/ReportsApi.js +29 -8
  54. package/dist/apis/RepositoriesApi.d.ts +1 -1
  55. package/dist/apis/RepositoriesApi.js +9 -3
  56. package/dist/apis/RoleMembershipsApi.d.ts +1 -1
  57. package/dist/apis/RoleMembershipsApi.js +21 -3
  58. package/dist/apis/RolesApi.d.ts +1 -1
  59. package/dist/apis/RolesApi.js +5 -2
  60. package/dist/apis/ScanApi.d.ts +1 -1
  61. package/dist/apis/ScanApi.js +8 -2
  62. package/dist/apis/SearchApi.d.ts +1 -1
  63. package/dist/apis/SearchApi.js +15 -3
  64. package/dist/apis/SecurityOverridesApi.d.ts +1 -1
  65. package/dist/apis/SecurityOverridesApi.js +5 -2
  66. package/dist/apis/SourceControlApi.d.ts +1 -1
  67. package/dist/apis/SourceControlApi.js +22 -7
  68. package/dist/apis/SourceControlMetricsApi.d.ts +1 -1
  69. package/dist/apis/SourceControlMetricsApi.js +5 -2
  70. package/dist/apis/TelemetryApi.js +3 -0
  71. package/dist/apis/UserTokensApi.d.ts +1 -1
  72. package/dist/apis/UserTokensApi.js +26 -5
  73. package/dist/apis/UsersApi.d.ts +1 -1
  74. package/dist/apis/UsersApi.js +21 -6
  75. package/dist/apis/VulnerabilitiesApi.d.ts +1 -1
  76. package/dist/apis/VulnerabilitiesApi.js +5 -2
  77. package/dist/esm/apis/ApplicationCategoriesApi.d.ts +1 -1
  78. package/dist/esm/apis/ApplicationCategoriesApi.js +31 -1
  79. package/dist/esm/apis/ApplicationsApi.d.ts +5 -5
  80. package/dist/esm/apis/ApplicationsApi.js +41 -2
  81. package/dist/esm/apis/ClaimApi.d.ts +1 -1
  82. package/dist/esm/apis/ClaimApi.js +13 -1
  83. package/dist/esm/apis/ComponentsApi.d.ts +1 -1
  84. package/dist/esm/apis/ComponentsApi.js +16 -1
  85. package/dist/esm/apis/CompositeSourceControlApi.d.ts +1 -1
  86. package/dist/esm/apis/CompositeSourceControlApi.js +4 -1
  87. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  88. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.js +4 -1
  89. package/dist/esm/apis/ConfigApi.js +15 -0
  90. package/dist/esm/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  91. package/dist/esm/apis/ConfigArtifactoryConnectionApi.js +25 -1
  92. package/dist/esm/apis/ConfigCrowdApi.d.ts +1 -1
  93. package/dist/esm/apis/ConfigCrowdApi.js +13 -1
  94. package/dist/esm/apis/ConfigJIRAApi.d.ts +1 -1
  95. package/dist/esm/apis/ConfigJIRAApi.js +10 -1
  96. package/dist/esm/apis/ConfigMailApi.d.ts +1 -1
  97. package/dist/esm/apis/ConfigMailApi.js +13 -1
  98. package/dist/esm/apis/ConfigProxyServerApi.d.ts +1 -1
  99. package/dist/esm/apis/ConfigProxyServerApi.js +10 -1
  100. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  101. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.js +10 -1
  102. package/dist/esm/apis/ConfigSAMLApi.d.ts +1 -1
  103. package/dist/esm/apis/ConfigSAMLApi.js +10 -1
  104. package/dist/esm/apis/ConfigSourceControlApi.d.ts +1 -1
  105. package/dist/esm/apis/ConfigSourceControlApi.js +10 -1
  106. package/dist/esm/apis/CycloneDxApi.js +12 -0
  107. package/dist/esm/apis/DataRetentionPoliciesApi.d.ts +1 -1
  108. package/dist/esm/apis/DataRetentionPoliciesApi.js +7 -1
  109. package/dist/esm/apis/EndpointsApi.js +3 -0
  110. package/dist/esm/apis/EvaluationApi.d.ts +1 -1
  111. package/dist/esm/apis/EvaluationApi.js +19 -1
  112. package/dist/esm/apis/FirewallApi.d.ts +1 -1
  113. package/dist/esm/apis/FirewallApi.js +25 -1
  114. package/dist/esm/apis/LabelsApi.d.ts +1 -1
  115. package/dist/esm/apis/LabelsApi.js +19 -1
  116. package/dist/esm/apis/LicenseLegalMetadataApi.d.ts +1 -1
  117. package/dist/esm/apis/LicenseLegalMetadataApi.js +40 -1
  118. package/dist/esm/apis/OrganizationsApi.d.ts +1 -1
  119. package/dist/esm/apis/OrganizationsApi.js +10 -1
  120. package/dist/esm/apis/PoliciesApi.d.ts +1 -1
  121. package/dist/esm/apis/PoliciesApi.js +4 -1
  122. package/dist/esm/apis/PolicyViolationsApi.d.ts +1 -1
  123. package/dist/esm/apis/PolicyViolationsApi.js +19 -1
  124. package/dist/esm/apis/PolicyWaiverApi.js +3 -0
  125. package/dist/esm/apis/PolicyWaiversApi.d.ts +1 -1
  126. package/dist/esm/apis/PolicyWaiversApi.js +22 -1
  127. package/dist/esm/apis/ReportsApi.d.ts +1 -1
  128. package/dist/esm/apis/ReportsApi.js +22 -1
  129. package/dist/esm/apis/RepositoriesApi.d.ts +1 -1
  130. package/dist/esm/apis/RepositoriesApi.js +7 -1
  131. package/dist/esm/apis/RoleMembershipsApi.d.ts +1 -1
  132. package/dist/esm/apis/RoleMembershipsApi.js +19 -1
  133. package/dist/esm/apis/RolesApi.d.ts +1 -1
  134. package/dist/esm/apis/RolesApi.js +4 -1
  135. package/dist/esm/apis/ScanApi.d.ts +1 -1
  136. package/dist/esm/apis/ScanApi.js +7 -1
  137. package/dist/esm/apis/SearchApi.d.ts +1 -1
  138. package/dist/esm/apis/SearchApi.js +13 -1
  139. package/dist/esm/apis/SecurityOverridesApi.d.ts +1 -1
  140. package/dist/esm/apis/SecurityOverridesApi.js +4 -1
  141. package/dist/esm/apis/SourceControlApi.d.ts +1 -1
  142. package/dist/esm/apis/SourceControlApi.js +16 -1
  143. package/dist/esm/apis/SourceControlMetricsApi.d.ts +1 -1
  144. package/dist/esm/apis/SourceControlMetricsApi.js +4 -1
  145. package/dist/esm/apis/TelemetryApi.js +3 -0
  146. package/dist/esm/apis/UserTokensApi.d.ts +1 -1
  147. package/dist/esm/apis/UserTokensApi.js +22 -1
  148. package/dist/esm/apis/UsersApi.d.ts +1 -1
  149. package/dist/esm/apis/UsersApi.js +16 -1
  150. package/dist/esm/apis/VulnerabilitiesApi.d.ts +1 -1
  151. package/dist/esm/apis/VulnerabilitiesApi.js +4 -1
  152. package/dist/esm/index.d.ts +2 -2
  153. package/dist/esm/index.js +2 -2
  154. package/dist/esm/models/GetApplicationsDefaultResponse.d.ts +32 -0
  155. package/dist/esm/models/GetApplicationsDefaultResponse.js +44 -0
  156. package/dist/esm/models/index.d.ts +1 -0
  157. package/dist/esm/models/index.js +1 -0
  158. package/dist/esm/runtime.js +13 -5
  159. package/dist/index.d.ts +2 -2
  160. package/dist/index.js +2 -2
  161. package/dist/models/GetApplicationsDefaultResponse.d.ts +32 -0
  162. package/dist/models/GetApplicationsDefaultResponse.js +51 -0
  163. package/dist/models/index.d.ts +1 -0
  164. package/dist/models/index.js +1 -0
  165. package/dist/runtime.js +13 -5
  166. package/package.json +1 -1
  167. package/src/apis/ApplicationCategoriesApi.ts +32 -2
  168. package/src/apis/ApplicationsApi.ts +49 -7
  169. package/src/apis/ClaimApi.ts +14 -2
  170. package/src/apis/ComponentsApi.ts +17 -2
  171. package/src/apis/CompositeSourceControlApi.ts +5 -2
  172. package/src/apis/CompositeSourceControlConfigValidatorApi.ts +5 -2
  173. package/src/apis/ConfigApi.ts +15 -0
  174. package/src/apis/ConfigArtifactoryConnectionApi.ts +26 -2
  175. package/src/apis/ConfigCrowdApi.ts +14 -2
  176. package/src/apis/ConfigJIRAApi.ts +11 -2
  177. package/src/apis/ConfigMailApi.ts +14 -2
  178. package/src/apis/ConfigProxyServerApi.ts +11 -2
  179. package/src/apis/ConfigReverseProxyAuthenticationApi.ts +11 -2
  180. package/src/apis/ConfigSAMLApi.ts +11 -2
  181. package/src/apis/ConfigSourceControlApi.ts +11 -2
  182. package/src/apis/CycloneDxApi.ts +12 -0
  183. package/src/apis/DataRetentionPoliciesApi.ts +8 -2
  184. package/src/apis/EndpointsApi.ts +3 -0
  185. package/src/apis/EvaluationApi.ts +20 -2
  186. package/src/apis/FirewallApi.ts +26 -2
  187. package/src/apis/LabelsApi.ts +20 -2
  188. package/src/apis/LicenseLegalMetadataApi.ts +41 -2
  189. package/src/apis/OrganizationsApi.ts +11 -2
  190. package/src/apis/PoliciesApi.ts +5 -2
  191. package/src/apis/PolicyViolationsApi.ts +20 -2
  192. package/src/apis/PolicyWaiverApi.ts +3 -0
  193. package/src/apis/PolicyWaiversApi.ts +23 -2
  194. package/src/apis/ReportsApi.ts +23 -2
  195. package/src/apis/RepositoriesApi.ts +8 -2
  196. package/src/apis/RoleMembershipsApi.ts +20 -2
  197. package/src/apis/RolesApi.ts +5 -2
  198. package/src/apis/ScanApi.ts +8 -2
  199. package/src/apis/SearchApi.ts +14 -2
  200. package/src/apis/SecurityOverridesApi.ts +5 -2
  201. package/src/apis/SourceControlApi.ts +17 -2
  202. package/src/apis/SourceControlMetricsApi.ts +5 -2
  203. package/src/apis/TelemetryApi.ts +3 -0
  204. package/src/apis/UserTokensApi.ts +23 -2
  205. package/src/apis/UsersApi.ts +17 -2
  206. package/src/apis/VulnerabilitiesApi.ts +5 -2
  207. package/src/index.ts +2 -2
  208. package/src/models/GetApplicationsDefaultResponse.ts +72 -0
  209. package/src/models/index.ts +1 -0
  210. package/src/runtime.ts +12 -6
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.GetTransitivePolicyWaiversByAppScanComponentOwnerTypeEnum = exports.GetPolicyWaiversOwnerTypeEnum = exports.GetPolicyWaiverOwnerTypeEnum = exports.DeletePolicyWaiverOwnerTypeEnum = exports.AddWaiverToTransitivePolicyViolationsByOwnerStageComponentOwnerTypeEnum = exports.AddWaiverToTransitivePolicyViolationsByAppScanComponentOwnerTypeEnum = exports.AddPolicyWaiverByPolicyViolationIdOwnerTypeEnum = exports.PolicyWaiversApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const models_1 = require("../models");
27
+ const index_1 = require("../models/index");
28
28
  /**
29
29
  *
30
30
  */
@@ -45,12 +45,15 @@ class PolicyWaiversApi extends runtime.BaseAPI {
45
45
  const queryParameters = {};
46
46
  const headerParameters = {};
47
47
  headerParameters['Content-Type'] = 'application/json';
48
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
49
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
50
+ }
48
51
  const response = yield this.request({
49
52
  path: `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyViolationId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters.policyViolationId))),
50
53
  method: 'POST',
51
54
  headers: headerParameters,
52
55
  query: queryParameters,
53
- body: (0, models_1.ApiWaiverOptionsDTOToJSON)(requestParameters.apiWaiverOptionsDTO),
56
+ body: (0, index_1.ApiWaiverOptionsDTOToJSON)(requestParameters.apiWaiverOptionsDTO),
54
57
  }, initOverrides);
55
58
  return new runtime.VoidApiResponse(response);
56
59
  });
@@ -87,12 +90,15 @@ class PolicyWaiversApi extends runtime.BaseAPI {
87
90
  }
88
91
  const headerParameters = {};
89
92
  headerParameters['Content-Type'] = 'application/json';
93
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
94
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
95
+ }
90
96
  const response = yield this.request({
91
97
  path: `/api/v2/policyWaivers/transitive/{ownerType}/{ownerId}/{scanId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
92
98
  method: 'POST',
93
99
  headers: headerParameters,
94
100
  query: queryParameters,
95
- body: (0, models_1.ApiWaiverOptionsDTOToJSON)(requestParameters.apiWaiverOptionsDTO),
101
+ body: (0, index_1.ApiWaiverOptionsDTOToJSON)(requestParameters.apiWaiverOptionsDTO),
96
102
  }, initOverrides);
97
103
  return new runtime.VoidApiResponse(response);
98
104
  });
@@ -129,12 +135,15 @@ class PolicyWaiversApi extends runtime.BaseAPI {
129
135
  }
130
136
  const headerParameters = {};
131
137
  headerParameters['Content-Type'] = 'application/json';
138
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
139
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
140
+ }
132
141
  const response = yield this.request({
133
142
  path: `/api/v2/policyWaivers/transitive/{ownerType}/{ownerId}/stages/{stageId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
134
143
  method: 'POST',
135
144
  headers: headerParameters,
136
145
  query: queryParameters,
137
- body: (0, models_1.ApiWaiverOptionsDTOToJSON)(requestParameters.apiWaiverOptionsDTO),
146
+ body: (0, index_1.ApiWaiverOptionsDTOToJSON)(requestParameters.apiWaiverOptionsDTO),
138
147
  }, initOverrides);
139
148
  return new runtime.VoidApiResponse(response);
140
149
  });
@@ -161,6 +170,9 @@ class PolicyWaiversApi extends runtime.BaseAPI {
161
170
  }
162
171
  const queryParameters = {};
163
172
  const headerParameters = {};
173
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
174
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
175
+ }
164
176
  const response = yield this.request({
165
177
  path: `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyWaiverId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"policyWaiverId"}}`, encodeURIComponent(String(requestParameters.policyWaiverId))),
166
178
  method: 'DELETE',
@@ -192,13 +204,16 @@ class PolicyWaiversApi extends runtime.BaseAPI {
192
204
  }
193
205
  const queryParameters = {};
194
206
  const headerParameters = {};
207
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
208
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
209
+ }
195
210
  const response = yield this.request({
196
211
  path: `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyWaiverId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"policyWaiverId"}}`, encodeURIComponent(String(requestParameters.policyWaiverId))),
197
212
  method: 'GET',
198
213
  headers: headerParameters,
199
214
  query: queryParameters,
200
215
  }, initOverrides);
201
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiPolicyWaiverDTOFromJSON)(jsonValue));
216
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPolicyWaiverDTOFromJSON)(jsonValue));
202
217
  });
203
218
  }
204
219
  /**
@@ -221,13 +236,16 @@ class PolicyWaiversApi extends runtime.BaseAPI {
221
236
  }
222
237
  const queryParameters = {};
223
238
  const headerParameters = {};
239
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
240
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
241
+ }
224
242
  const response = yield this.request({
225
243
  path: `/api/v2/policyWaivers/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
226
244
  method: 'GET',
227
245
  headers: headerParameters,
228
246
  query: queryParameters,
229
247
  }, initOverrides);
230
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.ApiPolicyWaiverDTOFromJSON));
248
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiPolicyWaiverDTOFromJSON));
231
249
  });
232
250
  }
233
251
  /**
@@ -262,13 +280,16 @@ class PolicyWaiversApi extends runtime.BaseAPI {
262
280
  queryParameters['hash'] = requestParameters.hash;
263
281
  }
264
282
  const headerParameters = {};
283
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
284
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
285
+ }
265
286
  const response = yield this.request({
266
287
  path: `/api/v2/policyWaivers/transitive/{ownerType}/{ownerId}/{scanId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
267
288
  method: 'GET',
268
289
  headers: headerParameters,
269
290
  query: queryParameters,
270
291
  }, initOverrides);
271
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiComponentPolicyWaiversDTOFromJSON)(jsonValue));
292
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentPolicyWaiversDTOFromJSON)(jsonValue));
272
293
  });
273
294
  }
274
295
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiApplicationReportDTOV2, ApiComponentWaiversDTO, ApiComponentsInQuarantineDTO, ApiMetricsReportingQueryDTOV2, ApiReportHistoryDTO, ApiStaleWaiversResponseDTO } from '../models';
13
+ import type { ApiApplicationReportDTOV2, ApiComponentWaiversDTO, ApiComponentsInQuarantineDTO, ApiMetricsReportingQueryDTOV2, ApiReportHistoryDTO, ApiStaleWaiversResponseDTO } from '../models/index';
14
14
  export interface GetByApplicationIdRequest {
15
15
  applicationId: string;
16
16
  }
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ReportsApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const models_1 = require("../models");
27
+ const index_1 = require("../models/index");
28
28
  /**
29
29
  *
30
30
  */
@@ -35,13 +35,16 @@ class ReportsApi extends runtime.BaseAPI {
35
35
  return __awaiter(this, void 0, void 0, function* () {
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/reports/applications`,
40
43
  method: 'GET',
41
44
  headers: headerParameters,
42
45
  query: queryParameters,
43
46
  }, initOverrides);
44
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.ApiApplicationReportDTOV2FromJSON));
47
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiApplicationReportDTOV2FromJSON));
45
48
  });
46
49
  }
47
50
  /**
@@ -61,13 +64,16 @@ class ReportsApi extends runtime.BaseAPI {
61
64
  }
62
65
  const queryParameters = {};
63
66
  const headerParameters = {};
67
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
68
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
69
+ }
64
70
  const response = yield this.request({
65
71
  path: `/api/v2/reports/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
66
72
  method: 'GET',
67
73
  headers: headerParameters,
68
74
  query: queryParameters,
69
75
  }, initOverrides);
70
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.ApiApplicationReportDTOV2FromJSON));
76
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiApplicationReportDTOV2FromJSON));
71
77
  });
72
78
  }
73
79
  /**
@@ -84,13 +90,16 @@ class ReportsApi extends runtime.BaseAPI {
84
90
  return __awaiter(this, void 0, void 0, function* () {
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/reports/components/quarantined`,
89
98
  method: 'GET',
90
99
  headers: headerParameters,
91
100
  query: queryParameters,
92
101
  }, initOverrides);
93
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiComponentsInQuarantineDTOFromJSON)(jsonValue));
102
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentsInQuarantineDTOFromJSON)(jsonValue));
94
103
  });
95
104
  }
96
105
  /**
@@ -110,13 +119,16 @@ class ReportsApi extends runtime.BaseAPI {
110
119
  queryParameters['format'] = requestParameters.format;
111
120
  }
112
121
  const headerParameters = {};
122
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
123
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
124
+ }
113
125
  const response = yield this.request({
114
126
  path: `/api/v2/reports/components/waivers`,
115
127
  method: 'GET',
116
128
  headers: headerParameters,
117
129
  query: queryParameters,
118
130
  }, initOverrides);
119
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiComponentWaiversDTOFromJSON)(jsonValue));
131
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentWaiversDTOFromJSON)(jsonValue));
120
132
  });
121
133
  }
122
134
  /**
@@ -134,12 +146,15 @@ class ReportsApi extends runtime.BaseAPI {
134
146
  const queryParameters = {};
135
147
  const headerParameters = {};
136
148
  headerParameters['Content-Type'] = 'application/json';
149
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
150
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
151
+ }
137
152
  const response = yield this.request({
138
153
  path: `/api/v2/reports/metrics`,
139
154
  method: 'POST',
140
155
  headers: headerParameters,
141
156
  query: queryParameters,
142
- body: (0, models_1.ApiMetricsReportingQueryDTOV2ToJSON)(requestParameters.apiMetricsReportingQueryDTOV2),
157
+ body: (0, index_1.ApiMetricsReportingQueryDTOV2ToJSON)(requestParameters.apiMetricsReportingQueryDTOV2),
143
158
  }, initOverrides);
144
159
  return new runtime.VoidApiResponse(response);
145
160
  });
@@ -160,13 +175,16 @@ class ReportsApi extends runtime.BaseAPI {
160
175
  }
161
176
  const queryParameters = {};
162
177
  const headerParameters = {};
178
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
179
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
180
+ }
163
181
  const response = yield this.request({
164
182
  path: `/api/v2/reports/applications/{applicationId}/history`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
165
183
  method: 'GET',
166
184
  headers: headerParameters,
167
185
  query: queryParameters,
168
186
  }, initOverrides);
169
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiReportHistoryDTOFromJSON)(jsonValue));
187
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiReportHistoryDTOFromJSON)(jsonValue));
170
188
  });
171
189
  }
172
190
  /**
@@ -183,13 +201,16 @@ class ReportsApi extends runtime.BaseAPI {
183
201
  return __awaiter(this, void 0, void 0, function* () {
184
202
  const queryParameters = {};
185
203
  const headerParameters = {};
204
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
205
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
206
+ }
186
207
  const response = yield this.request({
187
208
  path: `/api/v2/reports/waivers/stale`,
188
209
  method: 'GET',
189
210
  headers: headerParameters,
190
211
  query: queryParameters,
191
212
  }, initOverrides);
192
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiStaleWaiversResponseDTOFromJSON)(jsonValue));
213
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiStaleWaiversResponseDTOFromJSON)(jsonValue));
193
214
  });
194
215
  }
195
216
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiComponentReleasedFromQuarantineDTO, ApiRepositoryPathResponseDTO } from '../models';
13
+ import type { ApiComponentReleasedFromQuarantineDTO, ApiRepositoryPathResponseDTO } from '../models/index';
14
14
  export interface GetQuarantinedByPathRequest {
15
15
  repositoryManagerInstanceId: string;
16
16
  repositoryPublicId: string;
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.RepositoriesApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const models_1 = require("../models");
27
+ const index_1 = require("../models/index");
28
28
  /**
29
29
  *
30
30
  */
@@ -42,6 +42,9 @@ class RepositoriesApi extends runtime.BaseAPI {
42
42
  const queryParameters = {};
43
43
  const headerParameters = {};
44
44
  headerParameters['Content-Type'] = 'application/json';
45
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
46
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
47
+ }
45
48
  const response = yield this.request({
46
49
  path: `/api/v2/repositories/{repositoryManagerInstanceId}/{repositoryPublicId}/components/quarantined/pathnames`.replace(`{${"repositoryManagerInstanceId"}}`, encodeURIComponent(String(requestParameters.repositoryManagerInstanceId))).replace(`{${"repositoryPublicId"}}`, encodeURIComponent(String(requestParameters.repositoryPublicId))),
47
50
  method: 'POST',
@@ -49,7 +52,7 @@ class RepositoriesApi extends runtime.BaseAPI {
49
52
  query: queryParameters,
50
53
  body: requestParameters.requestBody,
51
54
  }, initOverrides);
52
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiRepositoryPathResponseDTOFromJSON)(jsonValue));
55
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiRepositoryPathResponseDTOFromJSON)(jsonValue));
53
56
  });
54
57
  }
55
58
  /**
@@ -70,6 +73,9 @@ class RepositoriesApi extends runtime.BaseAPI {
70
73
  const queryParameters = {};
71
74
  const headerParameters = {};
72
75
  headerParameters['Content-Type'] = 'text/plain';
76
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
77
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
78
+ }
73
79
  const response = yield this.request({
74
80
  path: `/api/v2/repositories/quarantine/{quarantineId}/release`.replace(`{${"quarantineId"}}`, encodeURIComponent(String(requestParameters.quarantineId))),
75
81
  method: 'POST',
@@ -77,7 +83,7 @@ class RepositoriesApi extends runtime.BaseAPI {
77
83
  query: queryParameters,
78
84
  body: requestParameters.body,
79
85
  }, initOverrides);
80
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiComponentReleasedFromQuarantineDTOFromJSON)(jsonValue));
86
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentReleasedFromQuarantineDTOFromJSON)(jsonValue));
81
87
  });
82
88
  }
83
89
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiRoleMemberMappingListDTO } from '../models';
13
+ import type { ApiRoleMemberMappingListDTO } from '../models/index';
14
14
  export interface GetRoleMembershipsApplicationOrOrganizationRequest {
15
15
  ownerType: GetRoleMembershipsApplicationOrOrganizationOwnerTypeEnum;
16
16
  internalOwnerId: string;
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.RevokeRoleMembershipGlobalOrRepositoryContainerMemberTypeEnum = exports.RevokeRoleMembershipGlobalOrRepositoryContainerOwnerTypeEnum = exports.RevokeRoleMembershipApplicationOrOrganizationMemberTypeEnum = exports.RevokeRoleMembershipApplicationOrOrganizationOwnerTypeEnum = exports.GrantRoleMembershipGlobalOrRepositoryContainerMemberTypeEnum = exports.GrantRoleMembershipGlobalOrRepositoryContainerOwnerTypeEnum = exports.GrantRoleMembershipApplicationOrOrganizationMemberTypeEnum = exports.GrantRoleMembershipApplicationOrOrganizationOwnerTypeEnum = exports.GetRoleMembershipsGlobalOrRepositoryContainerOwnerTypeEnum = exports.GetRoleMembershipsApplicationOrOrganizationOwnerTypeEnum = exports.RoleMembershipsApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const models_1 = require("../models");
27
+ const index_1 = require("../models/index");
28
28
  /**
29
29
  *
30
30
  */
@@ -41,13 +41,16 @@ class RoleMembershipsApi extends runtime.BaseAPI {
41
41
  }
42
42
  const queryParameters = {};
43
43
  const headerParameters = {};
44
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
45
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
46
+ }
44
47
  const response = yield this.request({
45
48
  path: `/api/v2/roleMemberships/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
46
49
  method: 'GET',
47
50
  headers: headerParameters,
48
51
  query: queryParameters,
49
52
  }, initOverrides);
50
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiRoleMemberMappingListDTOFromJSON)(jsonValue));
53
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiRoleMemberMappingListDTOFromJSON)(jsonValue));
51
54
  });
52
55
  }
53
56
  /**
@@ -67,13 +70,16 @@ class RoleMembershipsApi extends runtime.BaseAPI {
67
70
  }
68
71
  const queryParameters = {};
69
72
  const headerParameters = {};
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/roleMemberships/{ownerType}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))),
72
78
  method: 'GET',
73
79
  headers: headerParameters,
74
80
  query: queryParameters,
75
81
  }, initOverrides);
76
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiRoleMemberMappingListDTOFromJSON)(jsonValue));
82
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiRoleMemberMappingListDTOFromJSON)(jsonValue));
77
83
  });
78
84
  }
79
85
  /**
@@ -105,6 +111,9 @@ class RoleMembershipsApi extends runtime.BaseAPI {
105
111
  }
106
112
  const queryParameters = {};
107
113
  const headerParameters = {};
114
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
115
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
116
+ }
108
117
  const response = yield this.request({
109
118
  path: `/api/v2/roleMemberships/{ownerType}/{internalOwnerId}/role/{roleId}/{memberType}/{memberName}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"memberType"}}`, encodeURIComponent(String(requestParameters.memberType))).replace(`{${"memberName"}}`, encodeURIComponent(String(requestParameters.memberName))),
110
119
  method: 'PUT',
@@ -139,6 +148,9 @@ class RoleMembershipsApi extends runtime.BaseAPI {
139
148
  }
140
149
  const queryParameters = {};
141
150
  const headerParameters = {};
151
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
152
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
153
+ }
142
154
  const response = yield this.request({
143
155
  path: `/api/v2/roleMemberships/{ownerType}/role/{roleId}/{memberType}/{memberName}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"memberType"}}`, encodeURIComponent(String(requestParameters.memberType))).replace(`{${"memberName"}}`, encodeURIComponent(String(requestParameters.memberName))),
144
156
  method: 'PUT',
@@ -176,6 +188,9 @@ class RoleMembershipsApi extends runtime.BaseAPI {
176
188
  }
177
189
  const queryParameters = {};
178
190
  const headerParameters = {};
191
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
192
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
193
+ }
179
194
  const response = yield this.request({
180
195
  path: `/api/v2/roleMemberships/{ownerType}/{internalOwnerId}/role/{roleId}/{memberType}/{memberName}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"memberType"}}`, encodeURIComponent(String(requestParameters.memberType))).replace(`{${"memberName"}}`, encodeURIComponent(String(requestParameters.memberName))),
181
196
  method: 'DELETE',
@@ -210,6 +225,9 @@ class RoleMembershipsApi extends runtime.BaseAPI {
210
225
  }
211
226
  const queryParameters = {};
212
227
  const headerParameters = {};
228
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
229
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
230
+ }
213
231
  const response = yield this.request({
214
232
  path: `/api/v2/roleMemberships/{ownerType}/role/{roleId}/{memberType}/{memberName}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"memberType"}}`, encodeURIComponent(String(requestParameters.memberType))).replace(`{${"memberName"}}`, encodeURIComponent(String(requestParameters.memberName))),
215
233
  method: 'DELETE',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiRoleListDTO } from '../models';
13
+ import type { ApiRoleListDTO } from '../models/index';
14
14
  /**
15
15
  * RolesApi - interface
16
16
  *
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.RolesApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const models_1 = require("../models");
27
+ const index_1 = require("../models/index");
28
28
  /**
29
29
  *
30
30
  */
@@ -35,13 +35,16 @@ class RolesApi extends runtime.BaseAPI {
35
35
  return __awaiter(this, void 0, void 0, function* () {
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/roles`,
40
43
  method: 'GET',
41
44
  headers: headerParameters,
42
45
  query: queryParameters,
43
46
  }, initOverrides);
44
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiRoleListDTOFromJSON)(jsonValue));
47
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiRoleListDTOFromJSON)(jsonValue));
45
48
  });
46
49
  }
47
50
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiThirdPartyScanResultDTO } from '../models';
13
+ import type { ApiThirdPartyScanResultDTO } from '../models/index';
14
14
  export interface GetScanStatusRequest {
15
15
  applicationId: string;
16
16
  scanRequestId: string;
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ScanApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const models_1 = require("../models");
27
+ const index_1 = require("../models/index");
28
28
  /**
29
29
  *
30
30
  */
@@ -41,13 +41,16 @@ class ScanApi extends runtime.BaseAPI {
41
41
  }
42
42
  const queryParameters = {};
43
43
  const headerParameters = {};
44
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
45
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
46
+ }
44
47
  const response = yield this.request({
45
48
  path: `/api/v2/scan/applications/{applicationId}/status/{scanRequestId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"scanRequestId"}}`, encodeURIComponent(String(requestParameters.scanRequestId))),
46
49
  method: 'GET',
47
50
  headers: headerParameters,
48
51
  query: queryParameters,
49
52
  }, initOverrides);
50
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiThirdPartyScanResultDTOFromJSON)(jsonValue));
53
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiThirdPartyScanResultDTOFromJSON)(jsonValue));
51
54
  });
52
55
  }
53
56
  /**
@@ -74,6 +77,9 @@ class ScanApi extends runtime.BaseAPI {
74
77
  }
75
78
  const headerParameters = {};
76
79
  headerParameters['Content-Type'] = 'application/xml';
80
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
81
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
82
+ }
77
83
  const response = yield this.request({
78
84
  path: `/api/v2/scan/applications/{applicationId}/sources/{source}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"source"}}`, encodeURIComponent(String(requestParameters.source))),
79
85
  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 { ApiSearchResultsDTOV2, ComponentIdentifier, SearchResultDTO } from '../models';
13
+ import type { ApiSearchResultsDTOV2, ComponentIdentifier, SearchResultDTO } from '../models/index';
14
14
  export interface GetExportResultsRequest {
15
15
  query?: string;
16
16
  allComponents?: boolean;
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.SearchApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const models_1 = require("../models");
27
+ const index_1 = require("../models/index");
28
28
  /**
29
29
  *
30
30
  */
@@ -35,6 +35,9 @@ class SearchApi extends runtime.BaseAPI {
35
35
  return __awaiter(this, void 0, void 0, function* () {
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/search/advanced/index`,
40
43
  method: 'POST',
@@ -63,6 +66,9 @@ class SearchApi extends runtime.BaseAPI {
63
66
  queryParameters['allComponents'] = requestParameters.allComponents;
64
67
  }
65
68
  const headerParameters = {};
69
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
70
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
71
+ }
66
72
  const response = yield this.request({
67
73
  path: `/api/v2/search/advanced/export/csv`,
68
74
  method: 'GET',
@@ -97,13 +103,16 @@ class SearchApi extends runtime.BaseAPI {
97
103
  queryParameters['packageUrl'] = requestParameters.packageUrl;
98
104
  }
99
105
  const headerParameters = {};
106
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
107
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
108
+ }
100
109
  const response = yield this.request({
101
110
  path: `/api/v2/search/component`,
102
111
  method: 'GET',
103
112
  headers: headerParameters,
104
113
  query: queryParameters,
105
114
  }, initOverrides);
106
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiSearchResultsDTOV2FromJSON)(jsonValue));
115
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSearchResultsDTOV2FromJSON)(jsonValue));
107
116
  });
108
117
  }
109
118
  /**
@@ -132,13 +141,16 @@ class SearchApi extends runtime.BaseAPI {
132
141
  queryParameters['allComponents'] = requestParameters.allComponents;
133
142
  }
134
143
  const headerParameters = {};
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/search/advanced`,
137
149
  method: 'GET',
138
150
  headers: headerParameters,
139
151
  query: queryParameters,
140
152
  }, initOverrides);
141
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SearchResultDTOFromJSON)(jsonValue));
153
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SearchResultDTOFromJSON)(jsonValue));
142
154
  });
143
155
  }
144
156
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiSecurityVulnerabilityOverrideResponseDTOV2 } from '../models';
13
+ import type { ApiSecurityVulnerabilityOverrideResponseDTOV2 } from '../models/index';
14
14
  export interface GetSecurityVulnerabilityOverridesRequest {
15
15
  refId?: string;
16
16
  componentPurl?: string;
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.SecurityOverridesApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const models_1 = require("../models");
27
+ const index_1 = require("../models/index");
28
28
  /**
29
29
  *
30
30
  */
@@ -44,13 +44,16 @@ class SecurityOverridesApi extends runtime.BaseAPI {
44
44
  queryParameters['ownerId'] = requestParameters.ownerId;
45
45
  }
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/securityOverrides`,
49
52
  method: 'GET',
50
53
  headers: headerParameters,
51
54
  query: queryParameters,
52
55
  }, initOverrides);
53
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiSecurityVulnerabilityOverrideResponseDTOV2FromJSON)(jsonValue));
56
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSecurityVulnerabilityOverrideResponseDTOV2FromJSON)(jsonValue));
54
57
  });
55
58
  }
56
59
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiSourceControlDTO } from '../models';
13
+ import type { ApiSourceControlDTO } from '../models/index';
14
14
  export interface AddOrUpdateSourceControlRequest {
15
15
  publicId?: string;
16
16
  repositoryUrl?: string;