@harnessio/react-sto-core-client 0.4.1 → 0.4.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/useFrontendAllIssuesListQuery.d.ts +0 -6
- 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/useFrontendPipelineSecurityIssuesCsvQuery.d.ts +4 -0
- package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesQuery.d.ts +4 -0
- package/dist/sto-core/src/services/hooks/useIssuesFindIssueByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useIssuesIssuesAugmentRemediationMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/usePullRequestsCreatePullRequestMutation.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/usePullRequestsGetPullRequestCorrelationQuery.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/usePullRequestsUpdatePullRequestMutation.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/useScansScanIssueOccurrencesQuery.d.ts +4 -4
- package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.d.ts +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 +0 -10
- package/dist/sto-core/src/services/index.js +0 -3
- package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +8 -7
- package/dist/sto-core/src/services/schemas/AllIssueSummary.js +3 -0
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +11 -10
- package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +7 -13
- package/dist/sto-core/src/services/schemas/AugmentRemediationMetadata.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AugmentRemediationResult.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/AugmentRemediationWarning.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/BaselineExecutions.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/Exemption.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/ExemptionImpactedTargetsResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExportPipelineSecurityIssuesCsvResponseBody.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +11 -1
- package/dist/sto-core/src/services/schemas/FrontendExemptionTargets.d.ts +11 -1
- package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +5 -6
- package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/HistoricalIssueCounts.d.ts +1 -0
- package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/Issue.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +27 -9
- package/dist/sto-core/src/services/schemas/IssueSummary.js +3 -0
- package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +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 +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
- package/dist/sto-core/src/services/hooks/useOverridesCreateOverrideMutation.d.ts +0 -42
- package/dist/sto-core/src/services/hooks/useOverridesCreateOverrideMutation.js +0 -14
- package/dist/sto-core/src/services/hooks/useOverridesDeleteOverrideMutation.d.ts +0 -38
- package/dist/sto-core/src/services/hooks/useOverridesDeleteOverrideMutation.js +0 -14
- package/dist/sto-core/src/services/hooks/useOverridesListOverridesQuery.d.ts +0 -53
- package/dist/sto-core/src/services/hooks/useOverridesListOverridesQuery.js +0 -14
- package/dist/sto-core/src/services/schemas/CreateOverrideRequestBody.d.ts +0 -65
- package/dist/sto-core/src/services/schemas/CreateOverrideRequestBody.js +0 -4
- package/dist/sto-core/src/services/schemas/Override.d.ts +0 -109
- package/dist/sto-core/src/services/schemas/Override.js +0 -4
- package/dist/sto-core/src/services/schemas/OverrideResult.d.ts +0 -46
- package/dist/sto-core/src/services/schemas/OverrideResult.js +0 -4
- package/dist/sto-core/src/services/schemas/OverridesListOverridesResponseBody.d.ts +0 -12
- package/dist/sto-core/src/services/schemas/OverridesListOverridesResponseBody.js +0 -1
|
@@ -1,14 +1,30 @@
|
|
|
1
|
-
import type { OverrideResult } from '../schemas/OverrideResult';
|
|
2
1
|
/**
|
|
3
2
|
* Short summary of an Issue
|
|
4
|
-
* @example {"currentStatus":"
|
|
3
|
+
* @example {"currentStatus":"Approved","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":8771291791955878000,"numOccurrences":7052966227639316000,"numRemediatedOccurrences":1905901361682667300,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}
|
|
5
4
|
*/
|
|
6
5
|
export interface IssueSummary {
|
|
7
6
|
/**
|
|
8
7
|
* Current status of the Exemption
|
|
9
|
-
* @example "
|
|
8
|
+
* @example "Expired"
|
|
10
9
|
*/
|
|
11
10
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
11
|
+
/**
|
|
12
|
+
* Last date the issue EPSS data was last modified
|
|
13
|
+
* @example "2025-05-01"
|
|
14
|
+
*/
|
|
15
|
+
epssLastModified?: string;
|
|
16
|
+
/**
|
|
17
|
+
* EPSS percentile of the issue CVE identifier
|
|
18
|
+
* @format double
|
|
19
|
+
* @example 0.15
|
|
20
|
+
*/
|
|
21
|
+
epssPercentile?: number;
|
|
22
|
+
/**
|
|
23
|
+
* EPSS score of the issue CVE identifier
|
|
24
|
+
* @format double
|
|
25
|
+
* @example 0.035
|
|
26
|
+
*/
|
|
27
|
+
epssScore?: number;
|
|
12
28
|
/**
|
|
13
29
|
* Indicates if the Security Issue was found to be Exempted, Partially Exempted.
|
|
14
30
|
* @example "Partially Exempted"
|
|
@@ -36,17 +52,17 @@ export interface IssueSummary {
|
|
|
36
52
|
key: string;
|
|
37
53
|
/**
|
|
38
54
|
* @format int64
|
|
39
|
-
* @example
|
|
55
|
+
* @example 2625278317411147300
|
|
40
56
|
*/
|
|
41
57
|
numNewOccurrences?: number;
|
|
42
58
|
/**
|
|
43
59
|
* @format int64
|
|
44
|
-
* @example
|
|
60
|
+
* @example 6030358759859240000
|
|
45
61
|
*/
|
|
46
62
|
numOccurrences?: number;
|
|
47
63
|
/**
|
|
48
64
|
* @format int64
|
|
49
|
-
* @example
|
|
65
|
+
* @example 72407648513445660
|
|
50
66
|
*/
|
|
51
67
|
numRemediatedOccurrences?: number;
|
|
52
68
|
/**
|
|
@@ -60,10 +76,12 @@ export interface IssueSummary {
|
|
|
60
76
|
*/
|
|
61
77
|
origins?: string[];
|
|
62
78
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
79
|
+
* Indicates the issue has been overridden
|
|
80
|
+
* @example {"originalSeverity":"medium","reason":"snyk"}
|
|
65
81
|
*/
|
|
66
|
-
|
|
82
|
+
override?: {
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
};
|
|
67
85
|
/**
|
|
68
86
|
* The ID of the Scan that detected this Security Issue
|
|
69
87
|
* @example "scan111111111111111111"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"connectorId":"
|
|
2
|
+
* @example {"connectorId":"Modi odit voluptatem facere aut et sed.","occurrenceId":12345,"referenceId":"CWE-123","scanId":"abcdefghijkl1234567890","userSnippet":"func example() int {\n return 0\n}"}
|
|
3
3
|
*/
|
|
4
4
|
export interface IssuesAugmentRemediationRequestBody {
|
|
5
5
|
/**
|
|
6
|
-
* @example "Qui
|
|
6
|
+
* @example "Qui eaque ipsam."
|
|
7
7
|
*/
|
|
8
8
|
connectorId?: string;
|
|
9
9
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { IssueSummary } from '../schemas/IssueSummary';
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"issues":[{"currentStatus":"
|
|
4
|
+
* @example {"issues":[{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
|
|
5
5
|
*/
|
|
6
6
|
export interface PaginatedIssueSummaries {
|
|
7
7
|
/**
|
|
8
8
|
* Diff-ed Issues related to this scan step, resulting from a diff between a scan and its target's latest baseline scan (previous scan if no baseline)
|
|
9
|
-
* @example [{"currentStatus":"
|
|
9
|
+
* @example [{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}]
|
|
10
10
|
*/
|
|
11
11
|
issues: IssueSummary[];
|
|
12
12
|
pagination: Pagination;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { FrontendIssueCounts } from '../schemas/FrontendIssueCounts';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"activeIssueCount":
|
|
3
|
+
* @example {"activeIssueCount":3825544097826905000,"existing":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"new":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediated":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"totalActive":4857260108522220000,"totalApp":3054452752060655600,"totalBase":7485259615627228000,"totalDeduplicationRate":0.16992895,"totalExempted":1598010569510087000,"totalNoLayer":544552267151166140,"totalNumOccurrence":6443234224370042000,"totalPartiallyExempted":807541581385397500,"totalPending":2194377632769923000,"totalRejected":1110913446844303700,"totalRemediated":9036956601418704000}
|
|
4
4
|
*/
|
|
5
5
|
export interface PipelineSecurityCounts {
|
|
6
6
|
/**
|
|
7
7
|
* @format int64
|
|
8
|
-
* @example
|
|
8
|
+
* @example 1740991240406098000
|
|
9
9
|
*/
|
|
10
10
|
activeIssueCount?: number;
|
|
11
11
|
existing: FrontendIssueCounts;
|
|
@@ -13,57 +13,57 @@ export interface PipelineSecurityCounts {
|
|
|
13
13
|
remediated: FrontendIssueCounts;
|
|
14
14
|
/**
|
|
15
15
|
* @format int64
|
|
16
|
-
* @example
|
|
16
|
+
* @example 5370507771747171000
|
|
17
17
|
*/
|
|
18
18
|
totalActive: number;
|
|
19
19
|
/**
|
|
20
20
|
* @format int64
|
|
21
|
-
* @example
|
|
21
|
+
* @example 9022116620442121000
|
|
22
22
|
*/
|
|
23
23
|
totalApp?: number;
|
|
24
24
|
/**
|
|
25
25
|
* @format int64
|
|
26
|
-
* @example
|
|
26
|
+
* @example 4173332357520073000
|
|
27
27
|
*/
|
|
28
28
|
totalBase?: number;
|
|
29
29
|
/**
|
|
30
30
|
* @format float
|
|
31
|
-
* @example 0.
|
|
31
|
+
* @example 0.0127793765
|
|
32
32
|
*/
|
|
33
33
|
totalDeduplicationRate?: number;
|
|
34
34
|
/**
|
|
35
35
|
* @format int64
|
|
36
|
-
* @example
|
|
36
|
+
* @example 3784622981543537700
|
|
37
37
|
*/
|
|
38
38
|
totalExempted?: number;
|
|
39
39
|
/**
|
|
40
40
|
* @format int64
|
|
41
|
-
* @example
|
|
41
|
+
* @example 5111332249156282000
|
|
42
42
|
*/
|
|
43
43
|
totalNoLayer?: number;
|
|
44
44
|
/**
|
|
45
45
|
* @format int64
|
|
46
|
-
* @example
|
|
46
|
+
* @example 3482378439114558500
|
|
47
47
|
*/
|
|
48
48
|
totalNumOccurrence?: number;
|
|
49
49
|
/**
|
|
50
50
|
* @format int64
|
|
51
|
-
* @example
|
|
51
|
+
* @example 5913401338234349000
|
|
52
52
|
*/
|
|
53
53
|
totalPartiallyExempted?: number;
|
|
54
54
|
/**
|
|
55
55
|
* @format int64
|
|
56
|
-
* @example
|
|
56
|
+
* @example 5330776871031116000
|
|
57
57
|
*/
|
|
58
58
|
totalPending?: number;
|
|
59
59
|
/**
|
|
60
60
|
* @format int64
|
|
61
|
-
* @example
|
|
61
|
+
* @example 8955895399356402000
|
|
62
62
|
*/
|
|
63
63
|
totalRejected?: number;
|
|
64
64
|
/**
|
|
65
65
|
* @format int64
|
|
66
|
-
* @example
|
|
66
|
+
* @example 9032876234339027000
|
|
67
67
|
*/
|
|
68
68
|
totalRemediated?: number;
|
|
69
69
|
}
|
|
@@ -3,13 +3,13 @@ import type { PaginatedIssueSummaries } from '../schemas/PaginatedIssueSummaries
|
|
|
3
3
|
import type { StageStepId } from '../schemas/StageStepId';
|
|
4
4
|
/**
|
|
5
5
|
* Data needed by the PipelineSecurityView
|
|
6
|
-
* @example {"counts":{"activeIssueCount":
|
|
6
|
+
* @example {"counts":{"activeIssueCount":6626345891690196000,"existing":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"new":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediated":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"totalActive":5608136193110864000,"totalApp":4314725901187726300,"totalBase":5232228435046065000,"totalDeduplicationRate":0.46164584,"totalExempted":8689609928768105000,"totalNoLayer":5912878222818902000,"totalNumOccurrence":3433482842044725000,"totalPartiallyExempted":4719987705336579000,"totalPending":4131462459290609700,"totalRejected":8025740138207055000,"totalRemediated":3816182181436607000},"existing":{"issues":[{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}},"matchingSteps":[{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}],"new":{"issues":[{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}}
|
|
7
7
|
*/
|
|
8
8
|
export interface PipelineSecurityIssuesResult {
|
|
9
9
|
counts: PipelineSecurityCounts;
|
|
10
10
|
existing: PaginatedIssueSummaries;
|
|
11
11
|
/**
|
|
12
|
-
* @example [{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}]
|
|
12
|
+
* @example [{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}]
|
|
13
13
|
*/
|
|
14
14
|
matchingSteps: StageStepId[];
|
|
15
15
|
new: PaginatedIssueSummaries;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { StepInfo } from '../schemas/StepInfo';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"steps":[{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}
|
|
3
|
+
* @example {"steps":[{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface PipelineSecurityStepsResult {
|
|
6
6
|
/**
|
|
7
|
-
* @example [{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}]
|
|
7
|
+
* @example [{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}]
|
|
8
8
|
*/
|
|
9
9
|
steps: StepInfo[];
|
|
10
10
|
}
|
|
@@ -6,7 +6,7 @@ import type { Product } from '../schemas/Product';
|
|
|
6
6
|
export interface ProductsListProductsResponseBody {
|
|
7
7
|
pagination: Pagination;
|
|
8
8
|
/**
|
|
9
|
-
* @example [{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"},{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"}]
|
|
9
|
+
* @example [{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"},{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"},{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"},{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"}]
|
|
10
10
|
*/
|
|
11
11
|
results: Product[];
|
|
12
12
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"pullRequestNumber":
|
|
2
|
+
* @example {"pullRequestNumber":1810634873026598400,"pullRequestUrl":"Nobis sit laboriosam quas vero officiis atque.","sourceBranch":"feat/shiny-object"}
|
|
3
3
|
*/
|
|
4
4
|
export interface PullRequestResult {
|
|
5
5
|
/**
|
|
6
6
|
* The number of the Pull Request
|
|
7
7
|
* @format int64
|
|
8
|
-
* @example
|
|
8
|
+
* @example 6492739034179596000
|
|
9
9
|
*/
|
|
10
10
|
pullRequestNumber: number;
|
|
11
11
|
/**
|
|
12
12
|
* The URL of the Pull Request
|
|
13
|
-
* @example "
|
|
13
|
+
* @example "Adipisci aspernatur inventore aut rerum."
|
|
14
14
|
*/
|
|
15
15
|
pullRequestUrl: string;
|
|
16
16
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"id":"
|
|
2
|
+
* @example {"id":"Rerum voluptas eum omnis voluptas.","type":"Aut vero."}
|
|
3
3
|
*/
|
|
4
4
|
export interface RefIds {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Laboriosam magni maiores cupiditate fuga magni veniam."
|
|
7
7
|
*/
|
|
8
8
|
id?: string;
|
|
9
9
|
/**
|
|
10
|
-
* @example "
|
|
10
|
+
* @example "Voluptatem officia hic."
|
|
11
11
|
*/
|
|
12
12
|
type?: string;
|
|
13
13
|
}
|
|
@@ -3,13 +3,13 @@ import type { FrontendExemption } from '../schemas/FrontendExemption';
|
|
|
3
3
|
import type { Pagination } from '../schemas/Pagination';
|
|
4
4
|
/**
|
|
5
5
|
* Data needed by the Security Review page
|
|
6
|
-
* @example {"counts":{"Approved":150,"Expired":150,"Pending":150,"Rejected":150},"exemptions":[{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"
|
|
6
|
+
* @example {"counts":{"Approved":150,"Expired":150,"Pending":150,"Rejected":150},"exemptions":[{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},"lastModified":1651578240,"link":"Upstream bug","numOccurrences":10,"orgId":"STO","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","projectName":"Project Name","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},"lastModified":1651578240,"link":"Upstream bug","numOccurrences":10,"orgId":"STO","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","projectName":"Project Name","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},"lastModified":1651578240,"link":"Upstream bug","numOccurrences":10,"orgId":"STO","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","projectName":"Project Name","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},"lastModified":1651578240,"link":"Upstream bug","numOccurrences":10,"orgId":"STO","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","projectName":"Project Name","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
|
|
7
7
|
*/
|
|
8
8
|
export interface SecurityReviewResult {
|
|
9
9
|
counts: FrontendExemptionCounts;
|
|
10
10
|
/**
|
|
11
11
|
* Security Review data
|
|
12
|
-
* @example [{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"
|
|
12
|
+
* @example [{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},"lastModified":1651578240,"link":"Upstream bug","numOccurrences":10,"orgId":"STO","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","projectName":"Project Name","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},"lastModified":1651578240,"link":"Upstream bug","numOccurrences":10,"orgId":"STO","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","projectName":"Project Name","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},"lastModified":1651578240,"link":"Upstream bug","numOccurrences":10,"orgId":"STO","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","projectName":"Project Name","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"Expired","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},"lastModified":1651578240,"link":"Upstream bug","numOccurrences":10,"orgId":"STO","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","projectName":"Project Name","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"}]
|
|
13
13
|
*/
|
|
14
14
|
exemptions: FrontendExemption[];
|
|
15
15
|
pagination: Pagination;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TestTargetVariant } from '../schemas/TestTargetVariant';
|
|
2
2
|
/**
|
|
3
3
|
* Individual TestTarget
|
|
4
|
-
* @example {"approvedVariantsCount":1,"baseline":{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","status":"approved","totalVariantsCount":10,"type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}
|
|
4
|
+
* @example {"approvedVariantsCount":1,"baseline":{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","status":"approved","totalVariantsCount":10,"type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}]}
|
|
5
5
|
*/
|
|
6
6
|
export interface TestTarget {
|
|
7
7
|
/**
|
|
@@ -59,7 +59,7 @@ export interface TestTarget {
|
|
|
59
59
|
*/
|
|
60
60
|
url?: string;
|
|
61
61
|
/**
|
|
62
|
-
* @example [{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}]
|
|
62
|
+
* @example [{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}]
|
|
63
63
|
*/
|
|
64
64
|
variants: TestTargetVariant[];
|
|
65
65
|
}
|
|
@@ -2,12 +2,12 @@ import type { TestTarget } from '../schemas/TestTarget';
|
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
4
|
* Data needed by the Test Targets page
|
|
5
|
-
* @example {"targets":[{"approvedVariantsCount":1,"baseline":{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","status":"approved","totalVariantsCount":10,"type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}
|
|
5
|
+
* @example {"targets":[{"approvedVariantsCount":1,"baseline":{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","status":"approved","totalVariantsCount":10,"type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}]},{"approvedVariantsCount":1,"baseline":{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","status":"approved","totalVariantsCount":10,"type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}]}],"targetsPagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
|
|
6
6
|
*/
|
|
7
7
|
export interface TestTargetResult {
|
|
8
8
|
/**
|
|
9
9
|
* Test Targets data
|
|
10
|
-
* @example [{"approvedVariantsCount":1,"baseline":{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","status":"approved","totalVariantsCount":10,"type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}
|
|
10
|
+
* @example [{"approvedVariantsCount":1,"baseline":{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","status":"approved","totalVariantsCount":10,"type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}]},{"approvedVariantsCount":1,"baseline":{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","status":"approved","totalVariantsCount":10,"type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}]}]
|
|
11
11
|
*/
|
|
12
12
|
targets: TestTarget[];
|
|
13
13
|
targetsPagination: Pagination;
|