@harnessio/react-sto-core-client 0.3.14 → 0.3.16
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 -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/useFrontendExpiringExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendGlobalExemptionsMutation.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 +114 -0
- package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesCsvQuery.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/useProductsListProductsQuery.d.ts +43 -0
- package/dist/sto-core/src/services/hooks/useProductsListProductsQuery.js +14 -0
- 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 +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 +7 -0
- package/dist/sto-core/src/services/index.js +2 -0
- package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/AllIssuesFiltersResult.d.ts +2 -2
- 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/Exemption.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/ExemptionImpactedTargetsResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +6 -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/HistoricalIssueCounts.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +14 -4
- package/dist/sto-core/src/services/schemas/Issue.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/LatestBaselineScanInfo.d.ts +6 -1
- package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesCsvResponseBody.d.ts +31 -0
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesCsvResponseBody.js +4 -0
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/Product.d.ts +43 -0
- package/dist/sto-core/src/services/schemas/Product.js +4 -0
- package/dist/sto-core/src/services/schemas/ProductsListProductsResponseBody.d.ts +12 -0
- package/dist/sto-core/src/services/schemas/ProductsListProductsResponseBody.js +1 -0
- 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/StepInfo.d.ts +6 -1
- package/dist/sto-core/src/services/schemas/TestTarget.d.ts +1 -1
- 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 "Consequatur sed consequuntur velit cum."
|
|
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 "Fugit voluptas qui perferendis ipsum et."
|
|
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 "Sint repudiandae."
|
|
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 "Id recusandae iste dolor reiciendis voluptas labore."
|
|
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 "Natus molestiae et velit illo."
|
|
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 "Consequuntur omnis."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -47,7 +47,7 @@ export interface FrontendGlobalExemptionsMutationQueryParams {
|
|
|
47
47
|
export interface FrontendGlobalExemptionsMutationHeaderParams {
|
|
48
48
|
/**
|
|
49
49
|
* Harness personal or service access token
|
|
50
|
-
* @example "
|
|
50
|
+
* @example "Exercitationem ipsam vel quasi aut impedit eius."
|
|
51
51
|
*/
|
|
52
52
|
'X-Api-Key'?: string;
|
|
53
53
|
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { PipelineSecurityIssuesCsvResponseBody } from '../schemas/PipelineSecurityIssuesCsvResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface FrontendPipelineSecurityIssuesCsvQueryQueryParams {
|
|
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
|
+
* Harness Execution ID
|
|
24
|
+
* @example "abcdef1234567890ghijkl"
|
|
25
|
+
*/
|
|
26
|
+
executionId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Page number to fetch (starting from 0)
|
|
29
|
+
* @format int64
|
|
30
|
+
* @default 0
|
|
31
|
+
* @example 4
|
|
32
|
+
*/
|
|
33
|
+
pageExisting?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Number of results per page
|
|
36
|
+
* @format int64
|
|
37
|
+
* @default 50
|
|
38
|
+
* @example 50
|
|
39
|
+
*/
|
|
40
|
+
pageSizeExisting?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Page number to fetch (starting from 0)
|
|
43
|
+
* @format int64
|
|
44
|
+
* @default 0
|
|
45
|
+
* @example 4
|
|
46
|
+
*/
|
|
47
|
+
pageNew?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Number of results per page
|
|
50
|
+
* @format int64
|
|
51
|
+
* @default 50
|
|
52
|
+
* @example 50
|
|
53
|
+
*/
|
|
54
|
+
pageSizeNew?: number;
|
|
55
|
+
/**
|
|
56
|
+
* @example "stage1,stage2"
|
|
57
|
+
*/
|
|
58
|
+
stages?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @example "stageId.step1id,stageId.step2Id"
|
|
61
|
+
*/
|
|
62
|
+
steps?: string;
|
|
63
|
+
/**
|
|
64
|
+
* @example "target1111111111111111,abcdef1234567890abcdef"
|
|
65
|
+
*/
|
|
66
|
+
targetIds?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @example "repository,container"
|
|
69
|
+
*/
|
|
70
|
+
targetTypes?: string;
|
|
71
|
+
/**
|
|
72
|
+
* @example "owasp,zap"
|
|
73
|
+
*/
|
|
74
|
+
productNames?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @example "Critical,High,Medium"
|
|
77
|
+
*/
|
|
78
|
+
severityCodes?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @default true
|
|
81
|
+
* @example true
|
|
82
|
+
*/
|
|
83
|
+
includeExempted?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @example "CWE-123"
|
|
86
|
+
*/
|
|
87
|
+
search?: string;
|
|
88
|
+
/**
|
|
89
|
+
* @example "SAST"
|
|
90
|
+
*/
|
|
91
|
+
issueTypes?: string;
|
|
92
|
+
/**
|
|
93
|
+
* @example "active,remediated"
|
|
94
|
+
*/
|
|
95
|
+
status?: string;
|
|
96
|
+
/**
|
|
97
|
+
* @example "app"
|
|
98
|
+
*/
|
|
99
|
+
origins?: string;
|
|
100
|
+
/**
|
|
101
|
+
* @example "approved"
|
|
102
|
+
*/
|
|
103
|
+
originStatuses?: string;
|
|
104
|
+
}
|
|
105
|
+
export type FrontendPipelineSecurityIssuesCsvOkResponse = ResponseWithPagination<PipelineSecurityIssuesCsvResponseBody>;
|
|
106
|
+
export type FrontendPipelineSecurityIssuesCsvErrorResponse = NotFound;
|
|
107
|
+
export interface FrontendPipelineSecurityIssuesCsvProps extends Omit<FetcherOptions<FrontendPipelineSecurityIssuesCsvQueryQueryParams, unknown>, 'url'> {
|
|
108
|
+
queryParams: FrontendPipelineSecurityIssuesCsvQueryQueryParams;
|
|
109
|
+
}
|
|
110
|
+
export declare function frontendPipelineSecurityIssuesCsv(props: FrontendPipelineSecurityIssuesCsvProps): Promise<FrontendPipelineSecurityIssuesCsvOkResponse>;
|
|
111
|
+
/**
|
|
112
|
+
* Export pipeline security issues as JSON data for CSV generation
|
|
113
|
+
*/
|
|
114
|
+
export declare function useFrontendPipelineSecurityIssuesCsvQuery(props: FrontendPipelineSecurityIssuesCsvProps, options?: Omit<UseQueryOptions<FrontendPipelineSecurityIssuesCsvOkResponse, FrontendPipelineSecurityIssuesCsvErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FrontendPipelineSecurityIssuesCsvOkResponse, 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 frontendPipelineSecurityIssuesCsv(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v2/frontend/pipeline-security/issues/csv`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Export pipeline security issues as JSON data for CSV generation
|
|
11
|
+
*/
|
|
12
|
+
export function useFrontendPipelineSecurityIssuesCsvQuery(props, options) {
|
|
13
|
+
return useQuery(['Frontend#PipelineSecurityIssuesCSV', props.queryParams], ({ signal }) => frontendPipelineSecurityIssuesCsv(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 "Eaque totam quia eos."
|
|
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 "Nihil quod et quis quae accusamus."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ProductsListProductsResponseBody } from '../schemas/ProductsListProductsResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ProductsListProductsQueryQueryParams {
|
|
7
|
+
/**
|
|
8
|
+
* Page number to fetch (starting from 0)
|
|
9
|
+
* @format int64
|
|
10
|
+
* @default 0
|
|
11
|
+
* @example 4
|
|
12
|
+
*/
|
|
13
|
+
page?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Number of results per page
|
|
16
|
+
* @format int64
|
|
17
|
+
* @default 30
|
|
18
|
+
* @example 50
|
|
19
|
+
*/
|
|
20
|
+
pageSize?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Resource name
|
|
23
|
+
* @example "NodeGoat"
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ProductsListProductsQueryHeaderParams {
|
|
28
|
+
/**
|
|
29
|
+
* Harness personal or service access token
|
|
30
|
+
* @example "Officiis aspernatur sint sunt magni ad."
|
|
31
|
+
*/
|
|
32
|
+
'X-Api-Key'?: string;
|
|
33
|
+
}
|
|
34
|
+
export type ProductsListProductsOkResponse = ResponseWithPagination<ProductsListProductsResponseBody>;
|
|
35
|
+
export type ProductsListProductsErrorResponse = NotFound;
|
|
36
|
+
export interface ProductsListProductsProps extends Omit<FetcherOptions<ProductsListProductsQueryQueryParams, unknown, ProductsListProductsQueryHeaderParams>, 'url'> {
|
|
37
|
+
queryParams: ProductsListProductsQueryQueryParams;
|
|
38
|
+
}
|
|
39
|
+
export declare function productsListProducts(props: ProductsListProductsProps): Promise<ProductsListProductsOkResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* List a collection of Scan Tools
|
|
42
|
+
*/
|
|
43
|
+
export declare function useProductsListProductsQuery(props: ProductsListProductsProps, options?: Omit<UseQueryOptions<ProductsListProductsOkResponse, ProductsListProductsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ProductsListProductsOkResponse, 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 productsListProducts(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v2/products`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List a collection of Scan Tools
|
|
11
|
+
*/
|
|
12
|
+
export function useProductsListProductsQuery(props, options) {
|
|
13
|
+
return useQuery(['Products#ListProducts', props.queryParams], ({ signal }) => productsListProducts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -29,14 +29,14 @@ export interface PullRequestsCreatePullRequestMutationQueryParams {
|
|
|
29
29
|
*/
|
|
30
30
|
connectorId?: string;
|
|
31
31
|
/**
|
|
32
|
-
* @example "
|
|
32
|
+
* @example "Fuga neque exercitationem nemo."
|
|
33
33
|
*/
|
|
34
34
|
repositoryPath: string;
|
|
35
35
|
}
|
|
36
36
|
export interface PullRequestsCreatePullRequestMutationHeaderParams {
|
|
37
37
|
/**
|
|
38
38
|
* Harness personal or service access token
|
|
39
|
-
* @example "
|
|
39
|
+
* @example "Consequatur et eos quo."
|
|
40
40
|
*/
|
|
41
41
|
'X-Api-Key'?: string;
|
|
42
42
|
}
|
|
@@ -28,7 +28,7 @@ export interface PullRequestsGetPullRequestCorrelationQueryQueryParams {
|
|
|
28
28
|
*/
|
|
29
29
|
connectorId?: string;
|
|
30
30
|
/**
|
|
31
|
-
* @example "
|
|
31
|
+
* @example "Odit odit recusandae rerum unde labore."
|
|
32
32
|
*/
|
|
33
33
|
repositoryPath: string;
|
|
34
34
|
/**
|
|
@@ -44,7 +44,7 @@ export interface PullRequestsGetPullRequestCorrelationQueryQueryParams {
|
|
|
44
44
|
export interface PullRequestsGetPullRequestCorrelationQueryHeaderParams {
|
|
45
45
|
/**
|
|
46
46
|
* Harness personal or service access token
|
|
47
|
-
* @example "
|
|
47
|
+
* @example "Sit rerum."
|
|
48
48
|
*/
|
|
49
49
|
'X-Api-Key'?: string;
|
|
50
50
|
}
|
|
@@ -29,14 +29,14 @@ export interface PullRequestsUpdatePullRequestMutationQueryParams {
|
|
|
29
29
|
*/
|
|
30
30
|
connectorId?: string;
|
|
31
31
|
/**
|
|
32
|
-
* @example "
|
|
32
|
+
* @example "Aut omnis aut accusantium."
|
|
33
33
|
*/
|
|
34
34
|
repositoryPath: string;
|
|
35
35
|
}
|
|
36
36
|
export interface PullRequestsUpdatePullRequestMutationHeaderParams {
|
|
37
37
|
/**
|
|
38
38
|
* Harness personal or service access token
|
|
39
|
-
* @example "
|
|
39
|
+
* @example "Nobis fugit."
|
|
40
40
|
*/
|
|
41
41
|
'X-Api-Key'?: string;
|
|
42
42
|
}
|
|
@@ -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 "Doloribus tempora tempore quam numquam."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
13
|
* The ID of the Security Test Issue
|
|
14
|
-
* @example "
|
|
14
|
+
* @example "Minus et amet et nostrum est."
|
|
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 "Et ex corrupti ea ullam."
|
|
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 "Ut quia sit sed quia non est."
|
|
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 "Eum nobis voluptas dicta nam."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
13
|
* The ID of the Security Test Issue
|
|
14
|
-
* @example "
|
|
14
|
+
* @example "Dicta ratione incidunt."
|
|
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 "Amet porro vero asperiores eligendi."
|
|
51
51
|
*/
|
|
52
52
|
sort?: string;
|
|
53
53
|
/**
|
|
54
54
|
* The order to sort by
|
|
55
|
-
* @example "
|
|
55
|
+
* @example "ASC"
|
|
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 "Autem et occaecati voluptas asperiores neque."
|
|
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 "Sed qui sit."
|
|
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 "Ut neque omnis id excepturi consequatur."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -35,6 +35,8 @@ export type { FrontendOverviewBaselinesErrorResponse, FrontendOverviewBaselinesO
|
|
|
35
35
|
export { frontendOverviewBaselines, useFrontendOverviewBaselinesQuery, } from './hooks/useFrontendOverviewBaselinesQuery';
|
|
36
36
|
export type { FrontendOverviewHistoricalCountsErrorResponse, FrontendOverviewHistoricalCountsOkResponse, FrontendOverviewHistoricalCountsProps, FrontendOverviewHistoricalCountsQueryQueryParams, } from './hooks/useFrontendOverviewHistoricalCountsQuery';
|
|
37
37
|
export { frontendOverviewHistoricalCounts, useFrontendOverviewHistoricalCountsQuery, } from './hooks/useFrontendOverviewHistoricalCountsQuery';
|
|
38
|
+
export type { FrontendPipelineSecurityIssuesCsvErrorResponse, FrontendPipelineSecurityIssuesCsvOkResponse, FrontendPipelineSecurityIssuesCsvProps, FrontendPipelineSecurityIssuesCsvQueryQueryParams, } from './hooks/useFrontendPipelineSecurityIssuesCsvQuery';
|
|
39
|
+
export { frontendPipelineSecurityIssuesCsv, useFrontendPipelineSecurityIssuesCsvQuery, } from './hooks/useFrontendPipelineSecurityIssuesCsvQuery';
|
|
38
40
|
export type { FrontendPipelineSecurityIssuesErrorResponse, FrontendPipelineSecurityIssuesOkResponse, FrontendPipelineSecurityIssuesProps, FrontendPipelineSecurityIssuesQueryQueryParams, } from './hooks/useFrontendPipelineSecurityIssuesQuery';
|
|
39
41
|
export { frontendPipelineSecurityIssues, useFrontendPipelineSecurityIssuesQuery, } from './hooks/useFrontendPipelineSecurityIssuesQuery';
|
|
40
42
|
export type { FrontendPipelineSecurityStepsErrorResponse, FrontendPipelineSecurityStepsOkResponse, FrontendPipelineSecurityStepsProps, FrontendPipelineSecurityStepsQueryQueryParams, } from './hooks/useFrontendPipelineSecurityStepsQuery';
|
|
@@ -49,6 +51,8 @@ export type { IssuesFindIssueByIdErrorResponse, IssuesFindIssueByIdOkResponse, I
|
|
|
49
51
|
export { issuesFindIssueById, useIssuesFindIssueByIdQuery, } from './hooks/useIssuesFindIssueByIdQuery';
|
|
50
52
|
export type { IssuesIssuesAugmentRemediationErrorResponse, IssuesIssuesAugmentRemediationMutationPathParams, IssuesIssuesAugmentRemediationMutationQueryParams, IssuesIssuesAugmentRemediationOkResponse, IssuesIssuesAugmentRemediationProps, IssuesIssuesAugmentRemediationRequestBody, } from './hooks/useIssuesIssuesAugmentRemediationMutation';
|
|
51
53
|
export { issuesIssuesAugmentRemediation, useIssuesIssuesAugmentRemediationMutation, } from './hooks/useIssuesIssuesAugmentRemediationMutation';
|
|
54
|
+
export type { ProductsListProductsErrorResponse, ProductsListProductsOkResponse, ProductsListProductsProps, ProductsListProductsQueryQueryParams, } from './hooks/useProductsListProductsQuery';
|
|
55
|
+
export { productsListProducts, useProductsListProductsQuery, } from './hooks/useProductsListProductsQuery';
|
|
52
56
|
export type { PullRequestsCreatePullRequestErrorResponse, PullRequestsCreatePullRequestMutationQueryParams, PullRequestsCreatePullRequestOkResponse, PullRequestsCreatePullRequestProps, PullRequestsCreatePullRequestRequestBody, } from './hooks/usePullRequestsCreatePullRequestMutation';
|
|
53
57
|
export { pullRequestsCreatePullRequest, usePullRequestsCreatePullRequestMutation, } from './hooks/usePullRequestsCreatePullRequestMutation';
|
|
54
58
|
export type { PullRequestsGetPullRequestCorrelationErrorResponse, PullRequestsGetPullRequestCorrelationOkResponse, PullRequestsGetPullRequestCorrelationProps, PullRequestsGetPullRequestCorrelationQueryQueryParams, } from './hooks/usePullRequestsGetPullRequestCorrelationQuery';
|
|
@@ -118,8 +122,11 @@ export type { Pagination } from './schemas/Pagination';
|
|
|
118
122
|
export type { PatchTargetRequestBody } from './schemas/PatchTargetRequestBody';
|
|
119
123
|
export type { PendingChanges } from './schemas/PendingChanges';
|
|
120
124
|
export type { PipelineSecurityCounts } from './schemas/PipelineSecurityCounts';
|
|
125
|
+
export type { PipelineSecurityIssuesCsvResponseBody } from './schemas/PipelineSecurityIssuesCsvResponseBody';
|
|
121
126
|
export type { PipelineSecurityIssuesResult } from './schemas/PipelineSecurityIssuesResult';
|
|
122
127
|
export type { PipelineSecurityStepsResult } from './schemas/PipelineSecurityStepsResult';
|
|
128
|
+
export type { Product } from './schemas/Product';
|
|
129
|
+
export type { ProductsListProductsResponseBody } from './schemas/ProductsListProductsResponseBody';
|
|
123
130
|
export type { PromoteExemptionRequestBody } from './schemas/PromoteExemptionRequestBody';
|
|
124
131
|
export type { PullRequestCorrelationResult } from './schemas/PullRequestCorrelationResult';
|
|
125
132
|
export type { PullRequestResult } from './schemas/PullRequestResult';
|
|
@@ -16,6 +16,7 @@ export { frontendIssueForExemption, useFrontendIssueForExemptionQuery, } from '.
|
|
|
16
16
|
export { frontendIssueSeverityChange, useFrontendIssueSeverityChangeQuery, } from './hooks/useFrontendIssueSeverityChangeQuery';
|
|
17
17
|
export { frontendOverviewBaselines, useFrontendOverviewBaselinesQuery, } from './hooks/useFrontendOverviewBaselinesQuery';
|
|
18
18
|
export { frontendOverviewHistoricalCounts, useFrontendOverviewHistoricalCountsQuery, } from './hooks/useFrontendOverviewHistoricalCountsQuery';
|
|
19
|
+
export { frontendPipelineSecurityIssuesCsv, useFrontendPipelineSecurityIssuesCsvQuery, } from './hooks/useFrontendPipelineSecurityIssuesCsvQuery';
|
|
19
20
|
export { frontendPipelineSecurityIssues, useFrontendPipelineSecurityIssuesQuery, } from './hooks/useFrontendPipelineSecurityIssuesQuery';
|
|
20
21
|
export { frontendPipelineSecuritySteps, useFrontendPipelineSecurityStepsQuery, } from './hooks/useFrontendPipelineSecurityStepsQuery';
|
|
21
22
|
export { frontendSecurityReview, useFrontendSecurityReviewQuery, } from './hooks/useFrontendSecurityReviewQuery';
|
|
@@ -23,6 +24,7 @@ export { frontendTestTargets, useFrontendTestTargetsQuery, } from './hooks/useFr
|
|
|
23
24
|
export { frontendUpdateTestTargetVariants, useFrontendUpdateTestTargetVariantsMutation, } from './hooks/useFrontendUpdateTestTargetVariantsMutation';
|
|
24
25
|
export { issuesFindIssueById, useIssuesFindIssueByIdQuery, } from './hooks/useIssuesFindIssueByIdQuery';
|
|
25
26
|
export { issuesIssuesAugmentRemediation, useIssuesIssuesAugmentRemediationMutation, } from './hooks/useIssuesIssuesAugmentRemediationMutation';
|
|
27
|
+
export { productsListProducts, useProductsListProductsQuery, } from './hooks/useProductsListProductsQuery';
|
|
26
28
|
export { pullRequestsCreatePullRequest, usePullRequestsCreatePullRequestMutation, } from './hooks/usePullRequestsCreatePullRequestMutation';
|
|
27
29
|
export { pullRequestsGetPullRequestCorrelation, usePullRequestsGetPullRequestCorrelationQuery, } from './hooks/usePullRequestsGetPullRequestCorrelationQuery';
|
|
28
30
|
export { pullRequestsUpdatePullRequest, usePullRequestsUpdatePullRequestMutation, } from './hooks/usePullRequestsUpdatePullRequestMutation';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* All issue summary
|
|
3
|
-
* @example {"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"
|
|
3
|
+
* @example {"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Repellat et quo consectetur.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"override":{"originalSeverity":"medium","reason":"snyk"},"severityCode":"High","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}
|
|
4
4
|
*/
|
|
5
5
|
export interface AllIssueSummary {
|
|
6
6
|
/**
|
|
@@ -26,7 +26,7 @@ export interface AllIssueSummary {
|
|
|
26
26
|
id: string;
|
|
27
27
|
/**
|
|
28
28
|
* Issue Type
|
|
29
|
-
* @example "
|
|
29
|
+
* @example "Dolor ullam enim eos maxime nostrum."
|
|
30
30
|
*/
|
|
31
31
|
issueType?: string;
|
|
32
32
|
/**
|
|
@@ -2,22 +2,22 @@ import type { ImpactedTarget } from '../schemas/ImpactedTarget';
|
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
import type { RefIds } from '../schemas/RefIds';
|
|
4
4
|
/**
|
|
5
|
-
* @example {"description":"
|
|
5
|
+
* @example {"description":"At quia est fugit.","impactedTargets":[{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Atque distinctio dolor.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userId":"Et incidunt aspernatur.","variantName":"Deserunt error eos modi occaecati corporis."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Atque distinctio dolor.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userId":"Et incidunt aspernatur.","variantName":"Deserunt error eos modi occaecati corporis."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Atque distinctio dolor.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userId":"Et incidunt aspernatur.","variantName":"Deserunt error eos modi occaecati corporis."}],"issueType":"Fuga vitae animi.","lastDetected":1634836529,"override":{"originalSeverity":"medium","reason":"snyk"},"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"referenceIdentifiers":[{"id":"Unde deserunt dicta quos eligendi est.","type":"Odit cumque dolores ullam maiores quas."},{"id":"Unde deserunt dicta quos eligendi est.","type":"Odit cumque dolores ullam maiores quas."},{"id":"Unde deserunt dicta quos eligendi est.","type":"Odit cumque dolores ullam maiores quas."},{"id":"Unde deserunt dicta quos eligendi est.","type":"Odit cumque dolores ullam maiores quas."}],"scanTool":"owasp","severityCode":"High","targetType":"Consectetur non ipsa nostrum adipisci autem perspiciatis.","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}
|
|
6
6
|
*/
|
|
7
7
|
export interface AllIssuesDetailsResult {
|
|
8
8
|
/**
|
|
9
9
|
* Issue description
|
|
10
|
-
* @example "
|
|
10
|
+
* @example "Molestiae soluta non et."
|
|
11
11
|
*/
|
|
12
12
|
description: string;
|
|
13
13
|
/**
|
|
14
14
|
* List of Impacted Targets
|
|
15
|
-
* @example [{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"
|
|
15
|
+
* @example [{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Atque distinctio dolor.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userId":"Et incidunt aspernatur.","variantName":"Deserunt error eos modi occaecati corporis."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Atque distinctio dolor.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userId":"Et incidunt aspernatur.","variantName":"Deserunt error eos modi occaecati corporis."}]
|
|
16
16
|
*/
|
|
17
17
|
impactedTargets: ImpactedTarget[];
|
|
18
18
|
/**
|
|
19
19
|
* Issue Type
|
|
20
|
-
* @example "
|
|
20
|
+
* @example "Assumenda et exercitationem est omnis."
|
|
21
21
|
*/
|
|
22
22
|
issueType?: string;
|
|
23
23
|
/**
|
|
@@ -36,7 +36,7 @@ export interface AllIssuesDetailsResult {
|
|
|
36
36
|
pagination: Pagination;
|
|
37
37
|
/**
|
|
38
38
|
* Reference Identifiers
|
|
39
|
-
* @example [{"id":"
|
|
39
|
+
* @example [{"id":"Unde deserunt dicta quos eligendi est.","type":"Odit cumque dolores ullam maiores quas."},{"id":"Unde deserunt dicta quos eligendi est.","type":"Odit cumque dolores ullam maiores quas."}]
|
|
40
40
|
*/
|
|
41
41
|
referenceIdentifiers: RefIds[];
|
|
42
42
|
/**
|
|
@@ -51,7 +51,7 @@ export interface AllIssuesDetailsResult {
|
|
|
51
51
|
severityCode: 'Critical' | 'High' | 'Info' | 'Low' | 'Medium' | 'Unassigned';
|
|
52
52
|
/**
|
|
53
53
|
* Target Type
|
|
54
|
-
* @example "
|
|
54
|
+
* @example "Odio est voluptatem possimus perferendis voluptate."
|
|
55
55
|
*/
|
|
56
56
|
targetType: string;
|
|
57
57
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { LatestBaselineScanInfo } from '../schemas/LatestBaselineScanInfo';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"latestBaselineScans":[{"pipelineId":"pipeline_1","scanTool":"owasp","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"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"}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface AllIssuesFiltersResult {
|
|
6
6
|
/**
|
|
7
|
-
* @example [{"pipelineId":"pipeline_1","scanTool":"owasp","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"owasp","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"owasp","
|
|
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"}]
|
|
8
8
|
*/
|
|
9
9
|
latestBaselineScans: LatestBaselineScanInfo[];
|
|
10
10
|
}
|