@harnessio/react-sto-core-client 0.7.1 → 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 -1
- package/dist/sto-core/src/services/hooks/useExemptionsListExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsPromoteExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesCountsV2Query.d.ts +89 -0
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesCountsV2Query.js +14 -0
- 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/useFrontendAllIssuesListQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesListV2Query.d.ts +103 -0
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesListV2Query.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 +5 -5
- package/dist/sto-core/src/services/hooks/useTargetsFindTargetByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useTargetsPatchTargetMutation.d.ts +1 -1
- package/dist/sto-core/src/services/index.d.ts +14 -0
- package/dist/sto-core/src/services/index.js +3 -0
- package/dist/sto-core/src/services/schemas/AllBaselineIssueSummary.d.ts +82 -0
- package/dist/sto-core/src/services/schemas/AllBaselineIssueSummary.js +1 -0
- package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/AllIssuesCountsV2Result.d.ts +20 -0
- package/dist/sto-core/src/services/schemas/AllIssuesCountsV2Result.js +1 -0
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +7 -7
- 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/AllIssuesListResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesListV2Result.d.ts +13 -0
- package/dist/sto-core/src/services/schemas/AllIssuesListV2Result.js +1 -0
- 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 +3 -3
- package/dist/sto-core/src/services/schemas/ExemptionImpactedTargetsResult.d.ts +1 -1
- 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/FrontendAllIssuesCountsV2ResponseBody.d.ts +2 -0
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesCountsV2ResponseBody.js +1 -0
- 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/FrontendAllIssuesListV2ResponseBody.d.ts +2 -0
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesListV2ResponseBody.js +1 -0
- package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/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 +3 -3
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +5 -5
- 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 +2 -2
- package/dist/sto-core/src/services/schemas/OverridesListOverridesResponseBody.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +13 -13
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +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
|
@@ -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
|
/**
|
|
@@ -57,7 +57,7 @@ export interface Exemption {
|
|
|
57
57
|
created: number;
|
|
58
58
|
/**
|
|
59
59
|
* Exemption's status at the Security Scan created time
|
|
60
|
-
* @example "
|
|
60
|
+
* @example "Rejected"
|
|
61
61
|
*/
|
|
62
62
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
63
63
|
/**
|
|
@@ -174,7 +174,7 @@ export interface Exemption {
|
|
|
174
174
|
/**
|
|
175
175
|
* Approval status of Exemption
|
|
176
176
|
* @default "Pending"
|
|
177
|
-
* @example "
|
|
177
|
+
* @example "Canceled"
|
|
178
178
|
*/
|
|
179
179
|
status: 'Approved' | 'Canceled' | 'Expired' | 'Pending' | 'Rejected';
|
|
180
180
|
/**
|
|
@@ -12,7 +12,7 @@ export interface ExemptionImpactedTargetsResult {
|
|
|
12
12
|
baselineTargetsExist: boolean;
|
|
13
13
|
/**
|
|
14
14
|
* Impacted target details
|
|
15
|
-
* @example [{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}
|
|
15
|
+
* @example [{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}]
|
|
16
16
|
*/
|
|
17
17
|
impactedTargets: FrontendExemptionTargets[];
|
|
18
18
|
pagination: Pagination;
|
|
@@ -3,22 +3,22 @@ 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"}]
|
|
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
|
/**
|
|
@@ -28,7 +28,7 @@ export interface ExemptionsFiltersResult {
|
|
|
28
28
|
targets: ExemptionFilterTarget[];
|
|
29
29
|
/**
|
|
30
30
|
* List of all users in the account/scope
|
|
31
|
-
* @example [{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"},{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"}
|
|
31
|
+
* @example [{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"},{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"}]
|
|
32
32
|
*/
|
|
33
33
|
users: ExemptionFilterUser[];
|
|
34
34
|
}
|
|
@@ -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":"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":"
|
|
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":"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":"
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import type { IssueSummary } from '../schemas/IssueSummary';
|
|
|
2
2
|
import type { PendingChanges } from '../schemas/PendingChanges';
|
|
3
3
|
/**
|
|
4
4
|
* Exemption summary for frontend use
|
|
5
|
-
* @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":"
|
|
5
|
+
* @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":"Rejected","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","lastDetected":1634836529,"numNewOccurrences":8650743585000086000,"numOccurrences":1819890880415556900,"numRemediatedOccurrences":1962120499889003500,"occurrenceInternalId":12345,"originStatus":"approved","origins":["app","base"],"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"}],"overridesAtScan":[{"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"}],"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","reviewedOn":1651578240,"scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","targetName":"my-target","totalOccurrences":10,"type":"Other"}
|
|
6
6
|
*/
|
|
7
7
|
export interface FrontendExemption {
|
|
8
8
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Git Metadata associated with the Scan
|
|
3
|
-
* @example {"detectedName":"
|
|
3
|
+
* @example {"detectedName":"Sint voluptatem deleniti porro.","detectedVariant":"Sapiente optio sit accusantium.","droneCorrelated":false,"provider":"Dicta vel quia dolor rem quidem.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Laudantium officia.","Aut deserunt suscipit dolores et corrupti odit."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"}
|
|
4
4
|
*/
|
|
5
5
|
export interface GitMetadata {
|
|
6
6
|
/**
|
|
7
7
|
* Detected Name
|
|
8
|
-
* @example "
|
|
8
|
+
* @example "Molestias incidunt commodi asperiores unde qui maiores."
|
|
9
9
|
*/
|
|
10
10
|
detectedName?: string;
|
|
11
11
|
/**
|
|
12
12
|
* Detected Variant
|
|
13
|
-
* @example "
|
|
13
|
+
* @example "Quia eaque."
|
|
14
14
|
*/
|
|
15
15
|
detectedVariant?: string;
|
|
16
16
|
/**
|
|
@@ -19,7 +19,7 @@ export interface GitMetadata {
|
|
|
19
19
|
droneCorrelated?: boolean;
|
|
20
20
|
/**
|
|
21
21
|
* Git Provider
|
|
22
|
-
* @example "
|
|
22
|
+
* @example "Magni deserunt."
|
|
23
23
|
*/
|
|
24
24
|
provider?: string;
|
|
25
25
|
/**
|
|
@@ -35,7 +35,7 @@ export interface GitMetadata {
|
|
|
35
35
|
repositoryHttp?: string;
|
|
36
36
|
/**
|
|
37
37
|
* Git Repository Path
|
|
38
|
-
* @example ["
|
|
38
|
+
* @example ["Ut quo.","Nam doloribus suscipit voluptate occaecati nulla pariatur.","Voluptatibus a omnis.","Nobis quis sit pariatur inventore."]
|
|
39
39
|
*/
|
|
40
40
|
repositoryPath?: string[];
|
|
41
41
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { HistoricalIssueCounts } from '../schemas/HistoricalIssueCounts';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"counts":[{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}}]}
|
|
3
|
+
* @example {"counts":[{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface HistoricalCounts {
|
|
6
6
|
/**
|
|
7
7
|
* Counts of active issues on baselines for each of the past several days
|
|
8
|
-
* @example [{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}}
|
|
8
|
+
* @example [{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}}]
|
|
9
9
|
*/
|
|
10
10
|
counts: HistoricalIssueCounts[];
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","userEmail":"user@gmail.com","userId":"
|
|
2
|
+
* @example {"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","userEmail":"user@gmail.com","userId":"Doloremque voluptatem quis.","userName":"firstname lastname","variantName":"Expedita at dignissimos."}
|
|
3
3
|
*/
|
|
4
4
|
export interface ImpactedTarget {
|
|
5
5
|
/**
|
|
@@ -56,7 +56,7 @@ export interface ImpactedTarget {
|
|
|
56
56
|
userEmail?: string;
|
|
57
57
|
/**
|
|
58
58
|
* The user id associated with the last scan run
|
|
59
|
-
* @example "
|
|
59
|
+
* @example "Asperiores eum ratione ullam iusto nobis."
|
|
60
60
|
*/
|
|
61
61
|
userId?: string;
|
|
62
62
|
/**
|
|
@@ -66,7 +66,7 @@ export interface ImpactedTarget {
|
|
|
66
66
|
userName?: string;
|
|
67
67
|
/**
|
|
68
68
|
* Variant name
|
|
69
|
-
* @example "
|
|
69
|
+
* @example "Corrupti explicabo omnis."
|
|
70
70
|
*/
|
|
71
71
|
variantName: string;
|
|
72
72
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"Active","userEmail":"user@gmail.com","userId":"Saepe eos quam exercitationem.","userName":"firstname lastname","variantName":"Vel quasi aut impedit eius."}
|
|
3
|
+
*/
|
|
4
|
+
export interface ImpactedTargetV2 {
|
|
5
|
+
/**
|
|
6
|
+
* Harness Execution ID
|
|
7
|
+
* @example "abcdef1234567890ghijkl"
|
|
8
|
+
*/
|
|
9
|
+
executionId: string;
|
|
10
|
+
/**
|
|
11
|
+
* ID of Security Test Exemption
|
|
12
|
+
* @example "abcdef1234567890ghijkl"
|
|
13
|
+
*/
|
|
14
|
+
exemptionId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Status of project scoped exemption for this issue
|
|
17
|
+
* @example "Pending"
|
|
18
|
+
*/
|
|
19
|
+
exemptionStatus?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The ID of the impacted target
|
|
22
|
+
* @example "target1111111111111111"
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Timestamp of the last detection of this issue
|
|
27
|
+
* @format int64
|
|
28
|
+
* @example 1634836529
|
|
29
|
+
*/
|
|
30
|
+
lastDetected: number;
|
|
31
|
+
/**
|
|
32
|
+
* The name of the impacted target
|
|
33
|
+
* @example "The Target Name"
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates the number of Occurrences on the Issue
|
|
38
|
+
* @format int64
|
|
39
|
+
* @example 10
|
|
40
|
+
*/
|
|
41
|
+
numOccurrences: number;
|
|
42
|
+
/**
|
|
43
|
+
* Harness Pipeline ID
|
|
44
|
+
* @example "example_pipeline"
|
|
45
|
+
*/
|
|
46
|
+
pipelineId: string;
|
|
47
|
+
/**
|
|
48
|
+
* Reachability status of the issue for this target. 'reachable' if any occurrence is reachable, 'unreachable' if all are unreachable.
|
|
49
|
+
* @example "reachable"
|
|
50
|
+
*/
|
|
51
|
+
reachability?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Issue Status
|
|
54
|
+
* @example "Remediated"
|
|
55
|
+
*/
|
|
56
|
+
status: 'Active' | 'Exempted' | 'Remediated';
|
|
57
|
+
/**
|
|
58
|
+
* The email associated with the user id
|
|
59
|
+
* @example "user@gmail.com"
|
|
60
|
+
*/
|
|
61
|
+
userEmail?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The user id associated with the last scan run
|
|
64
|
+
* @example "Enim veritatis qui ea quis."
|
|
65
|
+
*/
|
|
66
|
+
userId?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The user name associated with the user id
|
|
69
|
+
* @example "firstname lastname"
|
|
70
|
+
*/
|
|
71
|
+
userName?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Variant name
|
|
74
|
+
* @example "Voluptates amet."
|
|
75
|
+
*/
|
|
76
|
+
variantName: string;
|
|
77
|
+
}
|