@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.
@@ -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<unknown, unknown, GetArtifactComponentOverviewByPurlQueryHeaderParams>, 'url'> {
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}/components/${props.purl}`, method: 'GET' }, props));
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(['getArtifactComponentOverviewByPurl', props.org, props.project, props.artifact, props.purl], ({ signal }) => getArtifactComponentOverviewByPurl(Object.assign(Object.assign({}, props), { signal })), options);
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
  }
@@ -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;
@@ -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}/components/${props.purl}/remediation`, method: 'GET' }, props));
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}/components/${props.purl}/vulnerabilities`, method: 'GET' }, props));
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';
@@ -13,6 +13,7 @@ export interface CodeRepositoryListingResponse {
13
13
  * Code Respository ID
14
14
  */
15
15
  id?: string;
16
+ last_activity_at?: string;
16
17
  last_scan?: PipelineDetails;
17
18
  /**
18
19
  * Code Repository Name
@@ -7,7 +7,7 @@ export interface ComponentVulnerabilityResponse {
7
7
  /**
8
8
  * The reference identifier value (e.g., CVE-2021-44228)
9
9
  */
10
- identifier?: string;
10
+ id?: string;
11
11
  /**
12
12
  * The type of identifier (e.g., CVE, GHSA, CWE)
13
13
  */
@@ -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,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.83.11",
3
+ "version": "0.83.13",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",