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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
  2. package/dist/apis/ApplicationCategoriesApi.js +42 -12
  3. package/dist/apis/ApplicationsApi.d.ts +1 -1
  4. package/dist/apis/ApplicationsApi.js +53 -14
  5. package/dist/apis/ClaimApi.d.ts +1 -1
  6. package/dist/apis/ClaimApi.js +17 -5
  7. package/dist/apis/ComponentsApi.d.ts +1 -1
  8. package/dist/apis/ComponentsApi.js +21 -6
  9. package/dist/apis/CompositeSourceControlApi.d.ts +1 -1
  10. package/dist/apis/CompositeSourceControlApi.js +5 -2
  11. package/dist/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  12. package/dist/apis/CompositeSourceControlConfigValidatorApi.js +5 -2
  13. package/dist/apis/ConfigApi.js +15 -0
  14. package/dist/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  15. package/dist/apis/ConfigArtifactoryConnectionApi.js +35 -11
  16. package/dist/apis/ConfigCrowdApi.d.ts +1 -1
  17. package/dist/apis/ConfigCrowdApi.js +17 -5
  18. package/dist/apis/ConfigJIRAApi.d.ts +1 -1
  19. package/dist/apis/ConfigJIRAApi.js +11 -2
  20. package/dist/apis/ConfigMailApi.d.ts +1 -1
  21. package/dist/apis/ConfigMailApi.js +16 -4
  22. package/dist/apis/ConfigProxyServerApi.d.ts +1 -1
  23. package/dist/apis/ConfigProxyServerApi.js +12 -3
  24. package/dist/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  25. package/dist/apis/ConfigReverseProxyAuthenticationApi.js +12 -3
  26. package/dist/apis/ConfigSAMLApi.d.ts +1 -1
  27. package/dist/apis/ConfigSAMLApi.js +11 -2
  28. package/dist/apis/ConfigSourceControlApi.d.ts +1 -1
  29. package/dist/apis/ConfigSourceControlApi.js +11 -2
  30. package/dist/apis/CycloneDxApi.js +12 -0
  31. package/dist/apis/DataRetentionPoliciesApi.d.ts +1 -1
  32. package/dist/apis/DataRetentionPoliciesApi.js +9 -3
  33. package/dist/apis/EndpointsApi.js +3 -0
  34. package/dist/apis/EvaluationApi.d.ts +1 -1
  35. package/dist/apis/EvaluationApi.js +29 -11
  36. package/dist/apis/FirewallApi.d.ts +1 -1
  37. package/dist/apis/FirewallApi.js +30 -6
  38. package/dist/apis/LabelsApi.d.ts +1 -1
  39. package/dist/apis/LabelsApi.js +26 -8
  40. package/dist/apis/LicenseLegalMetadataApi.d.ts +1 -1
  41. package/dist/apis/LicenseLegalMetadataApi.js +48 -9
  42. package/dist/apis/OrganizationsApi.d.ts +1 -1
  43. package/dist/apis/OrganizationsApi.js +14 -5
  44. package/dist/apis/PoliciesApi.d.ts +1 -1
  45. package/dist/apis/PoliciesApi.js +5 -2
  46. package/dist/apis/PolicyViolationsApi.d.ts +1 -1
  47. package/dist/apis/PolicyViolationsApi.js +25 -7
  48. package/dist/apis/PolicyWaiverApi.js +3 -0
  49. package/dist/apis/PolicyWaiversApi.d.ts +1 -1
  50. package/dist/apis/PolicyWaiversApi.js +28 -7
  51. package/dist/apis/ReportsApi.d.ts +1 -1
  52. package/dist/apis/ReportsApi.js +29 -8
  53. package/dist/apis/RepositoriesApi.d.ts +1 -1
  54. package/dist/apis/RepositoriesApi.js +9 -3
  55. package/dist/apis/RoleMembershipsApi.d.ts +1 -1
  56. package/dist/apis/RoleMembershipsApi.js +21 -3
  57. package/dist/apis/RolesApi.d.ts +1 -1
  58. package/dist/apis/RolesApi.js +5 -2
  59. package/dist/apis/ScanApi.d.ts +1 -1
  60. package/dist/apis/ScanApi.js +8 -2
  61. package/dist/apis/SearchApi.d.ts +1 -1
  62. package/dist/apis/SearchApi.js +15 -3
  63. package/dist/apis/SecurityOverridesApi.d.ts +1 -1
  64. package/dist/apis/SecurityOverridesApi.js +5 -2
  65. package/dist/apis/SourceControlApi.d.ts +1 -1
  66. package/dist/apis/SourceControlApi.js +22 -7
  67. package/dist/apis/SourceControlMetricsApi.d.ts +1 -1
  68. package/dist/apis/SourceControlMetricsApi.js +5 -2
  69. package/dist/apis/TelemetryApi.js +3 -0
  70. package/dist/apis/UserTokensApi.d.ts +1 -1
  71. package/dist/apis/UserTokensApi.js +26 -5
  72. package/dist/apis/UsersApi.d.ts +1 -1
  73. package/dist/apis/UsersApi.js +21 -6
  74. package/dist/apis/VulnerabilitiesApi.d.ts +1 -1
  75. package/dist/apis/VulnerabilitiesApi.js +5 -2
  76. package/dist/esm/apis/ApplicationCategoriesApi.d.ts +1 -1
  77. package/dist/esm/apis/ApplicationCategoriesApi.js +31 -1
  78. package/dist/esm/apis/ApplicationsApi.d.ts +1 -1
  79. package/dist/esm/apis/ApplicationsApi.js +40 -1
  80. package/dist/esm/apis/ClaimApi.d.ts +1 -1
  81. package/dist/esm/apis/ClaimApi.js +13 -1
  82. package/dist/esm/apis/ComponentsApi.d.ts +1 -1
  83. package/dist/esm/apis/ComponentsApi.js +16 -1
  84. package/dist/esm/apis/CompositeSourceControlApi.d.ts +1 -1
  85. package/dist/esm/apis/CompositeSourceControlApi.js +4 -1
  86. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  87. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.js +4 -1
  88. package/dist/esm/apis/ConfigApi.js +15 -0
  89. package/dist/esm/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  90. package/dist/esm/apis/ConfigArtifactoryConnectionApi.js +25 -1
  91. package/dist/esm/apis/ConfigCrowdApi.d.ts +1 -1
  92. package/dist/esm/apis/ConfigCrowdApi.js +13 -1
  93. package/dist/esm/apis/ConfigJIRAApi.d.ts +1 -1
  94. package/dist/esm/apis/ConfigJIRAApi.js +10 -1
  95. package/dist/esm/apis/ConfigMailApi.d.ts +1 -1
  96. package/dist/esm/apis/ConfigMailApi.js +13 -1
  97. package/dist/esm/apis/ConfigProxyServerApi.d.ts +1 -1
  98. package/dist/esm/apis/ConfigProxyServerApi.js +10 -1
  99. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  100. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.js +10 -1
  101. package/dist/esm/apis/ConfigSAMLApi.d.ts +1 -1
  102. package/dist/esm/apis/ConfigSAMLApi.js +10 -1
  103. package/dist/esm/apis/ConfigSourceControlApi.d.ts +1 -1
  104. package/dist/esm/apis/ConfigSourceControlApi.js +10 -1
  105. package/dist/esm/apis/CycloneDxApi.js +12 -0
  106. package/dist/esm/apis/DataRetentionPoliciesApi.d.ts +1 -1
  107. package/dist/esm/apis/DataRetentionPoliciesApi.js +7 -1
  108. package/dist/esm/apis/EndpointsApi.js +3 -0
  109. package/dist/esm/apis/EvaluationApi.d.ts +1 -1
  110. package/dist/esm/apis/EvaluationApi.js +19 -1
  111. package/dist/esm/apis/FirewallApi.d.ts +1 -1
  112. package/dist/esm/apis/FirewallApi.js +25 -1
  113. package/dist/esm/apis/LabelsApi.d.ts +1 -1
  114. package/dist/esm/apis/LabelsApi.js +19 -1
  115. package/dist/esm/apis/LicenseLegalMetadataApi.d.ts +1 -1
  116. package/dist/esm/apis/LicenseLegalMetadataApi.js +40 -1
  117. package/dist/esm/apis/OrganizationsApi.d.ts +1 -1
  118. package/dist/esm/apis/OrganizationsApi.js +10 -1
  119. package/dist/esm/apis/PoliciesApi.d.ts +1 -1
  120. package/dist/esm/apis/PoliciesApi.js +4 -1
  121. package/dist/esm/apis/PolicyViolationsApi.d.ts +1 -1
  122. package/dist/esm/apis/PolicyViolationsApi.js +19 -1
  123. package/dist/esm/apis/PolicyWaiverApi.js +3 -0
  124. package/dist/esm/apis/PolicyWaiversApi.d.ts +1 -1
  125. package/dist/esm/apis/PolicyWaiversApi.js +22 -1
  126. package/dist/esm/apis/ReportsApi.d.ts +1 -1
  127. package/dist/esm/apis/ReportsApi.js +22 -1
  128. package/dist/esm/apis/RepositoriesApi.d.ts +1 -1
  129. package/dist/esm/apis/RepositoriesApi.js +7 -1
  130. package/dist/esm/apis/RoleMembershipsApi.d.ts +1 -1
  131. package/dist/esm/apis/RoleMembershipsApi.js +19 -1
  132. package/dist/esm/apis/RolesApi.d.ts +1 -1
  133. package/dist/esm/apis/RolesApi.js +4 -1
  134. package/dist/esm/apis/ScanApi.d.ts +1 -1
  135. package/dist/esm/apis/ScanApi.js +7 -1
  136. package/dist/esm/apis/SearchApi.d.ts +1 -1
  137. package/dist/esm/apis/SearchApi.js +13 -1
  138. package/dist/esm/apis/SecurityOverridesApi.d.ts +1 -1
  139. package/dist/esm/apis/SecurityOverridesApi.js +4 -1
  140. package/dist/esm/apis/SourceControlApi.d.ts +1 -1
  141. package/dist/esm/apis/SourceControlApi.js +16 -1
  142. package/dist/esm/apis/SourceControlMetricsApi.d.ts +1 -1
  143. package/dist/esm/apis/SourceControlMetricsApi.js +4 -1
  144. package/dist/esm/apis/TelemetryApi.js +3 -0
  145. package/dist/esm/apis/UserTokensApi.d.ts +1 -1
  146. package/dist/esm/apis/UserTokensApi.js +22 -1
  147. package/dist/esm/apis/UsersApi.d.ts +1 -1
  148. package/dist/esm/apis/UsersApi.js +16 -1
  149. package/dist/esm/apis/VulnerabilitiesApi.d.ts +1 -1
  150. package/dist/esm/apis/VulnerabilitiesApi.js +4 -1
  151. package/dist/esm/index.d.ts +2 -2
  152. package/dist/esm/index.js +2 -2
  153. package/dist/esm/runtime.js +13 -5
  154. package/dist/index.d.ts +2 -2
  155. package/dist/index.js +2 -2
  156. package/dist/runtime.js +13 -5
  157. package/package.json +1 -1
  158. package/src/apis/ApplicationCategoriesApi.ts +32 -2
  159. package/src/apis/ApplicationsApi.ts +41 -2
  160. package/src/apis/ClaimApi.ts +14 -2
  161. package/src/apis/ComponentsApi.ts +17 -2
  162. package/src/apis/CompositeSourceControlApi.ts +5 -2
  163. package/src/apis/CompositeSourceControlConfigValidatorApi.ts +5 -2
  164. package/src/apis/ConfigApi.ts +15 -0
  165. package/src/apis/ConfigArtifactoryConnectionApi.ts +26 -2
  166. package/src/apis/ConfigCrowdApi.ts +14 -2
  167. package/src/apis/ConfigJIRAApi.ts +11 -2
  168. package/src/apis/ConfigMailApi.ts +14 -2
  169. package/src/apis/ConfigProxyServerApi.ts +11 -2
  170. package/src/apis/ConfigReverseProxyAuthenticationApi.ts +11 -2
  171. package/src/apis/ConfigSAMLApi.ts +11 -2
  172. package/src/apis/ConfigSourceControlApi.ts +11 -2
  173. package/src/apis/CycloneDxApi.ts +12 -0
  174. package/src/apis/DataRetentionPoliciesApi.ts +8 -2
  175. package/src/apis/EndpointsApi.ts +3 -0
  176. package/src/apis/EvaluationApi.ts +20 -2
  177. package/src/apis/FirewallApi.ts +26 -2
  178. package/src/apis/LabelsApi.ts +20 -2
  179. package/src/apis/LicenseLegalMetadataApi.ts +41 -2
  180. package/src/apis/OrganizationsApi.ts +11 -2
  181. package/src/apis/PoliciesApi.ts +5 -2
  182. package/src/apis/PolicyViolationsApi.ts +20 -2
  183. package/src/apis/PolicyWaiverApi.ts +3 -0
  184. package/src/apis/PolicyWaiversApi.ts +23 -2
  185. package/src/apis/ReportsApi.ts +23 -2
  186. package/src/apis/RepositoriesApi.ts +8 -2
  187. package/src/apis/RoleMembershipsApi.ts +20 -2
  188. package/src/apis/RolesApi.ts +5 -2
  189. package/src/apis/ScanApi.ts +8 -2
  190. package/src/apis/SearchApi.ts +14 -2
  191. package/src/apis/SecurityOverridesApi.ts +5 -2
  192. package/src/apis/SourceControlApi.ts +17 -2
  193. package/src/apis/SourceControlMetricsApi.ts +5 -2
  194. package/src/apis/TelemetryApi.ts +3 -0
  195. package/src/apis/UserTokensApi.ts +23 -2
  196. package/src/apis/UsersApi.ts +17 -2
  197. package/src/apis/VulnerabilitiesApi.ts +5 -2
  198. package/src/index.ts +2 -2
  199. package/src/runtime.ts +12 -6
@@ -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 { ApiApplicationViolationListDTOV2FromJSON, ApiComponentTransitivePolicyViolationsDTOFromJSON, ApiCrossStageViolationDTOV2FromJSON, ApiPolicyWaiversApplicableToViolationDTOFromJSON, } from '../models';
24
+ import { ApiApplicationViolationListDTOV2FromJSON, ApiComponentTransitivePolicyViolationsDTOFromJSON, ApiCrossStageViolationDTOV2FromJSON, ApiPolicyWaiversApplicableToViolationDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -35,6 +35,9 @@ export class PolicyViolationsApi 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/policyViolations/{violationId}/applicableWaivers`.replace(`{${"violationId"}}`, encodeURIComponent(String(requestParameters.violationId))),
40
43
  method: 'GET',
@@ -61,6 +64,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI {
61
64
  queryParameters['constituentId'] = requestParameters.constituentId;
62
65
  }
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/policyViolations/crossStage`,
66
72
  method: 'GET',
@@ -87,6 +93,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI {
87
93
  }
88
94
  const queryParameters = {};
89
95
  const headerParameters = {};
96
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
97
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
98
+ }
90
99
  const response = yield this.request({
91
100
  path: `/api/v2/policyViolations/crossStage/{violationId}`.replace(`{${"violationId"}}`, encodeURIComponent(String(requestParameters.violationId))),
92
101
  method: 'GET',
@@ -113,6 +122,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI {
113
122
  queryParameters['p'] = requestParameters.p;
114
123
  }
115
124
  const headerParameters = {};
125
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
126
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
127
+ }
116
128
  const response = yield this.request({
117
129
  path: `/api/v2/policyViolations`,
118
130
  method: 'GET',
@@ -154,6 +166,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI {
154
166
  queryParameters['hash'] = requestParameters.hash;
155
167
  }
156
168
  const headerParameters = {};
169
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
170
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
171
+ }
157
172
  const response = yield this.request({
158
173
  path: `/api/v2/policyViolations/transitive/{ownerType}/{ownerId}/{scanId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
159
174
  method: 'GET',
@@ -195,6 +210,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI {
195
210
  queryParameters['hash'] = requestParameters.hash;
196
211
  }
197
212
  const headerParameters = {};
213
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
214
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
215
+ }
198
216
  const response = yield this.request({
199
217
  path: `/api/v2/policyViolations/transitive/{ownerType}/{ownerId}/stages/{stageId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
200
218
  method: 'GET',
@@ -38,6 +38,9 @@ export class PolicyWaiverApi extends runtime.BaseAPI {
38
38
  const queryParameters = {};
39
39
  const headerParameters = {};
40
40
  headerParameters['Content-Type'] = 'text/plain';
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/policyWaiver/{policyViolationId}/{ownerType}`.replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters.policyViolationId))).replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))),
43
46
  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 { ApiComponentPolicyWaiversDTO, ApiPolicyWaiverDTO, ApiWaiverOptionsDTO, ComponentIdentifier } from '../models';
13
+ import type { ApiComponentPolicyWaiversDTO, ApiPolicyWaiverDTO, ApiWaiverOptionsDTO, ComponentIdentifier } from '../models/index';
14
14
  export interface AddPolicyWaiverByPolicyViolationIdRequest {
15
15
  ownerType: AddPolicyWaiverByPolicyViolationIdOwnerTypeEnum;
16
16
  ownerId: 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 { ApiComponentPolicyWaiversDTOFromJSON, ApiPolicyWaiverDTOFromJSON, ApiWaiverOptionsDTOToJSON, } from '../models';
24
+ import { ApiComponentPolicyWaiversDTOFromJSON, ApiPolicyWaiverDTOFromJSON, ApiWaiverOptionsDTOToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -42,6 +42,9 @@ export class PolicyWaiversApi 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/policyWaivers/{ownerType}/{ownerId}/{policyViolationId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters.policyViolationId))),
47
50
  method: 'POST',
@@ -84,6 +87,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
84
87
  }
85
88
  const headerParameters = {};
86
89
  headerParameters['Content-Type'] = 'application/json';
90
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
91
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
92
+ }
87
93
  const response = yield this.request({
88
94
  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))),
89
95
  method: 'POST',
@@ -126,6 +132,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
126
132
  }
127
133
  const headerParameters = {};
128
134
  headerParameters['Content-Type'] = 'application/json';
135
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
136
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
137
+ }
129
138
  const response = yield this.request({
130
139
  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))),
131
140
  method: 'POST',
@@ -158,6 +167,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
158
167
  }
159
168
  const queryParameters = {};
160
169
  const headerParameters = {};
170
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
171
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
172
+ }
161
173
  const response = yield this.request({
162
174
  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))),
163
175
  method: 'DELETE',
@@ -189,6 +201,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
189
201
  }
190
202
  const queryParameters = {};
191
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
+ }
192
207
  const response = yield this.request({
193
208
  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))),
194
209
  method: 'GET',
@@ -218,6 +233,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
218
233
  }
219
234
  const queryParameters = {};
220
235
  const headerParameters = {};
236
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
237
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
238
+ }
221
239
  const response = yield this.request({
222
240
  path: `/api/v2/policyWaivers/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
223
241
  method: 'GET',
@@ -259,6 +277,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
259
277
  queryParameters['hash'] = requestParameters.hash;
260
278
  }
261
279
  const headerParameters = {};
280
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
281
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
282
+ }
262
283
  const response = yield this.request({
263
284
  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))),
264
285
  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 { 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
  }
@@ -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 { ApiApplicationReportDTOV2FromJSON, ApiComponentWaiversDTOFromJSON, ApiComponentsInQuarantineDTOFromJSON, ApiMetricsReportingQueryDTOV2ToJSON, ApiReportHistoryDTOFromJSON, ApiStaleWaiversResponseDTOFromJSON, } from '../models';
24
+ import { ApiApplicationReportDTOV2FromJSON, ApiComponentWaiversDTOFromJSON, ApiComponentsInQuarantineDTOFromJSON, ApiMetricsReportingQueryDTOV2ToJSON, ApiReportHistoryDTOFromJSON, ApiStaleWaiversResponseDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class ReportsApi 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/reports/applications`,
37
40
  method: 'GET',
@@ -58,6 +61,9 @@ export class ReportsApi extends runtime.BaseAPI {
58
61
  }
59
62
  const queryParameters = {};
60
63
  const headerParameters = {};
64
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
65
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
66
+ }
61
67
  const response = yield this.request({
62
68
  path: `/api/v2/reports/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
63
69
  method: 'GET',
@@ -81,6 +87,9 @@ export class ReportsApi extends runtime.BaseAPI {
81
87
  return __awaiter(this, void 0, void 0, function* () {
82
88
  const queryParameters = {};
83
89
  const headerParameters = {};
90
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
91
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
92
+ }
84
93
  const response = yield this.request({
85
94
  path: `/api/v2/reports/components/quarantined`,
86
95
  method: 'GET',
@@ -107,6 +116,9 @@ export class ReportsApi extends runtime.BaseAPI {
107
116
  queryParameters['format'] = requestParameters.format;
108
117
  }
109
118
  const headerParameters = {};
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/reports/components/waivers`,
112
124
  method: 'GET',
@@ -131,6 +143,9 @@ export class ReportsApi extends runtime.BaseAPI {
131
143
  const queryParameters = {};
132
144
  const headerParameters = {};
133
145
  headerParameters['Content-Type'] = 'application/json';
146
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
147
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
148
+ }
134
149
  const response = yield this.request({
135
150
  path: `/api/v2/reports/metrics`,
136
151
  method: 'POST',
@@ -157,6 +172,9 @@ export class ReportsApi extends runtime.BaseAPI {
157
172
  }
158
173
  const queryParameters = {};
159
174
  const headerParameters = {};
175
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
176
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
177
+ }
160
178
  const response = yield this.request({
161
179
  path: `/api/v2/reports/applications/{applicationId}/history`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
162
180
  method: 'GET',
@@ -180,6 +198,9 @@ export class ReportsApi extends runtime.BaseAPI {
180
198
  return __awaiter(this, void 0, void 0, function* () {
181
199
  const queryParameters = {};
182
200
  const headerParameters = {};
201
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
202
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
203
+ }
183
204
  const response = yield this.request({
184
205
  path: `/api/v2/reports/waivers/stale`,
185
206
  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 { 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;
@@ -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 { ApiComponentReleasedFromQuarantineDTOFromJSON, ApiRepositoryPathResponseDTOFromJSON, } from '../models';
24
+ import { ApiComponentReleasedFromQuarantineDTOFromJSON, ApiRepositoryPathResponseDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -39,6 +39,9 @@ export class RepositoriesApi 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/repositories/{repositoryManagerInstanceId}/{repositoryPublicId}/components/quarantined/pathnames`.replace(`{${"repositoryManagerInstanceId"}}`, encodeURIComponent(String(requestParameters.repositoryManagerInstanceId))).replace(`{${"repositoryPublicId"}}`, encodeURIComponent(String(requestParameters.repositoryPublicId))),
44
47
  method: 'POST',
@@ -67,6 +70,9 @@ export class RepositoriesApi extends runtime.BaseAPI {
67
70
  const queryParameters = {};
68
71
  const headerParameters = {};
69
72
  headerParameters['Content-Type'] = 'text/plain';
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/repositories/quarantine/{quarantineId}/release`.replace(`{${"quarantineId"}}`, encodeURIComponent(String(requestParameters.quarantineId))),
72
78
  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 { ApiRoleMemberMappingListDTO } from '../models';
13
+ import type { ApiRoleMemberMappingListDTO } from '../models/index';
14
14
  export interface GetRoleMembershipsApplicationOrOrganizationRequest {
15
15
  ownerType: GetRoleMembershipsApplicationOrOrganizationOwnerTypeEnum;
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 { ApiRoleMemberMappingListDTOFromJSON, } from '../models';
24
+ import { ApiRoleMemberMappingListDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -38,6 +38,9 @@ export class RoleMembershipsApi 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/roleMemberships/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
43
46
  method: 'GET',
@@ -64,6 +67,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI {
64
67
  }
65
68
  const queryParameters = {};
66
69
  const headerParameters = {};
70
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
71
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
72
+ }
67
73
  const response = yield this.request({
68
74
  path: `/api/v2/roleMemberships/{ownerType}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))),
69
75
  method: 'GET',
@@ -102,6 +108,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI {
102
108
  }
103
109
  const queryParameters = {};
104
110
  const headerParameters = {};
111
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
112
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
113
+ }
105
114
  const response = yield this.request({
106
115
  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))),
107
116
  method: 'PUT',
@@ -136,6 +145,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI {
136
145
  }
137
146
  const queryParameters = {};
138
147
  const headerParameters = {};
148
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
149
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
150
+ }
139
151
  const response = yield this.request({
140
152
  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))),
141
153
  method: 'PUT',
@@ -173,6 +185,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI {
173
185
  }
174
186
  const queryParameters = {};
175
187
  const headerParameters = {};
188
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
189
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
190
+ }
176
191
  const response = yield this.request({
177
192
  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))),
178
193
  method: 'DELETE',
@@ -207,6 +222,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI {
207
222
  }
208
223
  const queryParameters = {};
209
224
  const headerParameters = {};
225
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
226
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
227
+ }
210
228
  const response = yield this.request({
211
229
  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))),
212
230
  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
  *
@@ -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 { ApiRoleListDTOFromJSON, } from '../models';
24
+ import { ApiRoleListDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class RolesApi 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/roles`,
37
40
  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 { ApiThirdPartyScanResultDTO } from '../models';
13
+ import type { ApiThirdPartyScanResultDTO } from '../models/index';
14
14
  export interface GetScanStatusRequest {
15
15
  applicationId: string;
16
16
  scanRequestId: 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 { ApiThirdPartyScanResultDTOFromJSON, } from '../models';
24
+ import { ApiThirdPartyScanResultDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -38,6 +38,9 @@ export class ScanApi 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/scan/applications/{applicationId}/status/{scanRequestId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"scanRequestId"}}`, encodeURIComponent(String(requestParameters.scanRequestId))),
43
46
  method: 'GET',
@@ -71,6 +74,9 @@ export class ScanApi extends runtime.BaseAPI {
71
74
  }
72
75
  const headerParameters = {};
73
76
  headerParameters['Content-Type'] = 'application/xml';
77
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
78
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
79
+ }
74
80
  const response = yield this.request({
75
81
  path: `/api/v2/scan/applications/{applicationId}/sources/{source}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"source"}}`, encodeURIComponent(String(requestParameters.source))),
76
82
  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;
@@ -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 { ApiSearchResultsDTOV2FromJSON, SearchResultDTOFromJSON, } from '../models';
24
+ import { ApiSearchResultsDTOV2FromJSON, SearchResultDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class SearchApi 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/search/advanced/index`,
37
40
  method: 'POST',
@@ -60,6 +63,9 @@ export class SearchApi extends runtime.BaseAPI {
60
63
  queryParameters['allComponents'] = requestParameters.allComponents;
61
64
  }
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/search/advanced/export/csv`,
65
71
  method: 'GET',
@@ -94,6 +100,9 @@ export class SearchApi extends runtime.BaseAPI {
94
100
  queryParameters['packageUrl'] = requestParameters.packageUrl;
95
101
  }
96
102
  const headerParameters = {};
103
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
104
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
105
+ }
97
106
  const response = yield this.request({
98
107
  path: `/api/v2/search/component`,
99
108
  method: 'GET',
@@ -129,6 +138,9 @@ export class SearchApi extends runtime.BaseAPI {
129
138
  queryParameters['allComponents'] = requestParameters.allComponents;
130
139
  }
131
140
  const headerParameters = {};
141
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
142
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
143
+ }
132
144
  const response = yield this.request({
133
145
  path: `/api/v2/search/advanced`,
134
146
  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 { ApiSecurityVulnerabilityOverrideResponseDTOV2 } from '../models';
13
+ import type { ApiSecurityVulnerabilityOverrideResponseDTOV2 } from '../models/index';
14
14
  export interface GetSecurityVulnerabilityOverridesRequest {
15
15
  refId?: string;
16
16
  componentPurl?: 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 { ApiSecurityVulnerabilityOverrideResponseDTOV2FromJSON, } from '../models';
24
+ import { ApiSecurityVulnerabilityOverrideResponseDTOV2FromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -41,6 +41,9 @@ export class SecurityOverridesApi extends runtime.BaseAPI {
41
41
  queryParameters['ownerId'] = requestParameters.ownerId;
42
42
  }
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/securityOverrides`,
46
49
  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 { ApiSourceControlDTO } from '../models';
13
+ import type { ApiSourceControlDTO } from '../models/index';
14
14
  export interface AddOrUpdateSourceControlRequest {
15
15
  publicId?: string;
16
16
  repositoryUrl?: 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 { ApiSourceControlDTOFromJSON, ApiSourceControlDTOToJSON, } from '../models';
24
+ import { ApiSourceControlDTOFromJSON, ApiSourceControlDTOToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -38,6 +38,9 @@ export class SourceControlApi extends runtime.BaseAPI {
38
38
  queryParameters['repositoryUrl'] = requestParameters.repositoryUrl;
39
39
  }
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/sourceControl`,
43
46
  method: 'POST',
@@ -68,6 +71,9 @@ export class SourceControlApi extends runtime.BaseAPI {
68
71
  const queryParameters = {};
69
72
  const headerParameters = {};
70
73
  headerParameters['Content-Type'] = 'application/json';
74
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
75
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
76
+ }
71
77
  const response = yield this.request({
72
78
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
73
79
  method: 'POST',
@@ -98,6 +104,9 @@ export class SourceControlApi extends runtime.BaseAPI {
98
104
  }
99
105
  const queryParameters = {};
100
106
  const headerParameters = {};
107
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
108
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
109
+ }
101
110
  const response = yield this.request({
102
111
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
103
112
  method: 'DELETE',
@@ -126,6 +135,9 @@ export class SourceControlApi extends runtime.BaseAPI {
126
135
  }
127
136
  const queryParameters = {};
128
137
  const headerParameters = {};
138
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
139
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
140
+ }
129
141
  const response = yield this.request({
130
142
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
131
143
  method: 'GET',
@@ -156,6 +168,9 @@ export class SourceControlApi extends runtime.BaseAPI {
156
168
  const queryParameters = {};
157
169
  const headerParameters = {};
158
170
  headerParameters['Content-Type'] = 'application/json';
171
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
172
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
173
+ }
159
174
  const response = yield this.request({
160
175
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
161
176
  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 { ApiPullRequestResults } from '../models';
13
+ import type { ApiPullRequestResults } from '../models/index';
14
14
  export interface GetSourceControlRequest {
15
15
  ownerType: GetSourceControlOwnerTypeEnum;
16
16
  internalOwnerId: string;