@harnessio/react-ssca-manager-client 0.83.8 → 0.83.10
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.
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery.d.ts +39 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery.js +21 -0
- package/dist/ssca-manager/src/services/index.d.ts +4 -0
- package/dist/ssca-manager/src/services/index.js +1 -0
- package/dist/ssca-manager/src/services/responses/ComponentVulnerabilityListResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ComponentVulnerabilityListResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentVulnerabilityResponse.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/ComponentVulnerabilityResponse.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ComponentVulnerabilityListResponseBodyResponse } from '../responses/ComponentVulnerabilityListResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetArtifactV2ComponentVulnerabilityListByPurlQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
artifact: string;
|
|
9
|
+
purl: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetArtifactV2ComponentVulnerabilityListByPurlQueryQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* @default 30
|
|
14
|
+
*/
|
|
15
|
+
limit_vulnerabilities?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
page_vulnerabilities?: number;
|
|
20
|
+
search_term_vulnerabilities?: string;
|
|
21
|
+
sort?: 'severity';
|
|
22
|
+
/**
|
|
23
|
+
* @default "DESC"
|
|
24
|
+
*/
|
|
25
|
+
order?: 'ASC' | 'DESC';
|
|
26
|
+
}
|
|
27
|
+
export interface GetArtifactV2ComponentVulnerabilityListByPurlQueryHeaderParams {
|
|
28
|
+
'Harness-Account': string;
|
|
29
|
+
}
|
|
30
|
+
export type GetArtifactV2ComponentVulnerabilityListByPurlOkResponse = ResponseWithPagination<ComponentVulnerabilityListResponseBodyResponse>;
|
|
31
|
+
export type GetArtifactV2ComponentVulnerabilityListByPurlErrorResponse = unknown;
|
|
32
|
+
export interface GetArtifactV2ComponentVulnerabilityListByPurlProps extends GetArtifactV2ComponentVulnerabilityListByPurlQueryPathParams, Omit<FetcherOptions<GetArtifactV2ComponentVulnerabilityListByPurlQueryQueryParams, unknown, GetArtifactV2ComponentVulnerabilityListByPurlQueryHeaderParams>, 'url'> {
|
|
33
|
+
queryParams: GetArtifactV2ComponentVulnerabilityListByPurlQueryQueryParams;
|
|
34
|
+
}
|
|
35
|
+
export declare function getArtifactV2ComponentVulnerabilityListByPurl(props: GetArtifactV2ComponentVulnerabilityListByPurlProps): Promise<GetArtifactV2ComponentVulnerabilityListByPurlOkResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Get artifactV2 detail component view
|
|
38
|
+
*/
|
|
39
|
+
export declare function useGetArtifactV2ComponentVulnerabilityListByPurlQuery(props: GetArtifactV2ComponentVulnerabilityListByPurlProps, options?: Omit<UseQueryOptions<GetArtifactV2ComponentVulnerabilityListByPurlOkResponse, GetArtifactV2ComponentVulnerabilityListByPurlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactV2ComponentVulnerabilityListByPurlOkResponse, unknown>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getArtifactV2ComponentVulnerabilityListByPurl(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/components/${props.purl}/vulnerabilities`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get artifactV2 detail component view
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactV2ComponentVulnerabilityListByPurlQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getArtifactV2ComponentVulnerabilityListByPurl',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.artifact,
|
|
18
|
+
props.purl,
|
|
19
|
+
props.queryParams,
|
|
20
|
+
], ({ signal }) => getArtifactV2ComponentVulnerabilityListByPurl(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
|
+
}
|
|
@@ -43,6 +43,8 @@ export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemedia
|
|
|
43
43
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
44
44
|
export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
45
45
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
46
|
+
export type { GetArtifactV2ComponentVulnerabilityListByPurlErrorResponse, GetArtifactV2ComponentVulnerabilityListByPurlOkResponse, GetArtifactV2ComponentVulnerabilityListByPurlProps, GetArtifactV2ComponentVulnerabilityListByPurlQueryPathParams, GetArtifactV2ComponentVulnerabilityListByPurlQueryQueryParams, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
|
|
47
|
+
export { getArtifactV2ComponentVulnerabilityListByPurl, useGetArtifactV2ComponentVulnerabilityListByPurlQuery, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
|
|
46
48
|
export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewProps, GetArtifactV2DetailComponentViewQueryPathParams, GetArtifactV2DetailComponentViewQueryQueryParams, GetArtifactV2DetailComponentViewRequestBody, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
47
49
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
48
50
|
export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2DetailDeploymentViewOkResponse, GetArtifactV2DetailDeploymentViewProps, GetArtifactV2DetailDeploymentViewQueryPathParams, GetArtifactV2DetailDeploymentViewQueryQueryParams, GetArtifactV2DetailDeploymentViewRequestBody, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
@@ -200,6 +202,7 @@ export type { ComplianceStandardByIdResponseBodyResponse } from './responses/Com
|
|
|
200
202
|
export type { ComplianceStandardsResponseBodyResponse } from './responses/ComplianceStandardsResponseBodyResponse';
|
|
201
203
|
export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
|
|
202
204
|
export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
|
|
205
|
+
export type { ComponentVulnerabilityListResponseBodyResponse } from './responses/ComponentVulnerabilityListResponseBodyResponse';
|
|
203
206
|
export type { ConfigResponseBodyResponse } from './responses/ConfigResponseBodyResponse';
|
|
204
207
|
export type { CreateIntegrationResponseBodyResponse } from './responses/CreateIntegrationResponseBodyResponse';
|
|
205
208
|
export type { CreateTicketResponseBodyResponse } from './responses/CreateTicketResponseBodyResponse';
|
|
@@ -321,6 +324,7 @@ export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
|
321
324
|
export type { ComponentDto } from './schemas/ComponentDto';
|
|
322
325
|
export type { ComponentFilter } from './schemas/ComponentFilter';
|
|
323
326
|
export type { ComponentSummary } from './schemas/ComponentSummary';
|
|
327
|
+
export type { ComponentVulnerabilityResponse } from './schemas/ComponentVulnerabilityResponse';
|
|
324
328
|
export type { ConfigInfo } from './schemas/ConfigInfo';
|
|
325
329
|
export type { ConfigRequestBody } from './schemas/ConfigRequestBody';
|
|
326
330
|
export type { ConfigResponseBody } from './schemas/ConfigResponseBody';
|
|
@@ -20,6 +20,7 @@ export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from '.
|
|
|
20
20
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
21
21
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
22
22
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
23
|
+
export { getArtifactV2ComponentVulnerabilityListByPurl, useGetArtifactV2ComponentVulnerabilityListByPurlQuery, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
|
|
23
24
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
24
25
|
export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
25
26
|
export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
|
package/dist/ssca-manager/src/services/responses/ComponentVulnerabilityListResponseBodyResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VulnerabilitySeverity } from '../schemas/VulnerabilitySeverity';
|
|
2
|
+
export interface ComponentVulnerabilityResponse {
|
|
3
|
+
/**
|
|
4
|
+
* List of reference identifiers like CVE IDs, GHSA IDs
|
|
5
|
+
*/
|
|
6
|
+
reference_identifiers?: string[];
|
|
7
|
+
severity?: VulnerabilitySeverity;
|
|
8
|
+
/**
|
|
9
|
+
* Numeric severity score (e.g., CVSS score)
|
|
10
|
+
* @format float
|
|
11
|
+
*/
|
|
12
|
+
severity_score?: number;
|
|
13
|
+
/**
|
|
14
|
+
* List of versions to upgrade to for fixing the vulnerability
|
|
15
|
+
*/
|
|
16
|
+
upgrade_versions?: string[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|