@harnessio/react-sto-core-client 0.4.7 → 0.4.9
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/fetcher/index.js +1 -1
- 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 -2
- 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 +42 -0
- package/dist/sto-core/src/services/hooks/useFrontendExemptionsFiltersQuery.js +14 -0
- package/dist/sto-core/src/services/hooks/useFrontendExpiringExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendGlobalExemptionsQuery.d.ts +11 -1
- package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesCsvQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesQuery.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 +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 +8 -0
- package/dist/sto-core/src/services/index.js +1 -0
- package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +21 -4
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +23 -6
- package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +2 -2
- 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/CreatePullRequestRequestBody.d.ts +6 -1
- package/dist/sto-core/src/services/schemas/Exemption.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/ExemptionFilterScanner.d.ts +16 -0
- package/dist/sto-core/src/services/schemas/ExemptionFilterScanner.js +4 -0
- package/dist/sto-core/src/services/schemas/ExemptionFilterTarget.d.ts +21 -0
- package/dist/sto-core/src/services/schemas/ExemptionFilterTarget.js +4 -0
- package/dist/sto-core/src/services/schemas/ExemptionFilterUser.d.ts +21 -0
- package/dist/sto-core/src/services/schemas/ExemptionFilterUser.js +4 -0
- package/dist/sto-core/src/services/schemas/ExemptionsFiltersRequestBody.d.ts +10 -0
- package/dist/sto-core/src/services/schemas/ExemptionsFiltersRequestBody.js +4 -0
- package/dist/sto-core/src/services/schemas/ExemptionsFiltersResult.d.ts +34 -0
- package/dist/sto-core/src/services/schemas/ExemptionsFiltersResult.js +1 -0
- 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/FrontendExemption.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/FrontendExemptionsFiltersResponseBody.d.ts +2 -0
- package/dist/sto-core/src/services/schemas/FrontendExemptionsFiltersResponseBody.js +1 -0
- package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/GlobalExemptionsRequestBody.d.ts +45 -1
- package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/HistoricalIssueCounts.d.ts +2 -1
- package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/Issue.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/Override.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/OverridesListOverridesResponseBody.d.ts +2 -2
- 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 +2 -2
- 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/dist/sto-core/src/services/schemas/UpdatePullRequestRequestBody.d.ts +6 -1
- package/package.json +1 -1
package/dist/fetcher/index.js
CHANGED
|
@@ -30,7 +30,7 @@ export function fetcher(options) {
|
|
|
30
30
|
if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) {
|
|
31
31
|
finalUrl = (_a = fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) === null || _a === void 0 ? void 0 : _a.call(fetcherCallbacks, finalUrl);
|
|
32
32
|
}
|
|
33
|
-
let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign({ Authorization: `Bearer ${token}` }, headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
|
|
33
|
+
let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign(Object.assign({}, (token ? { Authorization: `Bearer ${token}` } : {})), headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
|
|
34
34
|
if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.requestInterceptor) {
|
|
35
35
|
request = fetcherCallbacks.requestInterceptor(request.clone());
|
|
36
36
|
}
|
|
@@ -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 "Aut 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 "Quibusdam nihil ut."
|
|
28
28
|
*/
|
|
29
29
|
'X-Api-Key'?: string;
|
|
30
30
|
}
|
|
@@ -33,14 +33,13 @@ export interface ExemptionsFindExemptionByIdQueryQueryParams {
|
|
|
33
33
|
executionId?: string;
|
|
34
34
|
/**
|
|
35
35
|
* Ignore scope
|
|
36
|
-
* @example true
|
|
37
36
|
*/
|
|
38
37
|
ignoreScope?: boolean;
|
|
39
38
|
}
|
|
40
39
|
export interface ExemptionsFindExemptionByIdQueryHeaderParams {
|
|
41
40
|
/**
|
|
42
41
|
* Harness personal or service access token
|
|
43
|
-
* @example "
|
|
42
|
+
* @example "Modi maiores."
|
|
44
43
|
*/
|
|
45
44
|
'X-Api-Key'?: string;
|
|
46
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 "Sed magni veritatis."
|
|
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 "Quis voluptas ducimus libero ut velit sint."
|
|
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 "Recusandae autem voluptates."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FrontendExemptionsFiltersResponseBody } from '../schemas/FrontendExemptionsFiltersResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { ExemptionsFiltersRequestBody } from '../schemas/ExemptionsFiltersRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface FrontendExemptionsFiltersQueryQueryParams {
|
|
8
|
+
/**
|
|
9
|
+
* Harness Account ID
|
|
10
|
+
* @example "abcdef1234567890ghijkl"
|
|
11
|
+
*/
|
|
12
|
+
accountId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Harness Organization ID
|
|
15
|
+
* @example "example_org"
|
|
16
|
+
*/
|
|
17
|
+
orgId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Harness Project ID
|
|
20
|
+
* @example "example_project"
|
|
21
|
+
*/
|
|
22
|
+
projectId?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface FrontendExemptionsFiltersQueryHeaderParams {
|
|
25
|
+
/**
|
|
26
|
+
* Harness personal or service access token
|
|
27
|
+
* @example "Placeat vel natus consequuntur reprehenderit."
|
|
28
|
+
*/
|
|
29
|
+
'X-Api-Key'?: string;
|
|
30
|
+
}
|
|
31
|
+
export type FrontendExemptionsFiltersRequestBody = ExemptionsFiltersRequestBody;
|
|
32
|
+
export type FrontendExemptionsFiltersOkResponse = ResponseWithPagination<FrontendExemptionsFiltersResponseBody>;
|
|
33
|
+
export type FrontendExemptionsFiltersErrorResponse = NotFound;
|
|
34
|
+
export interface FrontendExemptionsFiltersProps extends Omit<FetcherOptions<FrontendExemptionsFiltersQueryQueryParams, FrontendExemptionsFiltersRequestBody, FrontendExemptionsFiltersQueryHeaderParams>, 'url'> {
|
|
35
|
+
queryParams: FrontendExemptionsFiltersQueryQueryParams;
|
|
36
|
+
body: FrontendExemptionsFiltersRequestBody;
|
|
37
|
+
}
|
|
38
|
+
export declare function frontendExemptionsFilters(props: FrontendExemptionsFiltersProps): Promise<FrontendExemptionsFiltersOkResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Provide list of filters for exemptions
|
|
41
|
+
*/
|
|
42
|
+
export declare function useFrontendExemptionsFiltersQuery(props: FrontendExemptionsFiltersProps, options?: Omit<UseQueryOptions<FrontendExemptionsFiltersOkResponse, FrontendExemptionsFiltersErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FrontendExemptionsFiltersOkResponse, 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 frontendExemptionsFilters(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v2/frontend/exemptions/filters`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Provide list of filters for exemptions
|
|
11
|
+
*/
|
|
12
|
+
export function useFrontendExemptionsFiltersQuery(props, options) {
|
|
13
|
+
return useQuery(['Frontend#ExemptionsFilters', props.queryParams, props.body], ({ signal }) => frontendExemptionsFilters(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -44,11 +44,21 @@ export interface FrontendGlobalExemptionsQueryQueryParams {
|
|
|
44
44
|
* @example "Keyword search. Searches Title, Reason & Type"
|
|
45
45
|
*/
|
|
46
46
|
search?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Column to sort by (default: requestedOn)
|
|
49
|
+
* @example "requestedOn"
|
|
50
|
+
*/
|
|
51
|
+
sortBy?: 'approvedBy' | 'exemptionDuration' | 'expiredOn' | 'rejectedBy' | 'requestedBy' | 'requestedOn' | 'severity';
|
|
52
|
+
/**
|
|
53
|
+
* Sort order: ascending or descending (default: desc)
|
|
54
|
+
* @example "desc"
|
|
55
|
+
*/
|
|
56
|
+
sortOrder?: 'asc' | 'desc';
|
|
47
57
|
}
|
|
48
58
|
export interface FrontendGlobalExemptionsQueryHeaderParams {
|
|
49
59
|
/**
|
|
50
60
|
* Harness personal or service access token
|
|
51
|
-
* @example "
|
|
61
|
+
* @example "Accusamus eveniet atque dolorem dicta iusto."
|
|
52
62
|
*/
|
|
53
63
|
'X-Api-Key'?: string;
|
|
54
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 "Aut eveniet neque."
|
|
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 "Aut voluptatibus ducimus et ea cumque voluptatum."
|
|
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 "Dignissimos explicabo amet in dolore voluptatibus."
|
|
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 "Modi consequatur fuga sint distinctio eius recusandae."
|
|
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 "Sint voluptatem deleniti porro."
|
|
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 "Iure et corrupti nihil magni."
|
|
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 "Officia quidem 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 "Corrupti odit."
|
|
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 "Quia omnis."
|
|
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 "Sed maxime quae nam quo ipsum eaque."
|
|
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 "Occaecati debitis dolor totam eum."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
13
|
* The ID of the Security Test Issue
|
|
14
|
-
* @example "
|
|
14
|
+
* @example "Unde quos perspiciatis qui error."
|
|
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 "Aspernatur distinctio."
|
|
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 "Cupiditate expedita quas."
|
|
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 "Sed modi consequuntur mollitia minima harum."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
13
|
* The ID of the Security Test Issue
|
|
14
|
-
* @example "
|
|
14
|
+
* @example "Veritatis ut aut perspiciatis laudantium aut at."
|
|
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 "Est est sit ex quaerat aliquam est."
|
|
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 "Magni vel."
|
|
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 "Tenetur voluptatem sed aut temporibus."
|
|
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 "Nulla illum enim quasi."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -21,6 +21,8 @@ export type { FrontendAllIssuesListErrorResponse, FrontendAllIssuesListOkRespons
|
|
|
21
21
|
export { frontendAllIssuesList, useFrontendAllIssuesListQuery, } from './hooks/useFrontendAllIssuesListQuery';
|
|
22
22
|
export type { FrontendAllIssuesOccurrenceDetailsErrorResponse, FrontendAllIssuesOccurrenceDetailsOkResponse, FrontendAllIssuesOccurrenceDetailsProps, FrontendAllIssuesOccurrenceDetailsQueryPathParams, FrontendAllIssuesOccurrenceDetailsQueryQueryParams, } from './hooks/useFrontendAllIssuesOccurrenceDetailsQuery';
|
|
23
23
|
export { frontendAllIssuesOccurrenceDetails, useFrontendAllIssuesOccurrenceDetailsQuery, } from './hooks/useFrontendAllIssuesOccurrenceDetailsQuery';
|
|
24
|
+
export type { FrontendExemptionsFiltersErrorResponse, FrontendExemptionsFiltersOkResponse, FrontendExemptionsFiltersProps, FrontendExemptionsFiltersQueryQueryParams, FrontendExemptionsFiltersRequestBody, } from './hooks/useFrontendExemptionsFiltersQuery';
|
|
25
|
+
export { frontendExemptionsFilters, useFrontendExemptionsFiltersQuery, } from './hooks/useFrontendExemptionsFiltersQuery';
|
|
24
26
|
export type { FrontendExpiringExemptionsErrorResponse, FrontendExpiringExemptionsOkResponse, FrontendExpiringExemptionsProps, FrontendExpiringExemptionsQueryPathParams, FrontendExpiringExemptionsQueryQueryParams, } from './hooks/useFrontendExpiringExemptionsQuery';
|
|
25
27
|
export { frontendExpiringExemptions, useFrontendExpiringExemptionsQuery, } from './hooks/useFrontendExpiringExemptionsQuery';
|
|
26
28
|
export type { FrontendGlobalExemptionsErrorResponse, FrontendGlobalExemptionsOkResponse, FrontendGlobalExemptionsProps, FrontendGlobalExemptionsQueryQueryParams, FrontendGlobalExemptionsRequestBody, } from './hooks/useFrontendGlobalExemptionsQuery';
|
|
@@ -87,8 +89,13 @@ export type { CreateExemptionRequestBody } from './schemas/CreateExemptionReques
|
|
|
87
89
|
export type { CreateOverrideRequestBody } from './schemas/CreateOverrideRequestBody';
|
|
88
90
|
export type { CreatePullRequestRequestBody } from './schemas/CreatePullRequestRequestBody';
|
|
89
91
|
export type { Exemption } from './schemas/Exemption';
|
|
92
|
+
export type { ExemptionFilterScanner } from './schemas/ExemptionFilterScanner';
|
|
93
|
+
export type { ExemptionFilterTarget } from './schemas/ExemptionFilterTarget';
|
|
94
|
+
export type { ExemptionFilterUser } from './schemas/ExemptionFilterUser';
|
|
90
95
|
export type { ExemptionImpactedTargetsResult } from './schemas/ExemptionImpactedTargetsResult';
|
|
91
96
|
export type { ExemptionsCreateExemptionResponseBody } from './schemas/ExemptionsCreateExemptionResponseBody';
|
|
97
|
+
export type { ExemptionsFiltersRequestBody } from './schemas/ExemptionsFiltersRequestBody';
|
|
98
|
+
export type { ExemptionsFiltersResult } from './schemas/ExemptionsFiltersResult';
|
|
92
99
|
export type { ExemptionsListExemptionsResponseBody } from './schemas/ExemptionsListExemptionsResponseBody';
|
|
93
100
|
export type { ExportPipelineSecurityIssuesCsvResponseBody } from './schemas/ExportPipelineSecurityIssuesCsvResponseBody';
|
|
94
101
|
export type { FrontendAllIssuesDetailsResponseBody } from './schemas/FrontendAllIssuesDetailsResponseBody';
|
|
@@ -98,6 +105,7 @@ export type { FrontendAllIssuesOccurrenceDetailsResponseBody } from './schemas/F
|
|
|
98
105
|
export type { FrontendExemption } from './schemas/FrontendExemption';
|
|
99
106
|
export type { FrontendExemptionCounts } from './schemas/FrontendExemptionCounts';
|
|
100
107
|
export type { FrontendExemptionTargets } from './schemas/FrontendExemptionTargets';
|
|
108
|
+
export type { FrontendExemptionsFiltersResponseBody } from './schemas/FrontendExemptionsFiltersResponseBody';
|
|
101
109
|
export type { FrontendExpiringExemptionsResponseBody } from './schemas/FrontendExpiringExemptionsResponseBody';
|
|
102
110
|
export type { FrontendImpactedTargetsForExemptionResponseBody } from './schemas/FrontendImpactedTargetsForExemptionResponseBody';
|
|
103
111
|
export type { FrontendIssueCounts } from './schemas/FrontendIssueCounts';
|
|
@@ -9,6 +9,7 @@ export { frontendAllIssuesDetails, useFrontendAllIssuesDetailsQuery, } from './h
|
|
|
9
9
|
export { frontendAllIssuesFilters, useFrontendAllIssuesFiltersQuery, } from './hooks/useFrontendAllIssuesFiltersQuery';
|
|
10
10
|
export { frontendAllIssuesList, useFrontendAllIssuesListQuery, } from './hooks/useFrontendAllIssuesListQuery';
|
|
11
11
|
export { frontendAllIssuesOccurrenceDetails, useFrontendAllIssuesOccurrenceDetailsQuery, } from './hooks/useFrontendAllIssuesOccurrenceDetailsQuery';
|
|
12
|
+
export { frontendExemptionsFilters, useFrontendExemptionsFiltersQuery, } from './hooks/useFrontendExemptionsFiltersQuery';
|
|
12
13
|
export { frontendExpiringExemptions, useFrontendExpiringExemptionsQuery, } from './hooks/useFrontendExpiringExemptionsQuery';
|
|
13
14
|
export { frontendGlobalExemptions, useFrontendGlobalExemptionsQuery, } from './hooks/useFrontendGlobalExemptionsQuery';
|
|
14
15
|
export { frontendImpactedTargetsForExemption, useFrontendImpactedTargetsForExemptionQuery, } from './hooks/useFrontendImpactedTargetsForExemptionQuery';
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import type { OverrideResult } from '../schemas/OverrideResult';
|
|
2
2
|
/**
|
|
3
3
|
* All issue list summary
|
|
4
|
-
* @example {"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"
|
|
4
|
+
* @example {"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Neque unde et.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"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"}],"severityCode":"High","status":"Active","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}
|
|
5
5
|
*/
|
|
6
6
|
export interface AllIssueSummary {
|
|
7
|
+
/**
|
|
8
|
+
* Last date the issue EPSS data was last modified
|
|
9
|
+
* @example "2025-05-01"
|
|
10
|
+
*/
|
|
11
|
+
epssLastModified?: string;
|
|
12
|
+
/**
|
|
13
|
+
* EPSS percentile of the issue CVE identifier
|
|
14
|
+
* @format double
|
|
15
|
+
* @example 0.15
|
|
16
|
+
*/
|
|
17
|
+
epssPercentile?: number;
|
|
18
|
+
/**
|
|
19
|
+
* EPSS score of the issue CVE identifier
|
|
20
|
+
* @format double
|
|
21
|
+
* @example 0.035
|
|
22
|
+
*/
|
|
23
|
+
epssScore?: number;
|
|
7
24
|
/**
|
|
8
25
|
* Unix timestamp at which this Exemption will expire
|
|
9
26
|
* @format int64
|
|
@@ -27,7 +44,7 @@ export interface AllIssueSummary {
|
|
|
27
44
|
id: string;
|
|
28
45
|
/**
|
|
29
46
|
* Issue Type
|
|
30
|
-
* @example "
|
|
47
|
+
* @example "Eligendi consequatur asperiores ipsam corporis non excepturi."
|
|
31
48
|
*/
|
|
32
49
|
issueType?: string;
|
|
33
50
|
/**
|
|
@@ -50,7 +67,7 @@ export interface AllIssueSummary {
|
|
|
50
67
|
numTargetsImpacted: number;
|
|
51
68
|
/**
|
|
52
69
|
* List of issue overrides
|
|
53
|
-
* @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"}
|
|
70
|
+
* @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"}]
|
|
54
71
|
*/
|
|
55
72
|
overrides?: OverrideResult[];
|
|
56
73
|
/**
|
|
@@ -60,7 +77,7 @@ export interface AllIssueSummary {
|
|
|
60
77
|
severityCode: 'Critical' | 'High' | 'Info' | 'Low' | 'Medium' | 'Unassigned';
|
|
61
78
|
/**
|
|
62
79
|
* Issue Status
|
|
63
|
-
* @example "
|
|
80
|
+
* @example "Active"
|
|
64
81
|
*/
|
|
65
82
|
status?: 'Active' | 'Exempted';
|
|
66
83
|
/**
|
|
@@ -3,22 +3,39 @@ 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 {"description":"
|
|
6
|
+
* @example {"description":"Aut qui voluptatem ea vel facere sed.","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":"Debitis consequuntur a repellat.","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"},{"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."},{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."}],"scanTool":"owasp","severityCode":"High","targetType":"Doloribus accusamus doloremque quaerat voluptas.","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}
|
|
7
7
|
*/
|
|
8
8
|
export interface AllIssuesDetailsResult {
|
|
9
9
|
/**
|
|
10
10
|
* Issue description
|
|
11
|
-
* @example "
|
|
11
|
+
* @example "Voluptas ut distinctio."
|
|
12
12
|
*/
|
|
13
13
|
description: string;
|
|
14
|
+
/**
|
|
15
|
+
* Last date the issue EPSS data was last modified
|
|
16
|
+
* @example "2025-05-01"
|
|
17
|
+
*/
|
|
18
|
+
epssLastModified?: string;
|
|
19
|
+
/**
|
|
20
|
+
* EPSS percentile of the issue CVE identifier
|
|
21
|
+
* @format double
|
|
22
|
+
* @example 0.15
|
|
23
|
+
*/
|
|
24
|
+
epssPercentile?: number;
|
|
25
|
+
/**
|
|
26
|
+
* EPSS score of the issue CVE identifier
|
|
27
|
+
* @format double
|
|
28
|
+
* @example 0.035
|
|
29
|
+
*/
|
|
30
|
+
epssScore?: number;
|
|
14
31
|
/**
|
|
15
32
|
* List of Impacted Targets
|
|
16
|
-
* @example [{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userEmail":"user@gmail.com","userId":"
|
|
33
|
+
* @example [{"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."}]
|
|
17
34
|
*/
|
|
18
35
|
impactedTargets: ImpactedTarget[];
|
|
19
36
|
/**
|
|
20
37
|
* Issue Type
|
|
21
|
-
* @example "
|
|
38
|
+
* @example "Fugit rem beatae dolor voluptas est modi."
|
|
22
39
|
*/
|
|
23
40
|
issueType?: string;
|
|
24
41
|
/**
|
|
@@ -35,7 +52,7 @@ export interface AllIssuesDetailsResult {
|
|
|
35
52
|
pagination: Pagination;
|
|
36
53
|
/**
|
|
37
54
|
* Reference Identifiers
|
|
38
|
-
* @example [{"id":"
|
|
55
|
+
* @example [{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."},{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."}]
|
|
39
56
|
*/
|
|
40
57
|
referenceIdentifiers: RefIds[];
|
|
41
58
|
/**
|
|
@@ -50,7 +67,7 @@ export interface AllIssuesDetailsResult {
|
|
|
50
67
|
severityCode: 'Critical' | 'High' | 'Info' | 'Low' | 'Medium' | 'Unassigned';
|
|
51
68
|
/**
|
|
52
69
|
* Target Type
|
|
53
|
-
* @example "
|
|
70
|
+
* @example "Dolorum nisi ad illum recusandae modi."
|
|
54
71
|
*/
|
|
55
72
|
targetType: string;
|
|
56
73
|
/**
|