@harnessio/react-sto-core-client 0.4.3 → 0.4.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 (74) 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 +2 -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/useFrontendAllIssuesListQuery.d.ts +6 -0
  8. package/dist/sto-core/src/services/hooks/useFrontendExpiringExemptionsQuery.d.ts +1 -1
  9. package/dist/sto-core/src/services/hooks/useFrontendGlobalExemptionsQuery.d.ts +1 -1
  10. package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.d.ts +1 -1
  11. package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesCsvQuery.d.ts +2 -2
  12. package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesQuery.d.ts +2 -2
  13. package/dist/sto-core/src/services/hooks/useIssuesFindIssueByIdQuery.d.ts +1 -1
  14. package/dist/sto-core/src/services/hooks/useIssuesIssuesAugmentRemediationMutation.d.ts +1 -1
  15. package/dist/sto-core/src/services/hooks/useOverridesCreateOverrideMutation.d.ts +42 -0
  16. package/dist/sto-core/src/services/hooks/useOverridesCreateOverrideMutation.js +14 -0
  17. package/dist/sto-core/src/services/hooks/useOverridesDeleteOverrideMutation.d.ts +38 -0
  18. package/dist/sto-core/src/services/hooks/useOverridesDeleteOverrideMutation.js +14 -0
  19. package/dist/sto-core/src/services/hooks/useOverridesListOverridesQuery.d.ts +53 -0
  20. package/dist/sto-core/src/services/hooks/useOverridesListOverridesQuery.js +14 -0
  21. package/dist/sto-core/src/services/hooks/usePullRequestsCreatePullRequestMutation.d.ts +2 -2
  22. package/dist/sto-core/src/services/hooks/usePullRequestsGetPullRequestCorrelationQuery.d.ts +2 -2
  23. package/dist/sto-core/src/services/hooks/usePullRequestsUpdatePullRequestMutation.d.ts +2 -2
  24. package/dist/sto-core/src/services/hooks/useScansScanIssueOccurrencesQuery.d.ts +4 -4
  25. package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.d.ts +4 -4
  26. package/dist/sto-core/src/services/hooks/useTargetsFindTargetByIdQuery.d.ts +1 -1
  27. package/dist/sto-core/src/services/hooks/useTargetsPatchTargetMutation.d.ts +1 -1
  28. package/dist/sto-core/src/services/index.d.ts +10 -0
  29. package/dist/sto-core/src/services/index.js +3 -0
  30. package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +7 -8
  31. package/dist/sto-core/src/services/schemas/AllIssueSummary.js +0 -3
  32. package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +10 -11
  33. package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +2 -2
  34. package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +13 -7
  35. package/dist/sto-core/src/services/schemas/AugmentRemediationMetadata.d.ts +2 -2
  36. package/dist/sto-core/src/services/schemas/AugmentRemediationResult.d.ts +4 -4
  37. package/dist/sto-core/src/services/schemas/AugmentRemediationWarning.d.ts +3 -3
  38. package/dist/sto-core/src/services/schemas/BaselineExecutions.d.ts +2 -2
  39. package/dist/sto-core/src/services/schemas/CreateOverrideRequestBody.d.ts +65 -0
  40. package/dist/sto-core/src/services/schemas/CreateOverrideRequestBody.js +4 -0
  41. package/dist/sto-core/src/services/schemas/Exemption.d.ts +3 -3
  42. package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +2 -2
  43. package/dist/sto-core/src/services/schemas/ExportPipelineSecurityIssuesCsvResponseBody.d.ts +6 -6
  44. package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +1 -1
  45. package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +6 -5
  46. package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +2 -2
  47. package/dist/sto-core/src/services/schemas/HistoricalIssueCounts.d.ts +0 -1
  48. package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +3 -3
  49. package/dist/sto-core/src/services/schemas/Issue.d.ts +4 -4
  50. package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +3 -3
  51. package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +3 -3
  52. package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
  53. package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +9 -10
  54. package/dist/sto-core/src/services/schemas/IssueSummary.js +0 -3
  55. package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
  56. package/dist/sto-core/src/services/schemas/Override.d.ts +109 -0
  57. package/dist/sto-core/src/services/schemas/Override.js +4 -0
  58. package/dist/sto-core/src/services/schemas/OverrideResult.d.ts +46 -0
  59. package/dist/sto-core/src/services/schemas/OverrideResult.js +4 -0
  60. package/dist/sto-core/src/services/schemas/OverridesListOverridesResponseBody.d.ts +12 -0
  61. package/dist/sto-core/src/services/schemas/OverridesListOverridesResponseBody.js +1 -0
  62. package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +2 -2
  63. package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +13 -13
  64. package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +2 -2
  65. package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +2 -2
  66. package/dist/sto-core/src/services/schemas/ProductsListProductsResponseBody.d.ts +1 -1
  67. package/dist/sto-core/src/services/schemas/PullRequestResult.d.ts +3 -3
  68. package/dist/sto-core/src/services/schemas/RefIds.d.ts +3 -3
  69. package/dist/sto-core/src/services/schemas/SecurityReviewResult.d.ts +2 -2
  70. package/dist/sto-core/src/services/schemas/StageStepId.d.ts +6 -1
  71. package/dist/sto-core/src/services/schemas/StepInfo.d.ts +6 -1
  72. package/dist/sto-core/src/services/schemas/TestTarget.d.ts +2 -2
  73. package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +2 -2
  74. package/package.json +1 -1
@@ -36,7 +36,7 @@ export interface ExemptionsApproveExemptionMutationQueryParams {
36
36
  export interface ExemptionsApproveExemptionMutationHeaderParams {
37
37
  /**
38
38
  * Harness personal or service access token
39
- * @example "Consequatur sed consequuntur velit cum."
39
+ * @example "Dicta ratione incidunt."
40
40
  */
41
41
  'X-Api-Key'?: string;
42
42
  }
@@ -24,7 +24,7 @@ export interface ExemptionsCreateExemptionMutationQueryParams {
24
24
  export interface ExemptionsCreateExemptionMutationHeaderParams {
25
25
  /**
26
26
  * Harness personal or service access token
27
- * @example "Fugit voluptas qui perferendis ipsum et."
27
+ * @example "Provident amet porro vero asperiores eligendi."
28
28
  */
29
29
  'X-Api-Key'?: string;
30
30
  }
@@ -33,13 +33,14 @@ export interface ExemptionsFindExemptionByIdQueryQueryParams {
33
33
  executionId?: string;
34
34
  /**
35
35
  * Ignore scope
36
+ * @example true
36
37
  */
37
38
  ignoreScope?: boolean;
38
39
  }
39
40
  export interface ExemptionsFindExemptionByIdQueryHeaderParams {
40
41
  /**
41
42
  * Harness personal or service access token
42
- * @example "Sint repudiandae."
43
+ * @example "Saepe accusantium rerum."
43
44
  */
44
45
  'X-Api-Key'?: string;
45
46
  }
@@ -37,7 +37,7 @@ export interface ExemptionsListExemptionsQueryQueryParams {
37
37
  export interface ExemptionsListExemptionsQueryHeaderParams {
38
38
  /**
39
39
  * Harness personal or service access token
40
- * @example "Id recusandae iste dolor reiciendis voluptas labore."
40
+ * @example "Expedita accusamus voluptate aperiam itaque velit modi."
41
41
  */
42
42
  'X-Api-Key'?: string;
43
43
  }
@@ -31,7 +31,7 @@ export interface ExemptionsPromoteExemptionMutationQueryParams {
31
31
  export interface ExemptionsPromoteExemptionMutationHeaderParams {
32
32
  /**
33
33
  * Harness personal or service access token
34
- * @example "Natus molestiae et velit illo."
34
+ * @example "Autem et occaecati voluptas asperiores neque."
35
35
  */
36
36
  'X-Api-Key'?: string;
37
37
  }
@@ -31,7 +31,7 @@ export interface ExemptionsUpdateExemptionMutationQueryParams {
31
31
  export interface ExemptionsUpdateExemptionMutationHeaderParams {
32
32
  /**
33
33
  * Harness personal or service access token
34
- * @example "Consequuntur omnis."
34
+ * @example "Molestias et eum nobis voluptas dicta nam."
35
35
  */
36
36
  'X-Api-Key'?: string;
37
37
  }
@@ -57,6 +57,12 @@ export interface FrontendAllIssuesListQueryQueryParams {
57
57
  * @example "None,Pending,Rejected,Expired"
58
58
  */
59
59
  exemptionStatuses?: string;
60
+ /**
61
+ * Filter issues by whether their severity has been overridden. Use 'Yes,No' for all issues.
62
+ * @default "Yes,No"
63
+ * @example "Yes"
64
+ */
65
+ severityOverriden?: string;
60
66
  /**
61
67
  * @example "CWE-123"
62
68
  */
@@ -30,7 +30,7 @@ export interface FrontendExpiringExemptionsQueryQueryParams {
30
30
  * Number of days of Baseline Issue counts to return
31
31
  * @format int64
32
32
  * @default 7
33
- * @example 1361
33
+ * @example 4886
34
34
  */
35
35
  days?: number;
36
36
  }
@@ -48,7 +48,7 @@ export interface FrontendGlobalExemptionsQueryQueryParams {
48
48
  export interface FrontendGlobalExemptionsQueryHeaderParams {
49
49
  /**
50
50
  * Harness personal or service access token
51
- * @example "Rerum enim veritatis."
51
+ * @example "Iste qui corrupti atque modi maiores perspiciatis."
52
52
  */
53
53
  'X-Api-Key'?: string;
54
54
  }
@@ -23,7 +23,7 @@ export interface FrontendOverviewHistoricalCountsQueryQueryParams {
23
23
  * Number of days of Baseline Issue counts to return
24
24
  * @format int64
25
25
  * @default 30
26
- * @example 2
26
+ * @example 43
27
27
  */
28
28
  days?: number;
29
29
  }
@@ -53,11 +53,11 @@ export interface FrontendPipelineSecurityIssuesCsvQueryQueryParams {
53
53
  */
54
54
  pageSizeNew?: number;
55
55
  /**
56
- * @example "stage1,stage2"
56
+ * @example "stage1,parent.stage2,stage3"
57
57
  */
58
58
  stages?: string;
59
59
  /**
60
- * @example "stageId.step1id,stageId.step2Id"
60
+ * @example "stage.step1,parent.stage.step2,stage2.step3"
61
61
  */
62
62
  steps?: string;
63
63
  /**
@@ -53,11 +53,11 @@ export interface FrontendPipelineSecurityIssuesQueryQueryParams {
53
53
  */
54
54
  pageSizeNew?: number;
55
55
  /**
56
- * @example "stage1,stage2"
56
+ * @example "stage1,parent.stage2,stage3"
57
57
  */
58
58
  stages?: string;
59
59
  /**
60
- * @example "stageId.step1id,stageId.step2Id"
60
+ * @example "stage.step1,parent.stage.step2,stage2.step3"
61
61
  */
62
62
  steps?: string;
63
63
  /**
@@ -35,7 +35,7 @@ export interface IssuesFindIssueByIdQueryQueryParams {
35
35
  export interface IssuesFindIssueByIdQueryHeaderParams {
36
36
  /**
37
37
  * Harness personal or service access token
38
- * @example "Amet laborum mollitia."
38
+ * @example "At nulla atque."
39
39
  */
40
40
  'X-Api-Key'?: string;
41
41
  }
@@ -31,7 +31,7 @@ export interface IssuesIssuesAugmentRemediationMutationQueryParams {
31
31
  export interface IssuesIssuesAugmentRemediationMutationHeaderParams {
32
32
  /**
33
33
  * Harness personal or service access token
34
- * @example "Sed eius et fugiat velit tenetur ut."
34
+ * @example "Fugiat tempore."
35
35
  */
36
36
  'X-Api-Key'?: string;
37
37
  }
@@ -0,0 +1,42 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ExemptionsCreateExemptionResponseBody } from '../schemas/ExemptionsCreateExemptionResponseBody';
3
+ import type { NotFound } from '../schemas/NotFound';
4
+ import type { CreateOverrideRequestBody } from '../schemas/CreateOverrideRequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface OverridesCreateOverrideMutationQueryParams {
8
+ /**
9
+ * Harness Account ID
10
+ * @example "abcdef1234567890ghijkl"
11
+ */
12
+ accountId: string;
13
+ /**
14
+ * Harness Organization ID
15
+ * @example "example_org"
16
+ */
17
+ orgId: string;
18
+ /**
19
+ * Harness Project ID
20
+ * @example "example_project"
21
+ */
22
+ projectId: string;
23
+ }
24
+ export interface OverridesCreateOverrideMutationHeaderParams {
25
+ /**
26
+ * Harness personal or service access token
27
+ * @example "Porro et doloribus."
28
+ */
29
+ 'X-Api-Key'?: string;
30
+ }
31
+ export type OverridesCreateOverrideRequestBody = CreateOverrideRequestBody;
32
+ export type OverridesCreateOverrideOkResponse = ResponseWithPagination<ExemptionsCreateExemptionResponseBody>;
33
+ export type OverridesCreateOverrideErrorResponse = NotFound;
34
+ export interface OverridesCreateOverrideProps extends Omit<FetcherOptions<OverridesCreateOverrideMutationQueryParams, OverridesCreateOverrideRequestBody, OverridesCreateOverrideMutationHeaderParams>, 'url'> {
35
+ queryParams: OverridesCreateOverrideMutationQueryParams;
36
+ body: OverridesCreateOverrideRequestBody;
37
+ }
38
+ export declare function overridesCreateOverride(props: OverridesCreateOverrideProps): Promise<OverridesCreateOverrideOkResponse>;
39
+ /**
40
+ * Create a new Override
41
+ */
42
+ export declare function useOverridesCreateOverrideMutation(options?: Omit<UseMutationOptions<OverridesCreateOverrideOkResponse, OverridesCreateOverrideErrorResponse, OverridesCreateOverrideProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OverridesCreateOverrideOkResponse, NotFound, OverridesCreateOverrideProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function overridesCreateOverride(props) {
7
+ return fetcher(Object.assign({ url: `/api/v2/overrides`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create a new Override
11
+ */
12
+ export function useOverridesCreateOverrideMutation(options) {
13
+ return useMutation((mutateProps) => overridesCreateOverride(mutateProps), options);
14
+ }
@@ -0,0 +1,38 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { NotFound } from '../schemas/NotFound';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface OverridesDeleteOverrideMutationPathParams {
6
+ /**
7
+ * The ID of the Override to delete
8
+ * @example "abcdef1234567890ghijkl"
9
+ */
10
+ id: string;
11
+ }
12
+ export interface OverridesDeleteOverrideMutationQueryParams {
13
+ /**
14
+ * Harness Account ID
15
+ * @example "abcdef1234567890ghijkl"
16
+ */
17
+ accountId: string;
18
+ /**
19
+ * Harness Organization ID
20
+ * @example "example_org"
21
+ */
22
+ orgId?: string;
23
+ /**
24
+ * Harness Project ID
25
+ * @example "example_project"
26
+ */
27
+ projectId?: string;
28
+ }
29
+ export type OverridesDeleteOverrideOkResponse = ResponseWithPagination<unknown>;
30
+ export type OverridesDeleteOverrideErrorResponse = NotFound;
31
+ export interface OverridesDeleteOverrideProps extends OverridesDeleteOverrideMutationPathParams, Omit<FetcherOptions<OverridesDeleteOverrideMutationQueryParams, unknown>, 'url'> {
32
+ queryParams: OverridesDeleteOverrideMutationQueryParams;
33
+ }
34
+ export declare function overridesDeleteOverride(props: OverridesDeleteOverrideProps): Promise<OverridesDeleteOverrideOkResponse>;
35
+ /**
36
+ * Delete an existing Override
37
+ */
38
+ export declare function useOverridesDeleteOverrideMutation(options?: Omit<UseMutationOptions<OverridesDeleteOverrideOkResponse, OverridesDeleteOverrideErrorResponse, OverridesDeleteOverrideProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OverridesDeleteOverrideOkResponse, NotFound, OverridesDeleteOverrideProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function overridesDeleteOverride(props) {
7
+ return fetcher(Object.assign({ url: `/api/v2/overrides/${props.id}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete an existing Override
11
+ */
12
+ export function useOverridesDeleteOverrideMutation(options) {
13
+ return useMutation((mutateProps) => overridesDeleteOverride(mutateProps), options);
14
+ }
@@ -0,0 +1,53 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { OverridesListOverridesResponseBody } from '../schemas/OverridesListOverridesResponseBody';
3
+ import type { NotFound } from '../schemas/NotFound';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface OverridesListOverridesQueryQueryParams {
7
+ /**
8
+ * Harness Account ID
9
+ * @example "abcdef1234567890ghijkl"
10
+ */
11
+ accountId: string;
12
+ /**
13
+ * Page number to fetch (starting from 0)
14
+ * @format int64
15
+ * @default 0
16
+ * @example 4
17
+ */
18
+ page?: number;
19
+ /**
20
+ * Number of results per page
21
+ * @format int64
22
+ * @default 30
23
+ * @example 50
24
+ */
25
+ pageSize?: number;
26
+ /**
27
+ * Harness Organization ID
28
+ * @example "example_org"
29
+ */
30
+ orgId?: string;
31
+ /**
32
+ * Harness Project ID
33
+ * @example "example_project"
34
+ */
35
+ projectId?: string;
36
+ }
37
+ export interface OverridesListOverridesQueryHeaderParams {
38
+ /**
39
+ * Harness personal or service access token
40
+ * @example "Velit eligendi sit consequatur excepturi."
41
+ */
42
+ 'X-Api-Key'?: string;
43
+ }
44
+ export type OverridesListOverridesOkResponse = ResponseWithPagination<OverridesListOverridesResponseBody>;
45
+ export type OverridesListOverridesErrorResponse = NotFound;
46
+ export interface OverridesListOverridesProps extends Omit<FetcherOptions<OverridesListOverridesQueryQueryParams, unknown, OverridesListOverridesQueryHeaderParams>, 'url'> {
47
+ queryParams: OverridesListOverridesQueryQueryParams;
48
+ }
49
+ export declare function overridesListOverrides(props: OverridesListOverridesProps): Promise<OverridesListOverridesOkResponse>;
50
+ /**
51
+ * List a collection of Overrides
52
+ */
53
+ export declare function useOverridesListOverridesQuery(props: OverridesListOverridesProps, options?: Omit<UseQueryOptions<OverridesListOverridesOkResponse, OverridesListOverridesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<OverridesListOverridesOkResponse, NotFound>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function overridesListOverrides(props) {
7
+ return fetcher(Object.assign({ url: `/api/v2/overrides`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List a collection of Overrides
11
+ */
12
+ export function useOverridesListOverridesQuery(props, options) {
13
+ return useQuery(['Overrides#ListOverrides', props.queryParams], ({ signal }) => overridesListOverrides(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -25,14 +25,14 @@ export interface PullRequestsCreatePullRequestMutationQueryParams {
25
25
  */
26
26
  provider: string;
27
27
  /**
28
- * @example "Odit odit recusandae rerum unde labore."
28
+ * @example "Et officia sit dolorem velit dicta."
29
29
  */
30
30
  repositoryPath: string;
31
31
  }
32
32
  export interface PullRequestsCreatePullRequestMutationHeaderParams {
33
33
  /**
34
34
  * Harness personal or service access token
35
- * @example "Sit rerum."
35
+ * @example "Culpa neque voluptatum consequatur rerum fugiat doloremque."
36
36
  */
37
37
  'X-Api-Key'?: string;
38
38
  }
@@ -24,7 +24,7 @@ export interface PullRequestsGetPullRequestCorrelationQueryQueryParams {
24
24
  */
25
25
  provider: string;
26
26
  /**
27
- * @example "Aut nostrum fugiat."
27
+ * @example "Cumque sit dolore quasi molestias esse quo."
28
28
  */
29
29
  repositoryPath: string;
30
30
  /**
@@ -40,7 +40,7 @@ export interface PullRequestsGetPullRequestCorrelationQueryQueryParams {
40
40
  export interface PullRequestsGetPullRequestCorrelationQueryHeaderParams {
41
41
  /**
42
42
  * Harness personal or service access token
43
- * @example "Optio ut suscipit et voluptatem."
43
+ * @example "Quod quae quia nihil praesentium."
44
44
  */
45
45
  'X-Api-Key'?: string;
46
46
  }
@@ -25,14 +25,14 @@ export interface PullRequestsUpdatePullRequestMutationQueryParams {
25
25
  */
26
26
  provider: string;
27
27
  /**
28
- * @example "Fuga neque exercitationem nemo."
28
+ * @example "Blanditiis et neque sed qui sit."
29
29
  */
30
30
  repositoryPath: string;
31
31
  }
32
32
  export interface PullRequestsUpdatePullRequestMutationHeaderParams {
33
33
  /**
34
34
  * Harness personal or service access token
35
- * @example "Consequatur et eos quo."
35
+ * @example "Aut totam."
36
36
  */
37
37
  'X-Api-Key'?: string;
38
38
  }
@@ -6,12 +6,12 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface ScansScanIssueOccurrencesQueryPathParams {
7
7
  /**
8
8
  * The ID of the Security Test Scan
9
- * @example "Corrupti ea ullam."
9
+ * @example "Quis in quaerat quas occaecati facere."
10
10
  */
11
11
  id: string;
12
12
  /**
13
13
  * The ID of the Security Test Issue
14
- * @example "Porro et doloribus."
14
+ * @example "Et quo non reprehenderit et ipsa porro."
15
15
  */
16
16
  issueId: string;
17
17
  }
@@ -55,7 +55,7 @@ export interface ScansScanIssueOccurrencesQueryQueryParams {
55
55
  exemptionStatus?: string;
56
56
  /**
57
57
  * The field to sort by
58
- * @example "Sit consequatur excepturi."
58
+ * @example "Et et."
59
59
  */
60
60
  sort?: string;
61
61
  /**
@@ -72,7 +72,7 @@ export interface ScansScanIssueOccurrencesQueryQueryParams {
72
72
  export interface ScansScanIssueOccurrencesQueryHeaderParams {
73
73
  /**
74
74
  * Harness personal or service access token
75
- * @example "Nesciunt unde at consequatur eius voluptates minus."
75
+ * @example "Neque cum in."
76
76
  */
77
77
  'X-Api-Key'?: string;
78
78
  }
@@ -6,12 +6,12 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface ScansScanIssueQueryPathParams {
7
7
  /**
8
8
  * The ID of the Security Test Scan
9
- * @example "Provident amet porro vero asperiores eligendi."
9
+ * @example "Tempora sapiente optio sit accusantium quidem sint."
10
10
  */
11
11
  id: string;
12
12
  /**
13
13
  * The ID of the Security Test Issue
14
- * @example "Molestias et eum nobis voluptas dicta nam."
14
+ * @example "Numquam hic."
15
15
  */
16
16
  issueId: string;
17
17
  }
@@ -47,7 +47,7 @@ export interface ScansScanIssueQueryQueryParams {
47
47
  pageSize?: number;
48
48
  /**
49
49
  * The field to sort by
50
- * @example "Ut voluptas."
50
+ * @example "Officia quidem aut."
51
51
  */
52
52
  sort?: string;
53
53
  /**
@@ -59,7 +59,7 @@ export interface ScansScanIssueQueryQueryParams {
59
59
  export interface ScansScanIssueQueryHeaderParams {
60
60
  /**
61
61
  * Harness personal or service access token
62
- * @example "Dicta ratione incidunt."
62
+ * @example "Nihil magni rerum."
63
63
  */
64
64
  'X-Api-Key'?: string;
65
65
  }
@@ -30,7 +30,7 @@ export interface TargetsFindTargetByIdQueryQueryParams {
30
30
  export interface TargetsFindTargetByIdQueryHeaderParams {
31
31
  /**
32
32
  * Harness personal or service access token
33
- * @example "Adipisci quod sit et voluptatibus nihil."
33
+ * @example "Ea cumque voluptatum doloremque nulla."
34
34
  */
35
35
  'X-Api-Key'?: string;
36
36
  }
@@ -31,7 +31,7 @@ export interface TargetsPatchTargetMutationQueryParams {
31
31
  export interface TargetsPatchTargetMutationHeaderParams {
32
32
  /**
33
33
  * Harness personal or service access token
34
- * @example "Illo ut consequatur repudiandae excepturi explicabo."
34
+ * @example "Quia ut ut repudiandae."
35
35
  */
36
36
  'X-Api-Key'?: string;
37
37
  }
@@ -51,6 +51,12 @@ export type { IssuesFindIssueByIdErrorResponse, IssuesFindIssueByIdOkResponse, I
51
51
  export { issuesFindIssueById, useIssuesFindIssueByIdQuery, } from './hooks/useIssuesFindIssueByIdQuery';
52
52
  export type { IssuesIssuesAugmentRemediationErrorResponse, IssuesIssuesAugmentRemediationMutationPathParams, IssuesIssuesAugmentRemediationMutationQueryParams, IssuesIssuesAugmentRemediationOkResponse, IssuesIssuesAugmentRemediationProps, IssuesIssuesAugmentRemediationRequestBody, } from './hooks/useIssuesIssuesAugmentRemediationMutation';
53
53
  export { issuesIssuesAugmentRemediation, useIssuesIssuesAugmentRemediationMutation, } from './hooks/useIssuesIssuesAugmentRemediationMutation';
54
+ export type { OverridesCreateOverrideErrorResponse, OverridesCreateOverrideMutationQueryParams, OverridesCreateOverrideOkResponse, OverridesCreateOverrideProps, OverridesCreateOverrideRequestBody, } from './hooks/useOverridesCreateOverrideMutation';
55
+ export { overridesCreateOverride, useOverridesCreateOverrideMutation, } from './hooks/useOverridesCreateOverrideMutation';
56
+ export type { OverridesDeleteOverrideErrorResponse, OverridesDeleteOverrideMutationPathParams, OverridesDeleteOverrideMutationQueryParams, OverridesDeleteOverrideOkResponse, OverridesDeleteOverrideProps, } from './hooks/useOverridesDeleteOverrideMutation';
57
+ export { overridesDeleteOverride, useOverridesDeleteOverrideMutation, } from './hooks/useOverridesDeleteOverrideMutation';
58
+ export type { OverridesListOverridesErrorResponse, OverridesListOverridesOkResponse, OverridesListOverridesProps, OverridesListOverridesQueryQueryParams, } from './hooks/useOverridesListOverridesQuery';
59
+ export { overridesListOverrides, useOverridesListOverridesQuery, } from './hooks/useOverridesListOverridesQuery';
54
60
  export type { ProductsListProductsErrorResponse, ProductsListProductsOkResponse, ProductsListProductsProps, ProductsListProductsQueryQueryParams, } from './hooks/useProductsListProductsQuery';
55
61
  export { productsListProducts, useProductsListProductsQuery, } from './hooks/useProductsListProductsQuery';
56
62
  export type { PullRequestsCreatePullRequestErrorResponse, PullRequestsCreatePullRequestMutationQueryParams, PullRequestsCreatePullRequestOkResponse, PullRequestsCreatePullRequestProps, PullRequestsCreatePullRequestRequestBody, } from './hooks/usePullRequestsCreatePullRequestMutation';
@@ -78,6 +84,7 @@ export type { AugmentRemediationResult } from './schemas/AugmentRemediationResul
78
84
  export type { AugmentRemediationWarning } from './schemas/AugmentRemediationWarning';
79
85
  export type { BaselineExecutions } from './schemas/BaselineExecutions';
80
86
  export type { CreateExemptionRequestBody } from './schemas/CreateExemptionRequestBody';
87
+ export type { CreateOverrideRequestBody } from './schemas/CreateOverrideRequestBody';
81
88
  export type { CreatePullRequestRequestBody } from './schemas/CreatePullRequestRequestBody';
82
89
  export type { Exemption } from './schemas/Exemption';
83
90
  export type { ExemptionImpactedTargetsResult } from './schemas/ExemptionImpactedTargetsResult';
@@ -119,6 +126,9 @@ export type { IssuesIssuesAugmentRemediationResponseBody } from './schemas/Issue
119
126
  export type { LatestBaselineScanInfo } from './schemas/LatestBaselineScanInfo';
120
127
  export type { MinimalIssueCounts } from './schemas/MinimalIssueCounts';
121
128
  export type { NotFound } from './schemas/NotFound';
129
+ export type { Override } from './schemas/Override';
130
+ export type { OverrideResult } from './schemas/OverrideResult';
131
+ export type { OverridesListOverridesResponseBody } from './schemas/OverridesListOverridesResponseBody';
122
132
  export type { PaginatedIssueSummaries } from './schemas/PaginatedIssueSummaries';
123
133
  export type { Pagination } from './schemas/Pagination';
124
134
  export type { PatchTargetRequestBody } from './schemas/PatchTargetRequestBody';
@@ -24,6 +24,9 @@ export { frontendTestTargets, useFrontendTestTargetsQuery, } from './hooks/useFr
24
24
  export { frontendUpdateTestTargetVariants, useFrontendUpdateTestTargetVariantsMutation, } from './hooks/useFrontendUpdateTestTargetVariantsMutation';
25
25
  export { issuesFindIssueById, useIssuesFindIssueByIdQuery, } from './hooks/useIssuesFindIssueByIdQuery';
26
26
  export { issuesIssuesAugmentRemediation, useIssuesIssuesAugmentRemediationMutation, } from './hooks/useIssuesIssuesAugmentRemediationMutation';
27
+ export { overridesCreateOverride, useOverridesCreateOverrideMutation, } from './hooks/useOverridesCreateOverrideMutation';
28
+ export { overridesDeleteOverride, useOverridesDeleteOverrideMutation, } from './hooks/useOverridesDeleteOverrideMutation';
29
+ export { overridesListOverrides, useOverridesListOverridesQuery, } from './hooks/useOverridesListOverridesQuery';
27
30
  export { productsListProducts, useProductsListProductsQuery, } from './hooks/useProductsListProductsQuery';
28
31
  export { pullRequestsCreatePullRequest, usePullRequestsCreatePullRequestMutation, } from './hooks/usePullRequestsCreatePullRequestMutation';
29
32
  export { pullRequestsGetPullRequestCorrelation, usePullRequestsGetPullRequestCorrelationQuery, } from './hooks/usePullRequestsGetPullRequestCorrelationQuery';
@@ -1,6 +1,7 @@
1
+ import type { OverrideResult } from '../schemas/OverrideResult';
1
2
  /**
2
3
  * All issue list summary
3
- * @example {"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Vitae animi est nesciunt quidem modi debitis.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"override":{"originalSeverity":"medium","reason":"snyk"},"severityCode":"High","status":"Exempted","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}
4
+ * @example {"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Eos magnam et.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111"}],"severityCode":"High","status":"Exempted","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}
4
5
  */
5
6
  export interface AllIssueSummary {
6
7
  /**
@@ -26,7 +27,7 @@ export interface AllIssueSummary {
26
27
  id: string;
27
28
  /**
28
29
  * Issue Type
29
- * @example "Consectetur non ipsa nostrum adipisci autem perspiciatis."
30
+ * @example "Nam ipsam at est."
30
31
  */
31
32
  issueType?: string;
32
33
  /**
@@ -48,12 +49,10 @@ export interface AllIssueSummary {
48
49
  */
49
50
  numTargetsImpacted: number;
50
51
  /**
51
- * Indicates the issue has been overridden
52
- * @example {"originalSeverity":"medium","reason":"snyk"}
52
+ * List of issue overrides
53
+ * @example [{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111"}]
53
54
  */
54
- override?: {
55
- [key: string]: any;
56
- };
55
+ overrides?: OverrideResult[];
57
56
  /**
58
57
  * Severity code
59
58
  * @example "High"
@@ -61,7 +60,7 @@ export interface AllIssueSummary {
61
60
  severityCode: 'Critical' | 'High' | 'Info' | 'Low' | 'Medium' | 'Unassigned';
62
61
  /**
63
62
  * Issue Status
64
- * @example "Exempted"
63
+ * @example "Active"
65
64
  */
66
65
  status?: 'Active' | 'Exempted';
67
66
  /**
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};