@harnessio/react-sto-core-client 0.7.5 → 0.7.7
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/useExemptionsGetExemptionForIssueQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsListExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsPromoteExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesCountsV2Query.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesDetailsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesDetailsV2Query.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesListQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesListV2Query.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesOccurrenceDetailsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesTrendV2Query.d.ts +50 -0
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesTrendV2Query.js +14 -0
- package/dist/sto-core/src/services/hooks/useFrontendExemptionsFiltersQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendExpiringExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendGlobalExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useIssuesFindIssueByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useIssuesIssuesAugmentRemediationMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useOverridesCreateOverrideMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useOverridesListOverridesQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/usePullRequestsCreatePullRequestMutation.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/usePullRequestsGetPullRequestCorrelationQuery.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/usePullRequestsUpdatePullRequestMutation.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/useScansScanIssueOccurrencesQuery.d.ts +5 -5
- package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.d.ts +4 -4
- package/dist/sto-core/src/services/hooks/useTargetsFindTargetByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useTargetsPatchTargetMutation.d.ts +1 -1
- package/dist/sto-core/src/services/index.d.ts +5 -0
- package/dist/sto-core/src/services/index.js +1 -0
- package/dist/sto-core/src/services/schemas/AllBaselineIssueSummary.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/AllIssuesCountsV2Result.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsV2Result.d.ts +12 -7
- package/dist/sto-core/src/services/schemas/AllIssuesFiltersResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/AllIssuesTrendV2Result.d.ts +11 -0
- package/dist/sto-core/src/services/schemas/AllIssuesTrendV2Result.js +1 -0
- 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/DailyIssueTrend.d.ts +24 -0
- package/dist/sto-core/src/services/schemas/DailyIssueTrend.js +4 -0
- 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/ExemptionsFiltersResult.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/ExportPipelineSecurityIssuesCsvResponseBody.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesTrendV2ResponseBody.d.ts +2 -0
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesTrendV2ResponseBody.js +1 -0
- package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/HistoricalIssueCounts.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/ImpactedTargetV2.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/Issue.d.ts +8 -8
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +10 -10
- package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/OccurrenceDataflowResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/Override.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/OverridesListOverridesResponseBody.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +13 -13
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ProductsListProductsResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PullRequestResult.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/RefIds.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/SecurityReviewResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/TestTarget.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,12 +3,12 @@ import type { OverrideResult } from '../schemas/OverrideResult';
|
|
|
3
3
|
import type { Pagination } from '../schemas/Pagination';
|
|
4
4
|
import type { RefIds } from '../schemas/RefIds';
|
|
5
5
|
/**
|
|
6
|
-
* @example {"description":"
|
|
6
|
+
* @example {"description":"Eos ut officiis.","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"impactedTargets":[{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","userEmail":"user@gmail.com","userId":"Quaerat aut provident quia autem.","userName":"firstname lastname","variantName":"Voluptatem enim non tempora et in nostrum."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","userEmail":"user@gmail.com","userId":"Quaerat aut provident quia autem.","userName":"firstname lastname","variantName":"Voluptatem enim non tempora et in nostrum."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","userEmail":"user@gmail.com","userId":"Quaerat aut provident quia autem.","userName":"firstname lastname","variantName":"Voluptatem enim non tempora et in nostrum."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","userEmail":"user@gmail.com","userId":"Quaerat aut provident quia autem.","userName":"firstname lastname","variantName":"Voluptatem enim non tempora et in nostrum."}],"issueType":"Quia dolore cumque repudiandae officia libero dolor.","lastDetected":1634836529,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"reachability":"reachable","referenceIdentifiers":[{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."},{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."},{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."}],"scanTool":"owasp","severityCode":"High","targetType":"Et sit.","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}
|
|
7
7
|
*/
|
|
8
8
|
export interface AllIssuesDetailsResult {
|
|
9
9
|
/**
|
|
10
10
|
* Issue description
|
|
11
|
-
* @example "
|
|
11
|
+
* @example "Unde labore."
|
|
12
12
|
*/
|
|
13
13
|
description: string;
|
|
14
14
|
/**
|
|
@@ -30,12 +30,12 @@ export interface AllIssuesDetailsResult {
|
|
|
30
30
|
epssScore?: number;
|
|
31
31
|
/**
|
|
32
32
|
* List of Impacted Targets
|
|
33
|
-
* @example [{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","userEmail":"user@gmail.com","userId":"
|
|
33
|
+
* @example [{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","userEmail":"user@gmail.com","userId":"Quaerat aut provident quia autem.","userName":"firstname lastname","variantName":"Voluptatem enim non tempora et in nostrum."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","userEmail":"user@gmail.com","userId":"Quaerat aut provident quia autem.","userName":"firstname lastname","variantName":"Voluptatem enim non tempora et in nostrum."}]
|
|
34
34
|
*/
|
|
35
35
|
impactedTargets: ImpactedTarget[];
|
|
36
36
|
/**
|
|
37
37
|
* Issue Type
|
|
38
|
-
* @example "
|
|
38
|
+
* @example "Rerum occaecati atque omnis quis."
|
|
39
39
|
*/
|
|
40
40
|
issueType?: string;
|
|
41
41
|
/**
|
|
@@ -46,7 +46,7 @@ export interface AllIssuesDetailsResult {
|
|
|
46
46
|
lastDetected: number;
|
|
47
47
|
/**
|
|
48
48
|
* List of issue overrides
|
|
49
|
-
* @example [{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}
|
|
49
|
+
* @example [{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}]
|
|
50
50
|
*/
|
|
51
51
|
overrides?: OverrideResult[];
|
|
52
52
|
pagination: Pagination;
|
|
@@ -57,7 +57,7 @@ export interface AllIssuesDetailsResult {
|
|
|
57
57
|
reachability?: string;
|
|
58
58
|
/**
|
|
59
59
|
* Reference Identifiers
|
|
60
|
-
* @example [{"id":"
|
|
60
|
+
* @example [{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."},{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."},{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."}]
|
|
61
61
|
*/
|
|
62
62
|
referenceIdentifiers: RefIds[];
|
|
63
63
|
/**
|
|
@@ -72,7 +72,7 @@ export interface AllIssuesDetailsResult {
|
|
|
72
72
|
severityCode: 'Critical' | 'High' | 'Info' | 'Low' | 'Medium' | 'Unassigned';
|
|
73
73
|
/**
|
|
74
74
|
* Target Type
|
|
75
|
-
* @example "
|
|
75
|
+
* @example "Quo sapiente ut voluptatem quibusdam odit nihil."
|
|
76
76
|
*/
|
|
77
77
|
targetType: string;
|
|
78
78
|
/**
|
|
@@ -3,12 +3,12 @@ import type { OverrideResult } from '../schemas/OverrideResult';
|
|
|
3
3
|
import type { Pagination } from '../schemas/Pagination';
|
|
4
4
|
import type { RefIds } from '../schemas/RefIds';
|
|
5
5
|
/**
|
|
6
|
-
* @example {"description":"
|
|
6
|
+
* @example {"description":"Amet laborum mollitia.","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionStatus":"Pending","impactedTargets":[{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"Active","userEmail":"user@gmail.com","userId":"Impedit ratione iure voluptate.","userName":"firstname lastname","variantName":"Error eos."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"Active","userEmail":"user@gmail.com","userId":"Impedit ratione iure voluptate.","userName":"firstname lastname","variantName":"Error eos."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"Active","userEmail":"user@gmail.com","userId":"Impedit ratione iure voluptate.","userName":"firstname lastname","variantName":"Error eos."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"Active","userEmail":"user@gmail.com","userId":"Impedit ratione iure voluptate.","userName":"firstname lastname","variantName":"Error eos."}],"issueType":"Quia animi id.","lastDetected":1634836529,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"reachability":"reachable","referenceIdentifiers":[{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."},{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."},{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."},{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."}],"scanTool":"owasp","severityCode":"High","status":"Exempted","targetType":"Assumenda voluptatem aperiam aut.","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}
|
|
7
7
|
*/
|
|
8
8
|
export interface AllIssuesDetailsV2Result {
|
|
9
9
|
/**
|
|
10
10
|
* Issue description
|
|
11
|
-
* @example "
|
|
11
|
+
* @example "Ut voluptatem fuga at tempora."
|
|
12
12
|
*/
|
|
13
13
|
description: string;
|
|
14
14
|
/**
|
|
@@ -28,14 +28,19 @@ export interface AllIssuesDetailsV2Result {
|
|
|
28
28
|
* @example 0.035
|
|
29
29
|
*/
|
|
30
30
|
epssScore?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Status of project scoped exemption for this issue
|
|
33
|
+
* @example "Pending"
|
|
34
|
+
*/
|
|
35
|
+
exemptionStatus?: string;
|
|
31
36
|
/**
|
|
32
37
|
* List of Impacted Targets
|
|
33
|
-
* @example [{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"
|
|
38
|
+
* @example [{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"Active","userEmail":"user@gmail.com","userId":"Impedit ratione iure voluptate.","userName":"firstname lastname","variantName":"Error eos."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"Active","userEmail":"user@gmail.com","userId":"Impedit ratione iure voluptate.","userName":"firstname lastname","variantName":"Error eos."}]
|
|
34
39
|
*/
|
|
35
40
|
impactedTargets: ImpactedTargetV2[];
|
|
36
41
|
/**
|
|
37
42
|
* Issue Type
|
|
38
|
-
* @example "
|
|
43
|
+
* @example "Qui expedita architecto necessitatibus."
|
|
39
44
|
*/
|
|
40
45
|
issueType?: string;
|
|
41
46
|
/**
|
|
@@ -57,7 +62,7 @@ export interface AllIssuesDetailsV2Result {
|
|
|
57
62
|
reachability?: string;
|
|
58
63
|
/**
|
|
59
64
|
* Reference Identifiers
|
|
60
|
-
* @example [{"id":"
|
|
65
|
+
* @example [{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."},{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."},{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."}]
|
|
61
66
|
*/
|
|
62
67
|
referenceIdentifiers: RefIds[];
|
|
63
68
|
/**
|
|
@@ -72,12 +77,12 @@ export interface AllIssuesDetailsV2Result {
|
|
|
72
77
|
severityCode: 'Critical' | 'High' | 'Info' | 'Low' | 'Medium' | 'Unassigned';
|
|
73
78
|
/**
|
|
74
79
|
* Issue Status
|
|
75
|
-
* @example "
|
|
80
|
+
* @example "Exempted"
|
|
76
81
|
*/
|
|
77
82
|
status: 'Active' | 'Exempted' | 'Remediated';
|
|
78
83
|
/**
|
|
79
84
|
* Target Type
|
|
80
|
-
* @example "
|
|
85
|
+
* @example "Autem id."
|
|
81
86
|
*/
|
|
82
87
|
targetType: string;
|
|
83
88
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { LatestBaselineScanInfo } from '../schemas/LatestBaselineScanInfo';
|
|
2
2
|
/**
|
|
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"}],"reachabilityFlag":true}
|
|
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"},{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"}],"reachabilityFlag":true}
|
|
4
4
|
*/
|
|
5
5
|
export interface AllIssuesFiltersResult {
|
|
6
6
|
/**
|
|
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"}]
|
|
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"},{"pipelineId":"pipeline_1","scanTool":"owasp","scanToolName":"OWASP","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"}]
|
|
8
8
|
*/
|
|
9
9
|
latestBaselineScans: LatestBaselineScanInfo[];
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AllIssueSummary } from '../schemas/AllIssueSummary';
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"issues":[{"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Deleniti sunt amet quasi.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"reachability":"reachable","severityCode":"High","status":"Active","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"},{"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Deleniti sunt amet quasi.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"reachability":"reachable","severityCode":"High","status":"Active","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}
|
|
4
|
+
* @example {"issues":[{"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Deleniti sunt amet quasi.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"reachability":"reachable","severityCode":"High","status":"Active","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"},{"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Deleniti sunt amet quasi.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"reachability":"reachable","severityCode":"High","status":"Active","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
|
/**
|
|
@@ -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":"Autem et occaecati voluptas asperiores neque.","exemptionId":"abcdef1234567890ghijkl","issueType":"Sit nulla sint quo.","lastDetected":1634836529,"occurrences":[{"Ex corrupti ea ullam.":"Aliquid culpa.","Ipsam velit eligendi sit consequatur excepturi error.":"Fugit ab iusto nihil."},{"Et doloribus tempora tempore quam numquam.":"Suscipit nesciunt unde at consequatur eius.","Minus et amet et nostrum est.":"Enim doloremque."}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"reachability":"reachable","referenceIdentifiers":[{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."},{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."},{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."}],"severityCode":"High","targetName":"The Target","targetType":"Dicta ratione incidunt.","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","variantName":"Suscipit quia velit ipsam sed nihil eaque."}
|
|
5
5
|
*/
|
|
6
6
|
export interface AllIssuesOccurrenceDetailsResult {
|
|
7
7
|
/**
|
|
8
8
|
* Issue description
|
|
9
|
-
* @example "
|
|
9
|
+
* @example "Sit qui et ad nam nobis qui."
|
|
10
10
|
*/
|
|
11
11
|
description: string;
|
|
12
12
|
/**
|
|
@@ -16,7 +16,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
16
16
|
exemptionId?: string;
|
|
17
17
|
/**
|
|
18
18
|
* Issue Type
|
|
19
|
-
* @example "Alias
|
|
19
|
+
* @example "Alias et dolore saepe."
|
|
20
20
|
*/
|
|
21
21
|
issueType?: string;
|
|
22
22
|
/**
|
|
@@ -27,7 +27,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
27
27
|
lastDetected: number;
|
|
28
28
|
/**
|
|
29
29
|
* List of occurrences
|
|
30
|
-
* @example [{"
|
|
30
|
+
* @example [{"Beatae nihil quod et quis quae accusamus.":"Velit culpa quas.","Delectus et.":"Dolores vel sit exercitationem repellat."},{"Aut doloremque non at ducimus.":"Nobis qui voluptas maxime.","Dicta rerum quod aut autem.":"Corporis expedita rerum.","Expedita accusamus voluptate aperiam itaque velit modi.":"Architecto vitae."},{"Aliquid incidunt.":"Sit provident amet porro vero.","Eligendi aliquam delectus ea est molestias.":"Eum nobis voluptas dicta nam.","Unde saepe accusantium rerum ut.":"Enim unde."}]
|
|
31
31
|
*/
|
|
32
32
|
occurrences: Array<{
|
|
33
33
|
[key: string]: any;
|
|
@@ -40,7 +40,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
40
40
|
reachability?: string;
|
|
41
41
|
/**
|
|
42
42
|
* Reference Identifiers
|
|
43
|
-
* @example [{"id":"
|
|
43
|
+
* @example [{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."},{"id":"Ea amet voluptatibus quasi laborum minima sit.","type":"Voluptatibus quam."}]
|
|
44
44
|
*/
|
|
45
45
|
referenceIdentifiers?: RefIds[];
|
|
46
46
|
/**
|
|
@@ -55,7 +55,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
55
55
|
targetName: string;
|
|
56
56
|
/**
|
|
57
57
|
* Target Type
|
|
58
|
-
* @example "
|
|
58
|
+
* @example "Nobis eos."
|
|
59
59
|
*/
|
|
60
60
|
targetType: string;
|
|
61
61
|
/**
|
|
@@ -65,7 +65,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
65
65
|
title: string;
|
|
66
66
|
/**
|
|
67
67
|
* Variant name
|
|
68
|
-
* @example "
|
|
68
|
+
* @example "Est odit eaque totam quia eos."
|
|
69
69
|
*/
|
|
70
70
|
variantName: string;
|
|
71
71
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DailyIssueTrend } from '../schemas/DailyIssueTrend';
|
|
2
|
+
/**
|
|
3
|
+
* @example {"trend":[{"active":10,"day":1710720000,"remediated":5},{"active":10,"day":1710720000,"remediated":5},{"active":10,"day":1710720000,"remediated":5}]}
|
|
4
|
+
*/
|
|
5
|
+
export interface AllIssuesTrendV2Result {
|
|
6
|
+
/**
|
|
7
|
+
* Daily trend data showing issue counts by status
|
|
8
|
+
* @example [{"active":10,"day":1710720000,"remediated":5},{"active":10,"day":1710720000,"remediated":5},{"active":10,"day":1710720000,"remediated":5}]
|
|
9
|
+
*/
|
|
10
|
+
trend: DailyIssueTrend[];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AugmentRemediationWarning } from '../schemas/AugmentRemediationWarning';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"warnings":[{"message":"
|
|
3
|
+
* @example {"warnings":[{"message":"Necessitatibus id reiciendis error facere.","source":"Ex ad eius."},{"message":"Necessitatibus id reiciendis error facere.","source":"Ex ad eius."},{"message":"Necessitatibus id reiciendis error facere.","source":"Ex ad eius."},{"message":"Necessitatibus id reiciendis error facere.","source":"Ex ad eius."}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface AugmentRemediationMetadata {
|
|
6
6
|
/**
|
|
7
|
-
* @example [{"message":"
|
|
7
|
+
* @example [{"message":"Necessitatibus id reiciendis error facere.","source":"Ex ad eius."},{"message":"Necessitatibus id reiciendis error facere.","source":"Ex ad eius."},{"message":"Necessitatibus id reiciendis error facere.","source":"Ex ad eius."},{"message":"Necessitatibus id reiciendis error facere.","source":"Ex ad eius."}]
|
|
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":"Necessitatibus id reiciendis error facere.","source":"Ex ad eius."},{"message":"Necessitatibus id reiciendis error facere.","source":"Ex ad eius."},{"message":"Necessitatibus id reiciendis error facere.","source":"Ex ad eius."},{"message":"Necessitatibus id reiciendis error facere.","source":"Ex ad eius."}]},"remediationCode":"Dolore voluptatibus expedita dignissimos reprehenderit.","remediationContext":"Adipisci ea modi harum dignissimos explicabo amet.","repoContent":"Sint sunt iusto."}
|
|
4
4
|
*/
|
|
5
5
|
export interface AugmentRemediationResult {
|
|
6
6
|
metadata: AugmentRemediationMetadata;
|
|
7
7
|
/**
|
|
8
|
-
* @example "
|
|
8
|
+
* @example "Aut quasi."
|
|
9
9
|
*/
|
|
10
10
|
remediationCode?: string;
|
|
11
11
|
/**
|
|
12
|
-
* @example "
|
|
12
|
+
* @example "Nulla atque repudiandae deleniti commodi porro velit."
|
|
13
13
|
*/
|
|
14
14
|
remediationContext: string;
|
|
15
15
|
/**
|
|
16
|
-
* @example "
|
|
16
|
+
* @example "Nesciunt aut non quia eum."
|
|
17
17
|
*/
|
|
18
18
|
repoContent?: string;
|
|
19
19
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"message":"
|
|
2
|
+
* @example {"message":"Qui deserunt sunt aperiam.","source":"Modi consequatur fuga sint distinctio eius recusandae."}
|
|
3
3
|
*/
|
|
4
4
|
export interface AugmentRemediationWarning {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Quia est nihil voluptatem voluptate."
|
|
7
7
|
*/
|
|
8
8
|
message: string;
|
|
9
9
|
/**
|
|
10
|
-
* @example "
|
|
10
|
+
* @example "Quis voluptas ducimus libero ut velit sint."
|
|
11
11
|
*/
|
|
12
12
|
source: string;
|
|
13
13
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"executionIds":["
|
|
2
|
+
* @example {"executionIds":["Et iste.","Occaecati laboriosam."]}
|
|
3
3
|
*/
|
|
4
4
|
export interface BaselineExecutions {
|
|
5
5
|
/**
|
|
6
6
|
* Harness Execution IDs of the most recent baseline scans
|
|
7
|
-
* @example ["
|
|
7
|
+
* @example ["Quae doloremque recusandae qui nostrum nam.","Eligendi eos qui commodi."]
|
|
8
8
|
*/
|
|
9
9
|
executionIds: string[];
|
|
10
10
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Issue counts for a specific day grouped by status
|
|
3
|
+
* @example {"active":10,"day":1710720000,"remediated":5}
|
|
4
|
+
*/
|
|
5
|
+
export interface DailyIssueTrend {
|
|
6
|
+
/**
|
|
7
|
+
* Count of active issues on this day
|
|
8
|
+
* @format int64
|
|
9
|
+
* @example 10
|
|
10
|
+
*/
|
|
11
|
+
active: number;
|
|
12
|
+
/**
|
|
13
|
+
* Unix timestamp for the day (midnight UTC)
|
|
14
|
+
* @format int64
|
|
15
|
+
* @example 1710720000
|
|
16
|
+
*/
|
|
17
|
+
day: number;
|
|
18
|
+
/**
|
|
19
|
+
* Count of remediated issues on this day
|
|
20
|
+
* @format int64
|
|
21
|
+
* @example 5
|
|
22
|
+
*/
|
|
23
|
+
remediated: number;
|
|
24
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PendingChanges } from '../schemas/PendingChanges';
|
|
2
2
|
/**
|
|
3
3
|
* Information about an Exemption
|
|
4
|
-
* @example {"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Pending","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"
|
|
4
|
+
* @example {"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Pending","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"}
|
|
5
5
|
*/
|
|
6
6
|
export interface Exemption {
|
|
7
7
|
/**
|
|
@@ -57,7 +57,7 @@ export interface Exemption {
|
|
|
57
57
|
created: number;
|
|
58
58
|
/**
|
|
59
59
|
* Exemption's status at the Security Scan created time
|
|
60
|
-
* @example "
|
|
60
|
+
* @example "Rejected"
|
|
61
61
|
*/
|
|
62
62
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
63
63
|
/**
|
|
@@ -174,7 +174,7 @@ export interface Exemption {
|
|
|
174
174
|
/**
|
|
175
175
|
* Approval status of Exemption
|
|
176
176
|
* @default "Pending"
|
|
177
|
-
* @example "
|
|
177
|
+
* @example "Canceled"
|
|
178
178
|
*/
|
|
179
179
|
status: 'Approved' | 'Canceled' | 'Expired' | 'Pending' | 'Rejected';
|
|
180
180
|
/**
|
|
@@ -2,7 +2,7 @@ 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 {"baselineTargetsExist":true,"impactedTargets":[{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}
|
|
5
|
+
* @example {"baselineTargetsExist":true,"impactedTargets":[{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","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
|
/**
|
|
@@ -12,7 +12,7 @@ export interface ExemptionImpactedTargetsResult {
|
|
|
12
12
|
baselineTargetsExist: boolean;
|
|
13
13
|
/**
|
|
14
14
|
* Impacted target details
|
|
15
|
-
* @example [{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}]
|
|
15
|
+
* @example [{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}]
|
|
16
16
|
*/
|
|
17
17
|
impactedTargets: FrontendExemptionTargets[];
|
|
18
18
|
pagination: Pagination;
|
|
@@ -3,17 +3,17 @@ import type { ExemptionFilterTarget } from '../schemas/ExemptionFilterTarget';
|
|
|
3
3
|
import type { ExemptionFilterUser } from '../schemas/ExemptionFilterUser';
|
|
4
4
|
/**
|
|
5
5
|
* Available filters for exemptions
|
|
6
|
-
* @example {"pipelines":["
|
|
6
|
+
* @example {"pipelines":["Dolor ipsum.","Id ut similique consequatur sed consequuntur.","Cum hic."],"reasons":["Nihil natus molestiae et velit illo.","Modi rerum vel tenetur exercitationem molestias."],"scanners":[{"scannerId":"snyk","scannerName":"Snyk"},{"scannerId":"snyk","scannerName":"Snyk"},{"scannerId":"snyk","scannerName":"Snyk"}],"targets":[{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"},{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"},{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"},{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"}],"users":[{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"},{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"},{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"},{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"}]}
|
|
7
7
|
*/
|
|
8
8
|
export interface ExemptionsFiltersResult {
|
|
9
9
|
/**
|
|
10
10
|
* List of pipeline IDs with exemptions
|
|
11
|
-
* @example ["
|
|
11
|
+
* @example ["Alias sed id recusandae iste dolor reiciendis.","Labore quae."]
|
|
12
12
|
*/
|
|
13
13
|
pipelines: string[];
|
|
14
14
|
/**
|
|
15
15
|
* List of exemption reasons
|
|
16
|
-
* @example ["
|
|
16
|
+
* @example ["Placeat aut.","Fugit voluptas qui perferendis ipsum et.","Praesentium vero omnis velit.","Consequuntur omnis."]
|
|
17
17
|
*/
|
|
18
18
|
reasons: string[];
|
|
19
19
|
/**
|
|
@@ -28,7 +28,7 @@ export interface ExemptionsFiltersResult {
|
|
|
28
28
|
targets: ExemptionFilterTarget[];
|
|
29
29
|
/**
|
|
30
30
|
* List of all users in the account/scope
|
|
31
|
-
* @example [{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"},{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"}
|
|
31
|
+
* @example [{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"},{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"}]
|
|
32
32
|
*/
|
|
33
33
|
users: ExemptionFilterUser[];
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ import type { Exemption } from '../schemas/Exemption';
|
|
|
6
6
|
export interface ExemptionsListExemptionsResponseBody {
|
|
7
7
|
pagination: Pagination;
|
|
8
8
|
/**
|
|
9
|
-
* @example [{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Expired","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Expired","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","targetId":"abcdef1234567890ghijkl","type":"Other"}
|
|
9
|
+
* @example [{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Expired","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Expired","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","targetId":"abcdef1234567890ghijkl","type":"Other"}]
|
|
10
10
|
*/
|
|
11
11
|
results: Exemption[];
|
|
12
12
|
}
|