@harnessio/react-sto-core-client 0.4.9 → 0.6.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/sto-core/src/services/hooks/useExemptionsApproveExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsCreateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsFindExemptionByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsListExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsPromoteExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendExemptionsFiltersQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendExpiringExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendGlobalExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesCsvQuery.d.ts +5 -0
- package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesQuery.d.ts +5 -0
- package/dist/sto-core/src/services/hooks/useFrontendQwietLicenseUsageQuery.d.ts +22 -0
- package/dist/sto-core/src/services/hooks/useFrontendQwietLicenseUsageQuery.js +14 -0
- package/dist/sto-core/src/services/hooks/useIssuesFindIssueByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useIssuesIssuesAugmentRemediationMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useOverridesCreateOverrideMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useOverridesListOverridesQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/usePullRequestsCreatePullRequestMutation.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/usePullRequestsGetPullRequestCorrelationQuery.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/usePullRequestsUpdatePullRequestMutation.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/useScansScanIssueOccurrencesQuery.d.ts +4 -4
- package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.d.ts +4 -4
- package/dist/sto-core/src/services/hooks/useTargetsFindTargetByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useTargetsPatchTargetMutation.d.ts +1 -1
- package/dist/sto-core/src/services/index.d.ts +5 -0
- package/dist/sto-core/src/services/index.js +1 -0
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +7 -1
- package/dist/sto-core/src/services/schemas/AllIssuesFiltersResult.d.ts +6 -1
- package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/AugmentRemediationMetadata.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AugmentRemediationResult.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/AugmentRemediationWarning.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/FrontendQwietLicenseUsageResponseBody.d.ts +2 -0
- package/dist/sto-core/src/services/schemas/FrontendQwietLicenseUsageResponseBody.js +1 -0
- package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +6 -5
- package/dist/sto-core/src/services/schemas/HarnessSastScaUsage.d.ts +12 -0
- package/dist/sto-core/src/services/schemas/HarnessSastScaUsage.js +4 -0
- package/dist/sto-core/src/services/schemas/Issue.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +10 -5
- package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/OverridesListOverridesResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +6 -1
- package/dist/sto-core/src/services/schemas/QwietLicenseUsageResult.d.ts +13 -0
- package/dist/sto-core/src/services/schemas/QwietLicenseUsageResult.js +1 -0
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ export interface ExemptionsApproveExemptionMutationQueryParams {
|
|
|
36
36
|
export interface ExemptionsApproveExemptionMutationHeaderParams {
|
|
37
37
|
/**
|
|
38
38
|
* Harness personal or service access token
|
|
39
|
-
* @example "
|
|
39
|
+
* @example "Repellendus molestiae necessitatibus."
|
|
40
40
|
*/
|
|
41
41
|
'X-Api-Key'?: string;
|
|
42
42
|
}
|
|
@@ -24,7 +24,7 @@ export interface ExemptionsCreateExemptionMutationQueryParams {
|
|
|
24
24
|
export interface ExemptionsCreateExemptionMutationHeaderParams {
|
|
25
25
|
/**
|
|
26
26
|
* Harness personal or service access token
|
|
27
|
-
* @example "
|
|
27
|
+
* @example "Numquam hic."
|
|
28
28
|
*/
|
|
29
29
|
'X-Api-Key'?: string;
|
|
30
30
|
}
|
|
@@ -39,7 +39,7 @@ export interface ExemptionsFindExemptionByIdQueryQueryParams {
|
|
|
39
39
|
export interface ExemptionsFindExemptionByIdQueryHeaderParams {
|
|
40
40
|
/**
|
|
41
41
|
* Harness personal or service access token
|
|
42
|
-
* @example "
|
|
42
|
+
* @example "Tempora sapiente optio sit accusantium quidem sint."
|
|
43
43
|
*/
|
|
44
44
|
'X-Api-Key'?: string;
|
|
45
45
|
}
|
|
@@ -37,7 +37,7 @@ export interface ExemptionsListExemptionsQueryQueryParams {
|
|
|
37
37
|
export interface ExemptionsListExemptionsQueryHeaderParams {
|
|
38
38
|
/**
|
|
39
39
|
* Harness personal or service access token
|
|
40
|
-
* @example "
|
|
40
|
+
* @example "Officia quidem aut."
|
|
41
41
|
*/
|
|
42
42
|
'X-Api-Key'?: string;
|
|
43
43
|
}
|
|
@@ -31,7 +31,7 @@ export interface ExemptionsPromoteExemptionMutationQueryParams {
|
|
|
31
31
|
export interface ExemptionsPromoteExemptionMutationHeaderParams {
|
|
32
32
|
/**
|
|
33
33
|
* Harness personal or service access token
|
|
34
|
-
* @example "
|
|
34
|
+
* @example "Ipsum eaque quae."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -31,7 +31,7 @@ export interface ExemptionsUpdateExemptionMutationQueryParams {
|
|
|
31
31
|
export interface ExemptionsUpdateExemptionMutationHeaderParams {
|
|
32
32
|
/**
|
|
33
33
|
* Harness personal or service access token
|
|
34
|
-
* @example "
|
|
34
|
+
* @example "Nihil magni rerum."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -24,7 +24,7 @@ export interface FrontendExemptionsFiltersQueryQueryParams {
|
|
|
24
24
|
export interface FrontendExemptionsFiltersQueryHeaderParams {
|
|
25
25
|
/**
|
|
26
26
|
* Harness personal or service access token
|
|
27
|
-
* @example "
|
|
27
|
+
* @example "Possimus unde."
|
|
28
28
|
*/
|
|
29
29
|
'X-Api-Key'?: string;
|
|
30
30
|
}
|
|
@@ -58,7 +58,7 @@ export interface FrontendGlobalExemptionsQueryQueryParams {
|
|
|
58
58
|
export interface FrontendGlobalExemptionsQueryHeaderParams {
|
|
59
59
|
/**
|
|
60
60
|
* Harness personal or service access token
|
|
61
|
-
* @example "
|
|
61
|
+
* @example "Occaecati aspernatur qui."
|
|
62
62
|
*/
|
|
63
63
|
'X-Api-Key'?: string;
|
|
64
64
|
}
|
|
@@ -109,6 +109,11 @@ export interface FrontendPipelineSecurityIssuesCsvQueryQueryParams {
|
|
|
109
109
|
* @example "Yes"
|
|
110
110
|
*/
|
|
111
111
|
severityOverridden?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Filter by reachability status. 'reachable' shows issues with any reachable occurrence. 'unknown' shows issues where all occurrences are unreachable.
|
|
114
|
+
* @example "reachable"
|
|
115
|
+
*/
|
|
116
|
+
reachability?: string;
|
|
112
117
|
}
|
|
113
118
|
export type FrontendPipelineSecurityIssuesCsvOkResponse = ResponseWithPagination<ExportPipelineSecurityIssuesCsvResponseBody>;
|
|
114
119
|
export type FrontendPipelineSecurityIssuesCsvErrorResponse = NotFound;
|
|
@@ -109,6 +109,11 @@ export interface FrontendPipelineSecurityIssuesQueryQueryParams {
|
|
|
109
109
|
* @example "Yes"
|
|
110
110
|
*/
|
|
111
111
|
severityOverridden?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Filter by reachability status. 'reachable' shows issues with any reachable occurrence. 'unknown' shows issues where all occurrences are unreachable.
|
|
114
|
+
* @example "reachable"
|
|
115
|
+
*/
|
|
116
|
+
reachability?: string;
|
|
112
117
|
}
|
|
113
118
|
export type FrontendPipelineSecurityIssuesOkResponse = ResponseWithPagination<FrontendPipelineSecurityIssuesResponseBody>;
|
|
114
119
|
export type FrontendPipelineSecurityIssuesErrorResponse = NotFound;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FrontendQwietLicenseUsageResponseBody } from '../schemas/FrontendQwietLicenseUsageResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface FrontendQwietLicenseUsageQueryQueryParams {
|
|
7
|
+
/**
|
|
8
|
+
* Harness Account ID
|
|
9
|
+
* @example "abcdef1234567890ghijkl"
|
|
10
|
+
*/
|
|
11
|
+
accountId: string;
|
|
12
|
+
}
|
|
13
|
+
export type FrontendQwietLicenseUsageOkResponse = ResponseWithPagination<FrontendQwietLicenseUsageResponseBody>;
|
|
14
|
+
export type FrontendQwietLicenseUsageErrorResponse = NotFound;
|
|
15
|
+
export interface FrontendQwietLicenseUsageProps extends Omit<FetcherOptions<FrontendQwietLicenseUsageQueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: FrontendQwietLicenseUsageQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export declare function frontendQwietLicenseUsage(props: FrontendQwietLicenseUsageProps): Promise<FrontendQwietLicenseUsageOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns Qwiet license usage metrics
|
|
21
|
+
*/
|
|
22
|
+
export declare function useFrontendQwietLicenseUsageQuery(props: FrontendQwietLicenseUsageProps, options?: Omit<UseQueryOptions<FrontendQwietLicenseUsageOkResponse, FrontendQwietLicenseUsageErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FrontendQwietLicenseUsageOkResponse, NotFound>;
|
|
@@ -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 frontendQwietLicenseUsage(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v2/frontend/metrics/licenseUsage`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns Qwiet license usage metrics
|
|
11
|
+
*/
|
|
12
|
+
export function useFrontendQwietLicenseUsageQuery(props, options) {
|
|
13
|
+
return useQuery(['Frontend#QwietLicenseUsage', props.queryParams], ({ signal }) => frontendQwietLicenseUsage(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -35,7 +35,7 @@ export interface IssuesFindIssueByIdQueryQueryParams {
|
|
|
35
35
|
export interface IssuesFindIssueByIdQueryHeaderParams {
|
|
36
36
|
/**
|
|
37
37
|
* Harness personal or service access token
|
|
38
|
-
* @example "
|
|
38
|
+
* @example "Facere sed modi consequuntur mollitia minima."
|
|
39
39
|
*/
|
|
40
40
|
'X-Api-Key'?: string;
|
|
41
41
|
}
|
|
@@ -31,7 +31,7 @@ export interface IssuesIssuesAugmentRemediationMutationQueryParams {
|
|
|
31
31
|
export interface IssuesIssuesAugmentRemediationMutationHeaderParams {
|
|
32
32
|
/**
|
|
33
33
|
* Harness personal or service access token
|
|
34
|
-
* @example "
|
|
34
|
+
* @example "Fuga enim quas."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -24,7 +24,7 @@ export interface OverridesCreateOverrideMutationQueryParams {
|
|
|
24
24
|
export interface OverridesCreateOverrideMutationHeaderParams {
|
|
25
25
|
/**
|
|
26
26
|
* Harness personal or service access token
|
|
27
|
-
* @example "
|
|
27
|
+
* @example "Porro enim voluptatum."
|
|
28
28
|
*/
|
|
29
29
|
'X-Api-Key'?: string;
|
|
30
30
|
}
|
|
@@ -37,7 +37,7 @@ export interface OverridesListOverridesQueryQueryParams {
|
|
|
37
37
|
export interface OverridesListOverridesQueryHeaderParams {
|
|
38
38
|
/**
|
|
39
39
|
* Harness personal or service access token
|
|
40
|
-
* @example "
|
|
40
|
+
* @example "Consectetur odio in facere."
|
|
41
41
|
*/
|
|
42
42
|
'X-Api-Key'?: string;
|
|
43
43
|
}
|
|
@@ -25,14 +25,14 @@ export interface PullRequestsCreatePullRequestMutationQueryParams {
|
|
|
25
25
|
*/
|
|
26
26
|
provider: string;
|
|
27
27
|
/**
|
|
28
|
-
* @example "
|
|
28
|
+
* @example "Architecto dolorem et iusto in."
|
|
29
29
|
*/
|
|
30
30
|
repositoryPath: string;
|
|
31
31
|
}
|
|
32
32
|
export interface PullRequestsCreatePullRequestMutationHeaderParams {
|
|
33
33
|
/**
|
|
34
34
|
* Harness personal or service access token
|
|
35
|
-
* @example "
|
|
35
|
+
* @example "Quasi eaque."
|
|
36
36
|
*/
|
|
37
37
|
'X-Api-Key'?: string;
|
|
38
38
|
}
|
|
@@ -24,7 +24,7 @@ export interface PullRequestsGetPullRequestCorrelationQueryQueryParams {
|
|
|
24
24
|
*/
|
|
25
25
|
provider: string;
|
|
26
26
|
/**
|
|
27
|
-
* @example "
|
|
27
|
+
* @example "Quam quia est aut."
|
|
28
28
|
*/
|
|
29
29
|
repositoryPath: string;
|
|
30
30
|
/**
|
|
@@ -40,7 +40,7 @@ export interface PullRequestsGetPullRequestCorrelationQueryQueryParams {
|
|
|
40
40
|
export interface PullRequestsGetPullRequestCorrelationQueryHeaderParams {
|
|
41
41
|
/**
|
|
42
42
|
* Harness personal or service access token
|
|
43
|
-
* @example "
|
|
43
|
+
* @example "Maxime cum dolore quibusdam officiis deserunt rerum."
|
|
44
44
|
*/
|
|
45
45
|
'X-Api-Key'?: string;
|
|
46
46
|
}
|
|
@@ -25,14 +25,14 @@ export interface PullRequestsUpdatePullRequestMutationQueryParams {
|
|
|
25
25
|
*/
|
|
26
26
|
provider: string;
|
|
27
27
|
/**
|
|
28
|
-
* @example "
|
|
28
|
+
* @example "Expedita ratione aliquam tempora totam."
|
|
29
29
|
*/
|
|
30
30
|
repositoryPath: string;
|
|
31
31
|
}
|
|
32
32
|
export interface PullRequestsUpdatePullRequestMutationHeaderParams {
|
|
33
33
|
/**
|
|
34
34
|
* Harness personal or service access token
|
|
35
|
-
* @example "
|
|
35
|
+
* @example "Cumque voluptatum doloremque."
|
|
36
36
|
*/
|
|
37
37
|
'X-Api-Key'?: string;
|
|
38
38
|
}
|
|
@@ -6,12 +6,12 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
6
6
|
export interface ScansScanIssueOccurrencesQueryPathParams {
|
|
7
7
|
/**
|
|
8
8
|
* The ID of the Security Test Scan
|
|
9
|
-
* @example "
|
|
9
|
+
* @example "Sint voluptas in voluptas aut."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
13
|
* The ID of the Security Test Issue
|
|
14
|
-
* @example "Unde
|
|
14
|
+
* @example "Unde quia sed magni facilis odio."
|
|
15
15
|
*/
|
|
16
16
|
issueId: string;
|
|
17
17
|
}
|
|
@@ -55,7 +55,7 @@ export interface ScansScanIssueOccurrencesQueryQueryParams {
|
|
|
55
55
|
exemptionStatus?: string;
|
|
56
56
|
/**
|
|
57
57
|
* The field to sort by
|
|
58
|
-
* @example "
|
|
58
|
+
* @example "Temporibus adipisci omnis provident adipisci."
|
|
59
59
|
*/
|
|
60
60
|
sort?: string;
|
|
61
61
|
/**
|
|
@@ -72,7 +72,7 @@ export interface ScansScanIssueOccurrencesQueryQueryParams {
|
|
|
72
72
|
export interface ScansScanIssueOccurrencesQueryHeaderParams {
|
|
73
73
|
/**
|
|
74
74
|
* Harness personal or service access token
|
|
75
|
-
* @example "
|
|
75
|
+
* @example "Reiciendis architecto quam accusamus voluptate blanditiis."
|
|
76
76
|
*/
|
|
77
77
|
'X-Api-Key'?: string;
|
|
78
78
|
}
|
|
@@ -6,12 +6,12 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
6
6
|
export interface ScansScanIssueQueryPathParams {
|
|
7
7
|
/**
|
|
8
8
|
* The ID of the Security Test Scan
|
|
9
|
-
* @example "
|
|
9
|
+
* @example "Harum tempore."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
13
|
* The ID of the Security Test Issue
|
|
14
|
-
* @example "
|
|
14
|
+
* @example "Molestias ipsam et."
|
|
15
15
|
*/
|
|
16
16
|
issueId: string;
|
|
17
17
|
}
|
|
@@ -47,7 +47,7 @@ export interface ScansScanIssueQueryQueryParams {
|
|
|
47
47
|
pageSize?: number;
|
|
48
48
|
/**
|
|
49
49
|
* The field to sort by
|
|
50
|
-
* @example "
|
|
50
|
+
* @example "Consequatur ipsam ut voluptas voluptatem omnis."
|
|
51
51
|
*/
|
|
52
52
|
sort?: string;
|
|
53
53
|
/**
|
|
@@ -59,7 +59,7 @@ export interface ScansScanIssueQueryQueryParams {
|
|
|
59
59
|
export interface ScansScanIssueQueryHeaderParams {
|
|
60
60
|
/**
|
|
61
61
|
* Harness personal or service access token
|
|
62
|
-
* @example "
|
|
62
|
+
* @example "Ipsum nihil provident rerum veniam ad sed."
|
|
63
63
|
*/
|
|
64
64
|
'X-Api-Key'?: string;
|
|
65
65
|
}
|
|
@@ -30,7 +30,7 @@ export interface TargetsFindTargetByIdQueryQueryParams {
|
|
|
30
30
|
export interface TargetsFindTargetByIdQueryHeaderParams {
|
|
31
31
|
/**
|
|
32
32
|
* Harness personal or service access token
|
|
33
|
-
* @example "
|
|
33
|
+
* @example "Fugiat non maxime."
|
|
34
34
|
*/
|
|
35
35
|
'X-Api-Key'?: string;
|
|
36
36
|
}
|
|
@@ -31,7 +31,7 @@ export interface TargetsPatchTargetMutationQueryParams {
|
|
|
31
31
|
export interface TargetsPatchTargetMutationHeaderParams {
|
|
32
32
|
/**
|
|
33
33
|
* Harness personal or service access token
|
|
34
|
-
* @example "
|
|
34
|
+
* @example "Et et in ipsa fugiat."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -43,6 +43,8 @@ export type { FrontendPipelineSecurityIssuesErrorResponse, FrontendPipelineSecur
|
|
|
43
43
|
export { frontendPipelineSecurityIssues, useFrontendPipelineSecurityIssuesQuery, } from './hooks/useFrontendPipelineSecurityIssuesQuery';
|
|
44
44
|
export type { FrontendPipelineSecurityStepsErrorResponse, FrontendPipelineSecurityStepsOkResponse, FrontendPipelineSecurityStepsProps, FrontendPipelineSecurityStepsQueryQueryParams, } from './hooks/useFrontendPipelineSecurityStepsQuery';
|
|
45
45
|
export { frontendPipelineSecuritySteps, useFrontendPipelineSecurityStepsQuery, } from './hooks/useFrontendPipelineSecurityStepsQuery';
|
|
46
|
+
export type { FrontendQwietLicenseUsageErrorResponse, FrontendQwietLicenseUsageOkResponse, FrontendQwietLicenseUsageProps, FrontendQwietLicenseUsageQueryQueryParams, } from './hooks/useFrontendQwietLicenseUsageQuery';
|
|
47
|
+
export { frontendQwietLicenseUsage, useFrontendQwietLicenseUsageQuery, } from './hooks/useFrontendQwietLicenseUsageQuery';
|
|
46
48
|
export type { FrontendSecurityReviewErrorResponse, FrontendSecurityReviewOkResponse, FrontendSecurityReviewProps, FrontendSecurityReviewQueryQueryParams, } from './hooks/useFrontendSecurityReviewQuery';
|
|
47
49
|
export { frontendSecurityReview, useFrontendSecurityReviewQuery, } from './hooks/useFrontendSecurityReviewQuery';
|
|
48
50
|
export type { FrontendTestTargetsErrorResponse, FrontendTestTargetsOkResponse, FrontendTestTargetsProps, FrontendTestTargetsQueryQueryParams, } from './hooks/useFrontendTestTargetsQuery';
|
|
@@ -115,10 +117,12 @@ export type { FrontendOverviewBaselinesResponseBody } from './schemas/FrontendOv
|
|
|
115
117
|
export type { FrontendOverviewHistoricalCountsResponseBody } from './schemas/FrontendOverviewHistoricalCountsResponseBody';
|
|
116
118
|
export type { FrontendPipelineSecurityIssuesResponseBody } from './schemas/FrontendPipelineSecurityIssuesResponseBody';
|
|
117
119
|
export type { FrontendPipelineSecurityStepsResponseBody } from './schemas/FrontendPipelineSecurityStepsResponseBody';
|
|
120
|
+
export type { FrontendQwietLicenseUsageResponseBody } from './schemas/FrontendQwietLicenseUsageResponseBody';
|
|
118
121
|
export type { FrontendSecurityReviewResponseBody } from './schemas/FrontendSecurityReviewResponseBody';
|
|
119
122
|
export type { FrontendTestTargetsResponseBody } from './schemas/FrontendTestTargetsResponseBody';
|
|
120
123
|
export type { GitMetadata } from './schemas/GitMetadata';
|
|
121
124
|
export type { GlobalExemptionsRequestBody } from './schemas/GlobalExemptionsRequestBody';
|
|
125
|
+
export type { HarnessSastScaUsage } from './schemas/HarnessSastScaUsage';
|
|
122
126
|
export type { HistoricalCounts } from './schemas/HistoricalCounts';
|
|
123
127
|
export type { HistoricalIssueCounts } from './schemas/HistoricalIssueCounts';
|
|
124
128
|
export type { IdResult } from './schemas/IdResult';
|
|
@@ -150,6 +154,7 @@ export type { PromoteExemptionRequestBody } from './schemas/PromoteExemptionRequ
|
|
|
150
154
|
export type { PullRequestCorrelationResult } from './schemas/PullRequestCorrelationResult';
|
|
151
155
|
export type { PullRequestResult } from './schemas/PullRequestResult';
|
|
152
156
|
export type { PullRequestsGetPullRequestCorrelationResponseBody } from './schemas/PullRequestsGetPullRequestCorrelationResponseBody';
|
|
157
|
+
export type { QwietLicenseUsageResult } from './schemas/QwietLicenseUsageResult';
|
|
153
158
|
export type { RefIds } from './schemas/RefIds';
|
|
154
159
|
export type { ScansScanIssueResponseBody } from './schemas/ScansScanIssueResponseBody';
|
|
155
160
|
export type { SecurityReviewResult } from './schemas/SecurityReviewResult';
|
|
@@ -20,6 +20,7 @@ export { frontendOverviewHistoricalCounts, useFrontendOverviewHistoricalCountsQu
|
|
|
20
20
|
export { frontendPipelineSecurityIssuesCsv, useFrontendPipelineSecurityIssuesCsvQuery, } from './hooks/useFrontendPipelineSecurityIssuesCsvQuery';
|
|
21
21
|
export { frontendPipelineSecurityIssues, useFrontendPipelineSecurityIssuesQuery, } from './hooks/useFrontendPipelineSecurityIssuesQuery';
|
|
22
22
|
export { frontendPipelineSecuritySteps, useFrontendPipelineSecurityStepsQuery, } from './hooks/useFrontendPipelineSecurityStepsQuery';
|
|
23
|
+
export { frontendQwietLicenseUsage, useFrontendQwietLicenseUsageQuery, } from './hooks/useFrontendQwietLicenseUsageQuery';
|
|
23
24
|
export { frontendSecurityReview, useFrontendSecurityReviewQuery, } from './hooks/useFrontendSecurityReviewQuery';
|
|
24
25
|
export { frontendTestTargets, useFrontendTestTargetsQuery, } from './hooks/useFrontendTestTargetsQuery';
|
|
25
26
|
export { frontendUpdateTestTargetVariants, useFrontendUpdateTestTargetVariantsMutation, } from './hooks/useFrontendUpdateTestTargetVariantsMutation';
|
|
@@ -3,9 +3,15 @@ import type { OverrideResult } from '../schemas/OverrideResult';
|
|
|
3
3
|
import type { Pagination } from '../schemas/Pagination';
|
|
4
4
|
import type { RefIds } from '../schemas/RefIds';
|
|
5
5
|
/**
|
|
6
|
-
* @example {"
|
|
6
|
+
* @example {"dataflow":"Labore rerum quibusdam eius nihil sed.","description":"Autem doloribus.","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"impactedTargets":[{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userEmail":"user@gmail.com","userId":"Tenetur mollitia.","userName":"firstname lastname","variantName":"Vitae tenetur harum impedit voluptatum non."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userEmail":"user@gmail.com","userId":"Tenetur mollitia.","userName":"firstname lastname","variantName":"Vitae tenetur harum impedit voluptatum non."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userEmail":"user@gmail.com","userId":"Tenetur mollitia.","userName":"firstname lastname","variantName":"Vitae tenetur harum impedit voluptatum non."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userEmail":"user@gmail.com","userId":"Tenetur mollitia.","userName":"firstname lastname","variantName":"Vitae tenetur harum impedit voluptatum non."}],"issueType":"Consequuntur a repellat perspiciatis autem sed corporis.","lastDetected":1634836529,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"referenceIdentifiers":[{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."},{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."}],"scanTool":"owasp","severityCode":"High","targetType":"Quaerat voluptas ut.","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}
|
|
7
7
|
*/
|
|
8
8
|
export interface AllIssuesDetailsResult {
|
|
9
|
+
/**
|
|
10
|
+
* Data flow information for SAST issues
|
|
11
|
+
* @format binary
|
|
12
|
+
* @example "Aut qui voluptatem ea vel facere sed."
|
|
13
|
+
*/
|
|
14
|
+
dataflow?: string;
|
|
9
15
|
/**
|
|
10
16
|
* Issue description
|
|
11
17
|
* @example "Voluptas ut distinctio."
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { LatestBaselineScanInfo } from '../schemas/LatestBaselineScanInfo';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"latestBaselineScans":[{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"}]}
|
|
3
|
+
* @example {"latestBaselineScans":[{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"}],"reachabilityFlag":true}
|
|
4
4
|
*/
|
|
5
5
|
export interface AllIssuesFiltersResult {
|
|
6
6
|
/**
|
|
7
7
|
* @example [{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"}]
|
|
8
8
|
*/
|
|
9
9
|
latestBaselineScans: LatestBaselineScanInfo[];
|
|
10
|
+
/**
|
|
11
|
+
* Indicates if reachability analysis is available (true if any scan uses Harness SAST)
|
|
12
|
+
* @example true
|
|
13
|
+
*/
|
|
14
|
+
reachabilityFlag: boolean;
|
|
10
15
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
import type { RefIds } from '../schemas/RefIds';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"description":"
|
|
4
|
+
* @example {"description":"Odit doloremque aperiam exercitationem rerum fugit praesentium.","exemptionId":"abcdef1234567890ghijkl","issueType":"Sit perferendis ut officiis.","lastDetected":1634836529,"occurrences":[{"Necessitatibus autem veniam natus.":"Praesentium excepturi repellendus.","Nihil rerum.":"Aspernatur dolor aliquam modi veritatis.","Sequi culpa reprehenderit.":"Sit veniam mollitia aspernatur eum dignissimos."},{"Assumenda ut nam nulla omnis omnis.":"Consectetur commodi maiores delectus tempore harum atque.","Omnis in nobis magni dolor.":"Iste aut."},{"Voluptas et et et.":"Ut ut."}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"referenceIdentifiers":[{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."},{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."},{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."}],"severityCode":"High","targetName":"The Target","targetType":"Ratione commodi labore.","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","variantName":"Magni facere sed praesentium consequatur consequatur."}
|
|
5
5
|
*/
|
|
6
6
|
export interface AllIssuesOccurrenceDetailsResult {
|
|
7
7
|
/**
|
|
8
8
|
* Issue description
|
|
9
|
-
* @example "
|
|
9
|
+
* @example "Velit fugit blanditiis."
|
|
10
10
|
*/
|
|
11
11
|
description: string;
|
|
12
12
|
/**
|
|
@@ -16,7 +16,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
16
16
|
exemptionId?: string;
|
|
17
17
|
/**
|
|
18
18
|
* Issue Type
|
|
19
|
-
* @example "
|
|
19
|
+
* @example "Natus tempore sit eos."
|
|
20
20
|
*/
|
|
21
21
|
issueType?: string;
|
|
22
22
|
/**
|
|
@@ -27,7 +27,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
27
27
|
lastDetected: number;
|
|
28
28
|
/**
|
|
29
29
|
* List of occurrences
|
|
30
|
-
* @example [{"
|
|
30
|
+
* @example [{"Impedit labore nostrum.":"Quis ut est voluptatem iure."},{"Excepturi iure consequatur ex.":"Est eum nemo.","Quibusdam et omnis.":"In deserunt vel id voluptates qui.","Voluptatem ut eaque voluptates expedita.":"Non eligendi est fugit id et."},{"Iste ut iste magnam dignissimos reprehenderit accusamus.":"Quis et magni natus vel."},{"Occaecati laboriosam.":"Nihil sed.","Temporibus repellendus facilis aspernatur cum ab.":"Sit quae doloremque recusandae qui nostrum.","Voluptatem eligendi.":"Qui commodi ea id et iste."}]
|
|
31
31
|
*/
|
|
32
32
|
occurrences: Array<{
|
|
33
33
|
[key: string]: any;
|
|
@@ -50,7 +50,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
50
50
|
targetName: string;
|
|
51
51
|
/**
|
|
52
52
|
* Target Type
|
|
53
|
-
* @example "
|
|
53
|
+
* @example "Consequatur eius."
|
|
54
54
|
*/
|
|
55
55
|
targetType: string;
|
|
56
56
|
/**
|
|
@@ -60,7 +60,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
60
60
|
title: string;
|
|
61
61
|
/**
|
|
62
62
|
* Variant name
|
|
63
|
-
* @example "
|
|
63
|
+
* @example "In sed."
|
|
64
64
|
*/
|
|
65
65
|
variantName: string;
|
|
66
66
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AugmentRemediationWarning } from '../schemas/AugmentRemediationWarning';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"warnings":[{"message":"
|
|
3
|
+
* @example {"warnings":[{"message":"Doloribus molestiae qui.","source":"Molestias et aut inventore veniam in."},{"message":"Doloribus molestiae qui.","source":"Molestias et aut inventore veniam in."},{"message":"Doloribus molestiae qui.","source":"Molestias et aut inventore veniam in."},{"message":"Doloribus molestiae qui.","source":"Molestias et aut inventore veniam in."}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface AugmentRemediationMetadata {
|
|
6
6
|
/**
|
|
7
|
-
* @example [{"message":"
|
|
7
|
+
* @example [{"message":"Doloribus molestiae qui.","source":"Molestias et aut inventore veniam in."},{"message":"Doloribus molestiae qui.","source":"Molestias et aut inventore veniam in."}]
|
|
8
8
|
*/
|
|
9
9
|
warnings: AugmentRemediationWarning[];
|
|
10
10
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { AugmentRemediationMetadata } from '../schemas/AugmentRemediationMetadata';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"metadata":{"warnings":[{"message":"
|
|
3
|
+
* @example {"metadata":{"warnings":[{"message":"Doloribus molestiae qui.","source":"Molestias et aut inventore veniam in."},{"message":"Doloribus molestiae qui.","source":"Molestias et aut inventore veniam in."},{"message":"Doloribus molestiae qui.","source":"Molestias et aut inventore veniam in."}]},"remediationCode":"Doloremque voluptatem quis.","remediationContext":"Corrupti explicabo omnis.","repoContent":"Expedita at dignissimos."}
|
|
4
4
|
*/
|
|
5
5
|
export interface AugmentRemediationResult {
|
|
6
6
|
metadata: AugmentRemediationMetadata;
|
|
7
7
|
/**
|
|
8
|
-
* @example "
|
|
8
|
+
* @example "Fuga neque exercitationem nemo."
|
|
9
9
|
*/
|
|
10
10
|
remediationCode?: string;
|
|
11
11
|
/**
|
|
12
|
-
* @example "
|
|
12
|
+
* @example "Atque omnis quis nihil voluptatem."
|
|
13
13
|
*/
|
|
14
14
|
remediationContext: string;
|
|
15
15
|
/**
|
|
16
|
-
* @example "
|
|
16
|
+
* @example "Accusantium minus voluptatem omnis mollitia quis."
|
|
17
17
|
*/
|
|
18
18
|
repoContent?: string;
|
|
19
19
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"message":"
|
|
2
|
+
* @example {"message":"Et asperiores eum ratione ullam.","source":"Aut omnis aut accusantium."}
|
|
3
3
|
*/
|
|
4
4
|
export interface AugmentRemediationWarning {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Excepturi maxime nihil et."
|
|
7
7
|
*/
|
|
8
8
|
message: string;
|
|
9
9
|
/**
|
|
10
|
-
* @example "
|
|
10
|
+
* @example "Consequatur et eos quo."
|
|
11
11
|
*/
|
|
12
12
|
source: string;
|
|
13
13
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
import type { Exemption } from '../schemas/Exemption';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Rejected","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"
|
|
4
|
+
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Rejected","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Pending","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Rejected","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Pending","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Rejected","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Pending","targetId":"abcdef1234567890ghijkl","type":"Other"}]}
|
|
5
5
|
*/
|
|
6
6
|
export interface ExemptionsListExemptionsResponseBody {
|
|
7
7
|
pagination: Pagination;
|
|
8
8
|
/**
|
|
9
|
-
* @example [{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Rejected","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"
|
|
9
|
+
* @example [{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Rejected","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Pending","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Rejected","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Pending","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Rejected","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Pending","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Rejected","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Pending","targetId":"abcdef1234567890ghijkl","type":"Other"}]
|
|
10
10
|
*/
|
|
11
11
|
results: Exemption[];
|
|
12
12
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Git Metadata associated with the Scan
|
|
3
|
-
* @example {"detectedName":"
|
|
3
|
+
* @example {"detectedName":"Dolorem vitae modi est.","detectedVariant":"Quia animi id.","droneCorrelated":true,"provider":"Saepe eos quam exercitationem.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Aut impedit eius ut nostrum voluptate aut.","Laborum mollitia facilis.","Assumenda voluptatem aperiam aut."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"}
|
|
4
4
|
*/
|
|
5
5
|
export interface GitMetadata {
|
|
6
6
|
/**
|
|
7
7
|
* Detected Name
|
|
8
|
-
* @example "
|
|
8
|
+
* @example "Ea quis ratione voluptates amet cum."
|
|
9
9
|
*/
|
|
10
10
|
detectedName?: string;
|
|
11
11
|
/**
|
|
12
12
|
* Detected Variant
|
|
13
|
-
* @example "
|
|
13
|
+
* @example "Rerum enim veritatis."
|
|
14
14
|
*/
|
|
15
15
|
detectedVariant?: string;
|
|
16
16
|
/**
|
|
17
17
|
* Drone Correlated
|
|
18
|
+
* @example true
|
|
18
19
|
*/
|
|
19
20
|
droneCorrelated?: boolean;
|
|
20
21
|
/**
|
|
21
22
|
* Git Provider
|
|
22
|
-
* @example "
|
|
23
|
+
* @example "Porro eos ut officiis."
|
|
23
24
|
*/
|
|
24
25
|
provider?: string;
|
|
25
26
|
/**
|
|
@@ -35,7 +36,7 @@ export interface GitMetadata {
|
|
|
35
36
|
repositoryHttp?: string;
|
|
36
37
|
/**
|
|
37
38
|
* Git Repository Path
|
|
38
|
-
* @example ["
|
|
39
|
+
* @example ["Dolore cumque repudiandae officia libero dolor.","Et et ut.","Fuga at tempora vero id autem id.","Qui expedita architecto necessitatibus."]
|
|
39
40
|
*/
|
|
40
41
|
repositoryPath?: string[];
|
|
41
42
|
/**
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* License usage response data
|
|
3
|
+
* @example {"totalContributingDevelopers":42}
|
|
4
|
+
*/
|
|
5
|
+
export interface HarnessSastScaUsage {
|
|
6
|
+
/**
|
|
7
|
+
* Total number of contributing developers
|
|
8
|
+
* @format int64
|
|
9
|
+
* @example 42
|
|
10
|
+
*/
|
|
11
|
+
totalContributingDevelopers: number;
|
|
12
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OverrideResult } from '../schemas/OverrideResult';
|
|
2
2
|
/**
|
|
3
3
|
* Information about a Security Issue
|
|
4
|
-
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"
|
|
4
|
+
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Expired","details":{"package":"json-schema","version":"v0.2.3"},"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","harnessAugmentation":{"Et modi rerum.":"Tenetur exercitationem molestias consequuntur officiis aspernatur."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"originStatus":"approved","origins":["app","base"],"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"overridesAtScan":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}
|
|
5
5
|
*/
|
|
6
6
|
export interface Issue {
|
|
7
7
|
/**
|
|
@@ -22,7 +22,7 @@ export interface Issue {
|
|
|
22
22
|
created: number;
|
|
23
23
|
/**
|
|
24
24
|
* Current status of the Exemption
|
|
25
|
-
* @example "
|
|
25
|
+
* @example "Pending"
|
|
26
26
|
*/
|
|
27
27
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
28
28
|
/**
|
|
@@ -61,12 +61,12 @@ export interface Issue {
|
|
|
61
61
|
exemptionId?: string;
|
|
62
62
|
/**
|
|
63
63
|
* Exemption's status at the Security Scan created time
|
|
64
|
-
* @example "
|
|
64
|
+
* @example "Pending"
|
|
65
65
|
*/
|
|
66
66
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
67
67
|
/**
|
|
68
68
|
* Harness Augmentation details
|
|
69
|
-
* @example {"
|
|
69
|
+
* @example {"Assumenda ipsum dolor ipsum expedita id ut.":"Consequatur sed consequuntur velit cum.","Quis praesentium.":"Omnis velit qui consequuntur omnis."}
|
|
70
70
|
*/
|
|
71
71
|
harnessAugmentation?: {
|
|
72
72
|
[key: string]: any;
|
|
@@ -111,12 +111,12 @@ export interface Issue {
|
|
|
111
111
|
origins?: string[];
|
|
112
112
|
/**
|
|
113
113
|
* List of issue overrides
|
|
114
|
-
* @example [{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}
|
|
114
|
+
* @example [{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}]
|
|
115
115
|
*/
|
|
116
116
|
overrides?: OverrideResult[];
|
|
117
117
|
/**
|
|
118
118
|
* List of issue overrides at scan time
|
|
119
|
-
* @example [{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}]
|
|
119
|
+
* @example [{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}]
|
|
120
120
|
*/
|
|
121
121
|
overridesAtScan?: OverrideResult[];
|
|
122
122
|
/**
|
|
@@ -2,7 +2,7 @@ import type { GitMetadata } from '../schemas/GitMetadata';
|
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
import type { OverrideResult } from '../schemas/OverrideResult';
|
|
4
4
|
/**
|
|
5
|
-
* @example {"baseImageName":"baseImageName","baseImageOrgId":"default","baseImageProjectId":"STO","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Expired","details":{"package":"json-schema","version":"v0.2.3"},"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"
|
|
5
|
+
* @example {"baseImageName":"baseImageName","baseImageOrgId":"default","baseImageProjectId":"STO","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Expired","details":{"package":"json-schema","version":"v0.2.3"},"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","gitMetadata":{"detectedName":"Asperiores et autem et sed nulla.","detectedVariant":"Sapiente et corrupti quia nostrum.","droneCorrelated":false,"provider":"Tenetur quas suscipit.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Itaque ut.","Dolor porro magni vero soluta consectetur omnis."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"},"harnessAugmentation":{"Accusantium aut doloremque.":"At ducimus nobis nobis qui voluptas maxime.","Expedita accusamus voluptate aperiam itaque velit modi.":"Architecto vitae."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","lastBaseImageScanAt":1651578240,"numNonExemptedOccurrences":10,"numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"occurrencesPagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"originStatus":"approved","origins":["app","base"],"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"overridesAtScan":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"pipelineId":"example_pipeline","primaryOccurrenceId":12345,"productId":"product1234567890abcde","reachability":"unreachable","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}
|
|
6
6
|
*/
|
|
7
7
|
export interface IssueInScan {
|
|
8
8
|
/**
|
|
@@ -33,7 +33,7 @@ export interface IssueInScan {
|
|
|
33
33
|
created: number;
|
|
34
34
|
/**
|
|
35
35
|
* Current status of the Exemption
|
|
36
|
-
* @example "
|
|
36
|
+
* @example "Pending"
|
|
37
37
|
*/
|
|
38
38
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
39
39
|
/**
|
|
@@ -72,13 +72,13 @@ export interface IssueInScan {
|
|
|
72
72
|
exemptionId?: string;
|
|
73
73
|
/**
|
|
74
74
|
* Exemption's status at the Security Scan created time
|
|
75
|
-
* @example "
|
|
75
|
+
* @example "Approved"
|
|
76
76
|
*/
|
|
77
77
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
78
78
|
gitMetadata?: GitMetadata;
|
|
79
79
|
/**
|
|
80
80
|
* Harness Augmentation details
|
|
81
|
-
* @example {"
|
|
81
|
+
* @example {"Et aliquid.":"Vel sit.","Laborum tempore beatae nihil quod et.":"Quae accusamus nihil velit culpa quas perspiciatis."}
|
|
82
82
|
*/
|
|
83
83
|
harnessAugmentation?: {
|
|
84
84
|
[key: string]: any;
|
|
@@ -137,7 +137,7 @@ export interface IssueInScan {
|
|
|
137
137
|
origins?: string[];
|
|
138
138
|
/**
|
|
139
139
|
* List of issue overrides
|
|
140
|
-
* @example [{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}
|
|
140
|
+
* @example [{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}]
|
|
141
141
|
*/
|
|
142
142
|
overrides?: OverrideResult[];
|
|
143
143
|
/**
|
|
@@ -161,6 +161,11 @@ export interface IssueInScan {
|
|
|
161
161
|
* @example "product1234567890abcde"
|
|
162
162
|
*/
|
|
163
163
|
productId: string;
|
|
164
|
+
/**
|
|
165
|
+
* Reachability status of the issue (reachable or unreachable)
|
|
166
|
+
* @example "unreachable"
|
|
167
|
+
*/
|
|
168
|
+
reachability?: string;
|
|
164
169
|
/**
|
|
165
170
|
* Numeric severity, from 0 (lowest) to 10 (highest)
|
|
166
171
|
* @format float
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"connectorId":"
|
|
2
|
+
* @example {"connectorId":"Sit rerum.","occurrenceId":12345,"referenceId":"CWE-123","scanId":"abcdefghijkl1234567890","userSnippet":"func example() int {\n return 0\n}"}
|
|
3
3
|
*/
|
|
4
4
|
export interface IssuesAugmentRemediationRequestBody {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Maxime quo sapiente ut voluptatem quibusdam odit."
|
|
7
7
|
*/
|
|
8
8
|
connectorId?: string;
|
|
9
9
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
import type { Override } from '../schemas/Override';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"approverId":"user111111111111111111","created":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","occurrences":[42,666],"orgId":"example_org","overrideFieldName":"severity","overrideFieldValue":"Low","pipelineId":"example_pipeline","projectId":"example_project","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"
|
|
4
|
+
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"approverId":"user111111111111111111","created":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","occurrences":[42,666],"orgId":"example_org","overrideFieldName":"severity","overrideFieldValue":"Low","pipelineId":"example_pipeline","projectId":"example_project","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","targetId":"abcdef1234567890ghijkl"},{"approverId":"user111111111111111111","created":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","occurrences":[42,666],"orgId":"example_org","overrideFieldName":"severity","overrideFieldValue":"Low","pipelineId":"example_pipeline","projectId":"example_project","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","targetId":"abcdef1234567890ghijkl"},{"approverId":"user111111111111111111","created":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","occurrences":[42,666],"orgId":"example_org","overrideFieldName":"severity","overrideFieldValue":"Low","pipelineId":"example_pipeline","projectId":"example_project","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","targetId":"abcdef1234567890ghijkl"}]}
|
|
5
5
|
*/
|
|
6
6
|
export interface OverridesListOverridesResponseBody {
|
|
7
7
|
pagination: Pagination;
|
|
8
8
|
/**
|
|
9
|
-
* @example [{"approverId":"user111111111111111111","created":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","occurrences":[42,666],"orgId":"example_org","overrideFieldName":"severity","overrideFieldValue":"Low","pipelineId":"example_pipeline","projectId":"example_project","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"
|
|
9
|
+
* @example [{"approverId":"user111111111111111111","created":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","occurrences":[42,666],"orgId":"example_org","overrideFieldName":"severity","overrideFieldValue":"Low","pipelineId":"example_pipeline","projectId":"example_project","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","targetId":"abcdef1234567890ghijkl"},{"approverId":"user111111111111111111","created":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","occurrences":[42,666],"orgId":"example_org","overrideFieldName":"severity","overrideFieldValue":"Low","pipelineId":"example_pipeline","projectId":"example_project","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","targetId":"abcdef1234567890ghijkl"}]
|
|
10
10
|
*/
|
|
11
11
|
results: Override[];
|
|
12
12
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { StepInfo } from '../schemas/StepInfo';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"steps":[{"baselineVariant":"branch: main","parentStageId":"stage_id","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","parentStageId":"stage_id","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}]}
|
|
3
|
+
* @example {"reachabilityFlag":true,"steps":[{"baselineVariant":"branch: main","parentStageId":"stage_id","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","parentStageId":"stage_id","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface PipelineSecurityStepsResult {
|
|
6
|
+
/**
|
|
7
|
+
* Indicates if reachability analysis is available (true if any step uses HARNESS_SAST)
|
|
8
|
+
* @example true
|
|
9
|
+
*/
|
|
10
|
+
reachabilityFlag: boolean;
|
|
6
11
|
/**
|
|
7
12
|
* @example [{"baselineVariant":"branch: main","parentStageId":"stage_id","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","parentStageId":"stage_id","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","parentStageId":"stage_id","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","parentStageId":"stage_id","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}]
|
|
8
13
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HarnessSastScaUsage } from '../schemas/HarnessSastScaUsage';
|
|
2
|
+
/**
|
|
3
|
+
* Qwiet license usage metrics
|
|
4
|
+
* @example {"ok":true,"response":{"totalContributingDevelopers":42}}
|
|
5
|
+
*/
|
|
6
|
+
export interface QwietLicenseUsageResult {
|
|
7
|
+
/**
|
|
8
|
+
* Indicates if the request was successful
|
|
9
|
+
* @example true
|
|
10
|
+
*/
|
|
11
|
+
ok: boolean;
|
|
12
|
+
response: HarnessSastScaUsage;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|