@harnessio/react-sto-core-client 0.3.3 → 0.3.5

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 (173) hide show
  1. package/dist/sto-core/src/services/hooks/useExemptionsApproveExemptionMutation.d.ts +54 -0
  2. package/dist/sto-core/src/services/hooks/useExemptionsApproveExemptionMutation.js +14 -0
  3. package/dist/sto-core/src/services/hooks/useExemptionsCreateExemptionMutation.d.ts +42 -0
  4. package/dist/sto-core/src/services/hooks/useExemptionsCreateExemptionMutation.js +14 -0
  5. package/dist/sto-core/src/services/hooks/useExemptionsDeleteExemptionMutation.d.ts +38 -0
  6. package/dist/sto-core/src/services/hooks/useExemptionsDeleteExemptionMutation.js +14 -0
  7. package/dist/sto-core/src/services/hooks/useExemptionsListExemptionsQuery.d.ts +53 -0
  8. package/dist/sto-core/src/services/hooks/useExemptionsListExemptionsQuery.js +14 -0
  9. package/dist/sto-core/src/services/hooks/useExemptionsPromoteExemptionMutation.d.ts +49 -0
  10. package/dist/sto-core/src/services/hooks/useExemptionsPromoteExemptionMutation.js +14 -0
  11. package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.d.ts +49 -0
  12. package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.js +14 -0
  13. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesDetailsQuery.d.ts +61 -0
  14. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesDetailsQuery.js +14 -0
  15. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesFiltersQuery.d.ts +32 -0
  16. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesFiltersQuery.js +14 -0
  17. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesListQuery.d.ts +78 -0
  18. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesListQuery.js +14 -0
  19. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesOccurrenceDetailsQuery.d.ts +62 -0
  20. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesOccurrenceDetailsQuery.js +14 -0
  21. package/dist/sto-core/src/services/hooks/useFrontendExpiringExemptionsQuery.d.ts +46 -0
  22. package/dist/sto-core/src/services/hooks/useFrontendExpiringExemptionsQuery.js +14 -0
  23. package/dist/sto-core/src/services/hooks/useFrontendGlobalExemptionsQuery.d.ts +61 -0
  24. package/dist/sto-core/src/services/hooks/useFrontendGlobalExemptionsQuery.js +14 -0
  25. package/dist/sto-core/src/services/hooks/useFrontendIssueSeverityChangeQuery.d.ts +49 -0
  26. package/dist/sto-core/src/services/hooks/useFrontendIssueSeverityChangeQuery.js +14 -0
  27. package/dist/sto-core/src/services/hooks/useFrontendOverviewBaselinesQuery.d.ts +32 -0
  28. package/dist/sto-core/src/services/hooks/useFrontendOverviewBaselinesQuery.js +14 -0
  29. package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.d.ts +39 -0
  30. package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.js +14 -0
  31. package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesQuery.d.ts +106 -0
  32. package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesQuery.js +14 -0
  33. package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityStepsQuery.d.ts +37 -0
  34. package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityStepsQuery.js +14 -0
  35. package/dist/sto-core/src/services/hooks/useFrontendSecurityReviewQuery.d.ts +56 -0
  36. package/dist/sto-core/src/services/hooks/useFrontendSecurityReviewQuery.js +14 -0
  37. package/dist/sto-core/src/services/hooks/useFrontendTestTargetsQuery.d.ts +55 -0
  38. package/dist/sto-core/src/services/hooks/useFrontendTestTargetsQuery.js +14 -0
  39. package/dist/sto-core/src/services/hooks/useIssuesFindIssueByIdQuery.d.ts +51 -0
  40. package/dist/sto-core/src/services/hooks/useIssuesFindIssueByIdQuery.js +14 -0
  41. package/dist/sto-core/src/services/hooks/useIssuesIssuesAugmentRemediationMutation.d.ts +49 -0
  42. package/dist/sto-core/src/services/hooks/useIssuesIssuesAugmentRemediationMutation.js +14 -0
  43. package/dist/sto-core/src/services/hooks/usePullRequestsCreatePullRequestMutation.d.ts +54 -0
  44. package/dist/sto-core/src/services/hooks/usePullRequestsCreatePullRequestMutation.js +14 -0
  45. package/dist/sto-core/src/services/hooks/usePullRequestsGetPullRequestCorrelationQuery.d.ts +60 -0
  46. package/dist/sto-core/src/services/hooks/usePullRequestsGetPullRequestCorrelationQuery.js +14 -0
  47. package/dist/sto-core/src/services/hooks/usePullRequestsUpdatePullRequestMutation.d.ts +54 -0
  48. package/dist/sto-core/src/services/hooks/usePullRequestsUpdatePullRequestMutation.js +14 -0
  49. package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.d.ts +75 -0
  50. package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.js +14 -0
  51. package/dist/sto-core/src/services/hooks/useTargetsPatchTargetMutation.d.ts +49 -0
  52. package/dist/sto-core/src/services/hooks/useTargetsPatchTargetMutation.js +14 -0
  53. package/dist/sto-core/src/services/index.d.ts +111 -0
  54. package/dist/sto-core/src/services/index.js +26 -0
  55. package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +67 -0
  56. package/dist/sto-core/src/services/schemas/AllIssueSummary.js +4 -0
  57. package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +62 -0
  58. package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.js +1 -0
  59. package/dist/sto-core/src/services/schemas/AllIssuesFiltersResult.d.ts +10 -0
  60. package/dist/sto-core/src/services/schemas/AllIssuesFiltersResult.js +1 -0
  61. package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +13 -0
  62. package/dist/sto-core/src/services/schemas/AllIssuesListResult.js +1 -0
  63. package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +60 -0
  64. package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.js +1 -0
  65. package/dist/sto-core/src/services/schemas/ApproveExemptionRequestBody.d.ts +10 -0
  66. package/dist/sto-core/src/services/schemas/ApproveExemptionRequestBody.js +4 -0
  67. package/dist/sto-core/src/services/schemas/AugmentRemediationMetadata.d.ts +10 -0
  68. package/dist/sto-core/src/services/schemas/AugmentRemediationMetadata.js +1 -0
  69. package/dist/sto-core/src/services/schemas/AugmentRemediationResult.d.ts +19 -0
  70. package/dist/sto-core/src/services/schemas/AugmentRemediationResult.js +1 -0
  71. package/dist/sto-core/src/services/schemas/AugmentRemediationWarning.d.ts +13 -0
  72. package/dist/sto-core/src/services/schemas/AugmentRemediationWarning.js +4 -0
  73. package/dist/sto-core/src/services/schemas/BaselineExecutions.d.ts +10 -0
  74. package/dist/sto-core/src/services/schemas/BaselineExecutions.js +4 -0
  75. package/dist/sto-core/src/services/schemas/CreateExemptionRequestBody.d.ts +68 -0
  76. package/dist/sto-core/src/services/schemas/CreateExemptionRequestBody.js +1 -0
  77. package/dist/sto-core/src/services/schemas/CreatePullRequestRequestBody.d.ts +58 -0
  78. package/dist/sto-core/src/services/schemas/CreatePullRequestRequestBody.js +4 -0
  79. package/dist/sto-core/src/services/schemas/ExemptionsCreateExemptionResponseBody.d.ts +2 -0
  80. package/dist/sto-core/src/services/schemas/ExemptionsCreateExemptionResponseBody.js +1 -0
  81. package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +12 -0
  82. package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.js +1 -0
  83. package/dist/sto-core/src/services/schemas/FrontendAllIssuesDetailsResponseBody.d.ts +2 -0
  84. package/dist/sto-core/src/services/schemas/FrontendAllIssuesDetailsResponseBody.js +1 -0
  85. package/dist/sto-core/src/services/schemas/FrontendAllIssuesFiltersResponseBody.d.ts +2 -0
  86. package/dist/sto-core/src/services/schemas/FrontendAllIssuesFiltersResponseBody.js +1 -0
  87. package/dist/sto-core/src/services/schemas/FrontendAllIssuesListResponseBody.d.ts +2 -0
  88. package/dist/sto-core/src/services/schemas/FrontendAllIssuesListResponseBody.js +1 -0
  89. package/dist/sto-core/src/services/schemas/FrontendAllIssuesOccurrenceDetailsResponseBody.d.ts +2 -0
  90. package/dist/sto-core/src/services/schemas/FrontendAllIssuesOccurrenceDetailsResponseBody.js +1 -0
  91. package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +132 -0
  92. package/dist/sto-core/src/services/schemas/FrontendExemption.js +1 -0
  93. package/dist/sto-core/src/services/schemas/FrontendExemptionCounts.d.ts +33 -0
  94. package/dist/sto-core/src/services/schemas/FrontendExemptionCounts.js +4 -0
  95. package/dist/sto-core/src/services/schemas/FrontendExpiringExemptionsResponseBody.d.ts +2 -0
  96. package/dist/sto-core/src/services/schemas/FrontendExpiringExemptionsResponseBody.js +1 -0
  97. package/dist/sto-core/src/services/schemas/FrontendIssueCounts.d.ts +47 -0
  98. package/dist/sto-core/src/services/schemas/FrontendIssueCounts.js +4 -0
  99. package/dist/sto-core/src/services/schemas/FrontendIssueSeverityChangeResponseBody.d.ts +2 -0
  100. package/dist/sto-core/src/services/schemas/FrontendIssueSeverityChangeResponseBody.js +1 -0
  101. package/dist/sto-core/src/services/schemas/FrontendOverviewBaselinesResponseBody.d.ts +2 -0
  102. package/dist/sto-core/src/services/schemas/FrontendOverviewBaselinesResponseBody.js +1 -0
  103. package/dist/sto-core/src/services/schemas/FrontendOverviewHistoricalCountsResponseBody.d.ts +2 -0
  104. package/dist/sto-core/src/services/schemas/FrontendOverviewHistoricalCountsResponseBody.js +1 -0
  105. package/dist/sto-core/src/services/schemas/FrontendPipelineSecurityIssuesResponseBody.d.ts +2 -0
  106. package/dist/sto-core/src/services/schemas/FrontendPipelineSecurityIssuesResponseBody.js +1 -0
  107. package/dist/sto-core/src/services/schemas/FrontendPipelineSecurityStepsResponseBody.d.ts +2 -0
  108. package/dist/sto-core/src/services/schemas/FrontendPipelineSecurityStepsResponseBody.js +1 -0
  109. package/dist/sto-core/src/services/schemas/FrontendSecurityReviewResponseBody.d.ts +2 -0
  110. package/dist/sto-core/src/services/schemas/FrontendSecurityReviewResponseBody.js +1 -0
  111. package/dist/sto-core/src/services/schemas/FrontendTestTargetsResponseBody.d.ts +2 -0
  112. package/dist/sto-core/src/services/schemas/FrontendTestTargetsResponseBody.js +1 -0
  113. package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +11 -0
  114. package/dist/sto-core/src/services/schemas/HistoricalCounts.js +1 -0
  115. package/dist/sto-core/src/services/schemas/HistoricalIssueCounts.d.ts +18 -0
  116. package/dist/sto-core/src/services/schemas/HistoricalIssueCounts.js +1 -0
  117. package/dist/sto-core/src/services/schemas/IdResult.d.ts +10 -0
  118. package/dist/sto-core/src/services/schemas/IdResult.js +4 -0
  119. package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +47 -0
  120. package/dist/sto-core/src/services/schemas/ImpactedTarget.js +4 -0
  121. package/dist/sto-core/src/services/schemas/Issue.d.ts +140 -0
  122. package/dist/sto-core/src/services/schemas/Issue.js +4 -0
  123. package/dist/sto-core/src/services/schemas/IssueSeverityChangeResult.d.ts +15 -0
  124. package/dist/sto-core/src/services/schemas/IssueSeverityChangeResult.js +4 -0
  125. package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +12 -0
  126. package/dist/sto-core/src/services/schemas/IssueSummaries.js +1 -0
  127. package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +94 -0
  128. package/dist/sto-core/src/services/schemas/IssueSummary.js +4 -0
  129. package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +28 -0
  130. package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.js +4 -0
  131. package/dist/sto-core/src/services/schemas/IssuesIssuesAugmentRemediationResponseBody.d.ts +2 -0
  132. package/dist/sto-core/src/services/schemas/IssuesIssuesAugmentRemediationResponseBody.js +1 -0
  133. package/dist/sto-core/src/services/schemas/LatestBaselineScanInfo.d.ts +30 -0
  134. package/dist/sto-core/src/services/schemas/LatestBaselineScanInfo.js +4 -0
  135. package/dist/sto-core/src/services/schemas/MinimalIssueCounts.d.ts +42 -0
  136. package/dist/sto-core/src/services/schemas/MinimalIssueCounts.js +4 -0
  137. package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +13 -0
  138. package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.js +1 -0
  139. package/dist/sto-core/src/services/schemas/PatchTargetRequestBody.d.ts +35 -0
  140. package/dist/sto-core/src/services/schemas/PatchTargetRequestBody.js +4 -0
  141. package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +39 -0
  142. package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.js +1 -0
  143. package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +16 -0
  144. package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.js +1 -0
  145. package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +10 -0
  146. package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.js +1 -0
  147. package/dist/sto-core/src/services/schemas/PromoteExemptionRequestBody.d.ts +20 -0
  148. package/dist/sto-core/src/services/schemas/PromoteExemptionRequestBody.js +4 -0
  149. package/dist/sto-core/src/services/schemas/PullRequestCorrelationResult.d.ts +10 -0
  150. package/dist/sto-core/src/services/schemas/PullRequestCorrelationResult.js +4 -0
  151. package/dist/sto-core/src/services/schemas/PullRequestResult.d.ts +21 -0
  152. package/dist/sto-core/src/services/schemas/PullRequestResult.js +4 -0
  153. package/dist/sto-core/src/services/schemas/PullRequestsGetPullRequestCorrelationResponseBody.d.ts +2 -0
  154. package/dist/sto-core/src/services/schemas/PullRequestsGetPullRequestCorrelationResponseBody.js +1 -0
  155. package/dist/sto-core/src/services/schemas/RefIds.d.ts +13 -0
  156. package/dist/sto-core/src/services/schemas/RefIds.js +4 -0
  157. package/dist/sto-core/src/services/schemas/SecurityReviewResult.d.ts +16 -0
  158. package/dist/sto-core/src/services/schemas/SecurityReviewResult.js +1 -0
  159. package/dist/sto-core/src/services/schemas/StageStepId.d.ts +13 -0
  160. package/dist/sto-core/src/services/schemas/StageStepId.js +4 -0
  161. package/dist/sto-core/src/services/schemas/StepInfo.d.ts +54 -0
  162. package/dist/sto-core/src/services/schemas/StepInfo.js +4 -0
  163. package/dist/sto-core/src/services/schemas/TestTarget.d.ts +48 -0
  164. package/dist/sto-core/src/services/schemas/TestTarget.js +1 -0
  165. package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +14 -0
  166. package/dist/sto-core/src/services/schemas/TestTargetResult.js +1 -0
  167. package/dist/sto-core/src/services/schemas/TestTargetVariant.d.ts +16 -0
  168. package/dist/sto-core/src/services/schemas/TestTargetVariant.js +4 -0
  169. package/dist/sto-core/src/services/schemas/UpdateExemptionRequestBody.d.ts +43 -0
  170. package/dist/sto-core/src/services/schemas/UpdateExemptionRequestBody.js +1 -0
  171. package/dist/sto-core/src/services/schemas/UpdatePullRequestRequestBody.d.ts +55 -0
  172. package/dist/sto-core/src/services/schemas/UpdatePullRequestRequestBody.js +4 -0
  173. package/package.json +1 -1
@@ -0,0 +1,140 @@
1
+ /**
2
+ * Information about a Security Issue
3
+ * @example {"baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Rejected","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","harnessAugmentation":{"Ea ab quis facilis accusantium blanditiis.":"Sequi eaque cupiditate quia praesentium.","Nam provident laborum veniam est aperiam.":"Quis dolor est rem dolor qui."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}
4
+ */
5
+ export interface Issue {
6
+ /**
7
+ * The Baseline Target Variant related to this Security Issue
8
+ * @example "abcdef1234567890ghijkl"
9
+ */
10
+ baselineVariantId?: string;
11
+ /**
12
+ * Unix timestamp at which the resource was created
13
+ * @format int64
14
+ * @example 1651578240
15
+ */
16
+ created: number;
17
+ /**
18
+ * Current status of the Exemption
19
+ * @example "Expired"
20
+ */
21
+ currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
22
+ /**
23
+ * Issue details common to all occurrences
24
+ * @example {"package":"json-schema","version":"v0.2.3"}
25
+ */
26
+ details: {
27
+ [key: string]: any;
28
+ };
29
+ /**
30
+ * Indicates if the Security Issue was found to be Exempted, Partially Exempted.
31
+ * @example "Partially Exempted"
32
+ */
33
+ exemptionCoverage?: string;
34
+ /**
35
+ * ID of the associated Exemption
36
+ * @example "abcdef1234567890ghijkl"
37
+ */
38
+ exemptionId?: string;
39
+ /**
40
+ * Exemption's status at the Security Scan created time
41
+ * @example "Expired"
42
+ */
43
+ exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
44
+ /**
45
+ * Harness Augmentation details
46
+ * @example {"Et occaecati nemo.":"Minus ullam eos iste consequatur.","Id quas.":"Tenetur eum magnam est."}
47
+ */
48
+ harnessAugmentation?: {
49
+ [key: string]: any;
50
+ };
51
+ /**
52
+ * Resource identifier
53
+ * @example "abcdef1234567890ghijkl"
54
+ */
55
+ id: string;
56
+ /**
57
+ * Compression/deduplication key
58
+ * @example "json-schema@0.2.3"
59
+ */
60
+ key: string;
61
+ /**
62
+ * Indicates the number of Occurrences on the Issue
63
+ * @format int32
64
+ * @example 10
65
+ */
66
+ numOccurrences?: number;
67
+ /**
68
+ * @format int64
69
+ * @example 12345
70
+ */
71
+ occurrenceId?: number;
72
+ /**
73
+ * Array of details unique to each occurrence
74
+ * @example [{"line":"42"},{"line":"666"}]
75
+ */
76
+ occurrences?: Array<{
77
+ [key: string]: any;
78
+ }>;
79
+ /**
80
+ * The scan tool that identified this Security Issue
81
+ * @example "product1234567890abcde"
82
+ */
83
+ productId: string;
84
+ /**
85
+ * Numeric severity, from 0 (lowest) to 10 (highest)
86
+ * @format float
87
+ * @example 8.5
88
+ */
89
+ severity: number;
90
+ /**
91
+ * Severity code
92
+ * @example "High"
93
+ */
94
+ severityCode: 'Critical' | 'High' | 'Info' | 'Low' | 'Medium' | 'Unassigned';
95
+ /**
96
+ * Indicates if the Security Issue was found to be remediated, ignored, etc.
97
+ * @example "Remediated"
98
+ */
99
+ status?: 'Acceptable Risk' | 'Acceptable Use' | 'Compensating Controls' | 'Exempted' | 'False Positive' | 'Fix Unavailable' | 'Remediated';
100
+ /**
101
+ * The subproduct that identified this Security Issue
102
+ * @example "product"
103
+ */
104
+ subproduct?: string;
105
+ /**
106
+ * The Target that this Security Issue affects
107
+ * @example "abcdef1234567890ghijkl"
108
+ */
109
+ targetId?: string;
110
+ /**
111
+ * The Name of the Target that this Security Issue affects
112
+ * @example "abcdef1234567890ghijkl"
113
+ */
114
+ targetName?: string;
115
+ /**
116
+ * The type of the Target that this Security Issue affects
117
+ * @example "repository"
118
+ */
119
+ targetType?: 'configuration' | 'container' | 'instance' | 'repository';
120
+ /**
121
+ * The Target Variant that this Security Issue affects
122
+ * @example "abcdef1234567890ghijkl"
123
+ */
124
+ targetVariantId?: string;
125
+ /**
126
+ * Name of the associated Target and Variant
127
+ * @example "nodegoat:master"
128
+ */
129
+ targetVariantName?: string;
130
+ /**
131
+ * Title of the Security Issue
132
+ * @example "json-schema@0.2.3 is vulnerable to Prototype Pollution"
133
+ */
134
+ title: string;
135
+ /**
136
+ * The type of vulnerability or quality issue for this Issue
137
+ * @example "SAST"
138
+ */
139
+ type?: 'BUG_SMELLS' | 'CODE_COVERAGE' | 'CODE_SMELLS' | 'DAST' | 'EXTERNAL_POLICY' | 'IAC' | 'MISCONFIG' | 'SAST' | 'SCA' | 'SECRET';
140
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @example {"currentSeverityCode":"High","newSeverityCode":"Medium"}
3
+ */
4
+ export interface IssueSeverityChangeResult {
5
+ /**
6
+ * Current severity code of the issue
7
+ * @example "High"
8
+ */
9
+ currentSeverityCode: 'Critical' | 'High' | 'Info' | 'Low' | 'Medium' | 'Unassigned';
10
+ /**
11
+ * New severity code of the issue
12
+ * @example "Medium"
13
+ */
14
+ newSeverityCode: 'Critical' | 'High' | 'Info' | 'Low' | 'Medium' | 'Unassigned';
15
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { IssueSummary } from '../schemas/IssueSummary';
2
+ /**
3
+ * List of issue summaries
4
+ * @example {"issues":[{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}]}
5
+ */
6
+ export interface IssueSummaries {
7
+ /**
8
+ * Short summary of an Issue
9
+ * @example [{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}]
10
+ */
11
+ issues: IssueSummary[];
12
+ }
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Short summary of an Issue
3
+ * @example {"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":510441610290248450,"numOccurrences":2506609549796740600,"numRemediatedOccurrences":8648993288355202000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}
4
+ */
5
+ export interface IssueSummary {
6
+ /**
7
+ * Current status of the Exemption
8
+ * @example "Rejected"
9
+ */
10
+ currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
11
+ /**
12
+ * Indicates if the Security Issue was found to be Exempted, Partially Exempted.
13
+ * @example "Partially Exempted"
14
+ */
15
+ exemptionCoverage?: string;
16
+ /**
17
+ * ID of the associated Exemption
18
+ * @example "abcdef1234567890ghijkl"
19
+ */
20
+ exemptionId?: string;
21
+ /**
22
+ * Exemption's status at the Security Scan created time
23
+ * @example "Pending"
24
+ */
25
+ exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
26
+ /**
27
+ * Resource identifier
28
+ * @example "abcdef1234567890ghijkl"
29
+ */
30
+ id: string;
31
+ /**
32
+ * Compression/deduplication key
33
+ * @example "json-schema@0.2.3"
34
+ */
35
+ key: string;
36
+ /**
37
+ * @format int64
38
+ * @example 2924611843635244500
39
+ */
40
+ numNewOccurrences?: number;
41
+ /**
42
+ * @format int64
43
+ * @example 54511519078764640
44
+ */
45
+ numOccurrences?: number;
46
+ /**
47
+ * @format int64
48
+ * @example 9022332400783716000
49
+ */
50
+ numRemediatedOccurrences?: number;
51
+ /**
52
+ * Indicates the issue has been overridden
53
+ * @example {"originalSeverity":"medium","reason":"snyk"}
54
+ */
55
+ override?: {
56
+ [key: string]: any;
57
+ };
58
+ /**
59
+ * The ID of the Scan that detected this Security Issue
60
+ * @example "scan111111111111111111"
61
+ */
62
+ scanId: string;
63
+ /**
64
+ * Numeric severity, from 0 (lowest) to 10 (highest)
65
+ * @format float
66
+ * @example 8.5
67
+ */
68
+ severity: number;
69
+ /**
70
+ * Severity code
71
+ * @example "High"
72
+ */
73
+ severityCode: 'Critical' | 'High' | 'Info' | 'Low' | 'Medium' | 'Unassigned';
74
+ /**
75
+ * Indicates if the Security Issue was found to be remediated, ignored, etc.
76
+ * @example "Remediated"
77
+ */
78
+ status?: 'Acceptable Risk' | 'Acceptable Use' | 'Compensating Controls' | 'Exempted' | 'False Positive' | 'Fix Unavailable' | 'Remediated';
79
+ /**
80
+ * Name of the associated Target and Variant
81
+ * @example "nodegoat:master"
82
+ */
83
+ targetVariantName?: string;
84
+ /**
85
+ * Title of the Security Issue
86
+ * @example "json-schema@0.2.3 is vulnerable to Prototype Pollution"
87
+ */
88
+ title: string;
89
+ /**
90
+ * The type of vulnerability or quality issue for this Issue
91
+ * @example "SAST"
92
+ */
93
+ type?: 'BUG_SMELLS' | 'CODE_COVERAGE' | 'CODE_SMELLS' | 'DAST' | 'EXTERNAL_POLICY' | 'IAC' | 'MISCONFIG' | 'SAST' | 'SCA' | 'SECRET';
94
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @example {"connectorId":"Voluptatem optio sint ipsa et facere et.","occurrenceId":12345,"referenceId":"CWE-123","scanId":"abcdefghijkl1234567890","userSnippet":"func example() int {\n return 0\n}"}
3
+ */
4
+ export interface IssuesAugmentRemediationRequestBody {
5
+ /**
6
+ * @example "Impedit debitis quam dolores."
7
+ */
8
+ connectorId?: string;
9
+ /**
10
+ * @format int64
11
+ * @example 12345
12
+ */
13
+ occurrenceId: number;
14
+ /**
15
+ * @example "CWE-123"
16
+ */
17
+ referenceId?: string;
18
+ /**
19
+ * The Scan ID to use as context for the Security Issue to augment
20
+ * @example "abcdefghijkl1234567890"
21
+ */
22
+ scanId: string;
23
+ /**
24
+ * The user-supplied code snippet
25
+ * @example "func example() int {\n return 0\n}"
26
+ */
27
+ userSnippet?: string;
28
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { AugmentRemediationResult } from '../schemas/AugmentRemediationResult';
2
+ export type IssuesIssuesAugmentRemediationResponseBody = AugmentRemediationResult;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Information about a the latest scan of a targets baseline variant
3
+ * @example {"pipelineId":"pipeline_1","scanTool":"owasp","targetId":"abcdef1234567890ghijkl","targetName":"The Target","targetType":"repository"}
4
+ */
5
+ export interface LatestBaselineScanInfo {
6
+ /**
7
+ * ID of the Harness pipeline to which this Exemption applies
8
+ * @example "pipeline_1"
9
+ */
10
+ pipelineId: string;
11
+ /**
12
+ * Product name of the scan tool used in this step
13
+ * @example "owasp"
14
+ */
15
+ scanTool: string;
16
+ /**
17
+ * Associated Target ID
18
+ * @example "abcdef1234567890ghijkl"
19
+ */
20
+ targetId: string;
21
+ /**
22
+ * The name of the target of the pipeline step's scan
23
+ * @example "The Target"
24
+ */
25
+ targetName: string;
26
+ /**
27
+ * @example "repository"
28
+ */
29
+ targetType: 'configuration' | 'container' | 'instance' | 'repository';
30
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,42 @@
1
+ /**
2
+ * The count of Security Issues, by severity code, for a given Harness Pipeline Execution
3
+ * @example {"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}
4
+ */
5
+ export interface MinimalIssueCounts {
6
+ /**
7
+ * The number of Critical-severity Issues
8
+ * @format int32
9
+ * @example 1
10
+ */
11
+ critical: number;
12
+ /**
13
+ * The number of High-severity Issues
14
+ * @format int32
15
+ * @example 3
16
+ */
17
+ high: number;
18
+ /**
19
+ * The number of Issues ignored due to Exemptions, and therefore not included in other counts
20
+ * @format int32
21
+ * @example 1
22
+ */
23
+ ignored?: number;
24
+ /**
25
+ * The number of Informational Issues
26
+ * @format int32
27
+ * @example 11
28
+ */
29
+ info: number;
30
+ /**
31
+ * The number of Low-severity Issues
32
+ * @format int32
33
+ * @example 39
34
+ */
35
+ low: number;
36
+ /**
37
+ * The number of Medium-severity Issues
38
+ * @format int32
39
+ * @example 17
40
+ */
41
+ medium: number;
42
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { IssueSummary } from '../schemas/IssueSummary';
2
+ import type { Pagination } from '../schemas/Pagination';
3
+ /**
4
+ * @example {"issues":[{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
5
+ */
6
+ export interface PaginatedIssueSummaries {
7
+ /**
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":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}]
10
+ */
11
+ issues: IssueSummary[];
12
+ pagination: Pagination;
13
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @example {"baselineRegEx":"release_.*","baselineVariantId":"abcdef1234567890ghijkl","directory":"app/src","name":"NodeGoat","type":"repository","url":"https://github.com/example/repo"}
3
+ */
4
+ export interface PatchTargetRequestBody {
5
+ /**
6
+ * RegEx to match for dynamically selecting the Baseline for this Scan Target. Must be compatible with the RE2 standard.
7
+ * @example "release_.*"
8
+ */
9
+ baselineRegEx?: string;
10
+ /**
11
+ * ID of baseline Target Variant for Issue comparison
12
+ * @example "abcdef1234567890ghijkl"
13
+ */
14
+ baselineVariantId?: string;
15
+ /**
16
+ * Directory within the Test Target to be scanned
17
+ * @example "app/src"
18
+ */
19
+ directory?: string;
20
+ /**
21
+ * Name of the Test Target
22
+ * @example "NodeGoat"
23
+ */
24
+ name?: string;
25
+ /**
26
+ * Test Target's type
27
+ * @example "repository"
28
+ */
29
+ type?: 'configuration' | 'container' | 'instance' | 'repository';
30
+ /**
31
+ * URL used to access the Test Target
32
+ * @example "https://github.com/example/repo"
33
+ */
34
+ url?: string;
35
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,39 @@
1
+ import type { FrontendIssueCounts } from '../schemas/FrontendIssueCounts';
2
+ /**
3
+ * @example {"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":2187035288517561900,"totalExempted":1089284801388791000,"totalPartiallyExempted":4538086444197805000,"totalPending":4559053209419841000,"totalRejected":2823743294534111000,"totalRemediated":6322923188873107000}
4
+ */
5
+ export interface PipelineSecurityCounts {
6
+ existing: FrontendIssueCounts;
7
+ new: FrontendIssueCounts;
8
+ remediated: FrontendIssueCounts;
9
+ /**
10
+ * @format int64
11
+ * @example 8544012669320886000
12
+ */
13
+ totalActive: number;
14
+ /**
15
+ * @format int64
16
+ * @example 6566388842686219000
17
+ */
18
+ totalExempted?: number;
19
+ /**
20
+ * @format int64
21
+ * @example 3515843800320812500
22
+ */
23
+ totalPartiallyExempted?: number;
24
+ /**
25
+ * @format int64
26
+ * @example 6909749607313537000
27
+ */
28
+ totalPending?: number;
29
+ /**
30
+ * @format int64
31
+ * @example 2643665952191923700
32
+ */
33
+ totalRejected?: number;
34
+ /**
35
+ * @format int64
36
+ * @example 7258202662046271000
37
+ */
38
+ totalRemediated?: number;
39
+ }
@@ -0,0 +1,16 @@
1
+ import type { PipelineSecurityCounts } from '../schemas/PipelineSecurityCounts';
2
+ import type { PaginatedIssueSummaries } from '../schemas/PaginatedIssueSummaries';
3
+ import type { StageStepId } from '../schemas/StageStepId';
4
+ /**
5
+ * Data needed by the PipelineSecurityView
6
+ * @example {"counts":{"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":3010335676894755000,"totalExempted":1885419293351119600,"totalPartiallyExempted":4718585587866911000,"totalPending":3292110045159569400,"totalRejected":1284804608773279700,"totalRemediated":1823425117988642800},"existing":{"issues":[{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","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"},{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}],"new":{"issues":[{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":2120508977338000000,"numOccurrences":3991226380867742000,"numRemediatedOccurrences":8224674406052809000,"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}}
7
+ */
8
+ export interface PipelineSecurityIssuesResult {
9
+ counts: PipelineSecurityCounts;
10
+ existing: PaginatedIssueSummaries;
11
+ /**
12
+ * @example [{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}]
13
+ */
14
+ matchingSteps: StageStepId[];
15
+ new: PaginatedIssueSummaries;
16
+ }
@@ -0,0 +1,10 @@
1
+ import type { StepInfo } from '../schemas/StepInfo';
2
+ /**
3
+ * @example {"steps":[{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}]}
4
+ */
5
+ export interface PipelineSecurityStepsResult {
6
+ /**
7
+ * @example [{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}]
8
+ */
9
+ steps: StepInfo[];
10
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @example {"approverId":"user111111111111111111","pipelineId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl"}
3
+ */
4
+ export interface PromoteExemptionRequestBody {
5
+ /**
6
+ * User ID the user who approved or rejected this exemptions
7
+ * @example "user111111111111111111"
8
+ */
9
+ approverId: string;
10
+ /**
11
+ * Harness STO pipeline ID
12
+ * @example "abcdef1234567890ghijkl"
13
+ */
14
+ pipelineId?: string;
15
+ /**
16
+ * Harness STO Target ID
17
+ * @example "abcdef1234567890ghijkl"
18
+ */
19
+ targetId?: string;
20
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example {"isCorrelated":true}
3
+ */
4
+ export interface PullRequestCorrelationResult {
5
+ /**
6
+ * True if the path is correlated to the Pull Request
7
+ * @example true
8
+ */
9
+ isCorrelated: boolean;
10
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};