@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
@@ -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;
@@ -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.UpdateSourceControlOwnerTypeEnum = exports.GetSourceControl1OwnerTypeEnum = exports.DeleteSourceControlOwnerTypeEnum = exports.AddSourceControlOwnerTypeEnum = exports.SourceControlApi = 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 SourceControlApi extends runtime.BaseAPI {
41
41
  queryParameters['repositoryUrl'] = requestParameters.repositoryUrl;
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/sourceControl`,
46
49
  method: 'POST',
47
50
  headers: headerParameters,
48
51
  query: queryParameters,
49
52
  }, initOverrides);
50
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiSourceControlDTOFromJSON)(jsonValue));
53
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSourceControlDTOFromJSON)(jsonValue));
51
54
  });
52
55
  }
53
56
  /**
@@ -71,14 +74,17 @@ class SourceControlApi extends runtime.BaseAPI {
71
74
  const queryParameters = {};
72
75
  const headerParameters = {};
73
76
  headerParameters['Content-Type'] = 'application/json';
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/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
76
82
  method: 'POST',
77
83
  headers: headerParameters,
78
84
  query: queryParameters,
79
- body: (0, models_1.ApiSourceControlDTOToJSON)(requestParameters.apiSourceControlDTO),
85
+ body: (0, index_1.ApiSourceControlDTOToJSON)(requestParameters.apiSourceControlDTO),
80
86
  }, initOverrides);
81
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiSourceControlDTOFromJSON)(jsonValue));
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSourceControlDTOFromJSON)(jsonValue));
82
88
  });
83
89
  }
84
90
  /**
@@ -101,6 +107,9 @@ class SourceControlApi extends runtime.BaseAPI {
101
107
  }
102
108
  const queryParameters = {};
103
109
  const headerParameters = {};
110
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
111
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
112
+ }
104
113
  const response = yield this.request({
105
114
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
106
115
  method: 'DELETE',
@@ -129,13 +138,16 @@ class SourceControlApi extends runtime.BaseAPI {
129
138
  }
130
139
  const queryParameters = {};
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/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
134
146
  method: 'GET',
135
147
  headers: headerParameters,
136
148
  query: queryParameters,
137
149
  }, initOverrides);
138
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiSourceControlDTOFromJSON)(jsonValue));
150
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSourceControlDTOFromJSON)(jsonValue));
139
151
  });
140
152
  }
141
153
  /**
@@ -159,14 +171,17 @@ class SourceControlApi extends runtime.BaseAPI {
159
171
  const queryParameters = {};
160
172
  const headerParameters = {};
161
173
  headerParameters['Content-Type'] = 'application/json';
174
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
175
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
176
+ }
162
177
  const response = yield this.request({
163
178
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
164
179
  method: 'PUT',
165
180
  headers: headerParameters,
166
181
  query: queryParameters,
167
- body: (0, models_1.ApiSourceControlDTOToJSON)(requestParameters.apiSourceControlDTO),
182
+ body: (0, index_1.ApiSourceControlDTOToJSON)(requestParameters.apiSourceControlDTO),
168
183
  }, initOverrides);
169
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiSourceControlDTOFromJSON)(jsonValue));
184
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSourceControlDTOFromJSON)(jsonValue));
170
185
  });
171
186
  }
172
187
  /**
@@ -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;
@@ -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.GetSourceControlOwnerTypeEnum = exports.SourceControlMetricsApi = 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 SourceControlMetricsApi 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/sourceControlMetrics/{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.ApiPullRequestResultsFromJSON)(jsonValue));
53
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPullRequestResultsFromJSON)(jsonValue));
51
54
  });
52
55
  }
53
56
  /**
@@ -38,6 +38,9 @@ class TelemetryApi extends runtime.BaseAPI {
38
38
  if (requestParameters.userAgent !== undefined && requestParameters.userAgent !== null) {
39
39
  headerParameters['user-agent'] = String(requestParameters.userAgent);
40
40
  }
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/telemetry`,
43
46
  method: 'POST',