@harnessio/react-sto-core-client 0.3.12 → 0.3.14
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 +2 -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/useFrontendExpiringExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/{useFrontendGlobalExemptionsQuery.d.ts → useFrontendGlobalExemptionsMutation.d.ts} +20 -10
- package/dist/sto-core/src/services/hooks/{useFrontendGlobalExemptionsQuery.js → useFrontendGlobalExemptionsMutation.js} +4 -4
- 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/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 +2 -2
- package/dist/sto-core/src/services/index.js +1 -1
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AugmentRemediationMetadata.d.ts +1 -1
- 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/GitMetadata.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/Issue.d.ts +16 -1
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +16 -1
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +8 -3
- package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.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 "Porro odio."
|
|
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 "Qui rerum adipisci dolore."
|
|
28
28
|
*/
|
|
29
29
|
'X-Api-Key'?: string;
|
|
30
30
|
}
|
|
@@ -33,13 +33,14 @@ export interface ExemptionsFindExemptionByIdQueryQueryParams {
|
|
|
33
33
|
executionId?: string;
|
|
34
34
|
/**
|
|
35
35
|
* Ignore scope
|
|
36
|
+
* @example true
|
|
36
37
|
*/
|
|
37
38
|
ignoreScope?: boolean;
|
|
38
39
|
}
|
|
39
40
|
export interface ExemptionsFindExemptionByIdQueryHeaderParams {
|
|
40
41
|
/**
|
|
41
42
|
* Harness personal or service access token
|
|
42
|
-
* @example "
|
|
43
|
+
* @example "Vel laboriosam amet quia dicta."
|
|
43
44
|
*/
|
|
44
45
|
'X-Api-Key'?: string;
|
|
45
46
|
}
|
|
@@ -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 "Soluta voluptas."
|
|
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 "Facere 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 "Et aut eos voluptatem id dolor."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { FrontendSecurityReviewResponseBody } from '../schemas/FrontendSecurityReviewResponseBody';
|
|
3
3
|
import type { NotFound } from '../schemas/NotFound';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface
|
|
6
|
+
export interface FrontendGlobalExemptionsMutationQueryParams {
|
|
7
7
|
/**
|
|
8
8
|
* Harness Account ID
|
|
9
9
|
* @example "abcdef1234567890ghijkl"
|
|
@@ -33,11 +33,6 @@ export interface FrontendGlobalExemptionsQueryQueryParams {
|
|
|
33
33
|
* @example 50
|
|
34
34
|
*/
|
|
35
35
|
pageSize?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Comma-separated list of organization:project pairs
|
|
38
|
-
* @example "org1:project1,org1:project2"
|
|
39
|
-
*/
|
|
40
|
-
matchesProject?: string;
|
|
41
36
|
/**
|
|
42
37
|
* Exemption status
|
|
43
38
|
* @example "Approved"
|
|
@@ -49,13 +44,28 @@ export interface FrontendGlobalExemptionsQueryQueryParams {
|
|
|
49
44
|
*/
|
|
50
45
|
search?: string;
|
|
51
46
|
}
|
|
47
|
+
export interface FrontendGlobalExemptionsMutationHeaderParams {
|
|
48
|
+
/**
|
|
49
|
+
* Harness personal or service access token
|
|
50
|
+
* @example "Voluptatum inventore quis."
|
|
51
|
+
*/
|
|
52
|
+
'X-Api-Key'?: string;
|
|
53
|
+
}
|
|
54
|
+
export type FrontendGlobalExemptionsRequestBody = {
|
|
55
|
+
/**
|
|
56
|
+
* Comma-separated list of organization:project pairs
|
|
57
|
+
* @example "org1:project1,org1:project2"
|
|
58
|
+
*/
|
|
59
|
+
matchesProject?: string;
|
|
60
|
+
};
|
|
52
61
|
export type FrontendGlobalExemptionsOkResponse = ResponseWithPagination<FrontendSecurityReviewResponseBody>;
|
|
53
62
|
export type FrontendGlobalExemptionsErrorResponse = NotFound;
|
|
54
|
-
export interface FrontendGlobalExemptionsProps extends Omit<FetcherOptions<
|
|
55
|
-
queryParams:
|
|
63
|
+
export interface FrontendGlobalExemptionsProps extends Omit<FetcherOptions<FrontendGlobalExemptionsMutationQueryParams, FrontendGlobalExemptionsRequestBody, FrontendGlobalExemptionsMutationHeaderParams>, 'url'> {
|
|
64
|
+
queryParams: FrontendGlobalExemptionsMutationQueryParams;
|
|
65
|
+
body: FrontendGlobalExemptionsRequestBody;
|
|
56
66
|
}
|
|
57
67
|
export declare function frontendGlobalExemptions(props: FrontendGlobalExemptionsProps): Promise<FrontendGlobalExemptionsOkResponse>;
|
|
58
68
|
/**
|
|
59
69
|
* Provides data needed by the Global Exemptions Security Review page
|
|
60
70
|
*/
|
|
61
|
-
export declare function
|
|
71
|
+
export declare function useFrontendGlobalExemptionsMutation(options?: Omit<UseMutationOptions<FrontendGlobalExemptionsOkResponse, FrontendGlobalExemptionsErrorResponse, FrontendGlobalExemptionsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<FrontendGlobalExemptionsOkResponse, NotFound, FrontendGlobalExemptionsProps, unknown>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
|
-
import {
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function frontendGlobalExemptions(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/api/v2/frontend/exemptions`, method: '
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v2/frontend/exemptions`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Provides data needed by the Global Exemptions Security Review page
|
|
11
11
|
*/
|
|
12
|
-
export function
|
|
13
|
-
return
|
|
12
|
+
export function useFrontendGlobalExemptionsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => frontendGlobalExemptions(mutateProps), options);
|
|
14
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 "Id consectetur omnis sapiente."
|
|
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 "Eum est."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -29,14 +29,14 @@ export interface PullRequestsCreatePullRequestMutationQueryParams {
|
|
|
29
29
|
*/
|
|
30
30
|
connectorId?: string;
|
|
31
31
|
/**
|
|
32
|
-
* @example "
|
|
32
|
+
* @example "Nemo quas eos nam molestiae quisquam modi."
|
|
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 "Odit harum velit nisi deserunt."
|
|
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 "Laboriosam enim saepe enim sint 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 "Occaecati eum aut quia."
|
|
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 "A tenetur unde aut qui doloribus."
|
|
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 "Modi omnis architecto incidunt vitae nulla."
|
|
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 "Nisi ad illum."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
13
|
* The ID of the Security Test Issue
|
|
14
|
-
* @example "
|
|
14
|
+
* @example "Beatae dolor voluptas est modi."
|
|
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 "Rem earum dolores."
|
|
59
59
|
*/
|
|
60
60
|
sort?: string;
|
|
61
61
|
/**
|
|
62
62
|
* The order to sort by
|
|
63
|
-
* @example "
|
|
63
|
+
* @example "ASC"
|
|
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 "Sint quia."
|
|
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 "Dolore ut repellat praesentium dicta id quo."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
13
|
* The ID of the Security Test Issue
|
|
14
|
-
* @example "
|
|
14
|
+
* @example "Excepturi animi debitis beatae facere maiores."
|
|
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 "Et expedita vitae adipisci qui maiores 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 "Error distinctio aut blanditiis debitis."
|
|
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 "Quis ut est voluptatem iure."
|
|
34
34
|
*/
|
|
35
35
|
'X-Api-Key'?: string;
|
|
36
36
|
}
|
|
@@ -23,8 +23,8 @@ export type { FrontendAllIssuesOccurrenceDetailsErrorResponse, FrontendAllIssues
|
|
|
23
23
|
export { frontendAllIssuesOccurrenceDetails, useFrontendAllIssuesOccurrenceDetailsQuery, } from './hooks/useFrontendAllIssuesOccurrenceDetailsQuery';
|
|
24
24
|
export type { FrontendExpiringExemptionsErrorResponse, FrontendExpiringExemptionsOkResponse, FrontendExpiringExemptionsProps, FrontendExpiringExemptionsQueryPathParams, FrontendExpiringExemptionsQueryQueryParams, } from './hooks/useFrontendExpiringExemptionsQuery';
|
|
25
25
|
export { frontendExpiringExemptions, useFrontendExpiringExemptionsQuery, } from './hooks/useFrontendExpiringExemptionsQuery';
|
|
26
|
-
export type { FrontendGlobalExemptionsErrorResponse, FrontendGlobalExemptionsOkResponse, FrontendGlobalExemptionsProps,
|
|
27
|
-
export { frontendGlobalExemptions,
|
|
26
|
+
export type { FrontendGlobalExemptionsErrorResponse, FrontendGlobalExemptionsMutationQueryParams, FrontendGlobalExemptionsOkResponse, FrontendGlobalExemptionsProps, FrontendGlobalExemptionsRequestBody, } from './hooks/useFrontendGlobalExemptionsMutation';
|
|
27
|
+
export { frontendGlobalExemptions, useFrontendGlobalExemptionsMutation, } from './hooks/useFrontendGlobalExemptionsMutation';
|
|
28
28
|
export type { FrontendImpactedTargetsForExemptionErrorResponse, FrontendImpactedTargetsForExemptionOkResponse, FrontendImpactedTargetsForExemptionProps, FrontendImpactedTargetsForExemptionQueryPathParams, FrontendImpactedTargetsForExemptionQueryQueryParams, } from './hooks/useFrontendImpactedTargetsForExemptionQuery';
|
|
29
29
|
export { frontendImpactedTargetsForExemption, useFrontendImpactedTargetsForExemptionQuery, } from './hooks/useFrontendImpactedTargetsForExemptionQuery';
|
|
30
30
|
export type { FrontendIssueForExemptionErrorResponse, FrontendIssueForExemptionOkResponse, FrontendIssueForExemptionProps, FrontendIssueForExemptionQueryPathParams, FrontendIssueForExemptionQueryQueryParams, } from './hooks/useFrontendIssueForExemptionQuery';
|
|
@@ -10,7 +10,7 @@ export { frontendAllIssuesFilters, useFrontendAllIssuesFiltersQuery, } from './h
|
|
|
10
10
|
export { frontendAllIssuesList, useFrontendAllIssuesListQuery, } from './hooks/useFrontendAllIssuesListQuery';
|
|
11
11
|
export { frontendAllIssuesOccurrenceDetails, useFrontendAllIssuesOccurrenceDetailsQuery, } from './hooks/useFrontendAllIssuesOccurrenceDetailsQuery';
|
|
12
12
|
export { frontendExpiringExemptions, useFrontendExpiringExemptionsQuery, } from './hooks/useFrontendExpiringExemptionsQuery';
|
|
13
|
-
export { frontendGlobalExemptions,
|
|
13
|
+
export { frontendGlobalExemptions, useFrontendGlobalExemptionsMutation, } from './hooks/useFrontendGlobalExemptionsMutation';
|
|
14
14
|
export { frontendImpactedTargetsForExemption, useFrontendImpactedTargetsForExemptionQuery, } from './hooks/useFrontendImpactedTargetsForExemptionQuery';
|
|
15
15
|
export { frontendIssueForExemption, useFrontendIssueForExemptionQuery, } from './hooks/useFrontendIssueForExemptionQuery';
|
|
16
16
|
export { frontendIssueSeverityChange, useFrontendIssueSeverityChangeQuery, } from './hooks/useFrontendIssueSeverityChangeQuery';
|
|
@@ -2,7 +2,7 @@ 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":"Non omnis excepturi et quia.","impactedTargets":[{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"
|
|
5
|
+
* @example {"description":"Non omnis excepturi et quia.","impactedTargets":[{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Sed unde.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"userId":"Earum nemo magni nobis error.","variantName":"Ratione sint dolorem explicabo culpa sit."},{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Sed unde.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"userId":"Earum nemo magni nobis error.","variantName":"Ratione sint dolorem explicabo culpa sit."},{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Sed unde.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"userId":"Earum nemo magni nobis error.","variantName":"Ratione sint dolorem explicabo culpa sit."}],"issueType":"Doloribus quis aspernatur recusandae.","lastDetected":1634836529,"override":{"originalSeverity":"medium","reason":"snyk"},"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"referenceIdentifiers":[{"id":"Consequuntur molestiae qui.","type":"Perferendis quos eligendi eum."},{"id":"Consequuntur molestiae qui.","type":"Perferendis quos eligendi eum."},{"id":"Consequuntur molestiae qui.","type":"Perferendis quos eligendi eum."},{"id":"Consequuntur molestiae qui.","type":"Perferendis quos eligendi eum."}],"scanTool":"owasp","severityCode":"High","targetType":"Exercitationem porro rerum dolore.","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}
|
|
6
6
|
*/
|
|
7
7
|
export interface AllIssuesDetailsResult {
|
|
8
8
|
/**
|
|
@@ -12,7 +12,7 @@ export interface AllIssuesDetailsResult {
|
|
|
12
12
|
description: string;
|
|
13
13
|
/**
|
|
14
14
|
* List of Impacted Targets
|
|
15
|
-
* @example [{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"
|
|
15
|
+
* @example [{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Sed unde.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"userId":"Earum nemo magni nobis error.","variantName":"Ratione sint dolorem explicabo culpa sit."},{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Sed unde.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"userId":"Earum nemo magni nobis error.","variantName":"Ratione sint dolorem explicabo culpa sit."}]
|
|
16
16
|
*/
|
|
17
17
|
impactedTargets: ImpactedTarget[];
|
|
18
18
|
/**
|
|
@@ -36,7 +36,7 @@ export interface AllIssuesDetailsResult {
|
|
|
36
36
|
pagination: Pagination;
|
|
37
37
|
/**
|
|
38
38
|
* Reference Identifiers
|
|
39
|
-
* @example [{"id":"
|
|
39
|
+
* @example [{"id":"Consequuntur molestiae qui.","type":"Perferendis quos eligendi eum."},{"id":"Consequuntur molestiae qui.","type":"Perferendis quos eligendi eum."},{"id":"Consequuntur molestiae qui.","type":"Perferendis quos eligendi eum."},{"id":"Consequuntur molestiae qui.","type":"Perferendis quos eligendi eum."}]
|
|
40
40
|
*/
|
|
41
41
|
referenceIdentifiers: RefIds[];
|
|
42
42
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { AllIssueSummary } from '../schemas/AllIssueSummary';
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"issues":[{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"
|
|
4
|
+
* @example {"issues":[{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Pariatur possimus eius assumenda.","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"},{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Pariatur possimus eius assumenda.","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"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
|
|
5
5
|
*/
|
|
6
6
|
export interface AllIssuesListResult {
|
|
7
7
|
/**
|
|
8
8
|
* Issues related to the latest scans of a baseline in a specific project
|
|
9
|
-
* @example [{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"
|
|
9
|
+
* @example [{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Pariatur possimus eius assumenda.","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"},{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Pariatur possimus eius assumenda.","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"}]
|
|
10
10
|
*/
|
|
11
11
|
issues: AllIssueSummary[];
|
|
12
12
|
pagination: Pagination;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
import type { RefIds } from '../schemas/RefIds';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"description":"Libero et consequatur.","exemptionId":"abcdef1234567890ghijkl","issueType":"Modi dicta alias voluptate eius.","occurrences":[{"Accusamus voluptas.":"Voluptatibus consequatur.","Corporis quis earum sed in neque.":"Ut incidunt totam magnam ratione vero.","Culpa quam iure corrupti non cupiditate.":"Assumenda repellendus neque nostrum autem dolor."},{"Autem unde ad culpa.":"Enim fugiat et sit aut.","Fugiat molestiae sit.":"Necessitatibus nobis pariatur eos.","Nesciunt similique dolor placeat nulla magnam.":"Doloremque consectetur veniam rem ullam explicabo rerum."},{"Aut animi provident similique dignissimos mollitia deleniti.":"Minus porro accusamus recusandae.","Labore quis.":"Laborum nulla amet asperiores velit ut.","Soluta ab quis.":"Quidem omnis ipsum repellendus et et."},{"Corrupti eligendi distinctio sequi porro asperiores labore.":"Voluptatem sapiente perspiciatis debitis aut.","Voluptatem amet dolores.":"Enim itaque laborum."}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"referenceIdentifiers":[{"id":"
|
|
4
|
+
* @example {"description":"Libero et consequatur.","exemptionId":"abcdef1234567890ghijkl","issueType":"Modi dicta alias voluptate eius.","occurrences":[{"Accusamus voluptas.":"Voluptatibus consequatur.","Corporis quis earum sed in neque.":"Ut incidunt totam magnam ratione vero.","Culpa quam iure corrupti non cupiditate.":"Assumenda repellendus neque nostrum autem dolor."},{"Autem unde ad culpa.":"Enim fugiat et sit aut.","Fugiat molestiae sit.":"Necessitatibus nobis pariatur eos.","Nesciunt similique dolor placeat nulla magnam.":"Doloremque consectetur veniam rem ullam explicabo rerum."},{"Aut animi provident similique dignissimos mollitia deleniti.":"Minus porro accusamus recusandae.","Labore quis.":"Laborum nulla amet asperiores velit ut.","Soluta ab quis.":"Quidem omnis ipsum repellendus et et."},{"Corrupti eligendi distinctio sequi porro asperiores labore.":"Voluptatem sapiente perspiciatis debitis aut.","Voluptatem amet dolores.":"Enim itaque laborum."}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"referenceIdentifiers":[{"id":"Consequuntur molestiae qui.","type":"Perferendis quos eligendi eum."},{"id":"Consequuntur molestiae qui.","type":"Perferendis quos eligendi eum."}],"severityCode":"High","targetName":"The Target","targetType":"Rerum reprehenderit harum sint.","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","variantName":"Pariatur est dolor."}
|
|
5
5
|
*/
|
|
6
6
|
export interface AllIssuesOccurrenceDetailsResult {
|
|
7
7
|
/**
|
|
@@ -29,7 +29,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
29
29
|
pagination?: Pagination;
|
|
30
30
|
/**
|
|
31
31
|
* Reference Identifiers
|
|
32
|
-
* @example [{"id":"
|
|
32
|
+
* @example [{"id":"Consequuntur molestiae qui.","type":"Perferendis quos eligendi eum."},{"id":"Consequuntur molestiae qui.","type":"Perferendis quos eligendi eum."}]
|
|
33
33
|
*/
|
|
34
34
|
referenceIdentifiers?: RefIds[];
|
|
35
35
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AugmentRemediationWarning } from '../schemas/AugmentRemediationWarning';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"warnings":[{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."},{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."}]}
|
|
3
|
+
* @example {"warnings":[{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."},{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."},{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."},{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface AugmentRemediationMetadata {
|
|
6
6
|
/**
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { AugmentRemediationMetadata } from '../schemas/AugmentRemediationMetadata';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"metadata":{"warnings":[{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."},{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."},{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."},{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."}]},"remediationCode":"
|
|
3
|
+
* @example {"metadata":{"warnings":[{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."},{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."},{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."},{"message":"Est consequatur molestiae et incidunt aspernatur.","source":"Maiores quas ea unde deserunt dicta quos."}]},"remediationCode":"Ea ut doloremque deserunt.","remediationContext":"Corrupti voluptatem.","repoContent":"Consequuntur minus asperiores facere."}
|
|
4
4
|
*/
|
|
5
5
|
export interface AugmentRemediationResult {
|
|
6
6
|
metadata: AugmentRemediationMetadata;
|
|
7
7
|
/**
|
|
8
|
-
* @example "
|
|
8
|
+
* @example "Praesentium assumenda magni."
|
|
9
9
|
*/
|
|
10
10
|
remediationCode?: string;
|
|
11
11
|
/**
|
|
12
|
-
* @example "
|
|
12
|
+
* @example "Est et rerum."
|
|
13
13
|
*/
|
|
14
14
|
remediationContext: string;
|
|
15
15
|
/**
|
|
16
|
-
* @example "
|
|
16
|
+
* @example "Dolores nihil ab."
|
|
17
17
|
*/
|
|
18
18
|
repoContent?: string;
|
|
19
19
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"message":"
|
|
2
|
+
* @example {"message":"Cupiditate modi.","source":"Iste quos."}
|
|
3
3
|
*/
|
|
4
4
|
export interface AugmentRemediationWarning {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Cupiditate quasi quo."
|
|
7
7
|
*/
|
|
8
8
|
message: string;
|
|
9
9
|
/**
|
|
10
|
-
* @example "
|
|
10
|
+
* @example "Omnis laudantium dolores et accusamus."
|
|
11
11
|
*/
|
|
12
12
|
source: string;
|
|
13
13
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Git Metadata associated with the Scan
|
|
3
|
-
* @example {"detectedName":"
|
|
3
|
+
* @example {"detectedName":"Voluptates minima adipisci aspernatur inventore.","detectedVariant":"Ab omnis sed aspernatur.","droneCorrelated":false,"provider":"Totam beatae sunt aliquam voluptas.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Magni ut.","Est ad possimus.","Et ut."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"}
|
|
4
4
|
*/
|
|
5
5
|
export interface GitMetadata {
|
|
6
6
|
/**
|
|
7
7
|
* Detected Name
|
|
8
|
-
* @example "
|
|
8
|
+
* @example "Dolores expedita accusamus repellendus amet unde."
|
|
9
9
|
*/
|
|
10
10
|
detectedName?: string;
|
|
11
11
|
/**
|
|
12
12
|
* Detected Variant
|
|
13
|
-
* @example "
|
|
13
|
+
* @example "Dolorem ex iure architecto."
|
|
14
14
|
*/
|
|
15
15
|
detectedVariant?: string;
|
|
16
16
|
/**
|
|
@@ -19,7 +19,7 @@ export interface GitMetadata {
|
|
|
19
19
|
droneCorrelated?: boolean;
|
|
20
20
|
/**
|
|
21
21
|
* Git Provider
|
|
22
|
-
* @example "
|
|
22
|
+
* @example "Voluptas nobis voluptas."
|
|
23
23
|
*/
|
|
24
24
|
provider?: string;
|
|
25
25
|
/**
|
|
@@ -35,7 +35,7 @@ export interface GitMetadata {
|
|
|
35
35
|
repositoryHttp?: string;
|
|
36
36
|
/**
|
|
37
37
|
* Git Repository Path
|
|
38
|
-
* @example ["
|
|
38
|
+
* @example ["Sed sunt.","Aut optio rerum distinctio consectetur molestiae laboriosam.","Sint amet."]
|
|
39
39
|
*/
|
|
40
40
|
repositoryPath?: string[];
|
|
41
41
|
/**
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Information about a Security Issue
|
|
3
|
-
* @example {"baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"
|
|
3
|
+
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Approved","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","harnessAugmentation":{"Voluptatem ipsam accusamus qui quae.":"Reiciendis reiciendis voluptatem hic aut."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"originStatus":"approved","origins":["app","base"],"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}
|
|
4
4
|
*/
|
|
5
5
|
export interface Issue {
|
|
6
|
+
/**
|
|
7
|
+
* base image name of the issue
|
|
8
|
+
* @example "baseImageName"
|
|
9
|
+
*/
|
|
10
|
+
baseImageName?: string;
|
|
6
11
|
/**
|
|
7
12
|
* The Baseline Target Variant related to this Security Issue
|
|
8
13
|
* @example "abcdef1234567890ghijkl"
|
|
@@ -76,6 +81,16 @@ export interface Issue {
|
|
|
76
81
|
occurrences?: Array<{
|
|
77
82
|
[key: string]: any;
|
|
78
83
|
}>;
|
|
84
|
+
/**
|
|
85
|
+
* The status of the origin, either 'approved' or 'unapproved'
|
|
86
|
+
* @example "approved"
|
|
87
|
+
*/
|
|
88
|
+
originStatus?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The origins of the issue
|
|
91
|
+
* @example ["app","base"]
|
|
92
|
+
*/
|
|
93
|
+
origins?: string[];
|
|
79
94
|
/**
|
|
80
95
|
* The scan tool that identified this Security Issue
|
|
81
96
|
* @example "product1234567890abcde"
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"
|
|
3
|
+
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Expired","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","harnessAugmentation":{"Dolor qui velit ea ab.":"Facilis accusantium blanditiis praesentium sequi eaque cupiditate.","Iusto minus ullam.":"Iste consequatur occaecati impedit ut soluta.","Provident laborum.":"Est aperiam temporibus quis dolor est."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"occurrencesPagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"originStatus":"approved","origins":["app","base"],"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","targets":[{"targetId":"target2222222222222222","targetName":"Target 1"}],"title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}
|
|
4
4
|
*/
|
|
5
5
|
export interface IssueForExemptionResult {
|
|
6
|
+
/**
|
|
7
|
+
* base image name of the issue
|
|
8
|
+
* @example "baseImageName"
|
|
9
|
+
*/
|
|
10
|
+
baseImageName?: string;
|
|
6
11
|
/**
|
|
7
12
|
* The Baseline Target Variant related to this Security Issue
|
|
8
13
|
* @example "abcdef1234567890ghijkl"
|
|
@@ -77,6 +82,16 @@ export interface IssueForExemptionResult {
|
|
|
77
82
|
[key: string]: any;
|
|
78
83
|
}>;
|
|
79
84
|
occurrencesPagination?: Pagination;
|
|
85
|
+
/**
|
|
86
|
+
* The status of the origin, either 'approved' or 'unapproved'
|
|
87
|
+
* @example "approved"
|
|
88
|
+
*/
|
|
89
|
+
originStatus?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The origins of the issue
|
|
92
|
+
* @example ["app","base"]
|
|
93
|
+
*/
|
|
94
|
+
origins?: string[];
|
|
80
95
|
/**
|
|
81
96
|
* The scan tool that identified this Security Issue
|
|
82
97
|
* @example "product1234567890abcde"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GitMetadata } from '../schemas/GitMetadata';
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Rejected","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"
|
|
4
|
+
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Rejected","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","gitMetadata":{"detectedName":"Et autem iusto vero est eos.","detectedVariant":"Occaecati beatae molestias qui sint eos et.","droneCorrelated":false,"provider":"Placeat dolore est rem.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Beatae harum aliquam.","At accusantium.","Praesentium dolores tenetur voluptatem quae.","Ut in."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"},"harnessAugmentation":{"Architecto hic dolor minima fugit.":"Aut modi culpa et."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNonExemptedOccurrences":10,"numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"occurrencesPagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"originStatus":"approved","origins":["app","base"],"primaryOccurrenceId":12345,"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}
|
|
5
5
|
*/
|
|
6
6
|
export interface IssueInScan {
|
|
7
7
|
/**
|
|
@@ -44,13 +44,13 @@ export interface IssueInScan {
|
|
|
44
44
|
exemptionId?: string;
|
|
45
45
|
/**
|
|
46
46
|
* Exemption's status at the Security Scan created time
|
|
47
|
-
* @example "
|
|
47
|
+
* @example "Expired"
|
|
48
48
|
*/
|
|
49
49
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
50
50
|
gitMetadata?: GitMetadata;
|
|
51
51
|
/**
|
|
52
52
|
* Harness Augmentation details
|
|
53
|
-
* @example {"
|
|
53
|
+
* @example {"Neque cumque voluptas aut quis.":"Harum minus quidem.","Provident necessitatibus excepturi.":"Quidem quia consectetur quis omnis quaerat."}
|
|
54
54
|
*/
|
|
55
55
|
harnessAugmentation?: {
|
|
56
56
|
[key: string]: any;
|
|
@@ -91,6 +91,11 @@ export interface IssueInScan {
|
|
|
91
91
|
[key: string]: any;
|
|
92
92
|
}>;
|
|
93
93
|
occurrencesPagination: Pagination;
|
|
94
|
+
/**
|
|
95
|
+
* The status of the origin, either 'approved' or 'unapproved'
|
|
96
|
+
* @example "approved"
|
|
97
|
+
*/
|
|
98
|
+
originStatus?: string;
|
|
94
99
|
/**
|
|
95
100
|
* The origins of the issue
|
|
96
101
|
* @example ["app","base"]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"connectorId":"
|
|
2
|
+
* @example {"connectorId":"Qui itaque est maxime.","occurrenceId":12345,"referenceId":"CWE-123","scanId":"abcdefghijkl1234567890","userSnippet":"func example() int {\n return 0\n}"}
|
|
3
3
|
*/
|
|
4
4
|
export interface IssuesAugmentRemediationRequestBody {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Ut nostrum dolor ut."
|
|
7
7
|
*/
|
|
8
8
|
connectorId?: string;
|
|
9
9
|
/**
|