@harnessio/react-ssca-manager-client 0.16.0 → 0.18.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/useGetComponentDriftQuery.d.ts +1 -0
- package/dist/ssca-manager/src/services/hooks/useGetLicenseDriftQuery.d.ts +1 -0
- package/dist/ssca-manager/src/services/hooks/useGetSbomScorecardQuery.d.ts +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetSbomScorecardQuery.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +19 -0
- package/dist/ssca-manager/src/services/index.js +2 -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/RemediationTrackerCreateResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/RemediationTrackerCreateResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/SbomScorecardResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/SbomScorecardResponseBodyResponse.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/CategoryScorecard.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/CategoryScorecard.js +4 -0
- 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/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/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/SbomDetailsForScorecard.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/SbomDetailsForScorecard.js +4 -0
- package/dist/ssca-manager/src/services/schemas/SbomScorecardResponseBody.d.ts +15 -0
- package/dist/ssca-manager/src/services/schemas/SbomScorecardResponseBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ScorecardInfo.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ScorecardInfo.js +4 -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}/remediation`, 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,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SbomScorecardResponseBodyResponse } from '../responses/SbomScorecardResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetSbomScorecardQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
'orchestration-id': string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetSbomScorecardQueryHeaderParams {
|
|
11
|
+
'Harness-Account'?: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetSbomScorecardOkResponse = ResponseWithPagination<SbomScorecardResponseBodyResponse>;
|
|
14
|
+
export type GetSbomScorecardErrorResponse = unknown;
|
|
15
|
+
export interface GetSbomScorecardProps extends GetSbomScorecardQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetSbomScorecardQueryHeaderParams>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function getSbomScorecard(props: GetSbomScorecardProps): Promise<GetSbomScorecardOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get SBOM Scorecard
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetSbomScorecardQuery(props: GetSbomScorecardProps, options?: Omit<UseQueryOptions<GetSbomScorecardOkResponse, GetSbomScorecardErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetSbomScorecardOkResponse, 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 getSbomScorecard(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/orchestration/${props['orchestration-id']}/sbom-scorecard`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get SBOM Scorecard
|
|
11
|
+
*/
|
|
12
|
+
export function useGetSbomScorecardQuery(props, options) {
|
|
13
|
+
return useQuery(['getSbomScorecard', props.org, props.project, props['orchestration-id']], ({ signal }) => getSbomScorecard(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';
|
|
@@ -17,6 +19,8 @@ export type { GetLicenseDriftErrorResponse, GetLicenseDriftOkResponse, GetLicens
|
|
|
17
19
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
18
20
|
export type { GetPolicyViolationsErrorResponse, GetPolicyViolationsOkResponse, GetPolicyViolationsProps, GetPolicyViolationsQueryPathParams, GetPolicyViolationsQueryQueryParams, } from './hooks/useGetPolicyViolationsQuery';
|
|
19
21
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
22
|
+
export type { GetSbomScorecardErrorResponse, GetSbomScorecardOkResponse, GetSbomScorecardProps, GetSbomScorecardQueryPathParams, } from './hooks/useGetSbomScorecardQuery';
|
|
23
|
+
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
20
24
|
export type { ListArtifactsErrorResponse, ListArtifactsOkResponse, ListArtifactsProps, ListArtifactsQueryPathParams, ListArtifactsQueryQueryParams, ListArtifactsRequestBody, } from './hooks/useListArtifactsQuery';
|
|
21
25
|
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
22
26
|
export type { ListLatestArtifactsErrorResponse, ListLatestArtifactsOkResponse, ListLatestArtifactsProps, ListLatestArtifactsQueryPathParams, ListLatestArtifactsQueryQueryParams, } from './hooks/useListLatestArtifactsQuery';
|
|
@@ -25,6 +29,7 @@ export type { SetBaselineForArtifactErrorResponse, SetBaselineForArtifactMutatio
|
|
|
25
29
|
export { setBaselineForArtifact, useSetBaselineForArtifactMutation, } from './hooks/useSetBaselineForArtifactMutation';
|
|
26
30
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
27
31
|
export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
|
|
32
|
+
export type { RemediationTrackerCreateRequestBodyRequestBody } from './requestBodies/RemediationTrackerCreateRequestBodyRequestBody';
|
|
28
33
|
export type { ArtifactComponentViewResponseBodyResponse } from './responses/ArtifactComponentViewResponseBodyResponse';
|
|
29
34
|
export type { ArtifactDeploymentViewResponseBodyResponse } from './responses/ArtifactDeploymentViewResponseBodyResponse';
|
|
30
35
|
export type { ArtifactDetailResponseBodyResponse } from './responses/ArtifactDetailResponseBodyResponse';
|
|
@@ -35,7 +40,9 @@ export type { BaselineResponseBodyResponse } from './responses/BaselineResponseB
|
|
|
35
40
|
export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
|
|
36
41
|
export type { LicenseDriftResponseBodyResponse } from './responses/LicenseDriftResponseBodyResponse';
|
|
37
42
|
export type { PolicyViolationResponseResponse } from './responses/PolicyViolationResponseResponse';
|
|
43
|
+
export type { RemediationTrackerCreateResponseBodyResponse } from './responses/RemediationTrackerCreateResponseBodyResponse';
|
|
38
44
|
export type { SaveResponseResponse } from './responses/SaveResponseResponse';
|
|
45
|
+
export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
|
|
39
46
|
export type { ArtifactComponentViewRequestBody } from './schemas/ArtifactComponentViewRequestBody';
|
|
40
47
|
export type { ArtifactComponentViewResponse } from './schemas/ArtifactComponentViewResponse';
|
|
41
48
|
export type { ArtifactDeploymentViewRequestBody } from './schemas/ArtifactDeploymentViewRequestBody';
|
|
@@ -48,12 +55,24 @@ export type { ArtifactSbomDriftResponse } from './schemas/ArtifactSbomDriftRespo
|
|
|
48
55
|
export type { ArtifactSbomResponseBody } from './schemas/ArtifactSbomResponseBody';
|
|
49
56
|
export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
|
|
50
57
|
export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
58
|
+
export type { CategoryScorecard } from './schemas/CategoryScorecard';
|
|
51
59
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
60
|
+
export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
52
61
|
export type { ComponentFilter } from './schemas/ComponentFilter';
|
|
53
62
|
export type { ComponentSummary } from './schemas/ComponentSummary';
|
|
63
|
+
export type { ContactInfo } from './schemas/ContactInfo';
|
|
54
64
|
export type { LicenseDrift } from './schemas/LicenseDrift';
|
|
65
|
+
export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
|
|
55
66
|
export type { LicenseFilter } from './schemas/LicenseFilter';
|
|
56
67
|
export type { Operator } from './schemas/Operator';
|
|
57
68
|
export type { PolicyViolation } from './schemas/PolicyViolation';
|
|
69
|
+
export type { RemediationCondition } from './schemas/RemediationCondition';
|
|
70
|
+
export type { RemediationTrackerCreateRequestBody } from './schemas/RemediationTrackerCreateRequestBody';
|
|
71
|
+
export type { RemediationTrackerCreateResponseBody } from './schemas/RemediationTrackerCreateResponseBody';
|
|
58
72
|
export type { SaveResponse } from './schemas/SaveResponse';
|
|
73
|
+
export type { SbomDetailsForScorecard } from './schemas/SbomDetailsForScorecard';
|
|
74
|
+
export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
|
|
75
|
+
export type { ScorecardInfo } from './schemas/ScorecardInfo';
|
|
59
76
|
export type { Slsa } from './schemas/Slsa';
|
|
77
|
+
export type { VulnerabilityInfo } from './schemas/VulnerabilityInfo';
|
|
78
|
+
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';
|
|
@@ -7,6 +8,7 @@ export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks
|
|
|
7
8
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
8
9
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
9
10
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
11
|
+
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
10
12
|
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
11
13
|
export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
|
|
12
14
|
export { setBaselineForArtifact, useSetBaselineForArtifactMutation, } from './hooks/useSetBaselineForArtifactMutation';
|
|
@@ -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,14 @@
|
|
|
1
|
+
export interface CategoryScorecard {
|
|
2
|
+
checks?: Array<{
|
|
3
|
+
description?: string;
|
|
4
|
+
is_enabled?: string;
|
|
5
|
+
max_score?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
score?: string;
|
|
8
|
+
}>;
|
|
9
|
+
is_enabled?: string;
|
|
10
|
+
max_score?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
score?: string;
|
|
13
|
+
weightage?: string;
|
|
14
|
+
}
|
|
@@ -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,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,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 {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CategoryScorecard } from '../schemas/CategoryScorecard';
|
|
2
|
+
import type { SbomDetailsForScorecard } from '../schemas/SbomDetailsForScorecard';
|
|
3
|
+
import type { ScorecardInfo } from '../schemas/ScorecardInfo';
|
|
4
|
+
export interface SbomScorecardResponseBody {
|
|
5
|
+
account_id?: string;
|
|
6
|
+
avg_score?: string;
|
|
7
|
+
category?: CategoryScorecard[];
|
|
8
|
+
creation_on?: string;
|
|
9
|
+
max_score?: string;
|
|
10
|
+
orchestration_id?: string;
|
|
11
|
+
org_id?: string;
|
|
12
|
+
project_id?: string;
|
|
13
|
+
sbom_details?: SbomDetailsForScorecard;
|
|
14
|
+
score_card_info?: ScorecardInfo;
|
|
15
|
+
}
|
|
@@ -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 {};
|