@sonatype/nexus-iq-api-client 0.184.2 → 0.184.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/dist/apis/ComponentsApi.d.ts +5 -5
  4. package/dist/apis/ComponentsApi.js +1 -1
  5. package/dist/esm/apis/ComponentsApi.d.ts +5 -5
  6. package/dist/esm/apis/ComponentsApi.js +2 -2
  7. package/dist/esm/models/ApiComponentDTOV2.d.ts +1 -1
  8. package/dist/esm/models/GetSuggestedRemediationForComponent200Response.d.ts +33 -0
  9. package/dist/esm/models/GetSuggestedRemediationForComponent200Response.js +44 -0
  10. package/dist/esm/models/index.d.ts +1 -0
  11. package/dist/esm/models/index.js +1 -0
  12. package/dist/esm/runtime.d.ts +1 -0
  13. package/dist/esm/runtime.js +4 -0
  14. package/dist/models/ApiComponentDTOV2.d.ts +1 -1
  15. package/dist/models/GetSuggestedRemediationForComponent200Response.d.ts +33 -0
  16. package/dist/models/GetSuggestedRemediationForComponent200Response.js +51 -0
  17. package/dist/models/index.d.ts +1 -0
  18. package/dist/models/index.js +1 -0
  19. package/dist/runtime.d.ts +1 -0
  20. package/dist/runtime.js +5 -0
  21. package/package.json +2 -1
  22. package/src/apis/ComponentsApi.ts +8 -8
  23. package/src/models/Action.ts +4 -4
  24. package/src/models/ApiApplicationBaseDTO.ts +4 -4
  25. package/src/models/ApiApplicationCategoryDTO.ts +4 -4
  26. package/src/models/ApiApplicationDTO.ts +4 -4
  27. package/src/models/ApiApplicationEvaluationCommitDTO.ts +4 -4
  28. package/src/models/ApiApplicationEvaluationResultDTOV2.ts +4 -4
  29. package/src/models/ApiApplicationEvaluationStatusDTOV2.ts +4 -4
  30. package/src/models/ApiApplicationListDTO.ts +4 -4
  31. package/src/models/ApiApplicationReportDTOV2.ts +4 -4
  32. package/src/models/ApiApplicationTagDTO.ts +4 -4
  33. package/src/models/ApiApplicationViolationDTOV2.ts +4 -4
  34. package/src/models/ApiApplicationViolationListDTOV2.ts +4 -4
  35. package/src/models/ApiApplicationWaiverDTO.ts +4 -4
  36. package/src/models/ApiArtifactoryConnectionDTO.ts +4 -4
  37. package/src/models/ApiArtifactoryConnectionStatusRequestDTO.ts +4 -4
  38. package/src/models/ApiArtifactoryConnectionStatusResponseDTO.ts +4 -4
  39. package/src/models/ApiAutoPolicyWaiverDTO.ts +4 -4
  40. package/src/models/ApiAutoPolicyWaiverRevocationDTO.ts +4 -4
  41. package/src/models/ApiAutoPolicyWaiverStatusDTO.ts +4 -4
  42. package/src/models/ApiComponentChangeActionDTO.ts +4 -4
  43. package/src/models/ApiComponentDTOV2.ts +5 -5
  44. package/src/models/ApiComponentDetailsDTOV2.ts +4 -4
  45. package/src/models/ApiComponentDetailsRequestDTOV2.ts +4 -4
  46. package/src/models/ApiComponentDetailsResultDTOV2.ts +4 -4
  47. package/src/models/ApiComponentEvaluationRequestDTOV2.ts +4 -4
  48. package/src/models/ApiComponentEvaluationResultDTOV2.ts +4 -4
  49. package/src/models/ApiComponentEvaluationTicketDTOV2.ts +4 -4
  50. package/src/models/ApiComponentIdentifierDTOV2.ts +4 -4
  51. package/src/models/ApiComponentOrPurlIdentifierDTOV2.ts +4 -4
  52. package/src/models/ApiComponentPolicyViolationDTO.ts +4 -4
  53. package/src/models/ApiComponentPolicyViolationListDTOV2.ts +4 -4
  54. package/src/models/ApiComponentPolicyWaiversDTO.ts +4 -4
  55. package/src/models/ApiComponentProjectDataDTO.ts +4 -4
  56. package/src/models/ApiComponentProjectMetadataDTO.ts +4 -4
  57. package/src/models/ApiComponentProjectScmDTO.ts +4 -4
  58. package/src/models/ApiComponentProjectScmDetailsDTO.ts +4 -4
  59. package/src/models/ApiComponentProjectScmMetadataDTO.ts +4 -4
  60. package/src/models/ApiComponentReleasedFromQuarantineDTO.ts +4 -4
  61. package/src/models/ApiComponentRemediationDTO.ts +4 -4
  62. package/src/models/ApiComponentRemediationValueDTO.ts +4 -4
  63. package/src/models/ApiComponentTransitivePolicyViolationsDTO.ts +4 -4
  64. package/src/models/ApiComponentWaiversDTO.ts +4 -4
  65. package/src/models/ApiComponentsInQuarantineDTO.ts +4 -4
  66. package/src/models/ApiCompositeSourceControlDTO.ts +4 -4
  67. package/src/models/ApiCompositeValueDTOBoolean.ts +4 -4
  68. package/src/models/ApiCompositeValueDTOString.ts +4 -4
  69. package/src/models/ApiConditionFactReasonDTO.ts +4 -4
  70. package/src/models/ApiConstraintFactDTO.ts +4 -4
  71. package/src/models/ApiConstraintViolationDTO.ts +4 -4
  72. package/src/models/ApiConstraintViolationReasonDTO.ts +4 -4
  73. package/src/models/ApiCrossStageViolationDTOV2.ts +4 -4
  74. package/src/models/ApiCrowdConfigurationDTO.ts +4 -4
  75. package/src/models/ApiDataRetentionPoliciesDTO.ts +4 -4
  76. package/src/models/ApiDependencyDataDTO.ts +4 -4
  77. package/src/models/ApiDependencyTreeNodeDTO.ts +4 -4
  78. package/src/models/ApiDependencyTreeResponseDTO.ts +4 -4
  79. package/src/models/ApiEnhancedPolicyViolationDTOV2.ts +4 -4
  80. package/src/models/ApiEvaluationResultCounterDTO.ts +4 -4
  81. package/src/models/ApiFirewallMetricsResultDTO.ts +4 -4
  82. package/src/models/ApiFirewallQuarantineSummaryDTO.ts +4 -4
  83. package/src/models/ApiFirewallReleaseQuarantineConfigDTO.ts +4 -4
  84. package/src/models/ApiFirewallReleaseQuarantineSummaryDTO.ts +4 -4
  85. package/src/models/ApiGlobalInformationDTOV2.ts +4 -4
  86. package/src/models/ApiHashComponentIdentifierDTO.ts +4 -4
  87. package/src/models/ApiHashComponentIdentifiersDTO.ts +4 -4
  88. package/src/models/ApiJiraConfigurationDTO.ts +4 -4
  89. package/src/models/ApiLabelDTO.ts +4 -4
  90. package/src/models/ApiLicenseDTO.ts +4 -4
  91. package/src/models/ApiLicenseDataDTO.ts +4 -4
  92. package/src/models/ApiLicenseDataDTOV2.ts +4 -4
  93. package/src/models/ApiLicenseLegalApplicationReportDTO.ts +4 -4
  94. package/src/models/ApiLicenseLegalComponentDTO.ts +4 -4
  95. package/src/models/ApiLicenseLegalComponentReportDTO.ts +4 -4
  96. package/src/models/ApiLicenseLegalCopyrightDTO.ts +4 -4
  97. package/src/models/ApiLicenseLegalDataDTO.ts +4 -4
  98. package/src/models/ApiLicenseLegalFileDTO.ts +4 -4
  99. package/src/models/ApiLicenseLegalMetadataDTO.ts +4 -4
  100. package/src/models/ApiLicenseLegalObligationDTO.ts +4 -4
  101. package/src/models/ApiLicenseLegalStageScanDTO.ts +4 -4
  102. package/src/models/ApiLicenseThreatDTOV2.ts +4 -4
  103. package/src/models/ApiLicensedSolutionDTO.ts +4 -4
  104. package/src/models/ApiMailConfigurationDTO.ts +4 -4
  105. package/src/models/ApiMalwareComponentEvaluationRequest.ts +4 -4
  106. package/src/models/ApiMalwareComponentEvaluationRequestList.ts +4 -4
  107. package/src/models/ApiMatchStateSummaryDTOV2.ts +4 -4
  108. package/src/models/ApiMemberDTO.ts +4 -4
  109. package/src/models/ApiMetricsReportingQueryDTOV2.ts +4 -4
  110. package/src/models/ApiMoveApplicationResponseDTOV2.ts +4 -4
  111. package/src/models/ApiOrganizationDTO.ts +4 -4
  112. package/src/models/ApiOrganizationListDTO.ts +4 -4
  113. package/src/models/ApiOwnerArtifactoryConnectionDTO.ts +4 -4
  114. package/src/models/ApiOwnerDTO.ts +4 -4
  115. package/src/models/ApiPageResultPrioritizedComponent.ts +4 -4
  116. package/src/models/ApiPolicyDTO.ts +4 -4
  117. package/src/models/ApiPolicyListDTO.ts +4 -4
  118. package/src/models/ApiPolicyViolationDTOV2.ts +4 -4
  119. package/src/models/ApiPolicyViolationDiffDTO.ts +4 -4
  120. package/src/models/ApiPolicyViolationForDiffDTO.ts +4 -4
  121. package/src/models/ApiPolicyViolationStageDTO.ts +4 -4
  122. package/src/models/ApiPolicyWaiverDTO.ts +4 -4
  123. package/src/models/ApiPolicyWaiverReasonDTO.ts +4 -4
  124. package/src/models/ApiPolicyWaiversApplicableToViolationDTO.ts +4 -4
  125. package/src/models/ApiPromoteScanRequestDTOV2.ts +4 -4
  126. package/src/models/ApiProxyServerConfigurationDTO.ts +4 -4
  127. package/src/models/ApiPullRequestResult.ts +4 -4
  128. package/src/models/ApiPullRequestResults.ts +4 -4
  129. package/src/models/ApiReportComponentDTOV2.ts +4 -4
  130. package/src/models/ApiReportComponentPolicyViolationsDTOV2.ts +4 -4
  131. package/src/models/ApiReportConstraintConditionDTOV2.ts +4 -4
  132. package/src/models/ApiReportConstraintViolationDTOV2.ts +4 -4
  133. package/src/models/ApiReportHistoryDTO.ts +4 -4
  134. package/src/models/ApiReportPolicyDataDTOV2.ts +4 -4
  135. package/src/models/ApiReportPolicyViolationDTOV2.ts +4 -4
  136. package/src/models/ApiReportRawDataDTOV2.ts +4 -4
  137. package/src/models/ApiReportResultsDTO.ts +4 -4
  138. package/src/models/ApiReportRetentionPoliciesDTO.ts +4 -4
  139. package/src/models/ApiReportRetentionPolicyDTO.ts +4 -4
  140. package/src/models/ApiRepositoryComponentDTO.ts +4 -4
  141. package/src/models/ApiRepositoryComponentEvaluationRequest.ts +4 -4
  142. package/src/models/ApiRepositoryComponentEvaluationRequestList.ts +4 -4
  143. package/src/models/ApiRepositoryComponentEvaluationResult.ts +4 -4
  144. package/src/models/ApiRepositoryComponentEvaluationResultList.ts +4 -4
  145. package/src/models/ApiRepositoryComponentPath.ts +4 -4
  146. package/src/models/ApiRepositoryComponentPolicyViolationDTO.ts +4 -4
  147. package/src/models/ApiRepositoryComponentsInQuarantineDTO.ts +4 -4
  148. package/src/models/ApiRepositoryContainerDTO.ts +4 -4
  149. package/src/models/ApiRepositoryDTO.ts +4 -4
  150. package/src/models/ApiRepositoryListDTO.ts +4 -4
  151. package/src/models/ApiRepositoryManagerDTO.ts +4 -4
  152. package/src/models/ApiRepositoryManagerListDTO.ts +4 -4
  153. package/src/models/ApiRepositoryPathResponseDTO.ts +4 -4
  154. package/src/models/ApiRepositoryPathVersions.ts +4 -4
  155. package/src/models/ApiRepositoryWaiverDTO.ts +4 -4
  156. package/src/models/ApiRequestPolicyWaiverDTO.ts +4 -4
  157. package/src/models/ApiReverseProxyAuthenticationConfigurationDTO.ts +4 -4
  158. package/src/models/ApiRoleDTO.ts +4 -4
  159. package/src/models/ApiRoleListDTO.ts +4 -4
  160. package/src/models/ApiRoleMemberMappingDTO.ts +4 -4
  161. package/src/models/ApiRoleMemberMappingListDTO.ts +4 -4
  162. package/src/models/ApiSamlConfigurationDTO.ts +4 -4
  163. package/src/models/ApiSamlConfigurationResponseDTO.ts +4 -4
  164. package/src/models/ApiSbomStatusDTO.ts +4 -4
  165. package/src/models/ApiSearchCriteriaDTOV2.ts +4 -4
  166. package/src/models/ApiSearchResultDTOV2.ts +4 -4
  167. package/src/models/ApiSearchResultsDTOV2.ts +4 -4
  168. package/src/models/ApiSecurityDataDTO.ts +4 -4
  169. package/src/models/ApiSecurityIssueAnalysisDTO.ts +4 -4
  170. package/src/models/ApiSecurityIssueDTO.ts +4 -4
  171. package/src/models/ApiSecurityVulnerabilityOverrideDTOV2.ts +4 -4
  172. package/src/models/ApiSecurityVulnerabilityOverrideResponseDTOV2.ts +4 -4
  173. package/src/models/ApiSourceControlConfigurationDTO.ts +4 -4
  174. package/src/models/ApiSourceControlDTO.ts +4 -4
  175. package/src/models/ApiSourceControlEvaluationRequestDTO.ts +4 -4
  176. package/src/models/ApiStagePolicyViolationComponentDTO.ts +4 -4
  177. package/src/models/ApiStaleApplicationEvaluationDTO.ts +4 -4
  178. package/src/models/ApiStaleEvaluationStageDTO.ts +4 -4
  179. package/src/models/ApiStaleEvaluationsDTO.ts +4 -4
  180. package/src/models/ApiStaleRepositoryEvaluationDTO.ts +4 -4
  181. package/src/models/ApiStaleWaiverDTO.ts +4 -4
  182. package/src/models/ApiStaleWaiversResponseDTO.ts +4 -4
  183. package/src/models/ApiStatusDTO.ts +4 -4
  184. package/src/models/ApiSuccessMetricsRetentionPolicyDTO.ts +4 -4
  185. package/src/models/ApiSuggestedVersionChangeOptionDTO.ts +4 -4
  186. package/src/models/ApiTagDTO.ts +4 -4
  187. package/src/models/ApiThirdPartyScanResultDTO.ts +4 -4
  188. package/src/models/ApiThirdPartyScanTicketDTO.ts +4 -4
  189. package/src/models/ApiUserDTO.ts +4 -4
  190. package/src/models/ApiUserListDTO.ts +4 -4
  191. package/src/models/ApiUserTokenDTO.ts +4 -4
  192. package/src/models/ApiUserTokenExistsDTO.ts +4 -4
  193. package/src/models/ApiVersionChangeOptionDTO.ts +4 -4
  194. package/src/models/ApiWaivedPolicyViolationDTO.ts +4 -4
  195. package/src/models/ApiWaiverOptionsDTO.ts +4 -4
  196. package/src/models/ApplicableContext.ts +4 -4
  197. package/src/models/ApplicableLabels.ts +4 -4
  198. package/src/models/ApplicableTagsDTO.ts +4 -4
  199. package/src/models/ApplicationTag.ts +4 -4
  200. package/src/models/ApplicationTagsByOwnerDTO.ts +4 -4
  201. package/src/models/AppliedTagsDTO.ts +4 -4
  202. package/src/models/AttachmentText.ts +4 -4
  203. package/src/models/AttributionReportTemplateDTO.ts +4 -4
  204. package/src/models/ComponentDisplayName.ts +4 -4
  205. package/src/models/ComponentDisplayNamePart.ts +4 -4
  206. package/src/models/ComponentFact.ts +4 -4
  207. package/src/models/ComponentIdentifier.ts +4 -4
  208. package/src/models/ComponentLocator.ts +4 -4
  209. package/src/models/ComponentObligationAttributionDTO.ts +4 -4
  210. package/src/models/ConditionFact.ts +4 -4
  211. package/src/models/ConfigurationValidationResult.ts +4 -4
  212. package/src/models/ConstraintFact.ts +4 -4
  213. package/src/models/CweId.ts +4 -4
  214. package/src/models/DevelopmentPrioritizationResults.ts +4 -4
  215. package/src/models/FormDataContentDisposition.ts +4 -4
  216. package/src/models/GetSuggestedRemediationForComponent200Response.ts +74 -0
  217. package/src/models/GroupingByDTO.ts +4 -4
  218. package/src/models/IdeUsersOverviewDTO.ts +4 -4
  219. package/src/models/ImportSbomRequest.ts +4 -4
  220. package/src/models/InnerSourceData.ts +4 -4
  221. package/src/models/LabelsByOwner.ts +4 -4
  222. package/src/models/LegalSourceLinkDTO.ts +4 -4
  223. package/src/models/License.ts +4 -4
  224. package/src/models/LicenseObligationDTO.ts +4 -4
  225. package/src/models/LicenseThreatGroupDTO.ts +4 -4
  226. package/src/models/MalwareDefenseData.ts +4 -4
  227. package/src/models/MalwareDefenseResponseList.ts +4 -4
  228. package/src/models/PolicyAlert.ts +4 -4
  229. package/src/models/PolicyEvaluationResult.ts +4 -4
  230. package/src/models/PolicyFact.ts +4 -4
  231. package/src/models/PolicyOwner.ts +4 -4
  232. package/src/models/PolicyTag.ts +4 -4
  233. package/src/models/PrioritizedComponent.ts +4 -4
  234. package/src/models/ReferenceLink.ts +4 -4
  235. package/src/models/RootCause.ts +4 -4
  236. package/src/models/SBOMVulnerabilityAnalysisRequest.ts +4 -4
  237. package/src/models/SbomComponentDTO.ts +4 -4
  238. package/src/models/SbomComponentListDTO.ts +4 -4
  239. package/src/models/SearchResultDTO.ts +4 -4
  240. package/src/models/SearchResultItemDTO.ts +4 -4
  241. package/src/models/SecurityVulnerabilityCustomData.ts +4 -4
  242. package/src/models/SecurityVulnerabilityData.ts +4 -4
  243. package/src/models/SecurityVulnerabilitySeverity.ts +4 -4
  244. package/src/models/SecurityVulnerabilityWeakness.ts +4 -4
  245. package/src/models/StageData.ts +4 -4
  246. package/src/models/Swid.ts +4 -4
  247. package/src/models/SystemConfig.ts +4 -4
  248. package/src/models/TagsByOwnerDTO.ts +4 -4
  249. package/src/models/ThirdPartySbomMetadataSummaryDTO.ts +4 -4
  250. package/src/models/ThirdPartySbomMetadataSummaryListDTO.ts +4 -4
  251. package/src/models/TriggerReference.ts +4 -4
  252. package/src/models/ValidationResult.ts +4 -4
  253. package/src/models/VulnerabilityAnalysis.ts +4 -4
  254. package/src/models/VulnerabilitySource.ts +4 -4
  255. package/src/models/index.ts +1 -0
  256. package/src/runtime.ts +5 -0
@@ -249,6 +249,7 @@ src/models/ConstraintFact.ts
249
249
  src/models/CweId.ts
250
250
  src/models/DevelopmentPrioritizationResults.ts
251
251
  src/models/FormDataContentDisposition.ts
252
+ src/models/GetSuggestedRemediationForComponent200Response.ts
252
253
  src/models/GroupingByDTO.ts
253
254
  src/models/IdeUsersOverviewDTO.ts
254
255
  src/models/ImportSbomRequest.ts
@@ -1 +1 @@
1
- 7.9.0
1
+ 7.10.0
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2, ApiComponentRemediationValueDTO } from '../models/index';
13
+ import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2, GetSuggestedRemediationForComponent200Response } from '../models/index';
14
14
  export interface DeleteComponentLabelRequest {
15
15
  ownerType: DeleteComponentLabelOwnerTypeEnum;
16
16
  internalOwnerId: string;
@@ -97,11 +97,11 @@ export interface ComponentsApiInterface {
97
97
  * @throws {RequiredError}
98
98
  * @memberof ComponentsApiInterface
99
99
  */
100
- getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentRemediationValueDTO>>;
100
+ getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSuggestedRemediationForComponent200Response>>;
101
101
  /**
102
102
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
103
103
  */
104
- getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentRemediationValueDTO>;
104
+ getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSuggestedRemediationForComponent200Response>;
105
105
  /**
106
106
  * Use this method to assign an existing label to a component.
107
107
  * @param {'application' | 'organization' | 'repository_container' | 'repository_manager' | 'repository' | 'global'} ownerType Possible values: application or organization
@@ -149,11 +149,11 @@ export declare class ComponentsApi extends runtime.BaseAPI implements Components
149
149
  /**
150
150
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
151
151
  */
152
- getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentRemediationValueDTO>>;
152
+ getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSuggestedRemediationForComponent200Response>>;
153
153
  /**
154
154
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
155
155
  */
156
- getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentRemediationValueDTO>;
156
+ getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSuggestedRemediationForComponent200Response>;
157
157
  /**
158
158
  * Use this method to assign an existing label to a component.
159
159
  */
@@ -167,7 +167,7 @@ class ComponentsApi extends runtime.BaseAPI {
167
167
  query: queryParameters,
168
168
  body: (0, index_1.ApiComponentDTOV2ToJSON)(requestParameters['apiComponentDTOV2']),
169
169
  }, initOverrides);
170
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentRemediationValueDTOFromJSON)(jsonValue));
170
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetSuggestedRemediationForComponent200ResponseFromJSON)(jsonValue));
171
171
  });
172
172
  }
173
173
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2, ApiComponentRemediationValueDTO } from '../models/index';
13
+ import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2, GetSuggestedRemediationForComponent200Response } from '../models/index';
14
14
  export interface DeleteComponentLabelRequest {
15
15
  ownerType: DeleteComponentLabelOwnerTypeEnum;
16
16
  internalOwnerId: string;
@@ -97,11 +97,11 @@ export interface ComponentsApiInterface {
97
97
  * @throws {RequiredError}
98
98
  * @memberof ComponentsApiInterface
99
99
  */
100
- getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentRemediationValueDTO>>;
100
+ getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSuggestedRemediationForComponent200Response>>;
101
101
  /**
102
102
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
103
103
  */
104
- getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentRemediationValueDTO>;
104
+ getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSuggestedRemediationForComponent200Response>;
105
105
  /**
106
106
  * Use this method to assign an existing label to a component.
107
107
  * @param {'application' | 'organization' | 'repository_container' | 'repository_manager' | 'repository' | 'global'} ownerType Possible values: application or organization
@@ -149,11 +149,11 @@ export declare class ComponentsApi extends runtime.BaseAPI implements Components
149
149
  /**
150
150
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
151
151
  */
152
- getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentRemediationValueDTO>>;
152
+ getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSuggestedRemediationForComponent200Response>>;
153
153
  /**
154
154
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
155
155
  */
156
- getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentRemediationValueDTO>;
156
+ getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSuggestedRemediationForComponent200Response>;
157
157
  /**
158
158
  * Use this method to assign an existing label to a component.
159
159
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiComponentDTOV2ToJSON, ApiComponentDetailsRequestDTOV2ToJSON, ApiComponentDetailsResultDTOV2FromJSON, ApiComponentOrPurlIdentifierDTOV2ToJSON, ApiComponentRemediationValueDTOFromJSON, } from '../models/index';
24
+ import { ApiComponentDTOV2ToJSON, ApiComponentDetailsRequestDTOV2ToJSON, ApiComponentDetailsResultDTOV2FromJSON, ApiComponentOrPurlIdentifierDTOV2ToJSON, GetSuggestedRemediationForComponent200ResponseFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -164,7 +164,7 @@ export class ComponentsApi extends runtime.BaseAPI {
164
164
  query: queryParameters,
165
165
  body: ApiComponentDTOV2ToJSON(requestParameters['apiComponentDTOV2']),
166
166
  }, initOverrides);
167
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiComponentRemediationValueDTOFromJSON(jsonValue));
167
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetSuggestedRemediationForComponent200ResponseFromJSON(jsonValue));
168
168
  });
169
169
  }
170
170
  /**
@@ -33,7 +33,7 @@ export interface ApiComponentDTOV2 {
33
33
  * @type {string}
34
34
  * @memberof ApiComponentDTOV2
35
35
  */
36
- hash?: string;
36
+ hash?: string | null;
37
37
  /**
38
38
  *
39
39
  * @type {string}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Sonatype Lifecycle Public REST API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.184.0-01
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApiComponentRemediationValueDTO } from './ApiComponentRemediationValueDTO';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetSuggestedRemediationForComponent200Response
17
+ */
18
+ export interface GetSuggestedRemediationForComponent200Response {
19
+ /**
20
+ *
21
+ * @type {ApiComponentRemediationValueDTO}
22
+ * @memberof GetSuggestedRemediationForComponent200Response
23
+ */
24
+ remediation: ApiComponentRemediationValueDTO;
25
+ }
26
+ /**
27
+ * Check if a given object implements the GetSuggestedRemediationForComponent200Response interface.
28
+ */
29
+ export declare function instanceOfGetSuggestedRemediationForComponent200Response(value: object): value is GetSuggestedRemediationForComponent200Response;
30
+ export declare function GetSuggestedRemediationForComponent200ResponseFromJSON(json: any): GetSuggestedRemediationForComponent200Response;
31
+ export declare function GetSuggestedRemediationForComponent200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSuggestedRemediationForComponent200Response;
32
+ export declare function GetSuggestedRemediationForComponent200ResponseToJSON(json: any): GetSuggestedRemediationForComponent200Response;
33
+ export declare function GetSuggestedRemediationForComponent200ResponseToJSONTyped(value?: GetSuggestedRemediationForComponent200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sonatype Lifecycle Public REST API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.184.0-01
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ApiComponentRemediationValueDTOFromJSON, ApiComponentRemediationValueDTOToJSON, } from './ApiComponentRemediationValueDTO';
15
+ /**
16
+ * Check if a given object implements the GetSuggestedRemediationForComponent200Response interface.
17
+ */
18
+ export function instanceOfGetSuggestedRemediationForComponent200Response(value) {
19
+ if (!('remediation' in value) || value['remediation'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function GetSuggestedRemediationForComponent200ResponseFromJSON(json) {
24
+ return GetSuggestedRemediationForComponent200ResponseFromJSONTyped(json, false);
25
+ }
26
+ export function GetSuggestedRemediationForComponent200ResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'remediation': ApiComponentRemediationValueDTOFromJSON(json['remediation']),
32
+ };
33
+ }
34
+ export function GetSuggestedRemediationForComponent200ResponseToJSON(json) {
35
+ return GetSuggestedRemediationForComponent200ResponseToJSONTyped(json, false);
36
+ }
37
+ export function GetSuggestedRemediationForComponent200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'remediation': ApiComponentRemediationValueDTOToJSON(value['remediation']),
43
+ };
44
+ }
@@ -191,6 +191,7 @@ export * from './ConstraintFact';
191
191
  export * from './CweId';
192
192
  export * from './DevelopmentPrioritizationResults';
193
193
  export * from './FormDataContentDisposition';
194
+ export * from './GetSuggestedRemediationForComponent200Response';
194
195
  export * from './GroupingByDTO';
195
196
  export * from './IdeUsersOverviewDTO';
196
197
  export * from './ImportSbomRequest';
@@ -193,6 +193,7 @@ export * from './ConstraintFact';
193
193
  export * from './CweId';
194
194
  export * from './DevelopmentPrioritizationResults';
195
195
  export * from './FormDataContentDisposition';
196
+ export * from './GetSuggestedRemediationForComponent200Response';
196
197
  export * from './GroupingByDTO';
197
198
  export * from './IdeUsersOverviewDTO';
198
199
  export * from './ImportSbomRequest';
@@ -123,6 +123,7 @@ export interface RequestOpts {
123
123
  body?: HTTPBody;
124
124
  }
125
125
  export declare function querystring(params: HTTPQuery, prefix?: string): string;
126
+ export declare function exists(json: any, key: string): boolean;
126
127
  export declare function mapValues(data: any, fn: (item: any) => any): {};
127
128
  export declare function canConsumeForm(consumes: Consume[]): boolean;
128
129
  export interface Consume {
@@ -270,6 +270,10 @@ function querystringSingleKey(key, value, keyPrefix = '') {
270
270
  }
271
271
  return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
272
272
  }
273
+ export function exists(json, key) {
274
+ const value = json[key];
275
+ return value !== null && value !== undefined;
276
+ }
273
277
  export function mapValues(data, fn) {
274
278
  return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {});
275
279
  }
@@ -33,7 +33,7 @@ export interface ApiComponentDTOV2 {
33
33
  * @type {string}
34
34
  * @memberof ApiComponentDTOV2
35
35
  */
36
- hash?: string;
36
+ hash?: string | null;
37
37
  /**
38
38
  *
39
39
  * @type {string}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Sonatype Lifecycle Public REST API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.184.0-01
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApiComponentRemediationValueDTO } from './ApiComponentRemediationValueDTO';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetSuggestedRemediationForComponent200Response
17
+ */
18
+ export interface GetSuggestedRemediationForComponent200Response {
19
+ /**
20
+ *
21
+ * @type {ApiComponentRemediationValueDTO}
22
+ * @memberof GetSuggestedRemediationForComponent200Response
23
+ */
24
+ remediation: ApiComponentRemediationValueDTO;
25
+ }
26
+ /**
27
+ * Check if a given object implements the GetSuggestedRemediationForComponent200Response interface.
28
+ */
29
+ export declare function instanceOfGetSuggestedRemediationForComponent200Response(value: object): value is GetSuggestedRemediationForComponent200Response;
30
+ export declare function GetSuggestedRemediationForComponent200ResponseFromJSON(json: any): GetSuggestedRemediationForComponent200Response;
31
+ export declare function GetSuggestedRemediationForComponent200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSuggestedRemediationForComponent200Response;
32
+ export declare function GetSuggestedRemediationForComponent200ResponseToJSON(json: any): GetSuggestedRemediationForComponent200Response;
33
+ export declare function GetSuggestedRemediationForComponent200ResponseToJSONTyped(value?: GetSuggestedRemediationForComponent200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Sonatype Lifecycle Public REST API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.184.0-01
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetSuggestedRemediationForComponent200Response = instanceOfGetSuggestedRemediationForComponent200Response;
17
+ exports.GetSuggestedRemediationForComponent200ResponseFromJSON = GetSuggestedRemediationForComponent200ResponseFromJSON;
18
+ exports.GetSuggestedRemediationForComponent200ResponseFromJSONTyped = GetSuggestedRemediationForComponent200ResponseFromJSONTyped;
19
+ exports.GetSuggestedRemediationForComponent200ResponseToJSON = GetSuggestedRemediationForComponent200ResponseToJSON;
20
+ exports.GetSuggestedRemediationForComponent200ResponseToJSONTyped = GetSuggestedRemediationForComponent200ResponseToJSONTyped;
21
+ const ApiComponentRemediationValueDTO_1 = require("./ApiComponentRemediationValueDTO");
22
+ /**
23
+ * Check if a given object implements the GetSuggestedRemediationForComponent200Response interface.
24
+ */
25
+ function instanceOfGetSuggestedRemediationForComponent200Response(value) {
26
+ if (!('remediation' in value) || value['remediation'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function GetSuggestedRemediationForComponent200ResponseFromJSON(json) {
31
+ return GetSuggestedRemediationForComponent200ResponseFromJSONTyped(json, false);
32
+ }
33
+ function GetSuggestedRemediationForComponent200ResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'remediation': (0, ApiComponentRemediationValueDTO_1.ApiComponentRemediationValueDTOFromJSON)(json['remediation']),
39
+ };
40
+ }
41
+ function GetSuggestedRemediationForComponent200ResponseToJSON(json) {
42
+ return GetSuggestedRemediationForComponent200ResponseToJSONTyped(json, false);
43
+ }
44
+ function GetSuggestedRemediationForComponent200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'remediation': (0, ApiComponentRemediationValueDTO_1.ApiComponentRemediationValueDTOToJSON)(value['remediation']),
50
+ };
51
+ }
@@ -191,6 +191,7 @@ export * from './ConstraintFact';
191
191
  export * from './CweId';
192
192
  export * from './DevelopmentPrioritizationResults';
193
193
  export * from './FormDataContentDisposition';
194
+ export * from './GetSuggestedRemediationForComponent200Response';
194
195
  export * from './GroupingByDTO';
195
196
  export * from './IdeUsersOverviewDTO';
196
197
  export * from './ImportSbomRequest';
@@ -209,6 +209,7 @@ __exportStar(require("./ConstraintFact"), exports);
209
209
  __exportStar(require("./CweId"), exports);
210
210
  __exportStar(require("./DevelopmentPrioritizationResults"), exports);
211
211
  __exportStar(require("./FormDataContentDisposition"), exports);
212
+ __exportStar(require("./GetSuggestedRemediationForComponent200Response"), exports);
212
213
  __exportStar(require("./GroupingByDTO"), exports);
213
214
  __exportStar(require("./IdeUsersOverviewDTO"), exports);
214
215
  __exportStar(require("./ImportSbomRequest"), exports);
package/dist/runtime.d.ts CHANGED
@@ -123,6 +123,7 @@ export interface RequestOpts {
123
123
  body?: HTTPBody;
124
124
  }
125
125
  export declare function querystring(params: HTTPQuery, prefix?: string): string;
126
+ export declare function exists(json: any, key: string): boolean;
126
127
  export declare function mapValues(data: any, fn: (item: any) => any): {};
127
128
  export declare function canConsumeForm(consumes: Consume[]): boolean;
128
129
  export interface Consume {
package/dist/runtime.js CHANGED
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
26
26
  exports.querystring = querystring;
27
+ exports.exists = exists;
27
28
  exports.mapValues = mapValues;
28
29
  exports.canConsumeForm = canConsumeForm;
29
30
  exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
@@ -281,6 +282,10 @@ function querystringSingleKey(key, value, keyPrefix = '') {
281
282
  }
282
283
  return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
283
284
  }
285
+ function exists(json, key) {
286
+ const value = json[key];
287
+ return value !== null && value !== undefined;
288
+ }
284
289
  function mapValues(data, fn) {
285
290
  return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {});
286
291
  }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@sonatype/nexus-iq-api-client",
3
- "version": "0.184.2",
3
+ "version": "0.184.3",
4
4
  "description": "OpenAPI client for @sonatype/nexus-iq-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/sonatype-nexus-community/nexus-iq-api-client.git"
9
9
  },
10
+ "license": "Apache-2.0",
10
11
  "main": "./dist/index.js",
11
12
  "typings": "./dist/index.d.ts",
12
13
  "module": "./dist/esm/index.js",
@@ -19,7 +19,7 @@ import type {
19
19
  ApiComponentDetailsRequestDTOV2,
20
20
  ApiComponentDetailsResultDTOV2,
21
21
  ApiComponentOrPurlIdentifierDTOV2,
22
- ApiComponentRemediationValueDTO,
22
+ GetSuggestedRemediationForComponent200Response,
23
23
  } from '../models/index';
24
24
  import {
25
25
  ApiComponentDTOV2FromJSON,
@@ -30,8 +30,8 @@ import {
30
30
  ApiComponentDetailsResultDTOV2ToJSON,
31
31
  ApiComponentOrPurlIdentifierDTOV2FromJSON,
32
32
  ApiComponentOrPurlIdentifierDTOV2ToJSON,
33
- ApiComponentRemediationValueDTOFromJSON,
34
- ApiComponentRemediationValueDTOToJSON,
33
+ GetSuggestedRemediationForComponent200ResponseFromJSON,
34
+ GetSuggestedRemediationForComponent200ResponseToJSON,
35
35
  } from '../models/index';
36
36
 
37
37
  export interface DeleteComponentLabelRequest {
@@ -131,12 +131,12 @@ export interface ComponentsApiInterface {
131
131
  * @throws {RequiredError}
132
132
  * @memberof ComponentsApiInterface
133
133
  */
134
- getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentRemediationValueDTO>>;
134
+ getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSuggestedRemediationForComponent200Response>>;
135
135
 
136
136
  /**
137
137
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
138
138
  */
139
- getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentRemediationValueDTO>;
139
+ getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSuggestedRemediationForComponent200Response>;
140
140
 
141
141
  /**
142
142
  * Use this method to assign an existing label to a component.
@@ -292,7 +292,7 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
292
292
  /**
293
293
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
294
294
  */
295
- async getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentRemediationValueDTO>> {
295
+ async getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSuggestedRemediationForComponent200Response>> {
296
296
  if (requestParameters['ownerType'] == null) {
297
297
  throw new runtime.RequiredError(
298
298
  'ownerType',
@@ -340,13 +340,13 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
340
340
  body: ApiComponentDTOV2ToJSON(requestParameters['apiComponentDTOV2']),
341
341
  }, initOverrides);
342
342
 
343
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiComponentRemediationValueDTOFromJSON(jsonValue));
343
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetSuggestedRemediationForComponent200ResponseFromJSON(jsonValue));
344
344
  }
345
345
 
346
346
  /**
347
347
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
348
348
  */
349
- async getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentRemediationValueDTO> {
349
+ async getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSuggestedRemediationForComponent200Response> {
350
350
  const response = await this.getSuggestedRemediationForComponentRaw(requestParameters, initOverrides);
351
351
  return await response.value();
352
352
  }
@@ -62,11 +62,11 @@ export function ActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ac
62
62
  };
63
63
  }
64
64
 
65
- export function ActionToJSON(json: any): Action {
66
- return ActionToJSONTyped(json, false);
67
- }
65
+ export function ActionToJSON(json: any): Action {
66
+ return ActionToJSONTyped(json, false);
67
+ }
68
68
 
69
- export function ActionToJSONTyped(value?: Action | null, ignoreDiscriminator: boolean = false): any {
69
+ export function ActionToJSONTyped(value?: Action | null, ignoreDiscriminator: boolean = false): any {
70
70
  if (value == null) {
71
71
  return value;
72
72
  }
@@ -76,11 +76,11 @@ export function ApiApplicationBaseDTOFromJSONTyped(json: any, ignoreDiscriminato
76
76
  };
77
77
  }
78
78
 
79
- export function ApiApplicationBaseDTOToJSON(json: any): ApiApplicationBaseDTO {
80
- return ApiApplicationBaseDTOToJSONTyped(json, false);
81
- }
79
+ export function ApiApplicationBaseDTOToJSON(json: any): ApiApplicationBaseDTO {
80
+ return ApiApplicationBaseDTOToJSONTyped(json, false);
81
+ }
82
82
 
83
- export function ApiApplicationBaseDTOToJSONTyped(value?: ApiApplicationBaseDTO | null, ignoreDiscriminator: boolean = false): any {
83
+ export function ApiApplicationBaseDTOToJSONTyped(value?: ApiApplicationBaseDTO | null, ignoreDiscriminator: boolean = false): any {
84
84
  if (value == null) {
85
85
  return value;
86
86
  }
@@ -76,11 +76,11 @@ export function ApiApplicationCategoryDTOFromJSONTyped(json: any, ignoreDiscrimi
76
76
  };
77
77
  }
78
78
 
79
- export function ApiApplicationCategoryDTOToJSON(json: any): ApiApplicationCategoryDTO {
80
- return ApiApplicationCategoryDTOToJSONTyped(json, false);
81
- }
79
+ export function ApiApplicationCategoryDTOToJSON(json: any): ApiApplicationCategoryDTO {
80
+ return ApiApplicationCategoryDTOToJSONTyped(json, false);
81
+ }
82
82
 
83
- export function ApiApplicationCategoryDTOToJSONTyped(value?: ApiApplicationCategoryDTO | null, ignoreDiscriminator: boolean = false): any {
83
+ export function ApiApplicationCategoryDTOToJSONTyped(value?: ApiApplicationCategoryDTO | null, ignoreDiscriminator: boolean = false): any {
84
84
  if (value == null) {
85
85
  return value;
86
86
  }
@@ -91,11 +91,11 @@ export function ApiApplicationDTOFromJSONTyped(json: any, ignoreDiscriminator: b
91
91
  };
92
92
  }
93
93
 
94
- export function ApiApplicationDTOToJSON(json: any): ApiApplicationDTO {
95
- return ApiApplicationDTOToJSONTyped(json, false);
96
- }
94
+ export function ApiApplicationDTOToJSON(json: any): ApiApplicationDTO {
95
+ return ApiApplicationDTOToJSONTyped(json, false);
96
+ }
97
97
 
98
- export function ApiApplicationDTOToJSONTyped(value?: ApiApplicationDTO | null, ignoreDiscriminator: boolean = false): any {
98
+ export function ApiApplicationDTOToJSONTyped(value?: ApiApplicationDTO | null, ignoreDiscriminator: boolean = false): any {
99
99
  if (value == null) {
100
100
  return value;
101
101
  }
@@ -69,11 +69,11 @@ export function ApiApplicationEvaluationCommitDTOFromJSONTyped(json: any, ignore
69
69
  };
70
70
  }
71
71
 
72
- export function ApiApplicationEvaluationCommitDTOToJSON(json: any): ApiApplicationEvaluationCommitDTO {
73
- return ApiApplicationEvaluationCommitDTOToJSONTyped(json, false);
74
- }
72
+ export function ApiApplicationEvaluationCommitDTOToJSON(json: any): ApiApplicationEvaluationCommitDTO {
73
+ return ApiApplicationEvaluationCommitDTOToJSONTyped(json, false);
74
+ }
75
75
 
76
- export function ApiApplicationEvaluationCommitDTOToJSONTyped(value?: ApiApplicationEvaluationCommitDTO | null, ignoreDiscriminator: boolean = false): any {
76
+ export function ApiApplicationEvaluationCommitDTOToJSONTyped(value?: ApiApplicationEvaluationCommitDTO | null, ignoreDiscriminator: boolean = false): any {
77
77
  if (value == null) {
78
78
  return value;
79
79
  }
@@ -83,11 +83,11 @@ export function ApiApplicationEvaluationResultDTOV2FromJSONTyped(json: any, igno
83
83
  };
84
84
  }
85
85
 
86
- export function ApiApplicationEvaluationResultDTOV2ToJSON(json: any): ApiApplicationEvaluationResultDTOV2 {
87
- return ApiApplicationEvaluationResultDTOV2ToJSONTyped(json, false);
88
- }
86
+ export function ApiApplicationEvaluationResultDTOV2ToJSON(json: any): ApiApplicationEvaluationResultDTOV2 {
87
+ return ApiApplicationEvaluationResultDTOV2ToJSONTyped(json, false);
88
+ }
89
89
 
90
- export function ApiApplicationEvaluationResultDTOV2ToJSONTyped(value?: ApiApplicationEvaluationResultDTOV2 | null, ignoreDiscriminator: boolean = false): any {
90
+ export function ApiApplicationEvaluationResultDTOV2ToJSONTyped(value?: ApiApplicationEvaluationResultDTOV2 | null, ignoreDiscriminator: boolean = false): any {
91
91
  if (value == null) {
92
92
  return value;
93
93
  }
@@ -48,11 +48,11 @@ export function ApiApplicationEvaluationStatusDTOV2FromJSONTyped(json: any, igno
48
48
  };
49
49
  }
50
50
 
51
- export function ApiApplicationEvaluationStatusDTOV2ToJSON(json: any): ApiApplicationEvaluationStatusDTOV2 {
52
- return ApiApplicationEvaluationStatusDTOV2ToJSONTyped(json, false);
53
- }
51
+ export function ApiApplicationEvaluationStatusDTOV2ToJSON(json: any): ApiApplicationEvaluationStatusDTOV2 {
52
+ return ApiApplicationEvaluationStatusDTOV2ToJSONTyped(json, false);
53
+ }
54
54
 
55
- export function ApiApplicationEvaluationStatusDTOV2ToJSONTyped(value?: ApiApplicationEvaluationStatusDTOV2 | null, ignoreDiscriminator: boolean = false): any {
55
+ export function ApiApplicationEvaluationStatusDTOV2ToJSONTyped(value?: ApiApplicationEvaluationStatusDTOV2 | null, ignoreDiscriminator: boolean = false): any {
56
56
  if (value == null) {
57
57
  return value;
58
58
  }
@@ -56,11 +56,11 @@ export function ApiApplicationListDTOFromJSONTyped(json: any, ignoreDiscriminato
56
56
  };
57
57
  }
58
58
 
59
- export function ApiApplicationListDTOToJSON(json: any): ApiApplicationListDTO {
60
- return ApiApplicationListDTOToJSONTyped(json, false);
61
- }
59
+ export function ApiApplicationListDTOToJSON(json: any): ApiApplicationListDTO {
60
+ return ApiApplicationListDTOToJSONTyped(json, false);
61
+ }
62
62
 
63
- export function ApiApplicationListDTOToJSONTyped(value?: ApiApplicationListDTO | null, ignoreDiscriminator: boolean = false): any {
63
+ export function ApiApplicationListDTOToJSONTyped(value?: ApiApplicationListDTO | null, ignoreDiscriminator: boolean = false): any {
64
64
  if (value == null) {
65
65
  return value;
66
66
  }
@@ -97,11 +97,11 @@ export function ApiApplicationReportDTOV2FromJSONTyped(json: any, ignoreDiscrimi
97
97
  };
98
98
  }
99
99
 
100
- export function ApiApplicationReportDTOV2ToJSON(json: any): ApiApplicationReportDTOV2 {
101
- return ApiApplicationReportDTOV2ToJSONTyped(json, false);
102
- }
100
+ export function ApiApplicationReportDTOV2ToJSON(json: any): ApiApplicationReportDTOV2 {
101
+ return ApiApplicationReportDTOV2ToJSONTyped(json, false);
102
+ }
103
103
 
104
- export function ApiApplicationReportDTOV2ToJSONTyped(value?: ApiApplicationReportDTOV2 | null, ignoreDiscriminator: boolean = false): any {
104
+ export function ApiApplicationReportDTOV2ToJSONTyped(value?: ApiApplicationReportDTOV2 | null, ignoreDiscriminator: boolean = false): any {
105
105
  if (value == null) {
106
106
  return value;
107
107
  }