@harnessio/react-ssca-manager-client 0.83.11 → 0.83.13
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/useGetArtifactComponentOverviewByPurlQuery.d.ts +4 -1
- package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentOverviewByPurlQuery.js +8 -2
- package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentRemediationByPurlQuery.d.ts +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentRemediationByPurlQuery.js +1 -2
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery.d.ts +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery.js +1 -2
- package/dist/ssca-manager/src/services/index.d.ts +3 -1
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryListingResponse.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentVulnerabilityResponse.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/VulnerabilitySourceConfigRequestBody.d.ts +18 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilitySourceConfigRequestBody.js +4 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilitySourceConfigResponse.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilitySourceConfigResponse.js +4 -0
- package/package.json +1 -1
package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentOverviewByPurlQuery.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export interface GetArtifactComponentOverviewByPurlQueryPathParams {
|
|
|
6
6
|
org: string;
|
|
7
7
|
project: string;
|
|
8
8
|
artifact: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetArtifactComponentOverviewByPurlQueryQueryParams {
|
|
9
11
|
purl: string;
|
|
10
12
|
}
|
|
11
13
|
export interface GetArtifactComponentOverviewByPurlQueryHeaderParams {
|
|
@@ -13,7 +15,8 @@ export interface GetArtifactComponentOverviewByPurlQueryHeaderParams {
|
|
|
13
15
|
}
|
|
14
16
|
export type GetArtifactComponentOverviewByPurlOkResponse = ResponseWithPagination<ArtifactComponentOverviewResponseBodyResponse>;
|
|
15
17
|
export type GetArtifactComponentOverviewByPurlErrorResponse = unknown;
|
|
16
|
-
export interface GetArtifactComponentOverviewByPurlProps extends GetArtifactComponentOverviewByPurlQueryPathParams, Omit<FetcherOptions<
|
|
18
|
+
export interface GetArtifactComponentOverviewByPurlProps extends GetArtifactComponentOverviewByPurlQueryPathParams, Omit<FetcherOptions<GetArtifactComponentOverviewByPurlQueryQueryParams, unknown, GetArtifactComponentOverviewByPurlQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetArtifactComponentOverviewByPurlQueryQueryParams;
|
|
17
20
|
}
|
|
18
21
|
export declare function getArtifactComponentOverviewByPurl(props: GetArtifactComponentOverviewByPurlProps): Promise<GetArtifactComponentOverviewByPurlOkResponse>;
|
|
19
22
|
/**
|
|
@@ -4,11 +4,17 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getArtifactComponentOverviewByPurl(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/component/overview`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Artifact component overview by PURL
|
|
11
11
|
*/
|
|
12
12
|
export function useGetArtifactComponentOverviewByPurlQuery(props, options) {
|
|
13
|
-
return useQuery([
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getArtifactComponentOverviewByPurl',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.artifact,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => getArtifactComponentOverviewByPurl(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
20
|
}
|
package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentRemediationByPurlQuery.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ export interface GetArtifactComponentRemediationByPurlQueryPathParams {
|
|
|
6
6
|
org: string;
|
|
7
7
|
project: string;
|
|
8
8
|
artifact: string;
|
|
9
|
-
purl: string;
|
|
10
9
|
}
|
|
11
10
|
export interface GetArtifactComponentRemediationByPurlQueryQueryParams {
|
|
12
11
|
target_version?: string;
|
|
12
|
+
purl: string;
|
|
13
13
|
}
|
|
14
14
|
export interface GetArtifactComponentRemediationByPurlQueryHeaderParams {
|
|
15
15
|
'Harness-Account': string;
|
package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentRemediationByPurlQuery.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getArtifactComponentRemediationByPurl(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/component/remediation`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Artifact component remediation by PURL
|
|
@@ -15,7 +15,6 @@ export function useGetArtifactComponentRemediationByPurlQuery(props, options) {
|
|
|
15
15
|
props.org,
|
|
16
16
|
props.project,
|
|
17
17
|
props.artifact,
|
|
18
|
-
props.purl,
|
|
19
18
|
props.queryParams,
|
|
20
19
|
], ({ signal }) => getArtifactComponentRemediationByPurl(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
20
|
}
|
|
@@ -6,9 +6,9 @@ export interface GetArtifactV2ComponentVulnerabilityListByPurlQueryPathParams {
|
|
|
6
6
|
org: string;
|
|
7
7
|
project: string;
|
|
8
8
|
artifact: string;
|
|
9
|
-
purl: string;
|
|
10
9
|
}
|
|
11
10
|
export interface GetArtifactV2ComponentVulnerabilityListByPurlQueryQueryParams {
|
|
11
|
+
purl: string;
|
|
12
12
|
/**
|
|
13
13
|
* @default 30
|
|
14
14
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getArtifactV2ComponentVulnerabilityListByPurl(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/component/vulnerabilities`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get artifactV2 detail component view
|
|
@@ -15,7 +15,6 @@ export function useGetArtifactV2ComponentVulnerabilityListByPurlQuery(props, opt
|
|
|
15
15
|
props.org,
|
|
16
16
|
props.project,
|
|
17
17
|
props.artifact,
|
|
18
|
-
props.purl,
|
|
19
18
|
props.queryParams,
|
|
20
19
|
], ({ signal }) => getArtifactV2ComponentVulnerabilityListByPurl(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
20
|
}
|
|
@@ -39,7 +39,7 @@ export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryO
|
|
|
39
39
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
40
40
|
export type { GetArtifactChainOfCustodyV2ErrorResponse, GetArtifactChainOfCustodyV2OkResponse, GetArtifactChainOfCustodyV2Props, GetArtifactChainOfCustodyV2QueryPathParams, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
41
41
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
42
|
-
export type { GetArtifactComponentOverviewByPurlErrorResponse, GetArtifactComponentOverviewByPurlOkResponse, GetArtifactComponentOverviewByPurlProps, GetArtifactComponentOverviewByPurlQueryPathParams, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
|
|
42
|
+
export type { GetArtifactComponentOverviewByPurlErrorResponse, GetArtifactComponentOverviewByPurlOkResponse, GetArtifactComponentOverviewByPurlProps, GetArtifactComponentOverviewByPurlQueryPathParams, GetArtifactComponentOverviewByPurlQueryQueryParams, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
|
|
43
43
|
export { getArtifactComponentOverviewByPurl, useGetArtifactComponentOverviewByPurlQuery, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
|
|
44
44
|
export type { GetArtifactComponentRemediationByPurlErrorResponse, GetArtifactComponentRemediationByPurlOkResponse, GetArtifactComponentRemediationByPurlProps, GetArtifactComponentRemediationByPurlQueryPathParams, GetArtifactComponentRemediationByPurlQueryQueryParams, } from './hooks/useGetArtifactComponentRemediationByPurlQuery';
|
|
45
45
|
export { getArtifactComponentRemediationByPurl, useGetArtifactComponentRemediationByPurlQuery, } from './hooks/useGetArtifactComponentRemediationByPurlQuery';
|
|
@@ -503,4 +503,6 @@ export type { VulnerabilityActivity } from './schemas/VulnerabilityActivity';
|
|
|
503
503
|
export type { VulnerabilityInfo } from './schemas/VulnerabilityInfo';
|
|
504
504
|
export type { VulnerabilitySeverity } from './schemas/VulnerabilitySeverity';
|
|
505
505
|
export type { VulnerabilitySource } from './schemas/VulnerabilitySource';
|
|
506
|
+
export type { VulnerabilitySourceConfigRequestBody } from './schemas/VulnerabilitySourceConfigRequestBody';
|
|
507
|
+
export type { VulnerabilitySourceConfigResponse } from './schemas/VulnerabilitySourceConfigResponse';
|
|
506
508
|
export type { WorkflowSource } from './schemas/WorkflowSource';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface VulnerabilitySourceConfigRequestBody {
|
|
2
|
+
/**
|
|
3
|
+
* Allow child scopes to override this configuration
|
|
4
|
+
*/
|
|
5
|
+
allow_override?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Organization identifier
|
|
8
|
+
*/
|
|
9
|
+
org?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Project identifier
|
|
12
|
+
*/
|
|
13
|
+
project?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Source for vulnerability scanning - STO or Open Source
|
|
16
|
+
*/
|
|
17
|
+
vulnerability_source: 'OPEN_SOURCE' | 'STO';
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface VulnerabilitySourceConfigResponse {
|
|
2
|
+
/**
|
|
3
|
+
* Whether child scopes can override this configuration
|
|
4
|
+
*/
|
|
5
|
+
allow_override?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The scope at which this configuration is set (account/org/project)
|
|
8
|
+
*/
|
|
9
|
+
scope?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Current vulnerability source configuration
|
|
12
|
+
*/
|
|
13
|
+
vulnerability_source?: 'OPEN_SOURCE' | 'STO';
|
|
14
|
+
}
|