@harnessio/react-sto-core-client 0.3.24 → 0.4.0

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.
Files changed (41) hide show
  1. package/dist/sto-core/src/services/hooks/useExemptionsApproveExemptionMutation.d.ts +1 -1
  2. package/dist/sto-core/src/services/hooks/useExemptionsCreateExemptionMutation.d.ts +1 -1
  3. package/dist/sto-core/src/services/hooks/useExemptionsFindExemptionByIdQuery.d.ts +1 -1
  4. package/dist/sto-core/src/services/hooks/useExemptionsListExemptionsQuery.d.ts +1 -1
  5. package/dist/sto-core/src/services/hooks/useExemptionsPromoteExemptionMutation.d.ts +1 -1
  6. package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.d.ts +1 -1
  7. package/dist/sto-core/src/services/hooks/useFrontendExpiringExemptionsQuery.d.ts +1 -1
  8. package/dist/sto-core/src/services/hooks/useFrontendGlobalExemptionsQuery.d.ts +1 -1
  9. package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.d.ts +1 -1
  10. package/dist/sto-core/src/services/hooks/useIssuesFindIssueByIdQuery.d.ts +1 -1
  11. package/dist/sto-core/src/services/hooks/useIssuesIssuesAugmentRemediationMutation.d.ts +1 -1
  12. package/dist/sto-core/src/services/hooks/usePullRequestsCreatePullRequestMutation.d.ts +2 -2
  13. package/dist/sto-core/src/services/hooks/usePullRequestsGetPullRequestCorrelationQuery.d.ts +2 -2
  14. package/dist/sto-core/src/services/hooks/usePullRequestsUpdatePullRequestMutation.d.ts +2 -2
  15. package/dist/sto-core/src/services/hooks/useScansScanIssueOccurrencesQuery.d.ts +4 -4
  16. package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.d.ts +4 -4
  17. package/dist/sto-core/src/services/hooks/useTargetsFindTargetByIdQuery.d.ts +1 -1
  18. package/dist/sto-core/src/services/hooks/useTargetsPatchTargetMutation.d.ts +1 -1
  19. package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +3 -3
  20. package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +2 -2
  21. package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +7 -7
  22. package/dist/sto-core/src/services/schemas/AugmentRemediationMetadata.d.ts +2 -2
  23. package/dist/sto-core/src/services/schemas/AugmentRemediationResult.d.ts +4 -4
  24. package/dist/sto-core/src/services/schemas/AugmentRemediationWarning.d.ts +3 -3
  25. package/dist/sto-core/src/services/schemas/CreateExemptionRequestBody.d.ts +11 -1
  26. package/dist/sto-core/src/services/schemas/Exemption.d.ts +21 -1
  27. package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +2 -2
  28. package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +21 -1
  29. package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +6 -5
  30. package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +2 -2
  31. package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +12 -2
  32. package/dist/sto-core/src/services/schemas/Issue.d.ts +3 -3
  33. package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +5 -5
  34. package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
  35. package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
  36. package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +2 -2
  37. package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +1 -1
  38. package/dist/sto-core/src/services/schemas/SecurityReviewResult.d.ts +2 -2
  39. package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +2 -2
  40. package/dist/sto-core/src/services/schemas/UpdateExemptionRequestBody.d.ts +11 -1
  41. package/package.json +1 -1
@@ -2,14 +2,24 @@ 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 {"approverId":"user111111111111111111","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","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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterId":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"}
5
+ * @example {"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"user111111111111111111","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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"}
6
6
  */
7
7
  export interface FrontendExemption {
8
+ /**
9
+ * Email of the user who approved this Exemption
10
+ * @example "user@harness.io"
11
+ */
12
+ approverEmail?: string;
8
13
  /**
9
14
  * User ID of the user who approved this Exemption
10
15
  * @example "user111111111111111111"
11
16
  */
12
17
  approverId?: string;
18
+ /**
19
+ * Name of the user who approved this Exemption
20
+ * @example "user111111111111111111"
21
+ */
22
+ approverName?: string;
13
23
  /**
14
24
  * Scopes that the user has permission to approve for this Exemption
15
25
  * @example ["ACCOUNT","ORG","PROJECT","PIPELINE"]
@@ -102,11 +112,21 @@ export interface FrontendExemption {
102
112
  * @example "Upstream bug"
103
113
  */
104
114
  reason: string;
115
+ /**
116
+ * Email of the user who requested this Exemption
117
+ * @example "user@harness.io"
118
+ */
119
+ requesterEmail?: string;
105
120
  /**
106
121
  * User ID of the user who requested this Exemption
107
122
  * @example "user111111111111111111"
108
123
  */
109
124
  requesterId: string;
125
+ /**
126
+ * Name of the user who requested this Exemption
127
+ * @example "user111111111111111111"
128
+ */
129
+ requesterName?: string;
110
130
  /**
111
131
  * The scope of the exemption
112
132
  * @example "PROJECT"
@@ -1,25 +1,26 @@
1
1
  /**
2
2
  * Git Metadata associated with the Scan
3
- * @example {"detectedName":"Aliquam in est possimus non.","detectedVariant":"Ea quia sunt assumenda sit similique.","droneCorrelated":true,"provider":"Aliquid quasi aut occaecati commodi.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Provident voluptatum sit et qui molestias amet.","Quasi ex quia minus quia soluta.","Et eveniet nostrum maiores."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"}
3
+ * @example {"detectedName":"Nostrum magnam magni.","detectedVariant":"Adipisci qui maiores est.","droneCorrelated":true,"provider":"Quia sunt assumenda.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Aliquam in est possimus non.","Eos quidem tenetur itaque quod.","Laudantium ab reiciendis natus.","Inventore et expedita."],"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 "Quo natus."
8
+ * @example "Autem et eveniet nostrum maiores asperiores."
9
9
  */
10
10
  detectedName?: string;
11
11
  /**
12
12
  * Detected Variant
13
- * @example "Placeat excepturi est tempora quis eligendi."
13
+ * @example "Ex quia minus quia."
14
14
  */
15
15
  detectedVariant?: string;
16
16
  /**
17
17
  * Drone Correlated
18
+ * @example true
18
19
  */
19
20
  droneCorrelated?: boolean;
20
21
  /**
21
22
  * Git Provider
22
- * @example "Sunt eos quam cum porro."
23
+ * @example "Assumenda veniam ea voluptatem tenetur nihil."
23
24
  */
24
25
  provider?: string;
25
26
  /**
@@ -35,7 +36,7 @@ export interface GitMetadata {
35
36
  repositoryHttp?: string;
36
37
  /**
37
38
  * Git Repository Path
38
- * @example ["Cupiditate velit ipsum.","Eum est.","Dolor aut quia illo repellendus ducimus.","Assumenda veniam ea voluptatem tenetur nihil."]
39
+ * @example ["Natus atque.","Quasi aut occaecati commodi nihil.","Et provident voluptatum sit et.","Molestias amet odio."]
39
40
  */
40
41
  repositoryPath?: string[];
41
42
  /**
@@ -1,11 +1,11 @@
1
1
  import type { HistoricalIssueCounts } from '../schemas/HistoricalIssueCounts';
2
2
  /**
3
- * @example {"counts":[{"active":false,"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":false,"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":false,"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}}]}
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":false,"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":false,"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":false,"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","userId":"Ut iusto explicabo molestiae.","variantName":"Ex maiores."}
2
+ * @example {"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userEmail":"Mollitia sit ex cumque harum quis.","userId":"Doloribus vel sit.","userName":"Reprehenderit iste.","variantName":"Illum laudantium sed."}
3
3
  */
4
4
  export interface ImpactedTarget {
5
5
  /**
@@ -44,14 +44,24 @@ export interface ImpactedTarget {
44
44
  * @example "example_pipeline"
45
45
  */
46
46
  pipelineId: string;
47
+ /**
48
+ * The email associated with the user id from last scan run
49
+ * @example "Ut iusto explicabo molestiae."
50
+ */
51
+ userEmail?: string;
47
52
  /**
48
53
  * The user id associated with the last scan run
49
54
  * @example "Aperiam assumenda et adipisci sit est est."
50
55
  */
51
56
  userId?: string;
52
57
  /**
53
- * Variant name
58
+ * The user name associated with the user id from last scan run
54
59
  * @example "Voluptas nulla ad illum tempore."
55
60
  */
61
+ userName?: string;
62
+ /**
63
+ * Variant name
64
+ * @example "Ex maiores."
65
+ */
56
66
  variantName: string;
57
67
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Information about a Security Issue
3
- * @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Rejected","details":{"package":"json-schema","version":"v0.2.3"},"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","harnessAugmentation":{"Nisi deserunt.":"Qui consequuntur velit."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"originStatus":"approved","origins":["app","base"],"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}
3
+ * @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Pending","details":{"package":"json-schema","version":"v0.2.3"},"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","harnessAugmentation":{"Et inventore illo illum ipsum quia magni.":"Qui iste labore dignissimos tenetur modi reprehenderit.","Quis nam ipsam at est provident.":"Molestiae eos."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"originStatus":"approved","origins":["app","base"],"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}
4
4
  */
5
5
  export interface Issue {
6
6
  /**
@@ -60,12 +60,12 @@ export interface Issue {
60
60
  exemptionId?: string;
61
61
  /**
62
62
  * Exemption's status at the Security Scan created time
63
- * @example "Rejected"
63
+ * @example "Expired"
64
64
  */
65
65
  exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
66
66
  /**
67
67
  * Harness Augmentation details
68
- * @example {"Enim sint labore modi at.":"Error eum occaecati eum aut quia.","Iure omnis et.":"Nemo quas eos nam molestiae quisquam modi."}
68
+ * @example {"Modi omnis architecto incidunt vitae nulla.":"Explicabo nihil qui inventore soluta eius qui.","Tenetur unde aut qui doloribus sunt.":"Dolor atque."}
69
69
  */
70
70
  harnessAugmentation?: {
71
71
  [key: string]: any;
@@ -1,7 +1,7 @@
1
1
  import type { GitMetadata } from '../schemas/GitMetadata';
2
2
  import type { Pagination } from '../schemas/Pagination';
3
3
  /**
4
- * @example {"baseImageName":"baseImageName","baseImageOrgId":"default","baseImageProjectId":"STO","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Expired","details":{"package":"json-schema","version":"v0.2.3"},"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","gitMetadata":{"detectedName":"Quaerat consequatur illum consequatur ad est porro.","detectedVariant":"Impedit voluptatum non fugiat quam delectus.","droneCorrelated":true,"provider":"Ex sapiente.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Qui sunt doloremque corporis facere aut quasi.","Aut perferendis minima.","Pariatur rem tenetur.","Quod vitae tenetur."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"},"harnessAugmentation":{"Beatae facere maiores maiores.":"Totam aut sit omnis.","Distinctio aut blanditiis debitis.":"Expedita expedita ad dolorem nesciunt.","Fugiat eum eligendi consequatur asperiores ipsam corporis.":"Excepturi temporibus vel odio neque."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","lastBaseImageScanAt":1651578240,"numNonExemptedOccurrences":10,"numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"occurrencesPagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"originStatus":"approved","origins":["app","base"],"pipelineId":"your_harness_pipeline","primaryOccurrenceId":12345,"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}
4
+ * @example {"baseImageName":"baseImageName","baseImageOrgId":"default","baseImageProjectId":"STO","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Approved","details":{"package":"json-schema","version":"v0.2.3"},"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","gitMetadata":{"detectedName":"Quod est et.","detectedVariant":"Voluptatem dignissimos incidunt quibusdam officiis doloremque eos.","droneCorrelated":false,"provider":"Enim praesentium earum maiores.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Consectetur ipsam et ducimus.","Tenetur et qui a exercitationem quo natus.","Non enim quia id sed.","Libero nostrum ut."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"},"harnessAugmentation":{"Illum recusandae modi debitis.":"Rem beatae dolor.","Voluptatum voluptas ut.":"Aspernatur unde dolorum nisi."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","lastBaseImageScanAt":1651578240,"numNonExemptedOccurrences":10,"numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"occurrencesPagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"originStatus":"approved","origins":["app","base"],"pipelineId":"example_pipeline","primaryOccurrenceId":12345,"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}
5
5
  */
6
6
  export interface IssueInScan {
7
7
  /**
@@ -32,7 +32,7 @@ export interface IssueInScan {
32
32
  created: number;
33
33
  /**
34
34
  * Current status of the Exemption
35
- * @example "Approved"
35
+ * @example "Expired"
36
36
  */
37
37
  currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
38
38
  /**
@@ -77,7 +77,7 @@ export interface IssueInScan {
77
77
  gitMetadata?: GitMetadata;
78
78
  /**
79
79
  * Harness Augmentation details
80
- * @example {"Assumenda quibusdam deleniti dolore ut repellat praesentium.":"Id quo."}
80
+ * @example {"Beatae facere maiores maiores.":"Totam aut sit omnis.","Distinctio aut blanditiis debitis.":"Expedita expedita ad dolorem nesciunt.","Fugiat eum eligendi consequatur asperiores ipsam corporis.":"Excepturi temporibus vel odio neque."}
81
81
  */
82
82
  harnessAugmentation?: {
83
83
  [key: string]: any;
@@ -135,8 +135,8 @@ export interface IssueInScan {
135
135
  */
136
136
  origins?: string[];
137
137
  /**
138
- * Harness Organization ID
139
- * @example "your_harness_pipeline"
138
+ * Harness Pipeline ID
139
+ * @example "example_pipeline"
140
140
  */
141
141
  pipelineId?: string;
142
142
  /**
@@ -1,12 +1,12 @@
1
1
  import type { IssueSummary } from '../schemas/IssueSummary';
2
2
  /**
3
3
  * List of issue summaries
4
- * @example {"issues":[{"currentStatus":"Expired","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","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","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","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"}]}
4
+ * @example {"issues":[{"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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
5
  */
6
6
  export interface IssueSummaries {
7
7
  /**
8
8
  * Short summary of an Issue
9
- * @example [{"currentStatus":"Expired","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","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"}]
9
+ * @example [{"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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
  }
@@ -1,9 +1,9 @@
1
1
  /**
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}"}
2
+ * @example {"connectorId":"Voluptatem illo.","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 eaque ipsam."
6
+ * @example "Qui quia officiis."
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":"Expired","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","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","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","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}}
4
+ * @example {"issues":[{"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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":"Expired","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","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","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","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"}]
9
+ * @example [{"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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;
@@ -3,7 +3,7 @@ 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":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","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","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","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","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","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","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}}}
6
+ * @example {"counts":{"activeIssueCount":8118351700684797000,"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":5573055429440194000,"totalApp":7230377491846565000,"totalBase":7321888988188102000,"totalDeduplicationRate":0.7533872,"totalExempted":4813427233882540000,"totalNoLayer":505412228863283700,"totalNumOccurrence":7787001750933949000,"totalPartiallyExempted":8003506715595385000,"totalPending":982006258367386900,"totalRejected":1519204626652216600,"totalRemediated":7163594115465648000},"existing":{"issues":[{"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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;
@@ -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":[{"approverId":"user111111111111111111","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","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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterId":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverId":"user111111111111111111","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","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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterId":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverId":"user111111111111111111","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","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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterId":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverId":"user111111111111111111","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","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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterId":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
6
+ * @example {"counts":{"Approved":150,"Expired":150,"Pending":150,"Rejected":150},"exemptions":[{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"user111111111111111111","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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"user111111111111111111","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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"user111111111111111111","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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"user111111111111111111","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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"user111111111111111111","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 [{"approverId":"user111111111111111111","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","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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterId":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverId":"user111111111111111111","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","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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterId":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverId":"user111111111111111111","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","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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterId":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverId":"user111111111111111111","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","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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterId":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"}]
12
+ * @example [{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"user111111111111111111","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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"user111111111111111111","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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"user111111111111111111","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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"user111111111111111111","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","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1048060960681060400,"numOccurrences":8296927288358581000,"numRemediatedOccurrences":7232480910270412000,"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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"}]
13
13
  */
14
14
  exemptions: FrontendExemption[];
15
15
  pagination: Pagination;
@@ -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"}]},{"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}}
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"},{"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"},{"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"}]},{"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"},{"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"},{"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;
@@ -1,6 +1,6 @@
1
1
  import type { PendingChanges } from '../schemas/PendingChanges';
2
2
  /**
3
- * @example {"expiration":1651578240,"link":"https://example.com/ABC-1234","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","targetId":"abcdef1234567890ghijkl","type":"Other"}
3
+ * @example {"expiration":1651578240,"link":"https://example.com/ABC-1234","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"user111111111111111111","targetId":"abcdef1234567890ghijkl","type":"Other"}
4
4
  */
5
5
  export interface UpdateExemptionRequestBody {
6
6
  /**
@@ -25,11 +25,21 @@ export interface UpdateExemptionRequestBody {
25
25
  * @example "Waiting on upstream bug fix"
26
26
  */
27
27
  reason: string;
28
+ /**
29
+ * Email of user who requested this exemptions
30
+ * @example "user@harness.io"
31
+ */
32
+ requesterEmail?: string;
28
33
  /**
29
34
  * User ID of user who requested this exemptions
30
35
  * @example "user111111111111111111"
31
36
  */
32
37
  requesterId: string;
38
+ /**
39
+ * Name of user who requested this exemptions
40
+ * @example "user111111111111111111"
41
+ */
42
+ requesterName?: string;
33
43
  /**
34
44
  * ID of the Target to which the exemption applies. Cannot be specified alongside "projectId" or "pipelineId".
35
45
  * @example "abcdef1234567890ghijkl"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sto-core-client",
3
- "version": "0.3.24",
3
+ "version": "0.4.0",
4
4
  "description": "Harness STO service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",