@harnessio/react-sto-core-client 0.3.11 → 0.3.13

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 (62) 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 +8 -1
  9. package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.d.ts +1 -1
  10. package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesCsvQuery.d.ts +113 -0
  11. package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesCsvQuery.js +14 -0
  12. package/dist/sto-core/src/services/hooks/useFrontendUpdateTestTargetVariantsMutation.d.ts +42 -0
  13. package/dist/sto-core/src/services/hooks/useFrontendUpdateTestTargetVariantsMutation.js +14 -0
  14. package/dist/sto-core/src/services/hooks/useIssuesFindIssueByIdQuery.d.ts +1 -1
  15. package/dist/sto-core/src/services/hooks/useIssuesIssuesAugmentRemediationMutation.d.ts +1 -1
  16. package/dist/sto-core/src/services/hooks/usePullRequestsCreatePullRequestMutation.d.ts +2 -2
  17. package/dist/sto-core/src/services/hooks/usePullRequestsGetPullRequestCorrelationQuery.d.ts +2 -2
  18. package/dist/sto-core/src/services/hooks/usePullRequestsUpdatePullRequestMutation.d.ts +2 -2
  19. package/dist/sto-core/src/services/hooks/useScansScanIssueOccurrencesQuery.d.ts +5 -5
  20. package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.d.ts +5 -5
  21. package/dist/sto-core/src/services/hooks/useTargetsFindTargetByIdQuery.d.ts +1 -1
  22. package/dist/sto-core/src/services/hooks/useTargetsPatchTargetMutation.d.ts +1 -1
  23. package/dist/sto-core/src/services/index.d.ts +7 -0
  24. package/dist/sto-core/src/services/index.js +2 -0
  25. package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +2 -2
  26. package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +6 -6
  27. package/dist/sto-core/src/services/schemas/AllIssuesFiltersResult.d.ts +1 -1
  28. package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +2 -2
  29. package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +7 -7
  30. package/dist/sto-core/src/services/schemas/AugmentRemediationMetadata.d.ts +2 -2
  31. package/dist/sto-core/src/services/schemas/AugmentRemediationResult.d.ts +4 -4
  32. package/dist/sto-core/src/services/schemas/AugmentRemediationWarning.d.ts +3 -3
  33. package/dist/sto-core/src/services/schemas/BaselineExecutions.d.ts +2 -2
  34. package/dist/sto-core/src/services/schemas/Exemption.d.ts +12 -2
  35. package/dist/sto-core/src/services/schemas/ExemptionImpactedTargetsResult.d.ts +2 -2
  36. package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +2 -2
  37. package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +1 -1
  38. package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +6 -5
  39. package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +2 -2
  40. package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +4 -4
  41. package/dist/sto-core/src/services/schemas/Issue.d.ts +18 -3
  42. package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +18 -3
  43. package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +9 -4
  44. package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
  45. package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +6 -6
  46. package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
  47. package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +2 -2
  48. package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +7 -7
  49. package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +2 -2
  50. package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +2 -2
  51. package/dist/sto-core/src/services/schemas/PullRequestResult.d.ts +3 -3
  52. package/dist/sto-core/src/services/schemas/RefIds.d.ts +3 -3
  53. package/dist/sto-core/src/services/schemas/SecurityReviewResult.d.ts +2 -2
  54. package/dist/sto-core/src/services/schemas/Status.d.ts +10 -0
  55. package/dist/sto-core/src/services/schemas/Status.js +4 -0
  56. package/dist/sto-core/src/services/schemas/TargetVariantStatusInfo.d.ts +15 -0
  57. package/dist/sto-core/src/services/schemas/TargetVariantStatusInfo.js +4 -0
  58. package/dist/sto-core/src/services/schemas/TestTarget.d.ts +2 -2
  59. package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +2 -2
  60. package/dist/sto-core/src/services/schemas/UpdateTestTargetVariantsRequestBody.d.ts +11 -0
  61. package/dist/sto-core/src/services/schemas/UpdateTestTargetVariantsRequestBody.js +1 -0
  62. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import type { IssueSummary } from '../schemas/IssueSummary';
2
2
  /**
3
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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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
+ * @example {"issues":[{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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
5
  */
6
6
  export interface IssueSummaries {
7
7
  /**
8
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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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"}]
9
+ * @example [{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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
10
  */
11
11
  issues: IssueSummary[];
12
12
  }
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * Short summary of an Issue
3
- * @example {"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":7293533708134938000,"numOccurrences":7596871011815837000,"numRemediatedOccurrences":612000219206768500,"originStatus":"approved","origins":["app","base"],"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"}
3
+ * @example {"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":8244446731934175000,"numOccurrences":3695904896771600400,"numRemediatedOccurrences":1265968847371014400,"originStatus":"approved","origins":["app","base"],"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
4
  */
5
5
  export interface IssueSummary {
6
6
  /**
7
7
  * Current status of the Exemption
8
- * @example "Pending"
8
+ * @example "Approved"
9
9
  */
10
10
  currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
11
11
  /**
@@ -20,7 +20,7 @@ export interface IssueSummary {
20
20
  exemptionId?: string;
21
21
  /**
22
22
  * Exemption's status at the Security Scan created time
23
- * @example "Expired"
23
+ * @example "Rejected"
24
24
  */
25
25
  exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
26
26
  /**
@@ -35,17 +35,17 @@ export interface IssueSummary {
35
35
  key: string;
36
36
  /**
37
37
  * @format int64
38
- * @example 7607197514219314000
38
+ * @example 8587952676925200000
39
39
  */
40
40
  numNewOccurrences?: number;
41
41
  /**
42
42
  * @format int64
43
- * @example 6085126860989000000
43
+ * @example 4109001131171339300
44
44
  */
45
45
  numOccurrences?: number;
46
46
  /**
47
47
  * @format int64
48
- * @example 8667845606241881000
48
+ * @example 2910084573369015000
49
49
  */
50
50
  numRemediatedOccurrences?: number;
51
51
  /**
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @example {"connectorId":"Cupiditate modi.","occurrenceId":12345,"referenceId":"CWE-123","scanId":"abcdefghijkl1234567890","userSnippet":"func example() int {\n return 0\n}"}
2
+ * @example {"connectorId":"Voluptates minima adipisci aspernatur inventore.","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 "Iste quos."
6
+ * @example "Ab omnis sed aspernatur."
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":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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}}
4
+ * @example {"issues":[{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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
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":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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"}]
9
+ * @example [{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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
10
  */
11
11
  issues: IssueSummary[];
12
12
  pagination: Pagination;
@@ -1,6 +1,6 @@
1
1
  import type { FrontendIssueCounts } from '../schemas/FrontendIssueCounts';
2
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":6662647114598511000,"totalExempted":5791979623976046000,"totalPartiallyExempted":707951191544887600,"totalPending":5877484981795204000,"totalRejected":7222309139594212000,"totalRemediated":7026416524165377000}
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":3339270424235992600,"totalExempted":3380753203104111600,"totalPartiallyExempted":3582318896054644000,"totalPending":6822175341264865000,"totalRejected":7010777827822289000,"totalRemediated":3605459878789912600}
4
4
  */
5
5
  export interface PipelineSecurityCounts {
6
6
  existing: FrontendIssueCounts;
@@ -8,32 +8,32 @@ export interface PipelineSecurityCounts {
8
8
  remediated: FrontendIssueCounts;
9
9
  /**
10
10
  * @format int64
11
- * @example 7252413801969914000
11
+ * @example 8608774777527503000
12
12
  */
13
13
  totalActive: number;
14
14
  /**
15
15
  * @format int64
16
- * @example 733198269069877400
16
+ * @example 3075660110790723000
17
17
  */
18
18
  totalExempted?: number;
19
19
  /**
20
20
  * @format int64
21
- * @example 1809116079800142600
21
+ * @example 6945423213628662000
22
22
  */
23
23
  totalPartiallyExempted?: number;
24
24
  /**
25
25
  * @format int64
26
- * @example 5561715922786098000
26
+ * @example 8146787195864058000
27
27
  */
28
28
  totalPending?: number;
29
29
  /**
30
30
  * @format int64
31
- * @example 5844228238430216000
31
+ * @example 7973374610011235000
32
32
  */
33
33
  totalRejected?: number;
34
34
  /**
35
35
  * @format int64
36
- * @example 4804991779445100000
36
+ * @example 7885784870394732000
37
37
  */
38
38
  totalRemediated?: number;
39
39
  }
@@ -3,13 +3,13 @@ import type { PaginatedIssueSummaries } from '../schemas/PaginatedIssueSummaries
3
3
  import type { StageStepId } from '../schemas/StageStepId';
4
4
  /**
5
5
  * Data needed by the PipelineSecurityView
6
- * @example {"counts":{"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":5139898542685508000,"totalExempted":994847810101533700,"totalPartiallyExempted":2069489949273739000,"totalPending":29249517116362028,"totalRejected":7550549389047021000,"totalRemediated":4387963668533744000},"existing":{"issues":[{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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"}],"new":{"issues":[{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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}}}
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":306726937966188000,"totalExempted":4688495504193452000,"totalPartiallyExempted":7962262231582548000,"totalPending":6033546753583855000,"totalRejected":612398565352767500,"totalRemediated":7282737727597683000},"existing":{"issues":[{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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"}],"new":{"issues":[{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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
7
  */
8
8
  export interface PipelineSecurityIssuesResult {
9
9
  counts: PipelineSecurityCounts;
10
10
  existing: PaginatedIssueSummaries;
11
11
  /**
12
- * @example [{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}]
12
+ * @example [{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}]
13
13
  */
14
14
  matchingSteps: StageStepId[];
15
15
  new: PaginatedIssueSummaries;
@@ -1,10 +1,10 @@
1
1
  import type { StepInfo } from '../schemas/StepInfo';
2
2
  /**
3
- * @example {"steps":[{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","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"}]}
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"},{"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
4
  */
5
5
  export interface PipelineSecurityStepsResult {
6
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"}]
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"}]
8
8
  */
9
9
  steps: StepInfo[];
10
10
  }
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @example {"pullRequestNumber":8764529224143323000,"pullRequestUrl":"Quasi exercitationem.","sourceBranch":"feat/shiny-object"}
2
+ * @example {"pullRequestNumber":1809116079800142600,"pullRequestUrl":"Rerum porro necessitatibus fugiat voluptas autem.","sourceBranch":"feat/shiny-object"}
3
3
  */
4
4
  export interface PullRequestResult {
5
5
  /**
6
6
  * The number of the Pull Request
7
7
  * @format int64
8
- * @example 5411015633234553000
8
+ * @example 7596871011815837000
9
9
  */
10
10
  pullRequestNumber: number;
11
11
  /**
12
12
  * The URL of the Pull Request
13
- * @example "Illum molestiae rerum in."
13
+ * @example "Et est tempora perspiciatis consequatur consectetur dignissimos."
14
14
  */
15
15
  pullRequestUrl: string;
16
16
  /**
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @example {"id":"Voluptatibus quis aut dolorem aut velit.","type":"Saepe voluptatem sit ipsum rerum itaque."}
2
+ * @example {"id":"Voluptatem rem et beatae reprehenderit doloremque.","type":"Voluptas iure ut."}
3
3
  */
4
4
  export interface RefIds {
5
5
  /**
6
- * @example "Est tenetur aut repellendus."
6
+ * @example "Doloribus quis aspernatur recusandae."
7
7
  */
8
8
  id?: string;
9
9
  /**
10
- * @example "Facilis perferendis."
10
+ * @example "Exercitationem porro rerum dolore."
11
11
  */
12
12
  type?: string;
13
13
  }
@@ -3,13 +3,13 @@ import type { FrontendExemption } from '../schemas/FrontendExemption';
3
3
  import type { Pagination } from '../schemas/Pagination';
4
4
  /**
5
5
  * Data needed by the Security Review page
6
- * @example {"counts":{"Approved":150,"Expired":150,"Pending":150,"Rejected":150},"exemptions":[{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueSummary":{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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"},"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,"issueSummary":{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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"},"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,"issueSummary":{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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"},"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":[{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueSummary":{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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"},"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,"issueSummary":{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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"},"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}}
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,"issueSummary":{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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"},"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,"issueSummary":{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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"},"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,"issueSummary":{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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"},"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,"issueSummary":{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"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"},"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 [{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueSummary":{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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"},"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,"issueSummary":{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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"},"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,"issueSummary":{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"originStatus":"approved","origins":["app","base"],"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"},"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"}]
13
13
  */
14
14
  exemptions: FrontendExemption[];
15
15
  pagination: Pagination;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example {"status":"ok"}
3
+ */
4
+ export interface Status {
5
+ /**
6
+ * Status
7
+ * @example "ok"
8
+ */
9
+ status: string;
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 {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @example {"id":"abcdef1234567890ghijkl","status":"unapproved"}
3
+ */
4
+ export interface TargetVariantStatusInfo {
5
+ /**
6
+ * Resource identifier
7
+ * @example "abcdef1234567890ghijkl"
8
+ */
9
+ id: string;
10
+ /**
11
+ * Associated Target Variant Status
12
+ * @example "unapproved"
13
+ */
14
+ status: string;
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 {};
@@ -1,7 +1,7 @@
1
1
  import type { TestTargetVariant } from '../schemas/TestTargetVariant';
2
2
  /**
3
3
  * Individual TestTarget
4
- * @example {"approvedVariantsCount":1,"baseline":{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","status":"approved","totalVariantsCount":10,"type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}]}
4
+ * @example {"approvedVariantsCount":1,"baseline":{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","status":"approved","totalVariantsCount":10,"type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}]}
5
5
  */
6
6
  export interface TestTarget {
7
7
  /**
@@ -59,7 +59,7 @@ export interface TestTarget {
59
59
  */
60
60
  url?: string;
61
61
  /**
62
- * @example [{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}]
62
+ * @example [{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"}]
63
63
  */
64
64
  variants: TestTargetVariant[];
65
65
  }
@@ -2,12 +2,12 @@ import type { TestTarget } from '../schemas/TestTarget';
2
2
  import type { Pagination } from '../schemas/Pagination';
3
3
  /**
4
4
  * Data needed by the Test Targets page
5
- * @example {"targets":[{"approvedVariantsCount":1,"baseline":{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","status":"approved","totalVariantsCount":10,"type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"id":"variant111111111111111","name":"Branch: feature-1","status":"approved"},{"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"}]},{"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}}
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"}]},{"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"}]}],"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"},{"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"}]},{"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"}]}]
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"}]},{"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"}]},{"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"}]}]
11
11
  */
12
12
  targets: TestTarget[];
13
13
  targetsPagination: Pagination;
@@ -0,0 +1,11 @@
1
+ import type { TargetVariantStatusInfo } from '../schemas/TargetVariantStatusInfo';
2
+ /**
3
+ * @example {"targetVariants":[{"id":"abcdef1234567890ghijkl","status":"approved"},{"id":"xyz987zyx654wvu321tsr9","status":"unapproved"}]}
4
+ */
5
+ export interface UpdateTestTargetVariantsRequestBody {
6
+ /**
7
+ * List of target variants with their status
8
+ * @example [{"id":"abcdef1234567890ghijkl","status":"approved"},{"id":"xyz987zyx654wvu321tsr9","status":"unapproved"}]
9
+ */
10
+ targetVariants?: TargetVariantStatusInfo[];
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sto-core-client",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "description": "Harness STO service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",