@harnessio/react-ssca-manager-client 0.83.8 → 0.83.11

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 (32) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentOverviewByPurlQuery.d.ts +22 -0
  2. package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentOverviewByPurlQuery.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentRemediationByPurlQuery.d.ts +26 -0
  4. package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentRemediationByPurlQuery.js +21 -0
  5. package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery.d.ts +39 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery.js +21 -0
  7. package/dist/ssca-manager/src/services/index.d.ts +17 -0
  8. package/dist/ssca-manager/src/services/index.js +3 -0
  9. package/dist/ssca-manager/src/services/responses/ArtifactComponentOverviewResponseBodyResponse.d.ts +2 -0
  10. package/dist/ssca-manager/src/services/responses/ArtifactComponentOverviewResponseBodyResponse.js +1 -0
  11. package/dist/ssca-manager/src/services/responses/ArtifactComponentRemediationResponseBodyResponse.d.ts +2 -0
  12. package/dist/ssca-manager/src/services/responses/ArtifactComponentRemediationResponseBodyResponse.js +1 -0
  13. package/dist/ssca-manager/src/services/responses/ComponentVulnerabilityListResponseBodyResponse.d.ts +2 -0
  14. package/dist/ssca-manager/src/services/responses/ComponentVulnerabilityListResponseBodyResponse.js +1 -0
  15. package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +4 -0
  16. package/dist/ssca-manager/src/services/schemas/ComponentRemediationResponse.d.ts +41 -0
  17. package/dist/ssca-manager/src/services/schemas/ComponentRemediationResponse.js +1 -0
  18. package/dist/ssca-manager/src/services/schemas/ComponentVulnerabilityResponse.d.ts +26 -0
  19. package/dist/ssca-manager/src/services/schemas/ComponentVulnerabilityResponse.js +1 -0
  20. package/dist/ssca-manager/src/services/schemas/DependencyChange.d.ts +20 -0
  21. package/dist/ssca-manager/src/services/schemas/DependencyChange.js +1 -0
  22. package/dist/ssca-manager/src/services/schemas/DependencyChanges.d.ts +11 -0
  23. package/dist/ssca-manager/src/services/schemas/DependencyChanges.js +1 -0
  24. package/dist/ssca-manager/src/services/schemas/EolStatus.d.ts +4 -0
  25. package/dist/ssca-manager/src/services/schemas/EolStatus.js +4 -0
  26. package/dist/ssca-manager/src/services/schemas/RemediationWarning.d.ts +4 -0
  27. package/dist/ssca-manager/src/services/schemas/RemediationWarning.js +4 -0
  28. package/dist/ssca-manager/src/services/schemas/TargetVersionVulnerability.d.ts +6 -0
  29. package/dist/ssca-manager/src/services/schemas/TargetVersionVulnerability.js +1 -0
  30. package/dist/ssca-manager/src/services/schemas/VulnerabilitySource.d.ts +4 -0
  31. package/dist/ssca-manager/src/services/schemas/VulnerabilitySource.js +4 -0
  32. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactComponentOverviewResponseBodyResponse } from '../responses/ArtifactComponentOverviewResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetArtifactComponentOverviewByPurlQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ artifact: string;
9
+ purl: string;
10
+ }
11
+ export interface GetArtifactComponentOverviewByPurlQueryHeaderParams {
12
+ 'Harness-Account': string;
13
+ }
14
+ export type GetArtifactComponentOverviewByPurlOkResponse = ResponseWithPagination<ArtifactComponentOverviewResponseBodyResponse>;
15
+ export type GetArtifactComponentOverviewByPurlErrorResponse = unknown;
16
+ export interface GetArtifactComponentOverviewByPurlProps extends GetArtifactComponentOverviewByPurlQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetArtifactComponentOverviewByPurlQueryHeaderParams>, 'url'> {
17
+ }
18
+ export declare function getArtifactComponentOverviewByPurl(props: GetArtifactComponentOverviewByPurlProps): Promise<GetArtifactComponentOverviewByPurlOkResponse>;
19
+ /**
20
+ * Artifact component overview by PURL
21
+ */
22
+ export declare function useGetArtifactComponentOverviewByPurlQuery(props: GetArtifactComponentOverviewByPurlProps, options?: Omit<UseQueryOptions<GetArtifactComponentOverviewByPurlOkResponse, GetArtifactComponentOverviewByPurlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactComponentOverviewByPurlOkResponse, unknown>;
@@ -0,0 +1,14 @@
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 getArtifactComponentOverviewByPurl(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/components/${props.purl}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Artifact component overview by PURL
11
+ */
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);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactComponentRemediationResponseBodyResponse } from '../responses/ArtifactComponentRemediationResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetArtifactComponentRemediationByPurlQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ artifact: string;
9
+ purl: string;
10
+ }
11
+ export interface GetArtifactComponentRemediationByPurlQueryQueryParams {
12
+ target_version?: string;
13
+ }
14
+ export interface GetArtifactComponentRemediationByPurlQueryHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type GetArtifactComponentRemediationByPurlOkResponse = ResponseWithPagination<ArtifactComponentRemediationResponseBodyResponse>;
18
+ export type GetArtifactComponentRemediationByPurlErrorResponse = unknown;
19
+ export interface GetArtifactComponentRemediationByPurlProps extends GetArtifactComponentRemediationByPurlQueryPathParams, Omit<FetcherOptions<GetArtifactComponentRemediationByPurlQueryQueryParams, unknown, GetArtifactComponentRemediationByPurlQueryHeaderParams>, 'url'> {
20
+ queryParams: GetArtifactComponentRemediationByPurlQueryQueryParams;
21
+ }
22
+ export declare function getArtifactComponentRemediationByPurl(props: GetArtifactComponentRemediationByPurlProps): Promise<GetArtifactComponentRemediationByPurlOkResponse>;
23
+ /**
24
+ * Artifact component remediation by PURL
25
+ */
26
+ export declare function useGetArtifactComponentRemediationByPurlQuery(props: GetArtifactComponentRemediationByPurlProps, options?: Omit<UseQueryOptions<GetArtifactComponentRemediationByPurlOkResponse, GetArtifactComponentRemediationByPurlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactComponentRemediationByPurlOkResponse, 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 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));
8
+ }
9
+ /**
10
+ * Artifact component remediation by PURL
11
+ */
12
+ export function useGetArtifactComponentRemediationByPurlQuery(props, options) {
13
+ return useQuery([
14
+ 'getArtifactComponentRemediationByPurl',
15
+ props.org,
16
+ props.project,
17
+ props.artifact,
18
+ props.purl,
19
+ props.queryParams,
20
+ ], ({ signal }) => getArtifactComponentRemediationByPurl(Object.assign(Object.assign({}, props), { signal })), options);
21
+ }
@@ -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?: number;
16
+ /**
17
+ * @default 0
18
+ */
19
+ page?: 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
+ }
@@ -39,10 +39,16 @@ 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';
43
+ export { getArtifactComponentOverviewByPurl, useGetArtifactComponentOverviewByPurlQuery, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
44
+ export type { GetArtifactComponentRemediationByPurlErrorResponse, GetArtifactComponentRemediationByPurlOkResponse, GetArtifactComponentRemediationByPurlProps, GetArtifactComponentRemediationByPurlQueryPathParams, GetArtifactComponentRemediationByPurlQueryQueryParams, } from './hooks/useGetArtifactComponentRemediationByPurlQuery';
45
+ export { getArtifactComponentRemediationByPurl, useGetArtifactComponentRemediationByPurlQuery, } from './hooks/useGetArtifactComponentRemediationByPurlQuery';
42
46
  export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemediationDetailsOkResponse, GetArtifactInRemediationDetailsProps, GetArtifactInRemediationDetailsQueryPathParams, } from './hooks/useGetArtifactInRemediationDetailsQuery';
43
47
  export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
44
48
  export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
45
49
  export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
50
+ export type { GetArtifactV2ComponentVulnerabilityListByPurlErrorResponse, GetArtifactV2ComponentVulnerabilityListByPurlOkResponse, GetArtifactV2ComponentVulnerabilityListByPurlProps, GetArtifactV2ComponentVulnerabilityListByPurlQueryPathParams, GetArtifactV2ComponentVulnerabilityListByPurlQueryQueryParams, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
51
+ export { getArtifactV2ComponentVulnerabilityListByPurl, useGetArtifactV2ComponentVulnerabilityListByPurlQuery, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
46
52
  export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewProps, GetArtifactV2DetailComponentViewQueryPathParams, GetArtifactV2DetailComponentViewQueryQueryParams, GetArtifactV2DetailComponentViewRequestBody, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
47
53
  export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
48
54
  export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2DetailDeploymentViewOkResponse, GetArtifactV2DetailDeploymentViewProps, GetArtifactV2DetailDeploymentViewQueryPathParams, GetArtifactV2DetailDeploymentViewQueryQueryParams, GetArtifactV2DetailDeploymentViewRequestBody, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
@@ -169,6 +175,8 @@ export type { SbomScoreRequestBodyRequestBody } from './requestBodies/SbomScoreR
169
175
  export type { SbomScorecardRequestBodyRequestBody } from './requestBodies/SbomScorecardRequestBodyRequestBody';
170
176
  export type { SlsaVerificationRequestBodyRequestBody } from './requestBodies/SlsaVerificationRequestBodyRequestBody';
171
177
  export type { SlsaVerificationRequestBodyV2RequestBody } from './requestBodies/SlsaVerificationRequestBodyV2RequestBody';
178
+ export type { ArtifactComponentOverviewResponseBodyResponse } from './responses/ArtifactComponentOverviewResponseBodyResponse';
179
+ export type { ArtifactComponentRemediationResponseBodyResponse } from './responses/ArtifactComponentRemediationResponseBodyResponse';
172
180
  export type { ArtifactComponentViewResponseBodyResponse } from './responses/ArtifactComponentViewResponseBodyResponse';
173
181
  export type { ArtifactComponentsResponseBodyResponse } from './responses/ArtifactComponentsResponseBodyResponse';
174
182
  export type { ArtifactDeploymentViewResponseBodyResponse } from './responses/ArtifactDeploymentViewResponseBodyResponse';
@@ -200,6 +208,7 @@ export type { ComplianceStandardByIdResponseBodyResponse } from './responses/Com
200
208
  export type { ComplianceStandardsResponseBodyResponse } from './responses/ComplianceStandardsResponseBodyResponse';
201
209
  export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
202
210
  export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
211
+ export type { ComponentVulnerabilityListResponseBodyResponse } from './responses/ComponentVulnerabilityListResponseBodyResponse';
203
212
  export type { ConfigResponseBodyResponse } from './responses/ConfigResponseBodyResponse';
204
213
  export type { CreateIntegrationResponseBodyResponse } from './responses/CreateIntegrationResponseBodyResponse';
205
214
  export type { CreateTicketResponseBodyResponse } from './responses/CreateTicketResponseBodyResponse';
@@ -320,7 +329,9 @@ export type { ComponentDrift } from './schemas/ComponentDrift';
320
329
  export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
321
330
  export type { ComponentDto } from './schemas/ComponentDto';
322
331
  export type { ComponentFilter } from './schemas/ComponentFilter';
332
+ export type { ComponentRemediationResponse } from './schemas/ComponentRemediationResponse';
323
333
  export type { ComponentSummary } from './schemas/ComponentSummary';
334
+ export type { ComponentVulnerabilityResponse } from './schemas/ComponentVulnerabilityResponse';
324
335
  export type { ConfigInfo } from './schemas/ConfigInfo';
325
336
  export type { ConfigRequestBody } from './schemas/ConfigRequestBody';
326
337
  export type { ConfigResponseBody } from './schemas/ConfigResponseBody';
@@ -336,6 +347,8 @@ export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
336
347
  export type { CveVulnerability } from './schemas/CveVulnerability';
337
348
  export type { DefaultVulnerability } from './schemas/DefaultVulnerability';
338
349
  export type { DeleteRepositoriesRequestBody } from './schemas/DeleteRepositoriesRequestBody';
350
+ export type { DependencyChange } from './schemas/DependencyChange';
351
+ export type { DependencyChanges } from './schemas/DependencyChanges';
339
352
  export type { DependencyType } from './schemas/DependencyType';
340
353
  export type { DeploymentActivity } from './schemas/DeploymentActivity';
341
354
  export type { Deployments } from './schemas/Deployments';
@@ -356,6 +369,7 @@ export type { EnforcementSummaryResponse } from './schemas/EnforcementSummaryRes
356
369
  export type { EnvironmentInfo } from './schemas/EnvironmentInfo';
357
370
  export type { EnvironmentType } from './schemas/EnvironmentType';
358
371
  export type { EnvironmentTypeFilter } from './schemas/EnvironmentTypeFilter';
372
+ export type { EolStatus } from './schemas/EolStatus';
359
373
  export type { Error } from './schemas/Error';
360
374
  export type { ExcludeArtifactRequest } from './schemas/ExcludeArtifactRequest';
361
375
  export type { ExecutionContext } from './schemas/ExecutionContext';
@@ -438,6 +452,7 @@ export type { RemediationTrackerCreateResponseBody } from './schemas/Remediation
438
452
  export type { RemediationTrackerUpdateRequestBody } from './schemas/RemediationTrackerUpdateRequestBody';
439
453
  export type { RemediationTrackerUpdateResponseBody } from './schemas/RemediationTrackerUpdateResponseBody';
440
454
  export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
455
+ export type { RemediationWarning } from './schemas/RemediationWarning';
441
456
  export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
442
457
  export type { Repositories } from './schemas/Repositories';
443
458
  export type { RepositoriesSummary } from './schemas/RepositoriesSummary';
@@ -475,6 +490,7 @@ export type { SlsaVerificationRequestBody } from './schemas/SlsaVerificationRequ
475
490
  export type { SlsaVerificationRequestBodyV2 } from './schemas/SlsaVerificationRequestBodyV2';
476
491
  export type { SscaSummary } from './schemas/SscaSummary';
477
492
  export type { StoIssueCount } from './schemas/StoIssueCount';
493
+ export type { TargetVersionVulnerability } from './schemas/TargetVersionVulnerability';
478
494
  export type { TicketInfo } from './schemas/TicketInfo';
479
495
  export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
480
496
  export type { TokenIssueTokenResponseBody } from './schemas/TokenIssueTokenResponseBody';
@@ -486,4 +502,5 @@ export type { Violations } from './schemas/Violations';
486
502
  export type { VulnerabilityActivity } from './schemas/VulnerabilityActivity';
487
503
  export type { VulnerabilityInfo } from './schemas/VulnerabilityInfo';
488
504
  export type { VulnerabilitySeverity } from './schemas/VulnerabilitySeverity';
505
+ export type { VulnerabilitySource } from './schemas/VulnerabilitySource';
489
506
  export type { WorkflowSource } from './schemas/WorkflowSource';
@@ -18,8 +18,11 @@ export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hoo
18
18
  export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
19
19
  export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
20
20
  export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
21
+ export { getArtifactComponentOverviewByPurl, useGetArtifactComponentOverviewByPurlQuery, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
22
+ export { getArtifactComponentRemediationByPurl, useGetArtifactComponentRemediationByPurlQuery, } from './hooks/useGetArtifactComponentRemediationByPurlQuery';
21
23
  export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
22
24
  export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
25
+ export { getArtifactV2ComponentVulnerabilityListByPurl, useGetArtifactV2ComponentVulnerabilityListByPurlQuery, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
23
26
  export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
24
27
  export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
25
28
  export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
@@ -0,0 +1,2 @@
1
+ import type { ArtifactComponentViewResponse } from '../schemas/ArtifactComponentViewResponse';
2
+ export type ArtifactComponentOverviewResponseBodyResponse = ArtifactComponentViewResponse;
@@ -0,0 +1,2 @@
1
+ import type { ComponentRemediationResponse } from '../schemas/ComponentRemediationResponse';
2
+ export type ArtifactComponentRemediationResponseBodyResponse = ComponentRemediationResponse;
@@ -0,0 +1,2 @@
1
+ import type { ComponentVulnerabilityResponse } from '../schemas/ComponentVulnerabilityResponse';
2
+ export type ComponentVulnerabilityListResponseBodyResponse = ComponentVulnerabilityResponse[];
@@ -1,6 +1,9 @@
1
+ import type { DependencyType } from '../schemas/DependencyType';
1
2
  import type { LayerType } from '../schemas/LayerType';
2
3
  import type { StoIssueCount } from '../schemas/StoIssueCount';
4
+ import type { VulnerabilitySource } from '../schemas/VulnerabilitySource';
3
5
  export interface ArtifactComponentViewResponse {
6
+ dependency_types?: DependencyType[];
4
7
  /**
5
8
  * details of the component
6
9
  */
@@ -38,4 +41,5 @@ export interface ArtifactComponentViewResponse {
38
41
  package_supplier?: string;
39
42
  package_version?: string;
40
43
  purl?: string;
44
+ vulnerability_source?: VulnerabilitySource;
41
45
  }
@@ -0,0 +1,41 @@
1
+ import type { DependencyChanges } from '../schemas/DependencyChanges';
2
+ import type { EolStatus } from '../schemas/EolStatus';
3
+ import type { RemediationWarning } from '../schemas/RemediationWarning';
4
+ import type { TargetVersionVulnerability } from '../schemas/TargetVersionVulnerability';
5
+ export interface ComponentRemediationResponse {
6
+ /**
7
+ * Current version of the component
8
+ */
9
+ current_version: string;
10
+ dependency_changes?: DependencyChanges;
11
+ eol_status?: EolStatus;
12
+ /**
13
+ * Whether the component is outdated or not
14
+ */
15
+ is_outdated?: boolean;
16
+ /**
17
+ * Recommended version to upgrade
18
+ */
19
+ recommended_version: string;
20
+ /**
21
+ * Remediation information
22
+ */
23
+ remediation_info?: string;
24
+ /**
25
+ * List of warnings
26
+ */
27
+ remediation_warnings?: RemediationWarning[];
28
+ /**
29
+ * Summary of the remediation
30
+ */
31
+ summary: string;
32
+ /**
33
+ * Target version of the component
34
+ */
35
+ target_version?: string;
36
+ target_version_vulnerability?: TargetVersionVulnerability;
37
+ /**
38
+ * List of versions to upgrade to for fixing the vulnerability
39
+ */
40
+ target_versions: string[];
41
+ }
@@ -0,0 +1,26 @@
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?: Array<{
7
+ /**
8
+ * The reference identifier value (e.g., CVE-2021-44228)
9
+ */
10
+ identifier?: string;
11
+ /**
12
+ * The type of identifier (e.g., CVE, GHSA, CWE)
13
+ */
14
+ type?: string;
15
+ }>;
16
+ severity?: VulnerabilitySeverity;
17
+ /**
18
+ * Numeric severity score (e.g., CVSS score)
19
+ * @format float
20
+ */
21
+ severity_score?: number;
22
+ /**
23
+ * List of versions to upgrade to for fixing the vulnerability
24
+ */
25
+ upgrade_versions?: string[];
26
+ }
@@ -0,0 +1,20 @@
1
+ import type { StoIssueCount } from '../schemas/StoIssueCount';
2
+ export interface DependencyChange {
3
+ /**
4
+ * Type of change
5
+ */
6
+ change_type?: 'ADDED' | 'MODIFIED' | 'REMOVED';
7
+ /**
8
+ * Name of the dependency
9
+ */
10
+ name?: string;
11
+ /**
12
+ * Purl of the dependency
13
+ */
14
+ purl?: string;
15
+ /**
16
+ * Version of the dependency
17
+ */
18
+ version?: string;
19
+ vulnerabilities_count?: StoIssueCount;
20
+ }
@@ -0,0 +1,11 @@
1
+ import type { DependencyChange } from '../schemas/DependencyChange';
2
+ export interface DependencyChanges {
3
+ /**
4
+ * List of dependencies added
5
+ */
6
+ changes?: DependencyChange[];
7
+ /**
8
+ * List of warnings
9
+ */
10
+ warnings?: string[];
11
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * End of life status of the component
3
+ */
4
+ export type EolStatus = 'CLOSE_TO_EOL' | 'DERIVED_EOL' | 'EOL';
@@ -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,4 @@
1
+ export interface RemediationWarning {
2
+ message: string;
3
+ review_purl?: string;
4
+ }
@@ -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,6 @@
1
+ import type { StoIssueCount } from '../schemas/StoIssueCount';
2
+ export interface TargetVersionVulnerability {
3
+ info?: string;
4
+ vulnerabilities_count?: StoIssueCount;
5
+ warning?: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Source of vulnerabilities
3
+ */
4
+ export type VulnerabilitySource = 'INTERNAL' | 'STO';
@@ -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.8",
3
+ "version": "0.83.11",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",