@harnessio/react-sto-core-client 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sto-core/src/services/hooks/useExemptionsApproveExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsCreateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsFindExemptionByIdQuery.d.ts +1 -2
- package/dist/sto-core/src/services/hooks/useExemptionsListExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsPromoteExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesDetailsV2Query.d.ts +61 -0
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesDetailsV2Query.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 +3 -3
- package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/AllIssuesCountsV2Result.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsV2Result.d.ts +88 -0
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsV2Result.js +1 -0
- 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/AllIssuesListV2Result.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/ExemptionsFiltersResult.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExportPipelineSecurityIssuesCsvResponseBody.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesDetailsV2ResponseBody.d.ts +2 -0
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesDetailsV2ResponseBody.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 -6
- package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/HistoricalIssueCounts.d.ts +1 -0
- package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/ImpactedTargetV2.d.ts +77 -0
- package/dist/sto-core/src/services/schemas/ImpactedTargetV2.js +4 -0
- package/dist/sto-core/src/services/schemas/Issue.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +8 -8
- 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 +1 -1
- package/dist/sto-core/src/services/schemas/OverridesListOverridesResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +13 -13
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/ProductsListProductsResponseBody.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/PullRequestResult.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/RefIds.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/SecurityReviewResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/TestTarget.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { ImpactedTargetV2 } from '../schemas/ImpactedTargetV2';
|
|
2
|
+
import type { OverrideResult } from '../schemas/OverrideResult';
|
|
3
|
+
import type { Pagination } from '../schemas/Pagination';
|
|
4
|
+
import type { RefIds } from '../schemas/RefIds';
|
|
5
|
+
/**
|
|
6
|
+
* @example {"description":"Amet laborum mollitia.","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","status":"Remediated","userEmail":"user@gmail.com","userId":"Culpa quidem dicta cumque ipsam consectetur.","userName":"firstname lastname","variantName":"Rerum molestias."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"Remediated","userEmail":"user@gmail.com","userId":"Culpa quidem dicta cumque ipsam consectetur.","userName":"firstname lastname","variantName":"Rerum molestias."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"Remediated","userEmail":"user@gmail.com","userId":"Culpa quidem dicta cumque ipsam consectetur.","userName":"firstname lastname","variantName":"Rerum molestias."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"Remediated","userEmail":"user@gmail.com","userId":"Culpa quidem dicta cumque ipsam consectetur.","userName":"firstname lastname","variantName":"Rerum molestias."}],"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":"Voluptas facilis tempore facere.","type":"Enim quos reiciendis tenetur."},{"id":"Voluptas facilis tempore facere.","type":"Enim quos reiciendis tenetur."},{"id":"Voluptas facilis tempore facere.","type":"Enim quos reiciendis tenetur."},{"id":"Voluptas facilis tempore facere.","type":"Enim quos reiciendis tenetur."}],"scanTool":"owasp","severityCode":"High","status":"Exempted","targetType":"Assumenda voluptatem aperiam aut.","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}
|
|
7
|
+
*/
|
|
8
|
+
export interface AllIssuesDetailsV2Result {
|
|
9
|
+
/**
|
|
10
|
+
* Issue description
|
|
11
|
+
* @example "Ut voluptatem fuga at tempora."
|
|
12
|
+
*/
|
|
13
|
+
description: string;
|
|
14
|
+
/**
|
|
15
|
+
* Last date the issue EPSS data was last modified
|
|
16
|
+
* @example "2025-05-01"
|
|
17
|
+
*/
|
|
18
|
+
epssLastModified?: string;
|
|
19
|
+
/**
|
|
20
|
+
* EPSS percentile of the issue CVE identifier
|
|
21
|
+
* @format double
|
|
22
|
+
* @example 0.15
|
|
23
|
+
*/
|
|
24
|
+
epssPercentile?: number;
|
|
25
|
+
/**
|
|
26
|
+
* EPSS score of the issue CVE identifier
|
|
27
|
+
* @format double
|
|
28
|
+
* @example 0.035
|
|
29
|
+
*/
|
|
30
|
+
epssScore?: number;
|
|
31
|
+
/**
|
|
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","status":"Remediated","userEmail":"user@gmail.com","userId":"Culpa quidem dicta cumque ipsam consectetur.","userName":"firstname lastname","variantName":"Rerum molestias."},{"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"Remediated","userEmail":"user@gmail.com","userId":"Culpa quidem dicta cumque ipsam consectetur.","userName":"firstname lastname","variantName":"Rerum molestias."}]
|
|
34
|
+
*/
|
|
35
|
+
impactedTargets: ImpactedTargetV2[];
|
|
36
|
+
/**
|
|
37
|
+
* Issue Type
|
|
38
|
+
* @example "Qui expedita architecto necessitatibus."
|
|
39
|
+
*/
|
|
40
|
+
issueType?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Timestamp of the last detection of this issue
|
|
43
|
+
* @format int64
|
|
44
|
+
* @example 1634836529
|
|
45
|
+
*/
|
|
46
|
+
lastDetected: number;
|
|
47
|
+
/**
|
|
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"}]
|
|
50
|
+
*/
|
|
51
|
+
overrides?: OverrideResult[];
|
|
52
|
+
pagination: Pagination;
|
|
53
|
+
/**
|
|
54
|
+
* Aggregate reachability status of the issue across all impacted targets. 'reachable' if any target has reachable occurrences.
|
|
55
|
+
* @example "reachable"
|
|
56
|
+
*/
|
|
57
|
+
reachability?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Reference Identifiers
|
|
60
|
+
* @example [{"id":"Voluptas facilis tempore facere.","type":"Enim quos reiciendis tenetur."},{"id":"Voluptas facilis tempore facere.","type":"Enim quos reiciendis tenetur."},{"id":"Voluptas facilis tempore facere.","type":"Enim quos reiciendis tenetur."}]
|
|
61
|
+
*/
|
|
62
|
+
referenceIdentifiers: RefIds[];
|
|
63
|
+
/**
|
|
64
|
+
* Product name of the scan tool used in this step
|
|
65
|
+
* @example "owasp"
|
|
66
|
+
*/
|
|
67
|
+
scanTool: string;
|
|
68
|
+
/**
|
|
69
|
+
* Severity code
|
|
70
|
+
* @example "High"
|
|
71
|
+
*/
|
|
72
|
+
severityCode: 'Critical' | 'High' | 'Info' | 'Low' | 'Medium' | 'Unassigned';
|
|
73
|
+
/**
|
|
74
|
+
* Issue Status
|
|
75
|
+
* @example "Exempted"
|
|
76
|
+
*/
|
|
77
|
+
status: 'Active' | 'Exempted' | 'Remediated';
|
|
78
|
+
/**
|
|
79
|
+
* Target Type
|
|
80
|
+
* @example "Autem id."
|
|
81
|
+
*/
|
|
82
|
+
targetType: string;
|
|
83
|
+
/**
|
|
84
|
+
* Title of the Security Issue
|
|
85
|
+
* @example "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"
|
|
86
|
+
*/
|
|
87
|
+
title: string;
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
/**
|
|
@@ -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":[{"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"
|
|
4
|
+
* @example {"issues":[{"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Aspernatur officia qui voluptas illum aut et.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"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":"Exempted","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":"Aspernatur officia qui voluptas illum aut et.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"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":"Exempted","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 [{"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"
|
|
9
|
+
* @example [{"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Aspernatur officia qui voluptas illum aut et.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"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":"Exempted","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":"Aspernatur officia qui voluptas illum aut et.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"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":"Exempted","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":"Aspernatur officia qui voluptas illum aut et.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"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":"Exempted","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":"Aspernatur officia qui voluptas illum aut et.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"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":"Exempted","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 { AllBaselineIssueSummary } from '../schemas/AllBaselineIssueSummary';
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"issues":[{"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"
|
|
4
|
+
* @example {"issues":[{"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Pariatur quod atque quisquam occaecati in quam.","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"}],"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,"exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Pariatur quod atque quisquam occaecati in quam.","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"}],"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,"exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Pariatur quod atque quisquam occaecati in quam.","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"}],"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,"exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Pariatur quod atque quisquam occaecati in quam.","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"}],"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 AllIssuesListV2Result {
|
|
7
7
|
/**
|
|
8
8
|
* Issues from the pre-aggregated summary table for the latest baseline scans in a project
|
|
9
|
-
* @example [{"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"
|
|
9
|
+
* @example [{"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Pariatur quod atque quisquam occaecati in quam.","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"}],"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,"exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Pariatur quod atque quisquam occaecati in quam.","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"}],"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,"exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Pariatur quod atque quisquam occaecati in quam.","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"}],"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,"exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Pariatur quod atque quisquam occaecati in quam.","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"}],"reachability":"reachable","severityCode":"High","status":"Active","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}]
|
|
10
10
|
*/
|
|
11
11
|
issues: AllBaselineIssueSummary[];
|
|
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":"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":"Voluptas facilis tempore facere.","type":"Enim quos reiciendis tenetur."},{"id":"Voluptas facilis tempore facere.","type":"Enim quos reiciendis tenetur."},{"id":"Voluptas facilis tempore facere.","type":"Enim quos reiciendis tenetur."}],"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 "
|
|
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":"Voluptas facilis tempore facere.","type":"Enim quos reiciendis tenetur."},{"id":"Voluptas facilis tempore facere.","type":"Enim quos reiciendis tenetur."}]
|
|
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
|
}
|
|
@@ -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
|
}
|
|
@@ -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":"
|
|
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
|
/**
|
|
@@ -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
|
/**
|
|
@@ -3,27 +3,27 @@ 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
|
/**
|
|
20
20
|
* List of scanners with exemptions
|
|
21
|
-
* @example [{"scannerId":"snyk","scannerName":"Snyk"},{"scannerId":"snyk","scannerName":"Snyk"},{"scannerId":"snyk","scannerName":"Snyk"}]
|
|
21
|
+
* @example [{"scannerId":"snyk","scannerName":"Snyk"},{"scannerId":"snyk","scannerName":"Snyk"},{"scannerId":"snyk","scannerName":"Snyk"},{"scannerId":"snyk","scannerName":"Snyk"}]
|
|
22
22
|
*/
|
|
23
23
|
scanners: ExemptionFilterScanner[];
|
|
24
24
|
/**
|
|
25
25
|
* List of targets with exemptions
|
|
26
|
-
* @example [{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"},{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"}]
|
|
26
|
+
* @example [{"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"}]
|
|
27
27
|
*/
|
|
28
28
|
targets: ExemptionFilterTarget[];
|
|
29
29
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
import type { Exemption } from '../schemas/Exemption';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"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":"
|
|
4
|
+
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"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"},{"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"}]}
|
|
5
5
|
*/
|
|
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":"
|
|
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
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"data":[["
|
|
2
|
+
* @example {"data":[["Tenetur qui nihil aspernatur et.","Quas ipsum sunt."],["Rerum quis quasi praesentium eum.","Qui voluptatem ea vel."],["Architecto autem doloribus accusamus.","Quaerat voluptas ut."]],"executionId":"Beatae labore.","filename":"Consequuntur a repellat perspiciatis autem sed corporis.","headers":["Quia atque alias et.","Unde eligendi vel fugiat ut."],"totalRows":4176650152210254300}
|
|
3
3
|
*/
|
|
4
4
|
export interface ExportPipelineSecurityIssuesCsvResponseBody {
|
|
5
5
|
/**
|
|
6
6
|
* CSV data rows
|
|
7
|
-
* @example [["
|
|
7
|
+
* @example [["Dolores maiores minus quidem voluptas.","Voluptas ut distinctio."],["Dolorum nisi ad illum recusandae modi.","Fugit rem beatae dolor voluptas est modi."]]
|
|
8
8
|
*/
|
|
9
9
|
data: Array<string[]>;
|
|
10
10
|
/**
|
|
11
11
|
* Execution ID for this export
|
|
12
|
-
* @example "
|
|
12
|
+
* @example "Quia sed et fugit sed."
|
|
13
13
|
*/
|
|
14
14
|
executionId: string;
|
|
15
15
|
/**
|
|
16
16
|
* Suggested filename for download
|
|
17
|
-
* @example "
|
|
17
|
+
* @example "Quaerat aperiam tempore."
|
|
18
18
|
*/
|
|
19
19
|
filename: string;
|
|
20
20
|
/**
|
|
21
21
|
* CSV column headers
|
|
22
|
-
* @example ["
|
|
22
|
+
* @example ["Beatae facere maiores maiores.","Totam aut sit omnis.","Distinctio aut blanditiis debitis.","Expedita expedita ad dolorem nesciunt."]
|
|
23
23
|
*/
|
|
24
24
|
headers: string[];
|
|
25
25
|
/**
|
|
26
26
|
* Total number of data rows
|
|
27
27
|
* @format int64
|
|
28
|
-
* @example
|
|
28
|
+
* @example 4778982849201191000
|
|
29
29
|
*/
|
|
30
30
|
totalRows: number;
|
|
31
31
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|