@harnessio/react-ssca-manager-client 0.17.0 → 0.19.0
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/useCreateRemediationTrackerMutation.d.ts +23 -0
- package/dist/ssca-manager/src/services/hooks/useCreateRemediationTrackerMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetOverallSummaryQuery.d.ts +20 -0
- package/dist/ssca-manager/src/services/hooks/useGetOverallSummaryQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useListRemediationsQuery.d.ts +39 -0
- package/dist/ssca-manager/src/services/hooks/useListRemediationsQuery.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +23 -0
- package/dist/ssca-manager/src/services/index.js +3 -0
- package/dist/ssca-manager/src/services/requestBodies/RemediationTrackerCreateRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/RemediationTrackerCreateRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/responses/RemediationListingResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/RemediationListingResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/RemediationTrackerCreateResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/RemediationTrackerCreateResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/RemediationTrackersOverallSummaryResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/RemediationTrackersOverallSummaryResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactSbomDriftResponse.d.ts +12 -4
- package/dist/ssca-manager/src/services/schemas/ArtifactSbomDriftResponse.js +0 -3
- package/dist/ssca-manager/src/services/schemas/ComponentDriftSummary.d.ts +21 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDriftSummary.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ContactInfo.d.ts +13 -0
- package/dist/ssca-manager/src/services/schemas/ContactInfo.js +4 -0
- package/dist/ssca-manager/src/services/schemas/DeploymentsCount.d.ts +22 -0
- package/dist/ssca-manager/src/services/schemas/DeploymentsCount.js +4 -0
- package/dist/ssca-manager/src/services/schemas/LicenseDriftSummary.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/LicenseDriftSummary.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationCondition.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/RemediationCondition.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationCount.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/RemediationCount.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RemediationListingResponse.d.ts +42 -0
- package/dist/ssca-manager/src/services/schemas/RemediationListingResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RemediationStatus.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/RemediationStatus.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationTrackerCreateRequestBody.d.ts +20 -0
- package/dist/ssca-manager/src/services/schemas/RemediationTrackerCreateRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RemediationTrackerCreateResponseBody.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/RemediationTrackerCreateResponseBody.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationTrackersOverallSummaryResponseBody.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/RemediationTrackersOverallSummaryResponseBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilityInfo.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilityInfo.js +1 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilitySeverity.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilitySeverity.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RemediationTrackerCreateResponseBodyResponse } from '../responses/RemediationTrackerCreateResponseBodyResponse';
|
|
3
|
+
import type { RemediationTrackerCreateRequestBodyRequestBody } from '../requestBodies/RemediationTrackerCreateRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CreateRemediationTrackerMutationPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CreateRemediationTrackerMutationHeaderParams {
|
|
11
|
+
'Harness-Account'?: string;
|
|
12
|
+
}
|
|
13
|
+
export type CreateRemediationTrackerRequestBody = RemediationTrackerCreateRequestBodyRequestBody;
|
|
14
|
+
export type CreateRemediationTrackerOkResponse = ResponseWithPagination<RemediationTrackerCreateResponseBodyResponse>;
|
|
15
|
+
export type CreateRemediationTrackerErrorResponse = unknown;
|
|
16
|
+
export interface CreateRemediationTrackerProps extends CreateRemediationTrackerMutationPathParams, Omit<FetcherOptions<unknown, CreateRemediationTrackerRequestBody, CreateRemediationTrackerMutationHeaderParams>, 'url'> {
|
|
17
|
+
body: CreateRemediationTrackerRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function createRemediationTracker(props: CreateRemediationTrackerProps): Promise<CreateRemediationTrackerOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Create Remediation Tracker.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useCreateRemediationTrackerMutation(options?: Omit<UseMutationOptions<CreateRemediationTrackerOkResponse, CreateRemediationTrackerErrorResponse, CreateRemediationTrackerProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRemediationTrackerOkResponse, unknown, CreateRemediationTrackerProps, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function createRemediationTracker(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/remediations`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create Remediation Tracker.
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateRemediationTrackerMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createRemediationTracker(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RemediationTrackersOverallSummaryResponseBodyResponse } from '../responses/RemediationTrackersOverallSummaryResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetOverallSummaryQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetOverallSummaryQueryHeaderParams {
|
|
10
|
+
'Harness-Account'?: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetOverallSummaryOkResponse = ResponseWithPagination<RemediationTrackersOverallSummaryResponseBodyResponse>;
|
|
13
|
+
export type GetOverallSummaryErrorResponse = unknown;
|
|
14
|
+
export interface GetOverallSummaryProps extends GetOverallSummaryQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetOverallSummaryQueryHeaderParams>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function getOverallSummary(props: GetOverallSummaryProps): Promise<GetOverallSummaryOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get Overall summary of Remediation Trackers.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetOverallSummaryQuery(props: GetOverallSummaryProps, options?: Omit<UseQueryOptions<GetOverallSummaryOkResponse, GetOverallSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOverallSummaryOkResponse, 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 getOverallSummary(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/remediations/overall-summary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Overall summary of Remediation Trackers.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOverallSummaryQuery(props, options) {
|
|
13
|
+
return useQuery(['getOverallSummary', props.org, props.project], ({ signal }) => getOverallSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RemediationListingResponseBodyResponse } from '../responses/RemediationListingResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface ListRemediationsQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ListRemediationsQueryQueryParams {
|
|
10
|
+
/**
|
|
11
|
+
* @default 30
|
|
12
|
+
*/
|
|
13
|
+
limit?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @default "ASC"
|
|
16
|
+
*/
|
|
17
|
+
order?: 'ASC' | 'DESC';
|
|
18
|
+
/**
|
|
19
|
+
* @default 0
|
|
20
|
+
*/
|
|
21
|
+
page?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @default "component"
|
|
24
|
+
*/
|
|
25
|
+
sort?: {};
|
|
26
|
+
}
|
|
27
|
+
export interface ListRemediationsQueryHeaderParams {
|
|
28
|
+
'Harness-Account'?: string;
|
|
29
|
+
}
|
|
30
|
+
export type ListRemediationsOkResponse = ResponseWithPagination<RemediationListingResponseBodyResponse>;
|
|
31
|
+
export type ListRemediationsErrorResponse = unknown;
|
|
32
|
+
export interface ListRemediationsProps extends ListRemediationsQueryPathParams, Omit<FetcherOptions<ListRemediationsQueryQueryParams, unknown, ListRemediationsQueryHeaderParams>, 'url'> {
|
|
33
|
+
queryParams: ListRemediationsQueryQueryParams;
|
|
34
|
+
}
|
|
35
|
+
export declare function listRemediations(props: ListRemediationsProps): Promise<ListRemediationsOkResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* List all Remediation Trackers.
|
|
38
|
+
*/
|
|
39
|
+
export declare function useListRemediationsQuery(props: ListRemediationsProps, options?: Omit<UseQueryOptions<ListRemediationsOkResponse, ListRemediationsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRemediationsOkResponse, 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 listRemediations(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/remediations`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List all Remediation Trackers.
|
|
11
|
+
*/
|
|
12
|
+
export function useListRemediationsQuery(props, options) {
|
|
13
|
+
return useQuery(['listRemediations', props.org, props.project, props.queryParams], ({ signal }) => listRemediations(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
2
|
export type { CalculateDriftForArtifactErrorResponse, CalculateDriftForArtifactMutationPathParams, CalculateDriftForArtifactOkResponse, CalculateDriftForArtifactProps, CalculateDriftForArtifactRequestBody, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
3
3
|
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
4
|
+
export type { CreateRemediationTrackerErrorResponse, CreateRemediationTrackerMutationPathParams, CreateRemediationTrackerOkResponse, CreateRemediationTrackerProps, CreateRemediationTrackerRequestBody, } from './hooks/useCreateRemediationTrackerMutation';
|
|
5
|
+
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
4
6
|
export type { DownloadSbomErrorResponse, DownloadSbomOkResponse, DownloadSbomProps, DownloadSbomQueryPathParams, } from './hooks/useDownloadSbomQuery';
|
|
5
7
|
export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
|
|
6
8
|
export type { GetArtifactDetailComponentViewErrorResponse, GetArtifactDetailComponentViewOkResponse, GetArtifactDetailComponentViewProps, GetArtifactDetailComponentViewQueryPathParams, GetArtifactDetailComponentViewQueryQueryParams, GetArtifactDetailComponentViewRequestBody, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
@@ -15,6 +17,8 @@ export type { GetComponentDriftErrorResponse, GetComponentDriftOkResponse, GetCo
|
|
|
15
17
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
16
18
|
export type { GetLicenseDriftErrorResponse, GetLicenseDriftOkResponse, GetLicenseDriftProps, GetLicenseDriftQueryPathParams, GetLicenseDriftQueryQueryParams, } from './hooks/useGetLicenseDriftQuery';
|
|
17
19
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
20
|
+
export type { GetOverallSummaryErrorResponse, GetOverallSummaryOkResponse, GetOverallSummaryProps, GetOverallSummaryQueryPathParams, } from './hooks/useGetOverallSummaryQuery';
|
|
21
|
+
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
18
22
|
export type { GetPolicyViolationsErrorResponse, GetPolicyViolationsOkResponse, GetPolicyViolationsProps, GetPolicyViolationsQueryPathParams, GetPolicyViolationsQueryQueryParams, } from './hooks/useGetPolicyViolationsQuery';
|
|
19
23
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
20
24
|
export type { GetSbomScorecardErrorResponse, GetSbomScorecardOkResponse, GetSbomScorecardProps, GetSbomScorecardQueryPathParams, } from './hooks/useGetSbomScorecardQuery';
|
|
@@ -23,10 +27,13 @@ export type { ListArtifactsErrorResponse, ListArtifactsOkResponse, ListArtifacts
|
|
|
23
27
|
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
24
28
|
export type { ListLatestArtifactsErrorResponse, ListLatestArtifactsOkResponse, ListLatestArtifactsProps, ListLatestArtifactsQueryPathParams, ListLatestArtifactsQueryQueryParams, } from './hooks/useListLatestArtifactsQuery';
|
|
25
29
|
export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
|
|
30
|
+
export type { ListRemediationsErrorResponse, ListRemediationsOkResponse, ListRemediationsProps, ListRemediationsQueryPathParams, ListRemediationsQueryQueryParams, } from './hooks/useListRemediationsQuery';
|
|
31
|
+
export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
|
|
26
32
|
export type { SetBaselineForArtifactErrorResponse, SetBaselineForArtifactMutationPathParams, SetBaselineForArtifactOkResponse, SetBaselineForArtifactProps, SetBaselineForArtifactRequestBody, } from './hooks/useSetBaselineForArtifactMutation';
|
|
27
33
|
export { setBaselineForArtifact, useSetBaselineForArtifactMutation, } from './hooks/useSetBaselineForArtifactMutation';
|
|
28
34
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
29
35
|
export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
|
|
36
|
+
export type { RemediationTrackerCreateRequestBodyRequestBody } from './requestBodies/RemediationTrackerCreateRequestBodyRequestBody';
|
|
30
37
|
export type { ArtifactComponentViewResponseBodyResponse } from './responses/ArtifactComponentViewResponseBodyResponse';
|
|
31
38
|
export type { ArtifactDeploymentViewResponseBodyResponse } from './responses/ArtifactDeploymentViewResponseBodyResponse';
|
|
32
39
|
export type { ArtifactDetailResponseBodyResponse } from './responses/ArtifactDetailResponseBodyResponse';
|
|
@@ -37,6 +44,9 @@ export type { BaselineResponseBodyResponse } from './responses/BaselineResponseB
|
|
|
37
44
|
export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
|
|
38
45
|
export type { LicenseDriftResponseBodyResponse } from './responses/LicenseDriftResponseBodyResponse';
|
|
39
46
|
export type { PolicyViolationResponseResponse } from './responses/PolicyViolationResponseResponse';
|
|
47
|
+
export type { RemediationListingResponseBodyResponse } from './responses/RemediationListingResponseBodyResponse';
|
|
48
|
+
export type { RemediationTrackerCreateResponseBodyResponse } from './responses/RemediationTrackerCreateResponseBodyResponse';
|
|
49
|
+
export type { RemediationTrackersOverallSummaryResponseBodyResponse } from './responses/RemediationTrackersOverallSummaryResponseBodyResponse';
|
|
40
50
|
export type { SaveResponseResponse } from './responses/SaveResponseResponse';
|
|
41
51
|
export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
|
|
42
52
|
export type { ArtifactComponentViewRequestBody } from './schemas/ArtifactComponentViewRequestBody';
|
|
@@ -53,14 +63,27 @@ export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
|
|
|
53
63
|
export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
54
64
|
export type { CategoryScorecard } from './schemas/CategoryScorecard';
|
|
55
65
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
66
|
+
export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
56
67
|
export type { ComponentFilter } from './schemas/ComponentFilter';
|
|
57
68
|
export type { ComponentSummary } from './schemas/ComponentSummary';
|
|
69
|
+
export type { ContactInfo } from './schemas/ContactInfo';
|
|
70
|
+
export type { DeploymentsCount } from './schemas/DeploymentsCount';
|
|
58
71
|
export type { LicenseDrift } from './schemas/LicenseDrift';
|
|
72
|
+
export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
|
|
59
73
|
export type { LicenseFilter } from './schemas/LicenseFilter';
|
|
60
74
|
export type { Operator } from './schemas/Operator';
|
|
61
75
|
export type { PolicyViolation } from './schemas/PolicyViolation';
|
|
76
|
+
export type { RemediationCondition } from './schemas/RemediationCondition';
|
|
77
|
+
export type { RemediationCount } from './schemas/RemediationCount';
|
|
78
|
+
export type { RemediationListingResponse } from './schemas/RemediationListingResponse';
|
|
79
|
+
export type { RemediationStatus } from './schemas/RemediationStatus';
|
|
80
|
+
export type { RemediationTrackerCreateRequestBody } from './schemas/RemediationTrackerCreateRequestBody';
|
|
81
|
+
export type { RemediationTrackerCreateResponseBody } from './schemas/RemediationTrackerCreateResponseBody';
|
|
82
|
+
export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
|
|
62
83
|
export type { SaveResponse } from './schemas/SaveResponse';
|
|
63
84
|
export type { SbomDetailsForScorecard } from './schemas/SbomDetailsForScorecard';
|
|
64
85
|
export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
|
|
65
86
|
export type { ScorecardInfo } from './schemas/ScorecardInfo';
|
|
66
87
|
export type { Slsa } from './schemas/Slsa';
|
|
88
|
+
export type { VulnerabilityInfo } from './schemas/VulnerabilityInfo';
|
|
89
|
+
export type { VulnerabilitySeverity } from './schemas/VulnerabilitySeverity';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
2
|
+
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
2
3
|
export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
|
|
3
4
|
export { getArtifactDetailComponentView, useGetArtifactDetailComponentViewQuery, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
4
5
|
export { getArtifactDetailDeploymentView, useGetArtifactDetailDeploymentViewQuery, } from './hooks/useGetArtifactDetailDeploymentViewQuery';
|
|
@@ -6,8 +7,10 @@ export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetAr
|
|
|
6
7
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
7
8
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
8
9
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
10
|
+
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
9
11
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
10
12
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
11
13
|
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
12
14
|
export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
|
|
15
|
+
export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
|
|
13
16
|
export { setBaselineForArtifact, useSetBaselineForArtifactMutation, } from './hooks/useSetBaselineForArtifactMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/responses/RemediationTrackerCreateResponseBodyResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ComponentDriftSummary } from '../schemas/ComponentDriftSummary';
|
|
2
|
+
import type { LicenseDriftSummary } from '../schemas/LicenseDriftSummary';
|
|
1
3
|
/**
|
|
2
4
|
* Response body for sbom drift calculation between 2 artifact versions.
|
|
3
5
|
*/
|
|
@@ -5,17 +7,23 @@ export interface ArtifactSbomDriftResponse {
|
|
|
5
7
|
/**
|
|
6
8
|
* Artifact name
|
|
7
9
|
*/
|
|
8
|
-
artifact_name
|
|
10
|
+
artifact_name: string;
|
|
9
11
|
/**
|
|
10
12
|
* Base tag from which drift was calculated
|
|
11
13
|
*/
|
|
12
|
-
base_tag
|
|
14
|
+
base_tag: string;
|
|
15
|
+
component_drift_summary?: ComponentDriftSummary;
|
|
13
16
|
/**
|
|
14
17
|
* Drift ID to get the drift results
|
|
15
18
|
*/
|
|
16
|
-
drift_id
|
|
19
|
+
drift_id: string;
|
|
20
|
+
license_drift_summary?: LicenseDriftSummary;
|
|
17
21
|
/**
|
|
18
22
|
* Tag on which drift was calculated
|
|
19
23
|
*/
|
|
20
|
-
tag
|
|
24
|
+
tag: string;
|
|
25
|
+
/**
|
|
26
|
+
* Sum total of component and license drifts.
|
|
27
|
+
*/
|
|
28
|
+
total_drifts: number;
|
|
21
29
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component drift summary
|
|
3
|
+
*/
|
|
4
|
+
export interface ComponentDriftSummary {
|
|
5
|
+
/**
|
|
6
|
+
* Number of components added.
|
|
7
|
+
*/
|
|
8
|
+
added: number;
|
|
9
|
+
/**
|
|
10
|
+
* Number of components deleted.
|
|
11
|
+
*/
|
|
12
|
+
deleted: number;
|
|
13
|
+
/**
|
|
14
|
+
* Number of components modified.
|
|
15
|
+
*/
|
|
16
|
+
modified: number;
|
|
17
|
+
/**
|
|
18
|
+
* Total number of component drifts.
|
|
19
|
+
*/
|
|
20
|
+
total: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface DeploymentsCount {
|
|
2
|
+
/**
|
|
3
|
+
* Patched Non Prod Deployments.
|
|
4
|
+
* @format int64
|
|
5
|
+
*/
|
|
6
|
+
patched_non_prod_count: number;
|
|
7
|
+
/**
|
|
8
|
+
* Patched Prod Deployments.
|
|
9
|
+
* @format int64
|
|
10
|
+
*/
|
|
11
|
+
patched_prod_count: number;
|
|
12
|
+
/**
|
|
13
|
+
* Pending Non Prod Deployments to remediate.
|
|
14
|
+
* @format int64
|
|
15
|
+
*/
|
|
16
|
+
pending_non_prod_count: number;
|
|
17
|
+
/**
|
|
18
|
+
* Pending Prod Deployments to remediate.
|
|
19
|
+
* @format int64
|
|
20
|
+
*/
|
|
21
|
+
pending_prod_count: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides License Drift Summary
|
|
3
|
+
*/
|
|
4
|
+
export interface LicenseDriftSummary {
|
|
5
|
+
/**
|
|
6
|
+
* Total number of licenses added.
|
|
7
|
+
*/
|
|
8
|
+
added: number;
|
|
9
|
+
/**
|
|
10
|
+
* Total number of licenses deleted
|
|
11
|
+
*/
|
|
12
|
+
deleted: number;
|
|
13
|
+
/**
|
|
14
|
+
* Total number of license drifts.
|
|
15
|
+
*/
|
|
16
|
+
total: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Removal of the following version indicates Artifact is remediated.
|
|
3
|
+
*/
|
|
4
|
+
export interface RemediationCondition {
|
|
5
|
+
/**
|
|
6
|
+
* Operator for Remediation Condition.
|
|
7
|
+
*/
|
|
8
|
+
operator: 'All' | 'LessThan' | 'LessThanEquals' | 'Matches';
|
|
9
|
+
/**
|
|
10
|
+
* Component Version for Remediation. For operator like less than, less than equals, range, semantic versioning is required.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
version?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ContactInfo } from '../schemas/ContactInfo';
|
|
2
|
+
import type { DeploymentsCount } from '../schemas/DeploymentsCount';
|
|
3
|
+
import type { RemediationCondition } from '../schemas/RemediationCondition';
|
|
4
|
+
import type { VulnerabilitySeverity } from '../schemas/VulnerabilitySeverity';
|
|
5
|
+
import type { RemediationStatus } from '../schemas/RemediationStatus';
|
|
6
|
+
export interface RemediationListingResponse {
|
|
7
|
+
/**
|
|
8
|
+
* Total distinct artifacts included in the tracker.
|
|
9
|
+
* @format int64
|
|
10
|
+
*/
|
|
11
|
+
artifacts: number;
|
|
12
|
+
/**
|
|
13
|
+
* Component Name.
|
|
14
|
+
*/
|
|
15
|
+
component: string;
|
|
16
|
+
contact?: ContactInfo;
|
|
17
|
+
/**
|
|
18
|
+
* CVE number.
|
|
19
|
+
*/
|
|
20
|
+
cve?: string;
|
|
21
|
+
deployments_count: DeploymentsCount;
|
|
22
|
+
/**
|
|
23
|
+
* Tracker Id.
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
remediation_condition?: RemediationCondition;
|
|
27
|
+
/**
|
|
28
|
+
* This indicates how we are going with schedule of target date.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
schedule_status?: string;
|
|
32
|
+
severity: VulnerabilitySeverity;
|
|
33
|
+
status: RemediationStatus;
|
|
34
|
+
/**
|
|
35
|
+
* Target End Date set by the user.
|
|
36
|
+
*/
|
|
37
|
+
target_date?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Component Version.
|
|
40
|
+
*/
|
|
41
|
+
version: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ContactInfo } from '../schemas/ContactInfo';
|
|
2
|
+
import type { RemediationCondition } from '../schemas/RemediationCondition';
|
|
3
|
+
import type { VulnerabilityInfo } from '../schemas/VulnerabilityInfo';
|
|
4
|
+
/**
|
|
5
|
+
* Create Request Body For Remediation tracker.
|
|
6
|
+
*/
|
|
7
|
+
export interface RemediationTrackerCreateRequestBody<T0 extends VulnerabilityInfo = VulnerabilityInfo> {
|
|
8
|
+
/**
|
|
9
|
+
* Description/comments for the tracker.
|
|
10
|
+
*/
|
|
11
|
+
comments?: string;
|
|
12
|
+
contact?: ContactInfo;
|
|
13
|
+
remediation_condition: RemediationCondition;
|
|
14
|
+
/**
|
|
15
|
+
* Target End Date in UTC.
|
|
16
|
+
* @format date
|
|
17
|
+
*/
|
|
18
|
+
target_end_date?: string;
|
|
19
|
+
vulnerability_info?: T0;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/schemas/RemediationTrackersOverallSummaryResponseBody.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RemediationCount } from '../schemas/RemediationCount';
|
|
2
|
+
export interface RemediationTrackersOverallSummaryResponseBody {
|
|
3
|
+
/**
|
|
4
|
+
* Mean time to complete the Remediation in Hours.
|
|
5
|
+
* @format double
|
|
6
|
+
*/
|
|
7
|
+
mean_time_to_remediate_in_hours?: number;
|
|
8
|
+
/**
|
|
9
|
+
* List of statuses and their counts.
|
|
10
|
+
*/
|
|
11
|
+
remediation_counts?: RemediationCount[];
|
|
12
|
+
}
|
package/dist/ssca-manager/src/services/schemas/RemediationTrackersOverallSummaryResponseBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VulnerabilitySeverity } from '../schemas/VulnerabilitySeverity';
|
|
2
|
+
export interface VulnerabilityInfo {
|
|
3
|
+
/**
|
|
4
|
+
* Name of the component where vulnerability is found.
|
|
5
|
+
*/
|
|
6
|
+
component_name: string;
|
|
7
|
+
/**
|
|
8
|
+
* Version(s) of the component where vulnerability is found.
|
|
9
|
+
*/
|
|
10
|
+
component_version?: string;
|
|
11
|
+
severity: VulnerabilitySeverity;
|
|
12
|
+
type: {};
|
|
13
|
+
/**
|
|
14
|
+
* Details of the vulnerability.
|
|
15
|
+
*/
|
|
16
|
+
vulnerability_description?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|