@harnessio/react-sto-core-client 0.3.4 → 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 (127) 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/useExemptionsPromoteExemptionMutation.d.ts +49 -0
  4. package/dist/sto-core/src/services/hooks/useExemptionsPromoteExemptionMutation.js +14 -0
  5. package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.d.ts +49 -0
  6. package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.js +14 -0
  7. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesDetailsQuery.d.ts +61 -0
  8. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesDetailsQuery.js +14 -0
  9. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesFiltersQuery.d.ts +32 -0
  10. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesFiltersQuery.js +14 -0
  11. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesListQuery.d.ts +78 -0
  12. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesListQuery.js +14 -0
  13. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesOccurrenceDetailsQuery.d.ts +62 -0
  14. package/dist/sto-core/src/services/hooks/useFrontendAllIssuesOccurrenceDetailsQuery.js +14 -0
  15. package/dist/sto-core/src/services/hooks/useFrontendIssueSeverityChangeQuery.d.ts +49 -0
  16. package/dist/sto-core/src/services/hooks/useFrontendIssueSeverityChangeQuery.js +14 -0
  17. package/dist/sto-core/src/services/hooks/useFrontendOverviewBaselinesQuery.d.ts +32 -0
  18. package/dist/sto-core/src/services/hooks/useFrontendOverviewBaselinesQuery.js +14 -0
  19. package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.d.ts +39 -0
  20. package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.js +14 -0
  21. package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesQuery.d.ts +106 -0
  22. package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesQuery.js +14 -0
  23. package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityStepsQuery.d.ts +37 -0
  24. package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityStepsQuery.js +14 -0
  25. package/dist/sto-core/src/services/hooks/useFrontendTestTargetsQuery.d.ts +55 -0
  26. package/dist/sto-core/src/services/hooks/useFrontendTestTargetsQuery.js +14 -0
  27. package/dist/sto-core/src/services/hooks/useIssuesFindIssueByIdQuery.d.ts +51 -0
  28. package/dist/sto-core/src/services/hooks/useIssuesFindIssueByIdQuery.js +14 -0
  29. package/dist/sto-core/src/services/hooks/usePullRequestsCreatePullRequestMutation.d.ts +54 -0
  30. package/dist/sto-core/src/services/hooks/usePullRequestsCreatePullRequestMutation.js +14 -0
  31. package/dist/sto-core/src/services/hooks/usePullRequestsGetPullRequestCorrelationQuery.d.ts +60 -0
  32. package/dist/sto-core/src/services/hooks/usePullRequestsGetPullRequestCorrelationQuery.js +14 -0
  33. package/dist/sto-core/src/services/hooks/usePullRequestsUpdatePullRequestMutation.d.ts +54 -0
  34. package/dist/sto-core/src/services/hooks/usePullRequestsUpdatePullRequestMutation.js +14 -0
  35. package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.d.ts +75 -0
  36. package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.js +14 -0
  37. package/dist/sto-core/src/services/hooks/useTargetsPatchTargetMutation.d.ts +49 -0
  38. package/dist/sto-core/src/services/hooks/useTargetsPatchTargetMutation.js +14 -0
  39. package/dist/sto-core/src/services/index.d.ts +81 -0
  40. package/dist/sto-core/src/services/index.js +19 -0
  41. package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +67 -0
  42. package/dist/sto-core/src/services/schemas/AllIssueSummary.js +4 -0
  43. package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +62 -0
  44. package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.js +1 -0
  45. package/dist/sto-core/src/services/schemas/AllIssuesFiltersResult.d.ts +10 -0
  46. package/dist/sto-core/src/services/schemas/AllIssuesFiltersResult.js +1 -0
  47. package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +13 -0
  48. package/dist/sto-core/src/services/schemas/AllIssuesListResult.js +1 -0
  49. package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +60 -0
  50. package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.js +1 -0
  51. package/dist/sto-core/src/services/schemas/ApproveExemptionRequestBody.d.ts +10 -0
  52. package/dist/sto-core/src/services/schemas/ApproveExemptionRequestBody.js +4 -0
  53. package/dist/sto-core/src/services/schemas/BaselineExecutions.d.ts +10 -0
  54. package/dist/sto-core/src/services/schemas/BaselineExecutions.js +4 -0
  55. package/dist/sto-core/src/services/schemas/CreatePullRequestRequestBody.d.ts +58 -0
  56. package/dist/sto-core/src/services/schemas/CreatePullRequestRequestBody.js +4 -0
  57. package/dist/sto-core/src/services/schemas/FrontendAllIssuesDetailsResponseBody.d.ts +2 -0
  58. package/dist/sto-core/src/services/schemas/FrontendAllIssuesDetailsResponseBody.js +1 -0
  59. package/dist/sto-core/src/services/schemas/FrontendAllIssuesFiltersResponseBody.d.ts +2 -0
  60. package/dist/sto-core/src/services/schemas/FrontendAllIssuesFiltersResponseBody.js +1 -0
  61. package/dist/sto-core/src/services/schemas/FrontendAllIssuesListResponseBody.d.ts +2 -0
  62. package/dist/sto-core/src/services/schemas/FrontendAllIssuesListResponseBody.js +1 -0
  63. package/dist/sto-core/src/services/schemas/FrontendAllIssuesOccurrenceDetailsResponseBody.d.ts +2 -0
  64. package/dist/sto-core/src/services/schemas/FrontendAllIssuesOccurrenceDetailsResponseBody.js +1 -0
  65. package/dist/sto-core/src/services/schemas/FrontendIssueCounts.d.ts +47 -0
  66. package/dist/sto-core/src/services/schemas/FrontendIssueCounts.js +4 -0
  67. package/dist/sto-core/src/services/schemas/FrontendIssueSeverityChangeResponseBody.d.ts +2 -0
  68. package/dist/sto-core/src/services/schemas/FrontendIssueSeverityChangeResponseBody.js +1 -0
  69. package/dist/sto-core/src/services/schemas/FrontendOverviewBaselinesResponseBody.d.ts +2 -0
  70. package/dist/sto-core/src/services/schemas/FrontendOverviewBaselinesResponseBody.js +1 -0
  71. package/dist/sto-core/src/services/schemas/FrontendOverviewHistoricalCountsResponseBody.d.ts +2 -0
  72. package/dist/sto-core/src/services/schemas/FrontendOverviewHistoricalCountsResponseBody.js +1 -0
  73. package/dist/sto-core/src/services/schemas/FrontendPipelineSecurityIssuesResponseBody.d.ts +2 -0
  74. package/dist/sto-core/src/services/schemas/FrontendPipelineSecurityIssuesResponseBody.js +1 -0
  75. package/dist/sto-core/src/services/schemas/FrontendPipelineSecurityStepsResponseBody.d.ts +2 -0
  76. package/dist/sto-core/src/services/schemas/FrontendPipelineSecurityStepsResponseBody.js +1 -0
  77. package/dist/sto-core/src/services/schemas/FrontendTestTargetsResponseBody.d.ts +2 -0
  78. package/dist/sto-core/src/services/schemas/FrontendTestTargetsResponseBody.js +1 -0
  79. package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +11 -0
  80. package/dist/sto-core/src/services/schemas/HistoricalCounts.js +1 -0
  81. package/dist/sto-core/src/services/schemas/HistoricalIssueCounts.d.ts +18 -0
  82. package/dist/sto-core/src/services/schemas/HistoricalIssueCounts.js +1 -0
  83. package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +47 -0
  84. package/dist/sto-core/src/services/schemas/ImpactedTarget.js +4 -0
  85. package/dist/sto-core/src/services/schemas/Issue.d.ts +140 -0
  86. package/dist/sto-core/src/services/schemas/Issue.js +4 -0
  87. package/dist/sto-core/src/services/schemas/IssueSeverityChangeResult.d.ts +15 -0
  88. package/dist/sto-core/src/services/schemas/IssueSeverityChangeResult.js +4 -0
  89. package/dist/sto-core/src/services/schemas/LatestBaselineScanInfo.d.ts +30 -0
  90. package/dist/sto-core/src/services/schemas/LatestBaselineScanInfo.js +4 -0
  91. package/dist/sto-core/src/services/schemas/MinimalIssueCounts.d.ts +42 -0
  92. package/dist/sto-core/src/services/schemas/MinimalIssueCounts.js +4 -0
  93. package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +13 -0
  94. package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.js +1 -0
  95. package/dist/sto-core/src/services/schemas/PatchTargetRequestBody.d.ts +35 -0
  96. package/dist/sto-core/src/services/schemas/PatchTargetRequestBody.js +4 -0
  97. package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +39 -0
  98. package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.js +1 -0
  99. package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +16 -0
  100. package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.js +1 -0
  101. package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +10 -0
  102. package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.js +1 -0
  103. package/dist/sto-core/src/services/schemas/PromoteExemptionRequestBody.d.ts +20 -0
  104. package/dist/sto-core/src/services/schemas/PromoteExemptionRequestBody.js +4 -0
  105. package/dist/sto-core/src/services/schemas/PullRequestCorrelationResult.d.ts +10 -0
  106. package/dist/sto-core/src/services/schemas/PullRequestCorrelationResult.js +4 -0
  107. package/dist/sto-core/src/services/schemas/PullRequestResult.d.ts +21 -0
  108. package/dist/sto-core/src/services/schemas/PullRequestResult.js +4 -0
  109. package/dist/sto-core/src/services/schemas/PullRequestsGetPullRequestCorrelationResponseBody.d.ts +2 -0
  110. package/dist/sto-core/src/services/schemas/PullRequestsGetPullRequestCorrelationResponseBody.js +1 -0
  111. package/dist/sto-core/src/services/schemas/RefIds.d.ts +13 -0
  112. package/dist/sto-core/src/services/schemas/RefIds.js +4 -0
  113. package/dist/sto-core/src/services/schemas/StageStepId.d.ts +13 -0
  114. package/dist/sto-core/src/services/schemas/StageStepId.js +4 -0
  115. package/dist/sto-core/src/services/schemas/StepInfo.d.ts +54 -0
  116. package/dist/sto-core/src/services/schemas/StepInfo.js +4 -0
  117. package/dist/sto-core/src/services/schemas/TestTarget.d.ts +48 -0
  118. package/dist/sto-core/src/services/schemas/TestTarget.js +1 -0
  119. package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +14 -0
  120. package/dist/sto-core/src/services/schemas/TestTargetResult.js +1 -0
  121. package/dist/sto-core/src/services/schemas/TestTargetVariant.d.ts +16 -0
  122. package/dist/sto-core/src/services/schemas/TestTargetVariant.js +4 -0
  123. package/dist/sto-core/src/services/schemas/UpdateExemptionRequestBody.d.ts +43 -0
  124. package/dist/sto-core/src/services/schemas/UpdateExemptionRequestBody.js +1 -0
  125. package/dist/sto-core/src/services/schemas/UpdatePullRequestRequestBody.d.ts +55 -0
  126. package/dist/sto-core/src/services/schemas/UpdatePullRequestRequestBody.js +4 -0
  127. package/package.json +1 -1
@@ -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 {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @example {"pullRequestNumber":7032269265141213000,"pullRequestUrl":"Voluptas iure sint repudiandae ullam est.","sourceBranch":"feat/shiny-object"}
3
+ */
4
+ export interface PullRequestResult {
5
+ /**
6
+ * The number of the Pull Request
7
+ * @format int64
8
+ * @example 3126170514516337000
9
+ */
10
+ pullRequestNumber: number;
11
+ /**
12
+ * The URL of the Pull Request
13
+ * @example "Sit adipisci nobis magnam et molestiae."
14
+ */
15
+ pullRequestUrl: string;
16
+ /**
17
+ * The source branch of the Pull Request
18
+ * @example "feat/shiny-object"
19
+ */
20
+ sourceBranch: string;
21
+ }
@@ -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 { PullRequestCorrelationResult } from '../schemas/PullRequestCorrelationResult';
2
+ export type PullRequestsGetPullRequestCorrelationResponseBody = PullRequestCorrelationResult;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example {"id":"Consectetur modi exercitationem natus.","type":"Excepturi iure et aliquid amet."}
3
+ */
4
+ export interface RefIds {
5
+ /**
6
+ * @example "Mollitia et ab inventore ipsam."
7
+ */
8
+ id?: string;
9
+ /**
10
+ * @example "Similique soluta quod quisquam."
11
+ */
12
+ type?: string;
13
+ }
@@ -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
+ /**
2
+ * @example {"stageId":"stage_id","stepId":"step_id"}
3
+ */
4
+ export interface StageStepId {
5
+ /**
6
+ * @example "stage_id"
7
+ */
8
+ stageId: string;
9
+ /**
10
+ * @example "step_id"
11
+ */
12
+ stepId: string;
13
+ }
@@ -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,54 @@
1
+ /**
2
+ * Information about a Scan Step
3
+ * @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"}
4
+ */
5
+ export interface StepInfo {
6
+ /**
7
+ * A short description of the baseline target variant for the pipeline step's scan diff
8
+ * @example "branch: main"
9
+ */
10
+ baselineVariant?: string;
11
+ /**
12
+ * Scan id
13
+ * @example "scan111111111111111111"
14
+ */
15
+ scanId: string;
16
+ /**
17
+ * Product name of the scan tool used in this step
18
+ * @example "owasp"
19
+ */
20
+ scanTool: string;
21
+ /**
22
+ * @example "stage_id"
23
+ */
24
+ stageId: string;
25
+ /**
26
+ * @example "step_id"
27
+ */
28
+ stepId: string;
29
+ /**
30
+ * The subproduct that identified this Security Issue
31
+ * @example "product"
32
+ */
33
+ subproduct?: string;
34
+ /**
35
+ * The ID of the target of the pipeline step's scan
36
+ * @example "target1111111111111111"
37
+ */
38
+ targetId: string;
39
+ /**
40
+ * The name of the target of the pipeline step's scan
41
+ * @example "The Target"
42
+ */
43
+ targetName: string;
44
+ /**
45
+ * The type of the target of the pipeline step's scan
46
+ * @example "repository"
47
+ */
48
+ targetType: 'configuration' | 'container' | 'instance' | 'repository';
49
+ /**
50
+ * A short description of the target variant of the pipeline step's scan
51
+ * @example "branch: feature"
52
+ */
53
+ targetVariant: string;
54
+ }
@@ -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,48 @@
1
+ import type { TestTargetVariant } from '../schemas/TestTargetVariant';
2
+ /**
3
+ * Individual TestTarget
4
+ * @example {"baseline":{"id":"variant111111111111111","name":"Branch: feature-1"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"}]}
5
+ */
6
+ export interface TestTarget {
7
+ baseline?: TestTargetVariant;
8
+ /**
9
+ * RegEx to match for dynamically selecting the Baseline for this Scan Target. Must be compatible with the RE2 standard.
10
+ * @example "release_.*"
11
+ */
12
+ baselineRegEx?: string;
13
+ /**
14
+ * Directory of target
15
+ * @example "/"
16
+ */
17
+ directory?: string;
18
+ /**
19
+ * ID of target
20
+ * @example "target1111111111111111"
21
+ */
22
+ id: string;
23
+ /**
24
+ * Timestamp at which the Baseline was last scanned
25
+ * @format int64
26
+ * @example 1634836529
27
+ */
28
+ lastScanned: number;
29
+ /**
30
+ * Name of Target
31
+ * @example "target 1"
32
+ */
33
+ name: string;
34
+ /**
35
+ * Type of target
36
+ * @example "repository"
37
+ */
38
+ type: 'configuration' | 'container' | 'instance' | 'repository';
39
+ /**
40
+ * Url of target
41
+ * @example "github.com/harness/sto-core"
42
+ */
43
+ url?: string;
44
+ /**
45
+ * @example [{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"}]
46
+ */
47
+ variants: TestTargetVariant[];
48
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { TestTarget } from '../schemas/TestTarget';
2
+ import type { Pagination } from '../schemas/Pagination';
3
+ /**
4
+ * Data needed by the Test Targets page
5
+ * @example {"targets":[{"baseline":{"id":"variant111111111111111","name":"Branch: feature-1"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"}]},{"baseline":{"id":"variant111111111111111","name":"Branch: feature-1"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"}]},{"baseline":{"id":"variant111111111111111","name":"Branch: feature-1"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"}]},{"baseline":{"id":"variant111111111111111","name":"Branch: feature-1"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"}]}],"targetsPagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
6
+ */
7
+ export interface TestTargetResult {
8
+ /**
9
+ * Test Targets data
10
+ * @example [{"baseline":{"id":"variant111111111111111","name":"Branch: feature-1"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"}]},{"baseline":{"id":"variant111111111111111","name":"Branch: feature-1"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"}]},{"baseline":{"id":"variant111111111111111","name":"Branch: feature-1"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"}]},{"baseline":{"id":"variant111111111111111","name":"Branch: feature-1"},"baselineRegEx":"release_.*","directory":"/","id":"target1111111111111111","lastScanned":1634836529,"name":"target 1","type":"repository","url":"github.com/harness/sto-core","variants":[{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"},{"id":"variant111111111111111","name":"Branch: feature-1"}]}]
11
+ */
12
+ targets: TestTarget[];
13
+ targetsPagination: Pagination;
14
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Individual Test Target Variant
3
+ * @example {"id":"variant111111111111111","name":"Branch: feature-1"}
4
+ */
5
+ export interface TestTargetVariant {
6
+ /**
7
+ * Target Variant ID
8
+ * @example "variant111111111111111"
9
+ */
10
+ id: string;
11
+ /**
12
+ * Name of Target Variant
13
+ * @example "Branch: feature-1"
14
+ */
15
+ name: string;
16
+ }
@@ -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,43 @@
1
+ import type { PendingChanges } from '../schemas/PendingChanges';
2
+ /**
3
+ * @example {"expiration":1651578240,"link":"https://example.com/ABC-1234","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","targetId":"abcdef1234567890ghijkl","type":"Other"}
4
+ */
5
+ export interface UpdateExemptionRequestBody {
6
+ /**
7
+ * Unix timestamp at which this Exemption will expire
8
+ * @format int64
9
+ * @example 1651578240
10
+ */
11
+ expiration?: number;
12
+ /**
13
+ * Link to a related ticket
14
+ * @example "https://example.com/ABC-1234"
15
+ */
16
+ link?: string;
17
+ pendingChanges: PendingChanges;
18
+ /**
19
+ * ID of the Harness Pipeline to which the exemption applies. You must also specify "projectId" and "orgId". Cannot be specified alongside "targetId".
20
+ * @example "your_pipeline"
21
+ */
22
+ pipelineId?: string;
23
+ /**
24
+ * Text describing why this Exemption is necessary
25
+ * @example "Waiting on upstream bug fix"
26
+ */
27
+ reason: string;
28
+ /**
29
+ * User ID of user who requested this exemptions
30
+ * @example "user111111111111111111"
31
+ */
32
+ requesterId: string;
33
+ /**
34
+ * ID of the Target to which the exemption applies. Cannot be specified alongside "projectId" or "pipelineId".
35
+ * @example "abcdef1234567890ghijkl"
36
+ */
37
+ targetId?: string;
38
+ /**
39
+ * Type of Exemption (Compensating Controls / Acceptable Use / Acceptable Risk / False Positive / Fix Unavailable / Other)
40
+ * @example "Other"
41
+ */
42
+ type: 'Acceptable Risk' | 'Acceptable Use' | 'Compensating Controls' | 'False Positive' | 'Fix Unavailable' | 'Other';
43
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @example {"id":"1234567890abcdefghijkl","occurrenceId":12345,"pipelineUrl":"https://app.harness.io/path/to/pipeline","pullRequestNumber":11,"remediationCode":"func example() int {\n return 0\n}","remediationCodeEnd":16,"remediationCodePath":"path/to/code","remediationCodeStart":14,"remediationContext":"Context to the function.","remediationIndent":9,"vulnerableCode":"func example() int {\n return 0\n}"}
3
+ */
4
+ export interface UpdatePullRequestRequestBody {
5
+ /**
6
+ * The ID of the Security Issue to create a Pull Request for
7
+ * @example "1234567890abcdefghijkl"
8
+ */
9
+ id: string;
10
+ /**
11
+ * @format int64
12
+ * @example 12345
13
+ */
14
+ occurrenceId: number;
15
+ /**
16
+ * @example "https://app.harness.io/path/to/pipeline"
17
+ */
18
+ pipelineUrl: string;
19
+ /**
20
+ * @format int64
21
+ * @example 11
22
+ */
23
+ pullRequestNumber: number;
24
+ /**
25
+ * @example "func example() int {\n return 0\n}"
26
+ */
27
+ remediationCode: string;
28
+ /**
29
+ * @format int64
30
+ * @example 16
31
+ */
32
+ remediationCodeEnd: number;
33
+ /**
34
+ * @example "path/to/code"
35
+ */
36
+ remediationCodePath: string;
37
+ /**
38
+ * @format int64
39
+ * @example 14
40
+ */
41
+ remediationCodeStart: number;
42
+ /**
43
+ * @example "Context to the function."
44
+ */
45
+ remediationContext: string;
46
+ /**
47
+ * @format int64
48
+ * @example 9
49
+ */
50
+ remediationIndent?: number;
51
+ /**
52
+ * @example "func example() int {\n return 0\n}"
53
+ */
54
+ vulnerableCode: string;
55
+ }
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sto-core-client",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Harness STO service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",