@harnessio/react-sto-core-client 0.7.1 → 0.7.3
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/useFrontendAllIssuesCountsV2Query.d.ts +89 -0
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesCountsV2Query.js +14 -0
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesDetailsV2Query.d.ts +61 -0
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesDetailsV2Query.js +14 -0
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesListQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesListV2Query.d.ts +103 -0
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesListV2Query.js +14 -0
- 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/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 +5 -5
- package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.d.ts +5 -5
- 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 +14 -0
- package/dist/sto-core/src/services/index.js +3 -0
- package/dist/sto-core/src/services/schemas/AllBaselineIssueSummary.d.ts +82 -0
- package/dist/sto-core/src/services/schemas/AllBaselineIssueSummary.js +1 -0
- package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/AllIssuesCountsV2Result.d.ts +20 -0
- package/dist/sto-core/src/services/schemas/AllIssuesCountsV2Result.js +1 -0
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsV2Result.d.ts +88 -0
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsV2Result.js +1 -0
- package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesListV2Result.d.ts +13 -0
- package/dist/sto-core/src/services/schemas/AllIssuesListV2Result.js +1 -0
- package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +7 -7
- 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/BaselineExecutions.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/Exemption.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/ExemptionImpactedTargetsResult.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/ExemptionsFiltersResult.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExportPipelineSecurityIssuesCsvResponseBody.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesCountsV2ResponseBody.d.ts +2 -0
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesCountsV2ResponseBody.js +1 -0
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesDetailsV2ResponseBody.d.ts +2 -0
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesDetailsV2ResponseBody.js +1 -0
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesListV2ResponseBody.d.ts +2 -0
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesListV2ResponseBody.js +1 -0
- package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/ImpactedTargetV2.d.ts +77 -0
- package/dist/sto-core/src/services/schemas/ImpactedTargetV2.js +4 -0
- package/dist/sto-core/src/services/schemas/Issue.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +8 -8
- package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/OccurrenceDataflowResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/Override.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/OverridesListOverridesResponseBody.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +13 -13
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/ProductsListProductsResponseBody.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/PullRequestResult.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/RefIds.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/SecurityReviewResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/TestTarget.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +2 -2
- 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 "Nulla illum enim quasi."
|
|
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 "Nobis sit sed iure quas."
|
|
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 "Minima quos ab tenetur voluptatem sed."
|
|
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 "Quo possimus quidem officia et necessitatibus vel."
|
|
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 "Aliquid quo eveniet."
|
|
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 "Et cum et omnis accusamus incidunt consectetur."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FrontendAllIssuesCountsV2ResponseBody } from '../schemas/FrontendAllIssuesCountsV2ResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface FrontendAllIssuesCountsV2QueryQueryParams {
|
|
7
|
+
/**
|
|
8
|
+
* Harness Account ID
|
|
9
|
+
* @example "abcdef1234567890ghijkl"
|
|
10
|
+
*/
|
|
11
|
+
accountId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Harness Organization ID
|
|
14
|
+
* @example "example_org"
|
|
15
|
+
*/
|
|
16
|
+
orgId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Harness Project ID
|
|
19
|
+
* @example "example_project"
|
|
20
|
+
*/
|
|
21
|
+
projectId: string;
|
|
22
|
+
/**
|
|
23
|
+
* @example "target1111111111111111,abcdef1234567890abcdef"
|
|
24
|
+
*/
|
|
25
|
+
targetIds?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example "repository,container"
|
|
28
|
+
*/
|
|
29
|
+
targetTypes?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @example "pipeline1,pipeline2"
|
|
32
|
+
*/
|
|
33
|
+
pipelineIds?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @example "owasp,zap"
|
|
36
|
+
*/
|
|
37
|
+
scanTools?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @example "Critical,High,Medium"
|
|
40
|
+
*/
|
|
41
|
+
severityCodes?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @example "None,Pending,Rejected,Expired"
|
|
44
|
+
*/
|
|
45
|
+
exemptionStatuses?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Filter issues by whether their severity has been overridden. Use 'Yes,No' for all issues.
|
|
48
|
+
* @default "Yes,No"
|
|
49
|
+
* @example "Yes"
|
|
50
|
+
*/
|
|
51
|
+
severityOverriden?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example "CWE-123"
|
|
54
|
+
*/
|
|
55
|
+
search?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @example "SAST"
|
|
58
|
+
*/
|
|
59
|
+
issueTypes?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @example "Active,Exempted,Remediated"
|
|
62
|
+
*/
|
|
63
|
+
statuses?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Filter by reachability status. 'reachable' shows issues with any reachable occurrence. 'unknown-reachability' shows issues where all occurrences are unreachable or have no reachability data.
|
|
66
|
+
* @example "reachable"
|
|
67
|
+
*/
|
|
68
|
+
reachability?: string;
|
|
69
|
+
/**
|
|
70
|
+
* EPSS Probability filter (single select): all (no filter), gte_15 (>=15%), gte_5 (>=5%), gte_1 (>=1%), na (N/A - No EPSS data)
|
|
71
|
+
* @example "gte_15"
|
|
72
|
+
*/
|
|
73
|
+
epss?: string;
|
|
74
|
+
/**
|
|
75
|
+
* EPSS Percentile filter (single select): all (no filter), gte_99 (>=99th), gte_90 (>=90th), gte_80 (>=80th), na (N/A - No EPSS data)
|
|
76
|
+
* @example "gte_99"
|
|
77
|
+
*/
|
|
78
|
+
epssPercentile?: string;
|
|
79
|
+
}
|
|
80
|
+
export type FrontendAllIssuesCountsV2OkResponse = ResponseWithPagination<FrontendAllIssuesCountsV2ResponseBody>;
|
|
81
|
+
export type FrontendAllIssuesCountsV2ErrorResponse = NotFound;
|
|
82
|
+
export interface FrontendAllIssuesCountsV2Props extends Omit<FetcherOptions<FrontendAllIssuesCountsV2QueryQueryParams, unknown>, 'url'> {
|
|
83
|
+
queryParams: FrontendAllIssuesCountsV2QueryQueryParams;
|
|
84
|
+
}
|
|
85
|
+
export declare function frontendAllIssuesCountsV2(props: FrontendAllIssuesCountsV2Props): Promise<FrontendAllIssuesCountsV2OkResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Returns severity-based and issue-type-based counts for the all-issues page using the pre-aggregated summary table
|
|
88
|
+
*/
|
|
89
|
+
export declare function useFrontendAllIssuesCountsV2Query(props: FrontendAllIssuesCountsV2Props, options?: Omit<UseQueryOptions<FrontendAllIssuesCountsV2OkResponse, FrontendAllIssuesCountsV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FrontendAllIssuesCountsV2OkResponse, 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 frontendAllIssuesCountsV2(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v2/frontend/all-issues/v2/counts`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns severity-based and issue-type-based counts for the all-issues page using the pre-aggregated summary table
|
|
11
|
+
*/
|
|
12
|
+
export function useFrontendAllIssuesCountsV2Query(props, options) {
|
|
13
|
+
return useQuery(['Frontend#AllIssuesCountsV2', props.queryParams], ({ signal }) => frontendAllIssuesCountsV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FrontendAllIssuesDetailsV2ResponseBody } from '../schemas/FrontendAllIssuesDetailsV2ResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface FrontendAllIssuesDetailsV2QueryPathParams {
|
|
7
|
+
/**
|
|
8
|
+
* The ID of the Security Issue
|
|
9
|
+
* @example "abcdef1234567890ghijkl"
|
|
10
|
+
*/
|
|
11
|
+
issueId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface FrontendAllIssuesDetailsV2QueryQueryParams {
|
|
14
|
+
/**
|
|
15
|
+
* Harness Account ID
|
|
16
|
+
* @example "abcdef1234567890ghijkl"
|
|
17
|
+
*/
|
|
18
|
+
accountId: string;
|
|
19
|
+
/**
|
|
20
|
+
* Harness Organization ID
|
|
21
|
+
* @example "example_org"
|
|
22
|
+
*/
|
|
23
|
+
orgId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Harness Project ID
|
|
26
|
+
* @example "example_project"
|
|
27
|
+
*/
|
|
28
|
+
projectId: string;
|
|
29
|
+
/**
|
|
30
|
+
* @example "None,Pending,Rejected,Expired"
|
|
31
|
+
*/
|
|
32
|
+
exemptionStatuses?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @example "A Target Name"
|
|
35
|
+
*/
|
|
36
|
+
search?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Page number to fetch (starting from 0)
|
|
39
|
+
* @format int64
|
|
40
|
+
* @default 0
|
|
41
|
+
* @example 4
|
|
42
|
+
*/
|
|
43
|
+
page?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Number of results per page
|
|
46
|
+
* @format int64
|
|
47
|
+
* @default 30
|
|
48
|
+
* @example 50
|
|
49
|
+
*/
|
|
50
|
+
pageSize?: number;
|
|
51
|
+
}
|
|
52
|
+
export type FrontendAllIssuesDetailsV2OkResponse = ResponseWithPagination<FrontendAllIssuesDetailsV2ResponseBody>;
|
|
53
|
+
export type FrontendAllIssuesDetailsV2ErrorResponse = NotFound;
|
|
54
|
+
export interface FrontendAllIssuesDetailsV2Props extends FrontendAllIssuesDetailsV2QueryPathParams, Omit<FetcherOptions<FrontendAllIssuesDetailsV2QueryQueryParams, unknown>, 'url'> {
|
|
55
|
+
queryParams: FrontendAllIssuesDetailsV2QueryQueryParams;
|
|
56
|
+
}
|
|
57
|
+
export declare function frontendAllIssuesDetailsV2(props: FrontendAllIssuesDetailsV2Props): Promise<FrontendAllIssuesDetailsV2OkResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Provides issue details for a project using the pre-aggregated summary and detection tables
|
|
60
|
+
*/
|
|
61
|
+
export declare function useFrontendAllIssuesDetailsV2Query(props: FrontendAllIssuesDetailsV2Props, options?: Omit<UseQueryOptions<FrontendAllIssuesDetailsV2OkResponse, FrontendAllIssuesDetailsV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FrontendAllIssuesDetailsV2OkResponse, 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 frontendAllIssuesDetailsV2(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v2/frontend/all-issues/v2/issues/${props.issueId}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Provides issue details for a project using the pre-aggregated summary and detection tables
|
|
11
|
+
*/
|
|
12
|
+
export function useFrontendAllIssuesDetailsV2Query(props, options) {
|
|
13
|
+
return useQuery(['Frontend#AllIssuesDetailsV2', props.issueId, props.queryParams], ({ signal }) => frontendAllIssuesDetailsV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FrontendAllIssuesListV2ResponseBody } from '../schemas/FrontendAllIssuesListV2ResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface FrontendAllIssuesListV2QueryQueryParams {
|
|
7
|
+
/**
|
|
8
|
+
* Harness Account ID
|
|
9
|
+
* @example "abcdef1234567890ghijkl"
|
|
10
|
+
*/
|
|
11
|
+
accountId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Harness Organization ID
|
|
14
|
+
* @example "example_org"
|
|
15
|
+
*/
|
|
16
|
+
orgId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Harness Project ID
|
|
19
|
+
* @example "example_project"
|
|
20
|
+
*/
|
|
21
|
+
projectId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Page number to fetch (starting from 0)
|
|
24
|
+
* @format int64
|
|
25
|
+
* @default 0
|
|
26
|
+
* @example 4
|
|
27
|
+
*/
|
|
28
|
+
page?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Number of results per page
|
|
31
|
+
* @format int64
|
|
32
|
+
* @default 30
|
|
33
|
+
* @example 50
|
|
34
|
+
*/
|
|
35
|
+
pageSize?: number;
|
|
36
|
+
/**
|
|
37
|
+
* @example "target1111111111111111,abcdef1234567890abcdef"
|
|
38
|
+
*/
|
|
39
|
+
targetIds?: string;
|
|
40
|
+
/**
|
|
41
|
+
* @example "repository,container"
|
|
42
|
+
*/
|
|
43
|
+
targetTypes?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example "pipeline1,pipeline2"
|
|
46
|
+
*/
|
|
47
|
+
pipelineIds?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @example "owasp,zap"
|
|
50
|
+
*/
|
|
51
|
+
scanTools?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example "Critical,High,Medium"
|
|
54
|
+
*/
|
|
55
|
+
severityCodes?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @example "None,Pending,Rejected,Expired"
|
|
58
|
+
*/
|
|
59
|
+
exemptionStatuses?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Filter issues by whether their severity has been overridden. Use 'Yes,No' for all issues.
|
|
62
|
+
* @default "Yes,No"
|
|
63
|
+
* @example "Yes"
|
|
64
|
+
*/
|
|
65
|
+
severityOverriden?: string;
|
|
66
|
+
/**
|
|
67
|
+
* @example "CWE-123"
|
|
68
|
+
*/
|
|
69
|
+
search?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @example "SAST"
|
|
72
|
+
*/
|
|
73
|
+
issueTypes?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @example "Active,Exempted,Remediated"
|
|
76
|
+
*/
|
|
77
|
+
statuses?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Filter by reachability status. 'reachable' shows issues with any reachable occurrence. 'unknown-reachability' shows issues where all occurrences are unreachable or have no reachability data.
|
|
80
|
+
* @example "reachable"
|
|
81
|
+
*/
|
|
82
|
+
reachability?: string;
|
|
83
|
+
/**
|
|
84
|
+
* EPSS Probability filter (single select): all (no filter), gte_15 (>=15%), gte_5 (>=5%), gte_1 (>=1%), na (N/A - No EPSS data)
|
|
85
|
+
* @example "gte_15"
|
|
86
|
+
*/
|
|
87
|
+
epss?: string;
|
|
88
|
+
/**
|
|
89
|
+
* EPSS Percentile filter (single select): all (no filter), gte_99 (>=99th), gte_90 (>=90th), gte_80 (>=80th), na (N/A - No EPSS data)
|
|
90
|
+
* @example "gte_99"
|
|
91
|
+
*/
|
|
92
|
+
epssPercentile?: string;
|
|
93
|
+
}
|
|
94
|
+
export type FrontendAllIssuesListV2OkResponse = ResponseWithPagination<FrontendAllIssuesListV2ResponseBody>;
|
|
95
|
+
export type FrontendAllIssuesListV2ErrorResponse = NotFound;
|
|
96
|
+
export interface FrontendAllIssuesListV2Props extends Omit<FetcherOptions<FrontendAllIssuesListV2QueryQueryParams, unknown>, 'url'> {
|
|
97
|
+
queryParams: FrontendAllIssuesListV2QueryQueryParams;
|
|
98
|
+
}
|
|
99
|
+
export declare function frontendAllIssuesListV2(props: FrontendAllIssuesListV2Props): Promise<FrontendAllIssuesListV2OkResponse>;
|
|
100
|
+
/**
|
|
101
|
+
* Provides a paginated list of issues for a project using the pre-aggregated summary table
|
|
102
|
+
*/
|
|
103
|
+
export declare function useFrontendAllIssuesListV2Query(props: FrontendAllIssuesListV2Props, options?: Omit<UseQueryOptions<FrontendAllIssuesListV2OkResponse, FrontendAllIssuesListV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FrontendAllIssuesListV2OkResponse, 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 frontendAllIssuesListV2(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v2/frontend/all-issues/v2/issues`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Provides a paginated list of issues for a project using the pre-aggregated summary table
|
|
11
|
+
*/
|
|
12
|
+
export function useFrontendAllIssuesListV2Query(props, options) {
|
|
13
|
+
return useQuery(['Frontend#AllIssuesListV2', props.queryParams], ({ signal }) => frontendAllIssuesListV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -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 "Aperiam nostrum dolores perspiciatis."
|
|
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 "Repudiandae fuga ea tempora alias dignissimos."
|
|
62
62
|
*/
|
|
63
63
|
'X-Api-Key'?: string;
|
|
64
64
|
}
|
|
@@ -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 "Reprehenderit aut."
|
|
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 "Ea et possimus quia 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 "Nesciunt qui omnis omnis."
|
|
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 "Quia est qui."
|
|
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 "Assumenda qui totam eveniet quidem doloremque."
|
|
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 "Sit et nulla eveniet consequatur."
|
|
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 "Aut commodi."
|
|
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 "Perspiciatis odio laborum odio quasi hic."
|
|
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 "Tenetur et laboriosam aspernatur voluptatem voluptas."
|
|
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 "Fugiat non maxime."
|
|
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 "Est aut."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
13
|
* The ID of the Security Test Issue
|
|
14
|
-
* @example "
|
|
14
|
+
* @example "Ut animi fugit rerum et facilis cupiditate."
|
|
15
15
|
*/
|
|
16
16
|
issueId: string;
|
|
17
17
|
}
|
|
@@ -55,12 +55,12 @@ export interface ScansScanIssueOccurrencesQueryQueryParams {
|
|
|
55
55
|
exemptionStatus?: string;
|
|
56
56
|
/**
|
|
57
57
|
* The field to sort by
|
|
58
|
-
* @example "
|
|
58
|
+
* @example "Quae omnis dolores non."
|
|
59
59
|
*/
|
|
60
60
|
sort?: string;
|
|
61
61
|
/**
|
|
62
62
|
* The order to sort by
|
|
63
|
-
* @example "
|
|
63
|
+
* @example "DESC"
|
|
64
64
|
*/
|
|
65
65
|
order?: 'ASC' | 'DESC';
|
|
66
66
|
/**
|
|
@@ -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 "Eveniet voluptates voluptatem doloremque adipisci."
|
|
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 "Ut quis numquam ut ducimus aut sit."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
13
|
* The ID of the Security Test Issue
|
|
14
|
-
* @example "
|
|
14
|
+
* @example "Reiciendis sit ratione dolor saepe."
|
|
15
15
|
*/
|
|
16
16
|
issueId: string;
|
|
17
17
|
}
|
|
@@ -47,19 +47,19 @@ export interface ScansScanIssueQueryQueryParams {
|
|
|
47
47
|
pageSize?: number;
|
|
48
48
|
/**
|
|
49
49
|
* The field to sort by
|
|
50
|
-
* @example "
|
|
50
|
+
* @example "Repellendus laudantium quia ducimus excepturi ea est."
|
|
51
51
|
*/
|
|
52
52
|
sort?: string;
|
|
53
53
|
/**
|
|
54
54
|
* The order to sort by
|
|
55
|
-
* @example "
|
|
55
|
+
* @example "DESC"
|
|
56
56
|
*/
|
|
57
57
|
order?: 'ASC' | 'DESC';
|
|
58
58
|
}
|
|
59
59
|
export interface ScansScanIssueQueryHeaderParams {
|
|
60
60
|
/**
|
|
61
61
|
* Harness personal or service access token
|
|
62
|
-
* @example "
|
|
62
|
+
* @example "Vero earum nostrum blanditiis."
|
|
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 "Nihil quae velit."
|
|
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 "Vitae quis consectetur."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|