@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
@@ -37,6 +37,9 @@ export class CycloneDxApi extends runtime.BaseAPI {
37
37
  }
38
38
  const queryParameters = {};
39
39
  const headerParameters = {};
40
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
41
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
42
+ }
40
43
  const response = yield this.request({
41
44
  path: `/api/v2/cycloneDx/{applicationId}/reports/{reportId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"reportId"}}`, encodeURIComponent(String(requestParameters.reportId))),
42
45
  method: 'GET',
@@ -68,6 +71,9 @@ export class CycloneDxApi extends runtime.BaseAPI {
68
71
  }
69
72
  const queryParameters = {};
70
73
  const headerParameters = {};
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/cycloneDx/{cdxVersion}/{applicationId}/reports/{reportId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"reportId"}}`, encodeURIComponent(String(requestParameters.reportId))).replace(`{${"cdxVersion"}}`, encodeURIComponent(String(requestParameters.cdxVersion))),
73
79
  method: 'GET',
@@ -96,6 +102,9 @@ export class CycloneDxApi extends runtime.BaseAPI {
96
102
  }
97
103
  const queryParameters = {};
98
104
  const headerParameters = {};
105
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
106
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
107
+ }
99
108
  const response = yield this.request({
100
109
  path: `/api/v2/cycloneDx/{applicationId}/stages/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
101
110
  method: 'GET',
@@ -127,6 +136,9 @@ export class CycloneDxApi extends runtime.BaseAPI {
127
136
  }
128
137
  const queryParameters = {};
129
138
  const headerParameters = {};
139
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
140
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
141
+ }
130
142
  const response = yield this.request({
131
143
  path: `/api/v2/cycloneDx/{cdxVersion}/{applicationId}/stages/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))).replace(`{${"cdxVersion"}}`, encodeURIComponent(String(requestParameters.cdxVersion))),
132
144
  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 { ApiDataRetentionPoliciesDTO } from '../models';
13
+ import type { ApiDataRetentionPoliciesDTO } from '../models/index';
14
14
  export interface GetDataRetentionPoliciesRequest {
15
15
  organizationId: 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 { ApiDataRetentionPoliciesDTOFromJSON, ApiDataRetentionPoliciesDTOToJSON, } from '../models';
24
+ import { ApiDataRetentionPoliciesDTOFromJSON, ApiDataRetentionPoliciesDTOToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -35,6 +35,9 @@ export class DataRetentionPoliciesApi 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/dataRetentionPolicies/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
40
43
  method: 'GET',
@@ -62,6 +65,9 @@ export class DataRetentionPoliciesApi extends runtime.BaseAPI {
62
65
  const queryParameters = {};
63
66
  const headerParameters = {};
64
67
  headerParameters['Content-Type'] = 'application/json';
68
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
69
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
70
+ }
65
71
  const response = yield this.request({
66
72
  path: `/api/v2/dataRetentionPolicies/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
67
73
  method: 'PUT',
@@ -34,6 +34,9 @@ export class EndpointsApi extends runtime.BaseAPI {
34
34
  }
35
35
  const queryParameters = {};
36
36
  const headerParameters = {};
37
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
38
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
39
+ }
37
40
  const response = yield this.request({
38
41
  path: `/api/v2/endpoints/{apiType}`.replace(`{${"apiType"}}`, encodeURIComponent(String(requestParameters.apiType))),
39
42
  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 { ApiApplicationEvaluationResultDTOV2, ApiApplicationEvaluationStatusDTOV2, ApiComponentEvaluationRequestDTOV2, ApiComponentEvaluationResultDTOV2, ApiComponentEvaluationTicketDTOV2, ApiPromoteScanRequestDTOV2, ApiSourceControlEvaluationRequestDTO } from '../models';
13
+ import type { ApiApplicationEvaluationResultDTOV2, ApiApplicationEvaluationStatusDTOV2, ApiComponentEvaluationRequestDTOV2, ApiComponentEvaluationResultDTOV2, ApiComponentEvaluationTicketDTOV2, ApiPromoteScanRequestDTOV2, ApiSourceControlEvaluationRequestDTO } from '../models/index';
14
14
  export interface DeprecatedManifestEvaluationRequest {
15
15
  applicationId: string;
16
16
  apiSourceControlEvaluationRequestDTO?: ApiSourceControlEvaluationRequestDTO;
@@ -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 { ApiApplicationEvaluationResultDTOV2FromJSON, ApiApplicationEvaluationStatusDTOV2FromJSON, ApiComponentEvaluationRequestDTOV2ToJSON, ApiComponentEvaluationResultDTOV2FromJSON, ApiComponentEvaluationTicketDTOV2FromJSON, ApiPromoteScanRequestDTOV2ToJSON, ApiSourceControlEvaluationRequestDTOToJSON, } from '../models';
24
+ import { ApiApplicationEvaluationResultDTOV2FromJSON, ApiApplicationEvaluationStatusDTOV2FromJSON, ApiComponentEvaluationRequestDTOV2ToJSON, ApiComponentEvaluationResultDTOV2FromJSON, ApiComponentEvaluationTicketDTOV2FromJSON, ApiPromoteScanRequestDTOV2ToJSON, ApiSourceControlEvaluationRequestDTOToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -36,6 +36,9 @@ export class EvaluationApi extends runtime.BaseAPI {
36
36
  const queryParameters = {};
37
37
  const headerParameters = {};
38
38
  headerParameters['Content-Type'] = 'application/json';
39
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
40
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
41
+ }
39
42
  const response = yield this.request({
40
43
  path: `/api/v2/evaluation/applications/{applicationId}/manifestEvaluation`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
41
44
  method: 'POST',
@@ -64,6 +67,9 @@ export class EvaluationApi extends runtime.BaseAPI {
64
67
  const queryParameters = {};
65
68
  const headerParameters = {};
66
69
  headerParameters['Content-Type'] = 'application/json';
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/evaluation/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
69
75
  method: 'POST',
@@ -92,6 +98,9 @@ export class EvaluationApi extends runtime.BaseAPI {
92
98
  const queryParameters = {};
93
99
  const headerParameters = {};
94
100
  headerParameters['Content-Type'] = 'application/json';
101
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
102
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
103
+ }
95
104
  const response = yield this.request({
96
105
  path: `/api/v2/evaluation/applications/{applicationId}/sourceControlEvaluation`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
97
106
  method: 'POST',
@@ -122,6 +131,9 @@ export class EvaluationApi extends runtime.BaseAPI {
122
131
  }
123
132
  const queryParameters = {};
124
133
  const headerParameters = {};
134
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
135
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
136
+ }
125
137
  const response = yield this.request({
126
138
  path: `/api/v2/evaluation/applications/{applicationId}/status/{statusId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"statusId"}}`, encodeURIComponent(String(requestParameters.statusId))),
127
139
  method: 'GET',
@@ -151,6 +163,9 @@ export class EvaluationApi extends runtime.BaseAPI {
151
163
  }
152
164
  const queryParameters = {};
153
165
  const headerParameters = {};
166
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
167
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
168
+ }
154
169
  const response = yield this.request({
155
170
  path: `/api/v2/evaluation/applications/{applicationId}/results/{resultId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"resultId"}}`, encodeURIComponent(String(requestParameters.resultId))),
156
171
  method: 'GET',
@@ -178,6 +193,9 @@ export class EvaluationApi extends runtime.BaseAPI {
178
193
  const queryParameters = {};
179
194
  const headerParameters = {};
180
195
  headerParameters['Content-Type'] = 'application/json';
196
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
197
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
198
+ }
181
199
  const response = yield this.request({
182
200
  path: `/api/v2/evaluation/applications/{applicationId}/promoteScan`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
183
201
  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 { ApiFirewallQuarantineSummaryDTO, ApiFirewallReleaseQuarantineConfigDTO, ApiFirewallReleaseQuarantineSummaryDTO } from '../models';
13
+ import type { ApiFirewallQuarantineSummaryDTO, ApiFirewallReleaseQuarantineConfigDTO, ApiFirewallReleaseQuarantineSummaryDTO } from '../models/index';
14
14
  export interface GetQuarantineListRequest {
15
15
  page?: number;
16
16
  pageSize?: number;
@@ -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 { ApiFirewallQuarantineSummaryDTOFromJSON, ApiFirewallReleaseQuarantineConfigDTOFromJSON, ApiFirewallReleaseQuarantineConfigDTOToJSON, ApiFirewallReleaseQuarantineSummaryDTOFromJSON, } from '../models';
24
+ import { ApiFirewallQuarantineSummaryDTOFromJSON, ApiFirewallReleaseQuarantineConfigDTOFromJSON, ApiFirewallReleaseQuarantineConfigDTOToJSON, ApiFirewallReleaseQuarantineSummaryDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class FirewallApi 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/firewall/releaseQuarantine/configuration`,
37
40
  method: 'GET',
@@ -55,6 +58,9 @@ export class FirewallApi extends runtime.BaseAPI {
55
58
  return __awaiter(this, void 0, void 0, function* () {
56
59
  const queryParameters = {};
57
60
  const headerParameters = {};
61
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
62
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
63
+ }
58
64
  const response = yield this.request({
59
65
  path: `/api/v2/firewall/releaseQuarantine/summary`,
60
66
  method: 'GET',
@@ -93,6 +99,9 @@ export class FirewallApi extends runtime.BaseAPI {
93
99
  queryParameters['asc'] = requestParameters.asc;
94
100
  }
95
101
  const headerParameters = {};
102
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
103
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
104
+ }
96
105
  const response = yield this.request({
97
106
  path: `/api/v2/firewall/components/quarantined`,
98
107
  method: 'GET',
@@ -115,6 +124,9 @@ export class FirewallApi extends runtime.BaseAPI {
115
124
  return __awaiter(this, void 0, void 0, function* () {
116
125
  const queryParameters = {};
117
126
  const headerParameters = {};
127
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
128
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
129
+ }
118
130
  const response = yield this.request({
119
131
  path: `/api/v2/firewall/quarantine/summary`,
120
132
  method: 'GET',
@@ -138,6 +150,9 @@ export class FirewallApi extends runtime.BaseAPI {
138
150
  return __awaiter(this, void 0, void 0, function* () {
139
151
  const queryParameters = {};
140
152
  const headerParameters = {};
153
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
154
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
155
+ }
141
156
  const response = yield this.request({
142
157
  path: `/api/v2/firewall/quarantinedComponentView/configuration/anonymousAccess`,
143
158
  method: 'GET',
@@ -175,6 +190,9 @@ export class FirewallApi extends runtime.BaseAPI {
175
190
  queryParameters['asc'] = requestParameters.asc;
176
191
  }
177
192
  const headerParameters = {};
193
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
194
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
195
+ }
178
196
  const response = yield this.request({
179
197
  path: `/api/v2/firewall/components/autoReleasedFromQuarantine`,
180
198
  method: 'GET',
@@ -198,6 +216,9 @@ export class FirewallApi extends runtime.BaseAPI {
198
216
  const queryParameters = {};
199
217
  const headerParameters = {};
200
218
  headerParameters['Content-Type'] = 'application/json';
219
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
220
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
221
+ }
201
222
  const response = yield this.request({
202
223
  path: `/api/v2/firewall/releaseQuarantine/configuration`,
203
224
  method: 'PUT',
@@ -225,6 +246,9 @@ export class FirewallApi extends runtime.BaseAPI {
225
246
  }
226
247
  const queryParameters = {};
227
248
  const headerParameters = {};
249
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
250
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
251
+ }
228
252
  const response = yield this.request({
229
253
  path: `/api/v2/firewall/quarantinedComponentView/configuration/anonymousAccess/{enabled}`.replace(`{${"enabled"}}`, encodeURIComponent(String(requestParameters.enabled))),
230
254
  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 { ApiLabelDTO, ApplicableContext, ApplicableLabels } from '../models';
13
+ import type { ApiLabelDTO, ApplicableContext, ApplicableLabels } from '../models/index';
14
14
  export interface AddLabelRequest {
15
15
  ownerType: AddLabelOwnerTypeEnum;
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 { ApiLabelDTOFromJSON, ApiLabelDTOToJSON, ApplicableContextFromJSON, ApplicableLabelsFromJSON, } from '../models';
24
+ import { ApiLabelDTOFromJSON, ApiLabelDTOToJSON, ApplicableContextFromJSON, ApplicableLabelsFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -39,6 +39,9 @@ export class LabelsApi 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/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
44
47
  method: 'POST',
@@ -72,6 +75,9 @@ export class LabelsApi extends runtime.BaseAPI {
72
75
  }
73
76
  const queryParameters = {};
74
77
  const headerParameters = {};
78
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
79
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
80
+ }
75
81
  const response = yield this.request({
76
82
  path: `/api/v2/labels/{ownerType}/{ownerId}/{labelId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"labelId"}}`, encodeURIComponent(String(requestParameters.labelId))),
77
83
  method: 'DELETE',
@@ -103,6 +109,9 @@ export class LabelsApi extends runtime.BaseAPI {
103
109
  }
104
110
  const queryParameters = {};
105
111
  const headerParameters = {};
112
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
113
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
114
+ }
106
115
  const response = yield this.request({
107
116
  path: `/api/v2/labels/{ownerType}/{ownerId}/applicable/context/{labelId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"labelId"}}`, encodeURIComponent(String(requestParameters.labelId))),
108
117
  method: 'GET',
@@ -132,6 +141,9 @@ export class LabelsApi extends runtime.BaseAPI {
132
141
  }
133
142
  const queryParameters = {};
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/labels/{ownerType}/{ownerId}/applicable`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
137
149
  method: 'GET',
@@ -164,6 +176,9 @@ export class LabelsApi extends runtime.BaseAPI {
164
176
  queryParameters['inherit'] = requestParameters.inherit;
165
177
  }
166
178
  const headerParameters = {};
179
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
180
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
181
+ }
167
182
  const response = yield this.request({
168
183
  path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
169
184
  method: 'GET',
@@ -194,6 +209,9 @@ export class LabelsApi extends runtime.BaseAPI {
194
209
  const queryParameters = {};
195
210
  const headerParameters = {};
196
211
  headerParameters['Content-Type'] = 'application/json';
212
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
213
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
214
+ }
197
215
  const response = yield this.request({
198
216
  path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
199
217
  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 { ApiLicenseLegalApplicationReportDTO, ApiLicenseLegalComponentReportDTO, AttributionReportTemplateDTO, ComponentIdentifier, FormDataMultiPart } from '../models';
13
+ import type { ApiLicenseLegalApplicationReportDTO, ApiLicenseLegalComponentReportDTO, AttributionReportTemplateDTO, ComponentIdentifier, FormDataMultiPart } from '../models/index';
14
14
  export interface DeleteAttributionReportTemplateRequest {
15
15
  id: 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 { ApiLicenseLegalApplicationReportDTOFromJSON, ApiLicenseLegalComponentReportDTOFromJSON, AttributionReportTemplateDTOFromJSON, AttributionReportTemplateDTOToJSON, FormDataMultiPartToJSON, } from '../models';
24
+ import { ApiLicenseLegalApplicationReportDTOFromJSON, ApiLicenseLegalComponentReportDTOFromJSON, AttributionReportTemplateDTOFromJSON, AttributionReportTemplateDTOToJSON, FormDataMultiPartToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -35,6 +35,9 @@ export class LicenseLegalMetadataApi 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/licenseLegalMetadata/report-template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
40
43
  method: 'DELETE',
@@ -57,6 +60,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
57
60
  return __awaiter(this, void 0, void 0, function* () {
58
61
  const queryParameters = {};
59
62
  const headerParameters = {};
63
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
64
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
65
+ }
60
66
  const response = yield this.request({
61
67
  path: `/api/v2/licenseLegalMetadata/report-template`,
62
68
  method: 'GET',
@@ -83,6 +89,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
83
89
  }
84
90
  const queryParameters = {};
85
91
  const headerParameters = {};
92
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
93
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
94
+ }
86
95
  const response = yield this.request({
87
96
  path: `/api/v2/licenseLegalMetadata/report-template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
88
97
  method: 'GET',
@@ -112,6 +121,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
112
121
  }
113
122
  const queryParameters = {};
114
123
  const headerParameters = {};
124
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
125
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
126
+ }
115
127
  const response = yield this.request({
116
128
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
117
129
  method: 'GET',
@@ -143,6 +155,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
143
155
  }
144
156
  const queryParameters = {};
145
157
  const headerParameters = {};
158
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
159
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
160
+ }
146
161
  const response = yield this.request({
147
162
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
148
163
  method: 'GET',
@@ -172,6 +187,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
172
187
  }
173
188
  const queryParameters = {};
174
189
  const headerParameters = {};
190
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
191
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
192
+ }
175
193
  const response = yield this.request({
176
194
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
177
195
  method: 'GET',
@@ -216,6 +234,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
216
234
  queryParameters['scanId'] = requestParameters.scanId;
217
235
  }
218
236
  const headerParameters = {};
237
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
238
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
239
+ }
219
240
  const response = yield this.request({
220
241
  path: `/api/v2/licenseLegalMetadata/{ownerType}/{ownerId}/component`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
221
242
  method: 'GET',
@@ -246,6 +267,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
246
267
  const queryParameters = {};
247
268
  const headerParameters = {};
248
269
  headerParameters['Content-Type'] = 'application/json';
270
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
271
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
272
+ }
249
273
  const response = yield this.request({
250
274
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
251
275
  method: 'POST',
@@ -284,6 +308,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
284
308
  }
285
309
  const queryParameters = {};
286
310
  const headerParameters = {};
311
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
312
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
313
+ }
287
314
  const response = yield this.request({
288
315
  path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report/templateId/{templateId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))).replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
289
316
  method: 'POST',
@@ -315,6 +342,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
315
342
  }
316
343
  const queryParameters = {};
317
344
  const headerParameters = {};
345
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
346
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
347
+ }
318
348
  const response = yield this.request({
319
349
  path: `/api/v2/licenseLegalMetadata/multiApplication/report/templateId/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
320
350
  method: 'POST',
@@ -343,6 +373,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
343
373
  return __awaiter(this, void 0, void 0, function* () {
344
374
  const queryParameters = {};
345
375
  const headerParameters = {};
376
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
377
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
378
+ }
346
379
  const response = yield this.request({
347
380
  path: `/api/v2/licenseLegalMetadata/multiApplication/report`,
348
381
  method: 'POST',
@@ -374,6 +407,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
374
407
  }
375
408
  const queryParameters = {};
376
409
  const headerParameters = {};
410
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
411
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
412
+ }
377
413
  const response = yield this.request({
378
414
  path: `/api/v2/licenseLegalMetadata/multiApplication/activeUserFilter/report/templateId/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
379
415
  method: 'POST',
@@ -403,6 +439,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
403
439
  const queryParameters = {};
404
440
  const headerParameters = {};
405
441
  headerParameters['Content-Type'] = 'application/json';
442
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
443
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
444
+ }
406
445
  const response = yield this.request({
407
446
  path: `/api/v2/licenseLegalMetadata/report-template`,
408
447
  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 { ApiOrganizationDTO, ApiOrganizationListDTO } from '../models';
13
+ import type { ApiOrganizationDTO, ApiOrganizationListDTO } from '../models/index';
14
14
  export interface AddOrganizationRequest {
15
15
  apiOrganizationDTO?: ApiOrganizationDTO;
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 { ApiOrganizationDTOFromJSON, ApiOrganizationDTOToJSON, ApiOrganizationListDTOFromJSON, } from '../models';
24
+ import { ApiOrganizationDTOFromJSON, ApiOrganizationDTOToJSON, ApiOrganizationListDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -33,6 +33,9 @@ export class OrganizationsApi extends runtime.BaseAPI {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
35
  headerParameters['Content-Type'] = 'application/json';
36
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
37
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
38
+ }
36
39
  const response = yield this.request({
37
40
  path: `/api/v2/organizations`,
38
41
  method: 'POST',
@@ -60,6 +63,9 @@ export class OrganizationsApi extends runtime.BaseAPI {
60
63
  }
61
64
  const queryParameters = {};
62
65
  const headerParameters = {};
66
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
67
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
68
+ }
63
69
  const response = yield this.request({
64
70
  path: `/api/v2/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
65
71
  method: 'GET',
@@ -86,6 +92,9 @@ export class OrganizationsApi extends runtime.BaseAPI {
86
92
  queryParameters['organizationName'] = requestParameters.organizationName;
87
93
  }
88
94
  const headerParameters = {};
95
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
96
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
97
+ }
89
98
  const response = yield this.request({
90
99
  path: `/api/v2/organizations`,
91
100
  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 { ApiPolicyListDTO } from '../models';
13
+ import type { ApiPolicyListDTO } from '../models/index';
14
14
  /**
15
15
  * PoliciesApi - 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 { ApiPolicyListDTOFromJSON, } from '../models';
24
+ import { ApiPolicyListDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class PoliciesApi 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/policies`,
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 { ApiApplicationViolationListDTOV2, ApiComponentTransitivePolicyViolationsDTO, ApiCrossStageViolationDTOV2, ApiPolicyWaiversApplicableToViolationDTO, ComponentIdentifier } from '../models';
13
+ import type { ApiApplicationViolationListDTOV2, ApiComponentTransitivePolicyViolationsDTO, ApiCrossStageViolationDTOV2, ApiPolicyWaiversApplicableToViolationDTO, ComponentIdentifier } from '../models/index';
14
14
  export interface GetApplicableWaiversRequest {
15
15
  violationId: string;
16
16
  }