@harnessio/react-sto-core-client 0.3.8 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sto-core/src/services/hooks/useExemptionsApproveExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsCreateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsFindExemptionByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsListExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsPromoteExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendExpiringExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useIssuesFindIssueByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useIssuesIssuesAugmentRemediationMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/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 +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/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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +5 -6
- 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 +4 -4
- package/dist/sto-core/src/services/schemas/Issue.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +13 -3
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +11 -11
- package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.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 +7 -7
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/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 +1 -1
- package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +1 -1
- 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 "Non tempore asperiores eius impedit earum."
|
|
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 "Tempora quia."
|
|
28
28
|
*/
|
|
29
29
|
'X-Api-Key'?: string;
|
|
30
30
|
}
|
|
@@ -39,7 +39,7 @@ export interface ExemptionsFindExemptionByIdQueryQueryParams {
|
|
|
39
39
|
export interface ExemptionsFindExemptionByIdQueryHeaderParams {
|
|
40
40
|
/**
|
|
41
41
|
* Harness personal or service access token
|
|
42
|
-
* @example "
|
|
42
|
+
* @example "Fugit nesciunt corrupti repudiandae omnis."
|
|
43
43
|
*/
|
|
44
44
|
'X-Api-Key'?: string;
|
|
45
45
|
}
|
|
@@ -37,7 +37,7 @@ export interface ExemptionsListExemptionsQueryQueryParams {
|
|
|
37
37
|
export interface ExemptionsListExemptionsQueryHeaderParams {
|
|
38
38
|
/**
|
|
39
39
|
* Harness personal or service access token
|
|
40
|
-
* @example "
|
|
40
|
+
* @example "Porro odio."
|
|
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 "Voluptatibus ut non autem."
|
|
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 "Dolor voluptatem omnis alias fugit et ducimus."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -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 "Sunt non cupiditate velit ipsum sint eum."
|
|
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 "Qui molestias amet odio quasi ex."
|
|
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 "Excepturi et soluta praesentium qui enim."
|
|
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 "Quis nam ipsam at est provident."
|
|
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 "A tenetur unde aut qui doloribus."
|
|
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 "Modi omnis architecto incidunt vitae nulla."
|
|
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 "Et inventore illo illum ipsum quia magni."
|
|
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 "Eaque ipsam."
|
|
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 "Alias et."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
13
|
* The ID of the Security Test Issue
|
|
14
|
-
* @example "
|
|
14
|
+
* @example "Saepe et tenetur qui nihil."
|
|
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 "Tempore quia sint quia."
|
|
59
59
|
*/
|
|
60
60
|
sort?: string;
|
|
61
61
|
/**
|
|
62
62
|
* The order to sort by
|
|
63
|
-
* @example "
|
|
63
|
+
* @example "DESC"
|
|
64
64
|
*/
|
|
65
65
|
order?: 'ASC' | 'DESC';
|
|
66
66
|
/**
|
|
@@ -72,7 +72,7 @@ export interface ScansScanIssueOccurrencesQueryQueryParams {
|
|
|
72
72
|
export interface ScansScanIssueOccurrencesQueryHeaderParams {
|
|
73
73
|
/**
|
|
74
74
|
* Harness personal or service access token
|
|
75
|
-
* @example "
|
|
75
|
+
* @example "Et rerum quis quasi."
|
|
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 "Eligendi consequatur asperiores ipsam corporis non excepturi."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
13
|
* The ID of the Security Test Issue
|
|
14
|
-
* @example "
|
|
14
|
+
* @example "Rem earum dolores."
|
|
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 "Error distinctio aut blanditiis debitis."
|
|
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 "Unde dolorum."
|
|
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 "Deleniti tempore quam autem ut consequatur aut."
|
|
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 "Unde magni."
|
|
35
35
|
*/
|
|
36
36
|
'X-Api-Key'?: string;
|
|
37
37
|
}
|
|
@@ -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":"Ad recusandae unde tempore deserunt voluptatem.","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 "Corporis sunt quos et."
|
|
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":"Non omnis excepturi et quia.","impactedTargets":[{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Earum nemo magni nobis error.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"userId":"Maxime ut perferendis quos.","variantName":"Eum excepturi consequuntur molestiae qui nihil."},{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Earum nemo magni nobis error.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"userId":"Maxime ut perferendis quos.","variantName":"Eum excepturi consequuntur molestiae qui nihil."},{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Earum nemo magni nobis error.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"userId":"Maxime ut perferendis quos.","variantName":"Eum excepturi consequuntur molestiae qui nihil."}],"issueType":"Doloribus quis aspernatur recusandae.","lastDetected":1634836529,"override":{"originalSeverity":"medium","reason":"snyk"},"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"referenceIdentifiers":[{"id":"Voluptate voluptatem est eaque nesciunt rerum blanditiis.","type":"Reprehenderit voluptatibus."},{"id":"Voluptate voluptatem est eaque nesciunt rerum blanditiis.","type":"Reprehenderit voluptatibus."},{"id":"Voluptate voluptatem est eaque nesciunt rerum blanditiis.","type":"Reprehenderit voluptatibus."},{"id":"Voluptate voluptatem est eaque nesciunt rerum blanditiis.","type":"Reprehenderit voluptatibus."}],"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
|
/**
|
|
9
9
|
* Issue description
|
|
10
|
-
* @example "
|
|
10
|
+
* @example "A minima sunt qui ipsum unde."
|
|
11
11
|
*/
|
|
12
12
|
description: string;
|
|
13
13
|
/**
|
|
14
14
|
* List of Impacted Targets
|
|
15
|
-
* @example [{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"
|
|
15
|
+
* @example [{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Earum nemo magni nobis error.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"userId":"Maxime ut perferendis quos.","variantName":"Eum excepturi consequuntur molestiae qui nihil."},{"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Earum nemo magni nobis error.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"userId":"Maxime ut perferendis quos.","variantName":"Eum excepturi consequuntur molestiae qui nihil."}]
|
|
16
16
|
*/
|
|
17
17
|
impactedTargets: ImpactedTarget[];
|
|
18
18
|
/**
|
|
19
19
|
* Issue Type
|
|
20
|
-
* @example "
|
|
20
|
+
* @example "Sed labore voluptatibus qui id."
|
|
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":"Voluptate voluptatem est eaque nesciunt rerum blanditiis.","type":"Reprehenderit voluptatibus."},{"id":"Voluptate voluptatem est eaque nesciunt rerum blanditiis.","type":"Reprehenderit voluptatibus."},{"id":"Voluptate voluptatem est eaque nesciunt rerum blanditiis.","type":"Reprehenderit voluptatibus."},{"id":"Voluptate voluptatem est eaque nesciunt rerum blanditiis.","type":"Reprehenderit voluptatibus."}]
|
|
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 "Officia tempore voluptatem sapiente."
|
|
55
55
|
*/
|
|
56
56
|
targetType: string;
|
|
57
57
|
/**
|
|
@@ -4,7 +4,7 @@ import type { LatestBaselineScanInfo } from '../schemas/LatestBaselineScanInfo';
|
|
|
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","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"}]
|
|
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","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"},{"pipelineId":"pipeline_1","scanTool":"owasp","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"}]
|
|
8
8
|
*/
|
|
9
9
|
latestBaselineScans: LatestBaselineScanInfo[];
|
|
10
10
|
}
|
|
@@ -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":"Sit praesentium nisi rerum et et dignissimos.","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":"Sit praesentium nisi rerum et et dignissimos.","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":"Sit praesentium nisi rerum et et dignissimos.","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":"Sit praesentium nisi rerum et et dignissimos.","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,12 +1,12 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
import type { RefIds } from '../schemas/RefIds';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"description":"
|
|
4
|
+
* @example {"description":"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":"Voluptate voluptatem est eaque nesciunt rerum blanditiis.","type":"Reprehenderit voluptatibus."},{"id":"Voluptate voluptatem est eaque nesciunt rerum blanditiis.","type":"Reprehenderit voluptatibus."}],"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
|
/**
|
|
8
8
|
* Issue description
|
|
9
|
-
* @example "
|
|
9
|
+
* @example "Quam aliquid fuga neque ut laudantium."
|
|
10
10
|
*/
|
|
11
11
|
description: string;
|
|
12
12
|
/**
|
|
@@ -16,12 +16,12 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
16
16
|
exemptionId?: string;
|
|
17
17
|
/**
|
|
18
18
|
* Issue Type
|
|
19
|
-
* @example "
|
|
19
|
+
* @example "Reprehenderit consectetur provident."
|
|
20
20
|
*/
|
|
21
21
|
issueType?: string;
|
|
22
22
|
/**
|
|
23
23
|
* List of occurrences
|
|
24
|
-
* @example [{"
|
|
24
|
+
* @example [{"Placeat possimus.":"Ipsa fugiat sunt quia.","Quos temporibus excepturi temporibus.":"Atque adipisci."},{"Aut eos.":"Blanditiis laboriosam voluptatibus quis.","Aut laboriosam.":"Non et.","Sint qui est omnis ut.":"Et error."}]
|
|
25
25
|
*/
|
|
26
26
|
occurrences: Array<{
|
|
27
27
|
[key: string]: any;
|
|
@@ -29,7 +29,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
29
29
|
pagination?: Pagination;
|
|
30
30
|
/**
|
|
31
31
|
* Reference Identifiers
|
|
32
|
-
* @example [{"id":"
|
|
32
|
+
* @example [{"id":"Voluptate voluptatem est eaque nesciunt rerum blanditiis.","type":"Reprehenderit voluptatibus."},{"id":"Voluptate voluptatem est eaque nesciunt rerum blanditiis.","type":"Reprehenderit voluptatibus."}]
|
|
33
33
|
*/
|
|
34
34
|
referenceIdentifiers?: RefIds[];
|
|
35
35
|
/**
|
|
@@ -44,7 +44,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
44
44
|
targetName: string;
|
|
45
45
|
/**
|
|
46
46
|
* Target Type
|
|
47
|
-
* @example "
|
|
47
|
+
* @example "Rem et beatae reprehenderit."
|
|
48
48
|
*/
|
|
49
49
|
targetType: string;
|
|
50
50
|
/**
|
|
@@ -54,7 +54,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
54
54
|
title: string;
|
|
55
55
|
/**
|
|
56
56
|
* Variant name
|
|
57
|
-
* @example "
|
|
57
|
+
* @example "Ut unde."
|
|
58
58
|
*/
|
|
59
59
|
variantName: string;
|
|
60
60
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AugmentRemediationWarning } from '../schemas/AugmentRemediationWarning';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"warnings":[{"message":"
|
|
3
|
+
* @example {"warnings":[{"message":"Excepturi assumenda cum in dolor aliquam.","source":"Ipsa corrupti dicta impedit quia unde."},{"message":"Excepturi assumenda cum in dolor aliquam.","source":"Ipsa corrupti dicta impedit quia unde."}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface AugmentRemediationMetadata {
|
|
6
6
|
/**
|
|
7
|
-
* @example [{"message":"
|
|
7
|
+
* @example [{"message":"Excepturi assumenda cum in dolor aliquam.","source":"Ipsa corrupti dicta impedit quia unde."},{"message":"Excepturi assumenda cum in dolor aliquam.","source":"Ipsa corrupti dicta impedit quia unde."}]
|
|
8
8
|
*/
|
|
9
9
|
warnings: AugmentRemediationWarning[];
|
|
10
10
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { AugmentRemediationMetadata } from '../schemas/AugmentRemediationMetadata';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"metadata":{"warnings":[{"message":"
|
|
3
|
+
* @example {"metadata":{"warnings":[{"message":"Excepturi assumenda cum in dolor aliquam.","source":"Ipsa corrupti dicta impedit quia unde."},{"message":"Excepturi assumenda cum in dolor aliquam.","source":"Ipsa corrupti dicta impedit quia unde."}]},"remediationCode":"Ex iure architecto a.","remediationContext":"Amet enim.","repoContent":"Expedita accusamus."}
|
|
4
4
|
*/
|
|
5
5
|
export interface AugmentRemediationResult {
|
|
6
6
|
metadata: AugmentRemediationMetadata;
|
|
7
7
|
/**
|
|
8
|
-
* @example "
|
|
8
|
+
* @example "Voluptatem dolor ea ut doloremque deserunt."
|
|
9
9
|
*/
|
|
10
10
|
remediationCode?: string;
|
|
11
11
|
/**
|
|
12
|
-
* @example "
|
|
12
|
+
* @example "Laboriosam dolores."
|
|
13
13
|
*/
|
|
14
14
|
remediationContext: string;
|
|
15
15
|
/**
|
|
16
|
-
* @example "
|
|
16
|
+
* @example "Consequuntur minus asperiores facere."
|
|
17
17
|
*/
|
|
18
18
|
repoContent?: string;
|
|
19
19
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"message":"
|
|
2
|
+
* @example {"message":"Rerum distinctio consectetur molestiae.","source":"Dolorem minima sed sunt quasi aut."}
|
|
3
3
|
*/
|
|
4
4
|
export interface AugmentRemediationWarning {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Repellendus impedit."
|
|
7
7
|
*/
|
|
8
8
|
message: string;
|
|
9
9
|
/**
|
|
10
|
-
* @example "
|
|
10
|
+
* @example "Voluptas nobis voluptas."
|
|
11
11
|
*/
|
|
12
12
|
source: string;
|
|
13
13
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"executionIds":["
|
|
2
|
+
* @example {"executionIds":["Omnis quas.","Incidunt qui accusamus assumenda autem eos.","Perspiciatis molestiae.","Perferendis nobis ratione at."]}
|
|
3
3
|
*/
|
|
4
4
|
export interface BaselineExecutions {
|
|
5
5
|
/**
|
|
6
6
|
* Harness Execution IDs of the most recent baseline scans
|
|
7
|
-
* @example ["
|
|
7
|
+
* @example ["Ducimus delectus odit est nesciunt.","Molestiae ad distinctio.","Quis incidunt enim vero quis iusto inventore."]
|
|
8
8
|
*/
|
|
9
9
|
executionIds: string[];
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PendingChanges } from '../schemas/PendingChanges';
|
|
2
2
|
/**
|
|
3
3
|
* Information about an Exemption
|
|
4
|
-
* @example {"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"
|
|
4
|
+
* @example {"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Approved","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Rejected","targetId":"abcdef1234567890ghijkl","type":"Other"}
|
|
5
5
|
*/
|
|
6
6
|
export interface Exemption {
|
|
7
7
|
/**
|
|
@@ -138,7 +138,7 @@ export interface Exemption {
|
|
|
138
138
|
/**
|
|
139
139
|
* Approval status of Exemption
|
|
140
140
|
* @default "Pending"
|
|
141
|
-
* @example "
|
|
141
|
+
* @example "Expired"
|
|
142
142
|
*/
|
|
143
143
|
status: 'Approved' | 'Canceled' | 'Expired' | 'Pending' | 'Rejected';
|
|
144
144
|
/**
|
|
@@ -2,12 +2,12 @@ import type { FrontendExemptionTargets } from '../schemas/FrontendExemptionTarge
|
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
4
|
* List of targets for an exemption
|
|
5
|
-
* @example {"impactedTargets":[{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}
|
|
5
|
+
* @example {"impactedTargets":[{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
|
|
6
6
|
*/
|
|
7
7
|
export interface ExemptionImpactedTargetsResult {
|
|
8
8
|
/**
|
|
9
9
|
* Impacted target details
|
|
10
|
-
* @example [{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}]
|
|
10
|
+
* @example [{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}]
|
|
11
11
|
*/
|
|
12
12
|
impactedTargets: FrontendExemptionTargets[];
|
|
13
13
|
pagination: Pagination;
|