@harnessio/react-sei-panorama-service-client 0.25.12 → 0.25.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.
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery.d.ts +33 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesQuery.d.ts +34 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrBreakdownQuery.d.ts +33 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrBreakdownQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrQuery.d.ts +34 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery.d.ts +33 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateQuery.d.ts +34 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery.d.ts +33 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery.d.ts +46 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityFilterValuesQuery.d.ts +17 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityFilterValuesQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery.d.ts +34 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/index.d.ts +42 -0
- package/dist/sei-panorama-service/src/services/index.js +10 -0
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesBreakdownItemDto.d.ts +40 -0
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesBreakdownItemDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesBreakdownResponseDto.d.ts +27 -0
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesBreakdownResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesDataPointDto.d.ts +41 -0
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesDataPointDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesResponseDto.d.ts +32 -0
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesSummaryDto.d.ts +17 -0
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesSummaryDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrBreakdownItemDto.d.ts +22 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrBreakdownItemDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrBreakdownResponseDto.d.ts +27 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrBreakdownResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrDataPointDto.d.ts +23 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrDataPointDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrResponseDto.d.ts +32 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrSummaryDto.d.ts +17 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrSummaryDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownItemDto.d.ts +34 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownItemDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownResponseDto.d.ts +27 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateDataPointDto.d.ts +35 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateDataPointDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateResponseDto.d.ts +32 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateSummaryDto.d.ts +17 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateSummaryDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownItemDto.d.ts +46 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownItemDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownResponseDto.d.ts +27 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesDataPointDto.d.ts +47 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesDataPointDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesResponseDto.d.ts +31 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesSummaryDto.d.ts +17 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesSummaryDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/SecurityDrilldownResponseDto.d.ts +6 -0
- package/dist/sei-panorama-service/src/services/schemas/SecurityDrilldownResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/VulnerabilityDetail.d.ts +48 -0
- package/dist/sei-panorama-service/src/services/schemas/VulnerabilityDetail.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AgedVulnerabilitiesBreakdownResponseDto } from '../schemas/AgedVulnerabilitiesBreakdownResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQueryQueryParams {
|
|
6
|
+
account: string;
|
|
7
|
+
projectIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int32
|
|
11
|
+
*/
|
|
12
|
+
teamRefId: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format date-time
|
|
15
|
+
*/
|
|
16
|
+
startDate: string;
|
|
17
|
+
/**
|
|
18
|
+
* @format date-time
|
|
19
|
+
*/
|
|
20
|
+
endDate: string;
|
|
21
|
+
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
22
|
+
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
23
|
+
}
|
|
24
|
+
export type SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownOkResponse = ResponseWithPagination<AgedVulnerabilitiesBreakdownResponseDto>;
|
|
25
|
+
export type SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownErrorResponse = string;
|
|
26
|
+
export interface SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownProps extends Omit<FetcherOptions<SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQueryQueryParams, unknown>, 'url'> {
|
|
27
|
+
queryParams: SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export declare function securityInsightsControllerGetAgedVulnerabilitiesBreakdown(props: SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownProps): Promise<SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Groups aged vulnerabilities by team. Returns aggregated values for each team for the entire duration.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery(props: SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownOkResponse, SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetAgedVulnerabilitiesBreakdown(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security/aged-vulnerabilities/breakdown`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Groups aged vulnerabilities by team. Returns aggregated values for each team for the entire duration.
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsControllerGetAgedVulnerabilitiesBreakdown', props.queryParams], ({ signal }) => securityInsightsControllerGetAgedVulnerabilitiesBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AgedVulnerabilitiesResponseDto } from '../schemas/AgedVulnerabilitiesResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SecurityInsightsControllerGetAgedVulnerabilitiesQueryQueryParams {
|
|
6
|
+
account: string;
|
|
7
|
+
projectIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int32
|
|
11
|
+
*/
|
|
12
|
+
teamRefId: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format date-time
|
|
15
|
+
*/
|
|
16
|
+
startDate: string;
|
|
17
|
+
/**
|
|
18
|
+
* @format date-time
|
|
19
|
+
*/
|
|
20
|
+
endDate: string;
|
|
21
|
+
granularity: string;
|
|
22
|
+
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
23
|
+
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
24
|
+
}
|
|
25
|
+
export type SecurityInsightsControllerGetAgedVulnerabilitiesOkResponse = ResponseWithPagination<AgedVulnerabilitiesResponseDto>;
|
|
26
|
+
export type SecurityInsightsControllerGetAgedVulnerabilitiesErrorResponse = string;
|
|
27
|
+
export interface SecurityInsightsControllerGetAgedVulnerabilitiesProps extends Omit<FetcherOptions<SecurityInsightsControllerGetAgedVulnerabilitiesQueryQueryParams, unknown>, 'url'> {
|
|
28
|
+
queryParams: SecurityInsightsControllerGetAgedVulnerabilitiesQueryQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export declare function securityInsightsControllerGetAgedVulnerabilities(props: SecurityInsightsControllerGetAgedVulnerabilitiesProps): Promise<SecurityInsightsControllerGetAgedVulnerabilitiesOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves count of vulnerabilities exceeding SLA thresholds
|
|
33
|
+
*/
|
|
34
|
+
export declare function useSecurityInsightsControllerGetAgedVulnerabilitiesQuery(props: SecurityInsightsControllerGetAgedVulnerabilitiesProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetAgedVulnerabilitiesOkResponse, SecurityInsightsControllerGetAgedVulnerabilitiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetAgedVulnerabilitiesOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetAgedVulnerabilities(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security/aged-vulnerabilities`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves count of vulnerabilities exceeding SLA thresholds
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsControllerGetAgedVulnerabilitiesQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsControllerGetAgedVulnerabilities', props.queryParams], ({ signal }) => securityInsightsControllerGetAgedVulnerabilities(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { MttrBreakdownResponseDto } from '../schemas/MttrBreakdownResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SecurityInsightsControllerGetMttrBreakdownQueryQueryParams {
|
|
6
|
+
account: string;
|
|
7
|
+
projectIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int32
|
|
11
|
+
*/
|
|
12
|
+
teamRefId: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format date-time
|
|
15
|
+
*/
|
|
16
|
+
startDate: string;
|
|
17
|
+
/**
|
|
18
|
+
* @format date-time
|
|
19
|
+
*/
|
|
20
|
+
endDate: string;
|
|
21
|
+
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
22
|
+
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
23
|
+
}
|
|
24
|
+
export type SecurityInsightsControllerGetMttrBreakdownOkResponse = ResponseWithPagination<MttrBreakdownResponseDto>;
|
|
25
|
+
export type SecurityInsightsControllerGetMttrBreakdownErrorResponse = string;
|
|
26
|
+
export interface SecurityInsightsControllerGetMttrBreakdownProps extends Omit<FetcherOptions<SecurityInsightsControllerGetMttrBreakdownQueryQueryParams, unknown>, 'url'> {
|
|
27
|
+
queryParams: SecurityInsightsControllerGetMttrBreakdownQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export declare function securityInsightsControllerGetMttrBreakdown(props: SecurityInsightsControllerGetMttrBreakdownProps): Promise<SecurityInsightsControllerGetMttrBreakdownOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Groups MTTR by team. Returns aggregated values for each team for the entire duration.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useSecurityInsightsControllerGetMttrBreakdownQuery(props: SecurityInsightsControllerGetMttrBreakdownProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetMttrBreakdownOkResponse, SecurityInsightsControllerGetMttrBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetMttrBreakdownOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetMttrBreakdown(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security/mttr/breakdown`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Groups MTTR by team. Returns aggregated values for each team for the entire duration.
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsControllerGetMttrBreakdownQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsControllerGetMttrBreakdown', props.queryParams], ({ signal }) => securityInsightsControllerGetMttrBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrQuery.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { MttrResponseDto } from '../schemas/MttrResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SecurityInsightsControllerGetMttrQueryQueryParams {
|
|
6
|
+
account: string;
|
|
7
|
+
projectIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int32
|
|
11
|
+
*/
|
|
12
|
+
teamRefId: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format date-time
|
|
15
|
+
*/
|
|
16
|
+
startDate: string;
|
|
17
|
+
/**
|
|
18
|
+
* @format date-time
|
|
19
|
+
*/
|
|
20
|
+
endDate: string;
|
|
21
|
+
granularity: string;
|
|
22
|
+
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
23
|
+
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
24
|
+
}
|
|
25
|
+
export type SecurityInsightsControllerGetMttrOkResponse = ResponseWithPagination<MttrResponseDto>;
|
|
26
|
+
export type SecurityInsightsControllerGetMttrErrorResponse = string;
|
|
27
|
+
export interface SecurityInsightsControllerGetMttrProps extends Omit<FetcherOptions<SecurityInsightsControllerGetMttrQueryQueryParams, unknown>, 'url'> {
|
|
28
|
+
queryParams: SecurityInsightsControllerGetMttrQueryQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export declare function securityInsightsControllerGetMttr(props: SecurityInsightsControllerGetMttrProps): Promise<SecurityInsightsControllerGetMttrOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves average time to remediate security vulnerabilities
|
|
33
|
+
*/
|
|
34
|
+
export declare function useSecurityInsightsControllerGetMttrQuery(props: SecurityInsightsControllerGetMttrProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetMttrOkResponse, SecurityInsightsControllerGetMttrErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetMttrOkResponse, string>;
|
package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrQuery.js
ADDED
|
@@ -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 securityInsightsControllerGetMttr(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security/mttr`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves average time to remediate security vulnerabilities
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsControllerGetMttrQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsControllerGetMttr', props.queryParams], ({ signal }) => securityInsightsControllerGetMttr(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OpenCloseRateBreakdownResponseDto } from '../schemas/OpenCloseRateBreakdownResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SecurityInsightsControllerGetOpenCloseRateBreakdownQueryQueryParams {
|
|
6
|
+
account: string;
|
|
7
|
+
projectIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int32
|
|
11
|
+
*/
|
|
12
|
+
teamRefId: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format date-time
|
|
15
|
+
*/
|
|
16
|
+
startDate: string;
|
|
17
|
+
/**
|
|
18
|
+
* @format date-time
|
|
19
|
+
*/
|
|
20
|
+
endDate: string;
|
|
21
|
+
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
22
|
+
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
23
|
+
}
|
|
24
|
+
export type SecurityInsightsControllerGetOpenCloseRateBreakdownOkResponse = ResponseWithPagination<OpenCloseRateBreakdownResponseDto>;
|
|
25
|
+
export type SecurityInsightsControllerGetOpenCloseRateBreakdownErrorResponse = string;
|
|
26
|
+
export interface SecurityInsightsControllerGetOpenCloseRateBreakdownProps extends Omit<FetcherOptions<SecurityInsightsControllerGetOpenCloseRateBreakdownQueryQueryParams, unknown>, 'url'> {
|
|
27
|
+
queryParams: SecurityInsightsControllerGetOpenCloseRateBreakdownQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export declare function securityInsightsControllerGetOpenCloseRateBreakdown(props: SecurityInsightsControllerGetOpenCloseRateBreakdownProps): Promise<SecurityInsightsControllerGetOpenCloseRateBreakdownOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Groups open/close rate by team. Returns aggregated values for each team for the entire duration.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery(props: SecurityInsightsControllerGetOpenCloseRateBreakdownProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetOpenCloseRateBreakdownOkResponse, SecurityInsightsControllerGetOpenCloseRateBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetOpenCloseRateBreakdownOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetOpenCloseRateBreakdown(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security/open-close-rate/breakdown`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Groups open/close rate by team. Returns aggregated values for each team for the entire duration.
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsControllerGetOpenCloseRateBreakdown', props.queryParams], ({ signal }) => securityInsightsControllerGetOpenCloseRateBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OpenCloseRateResponseDto } from '../schemas/OpenCloseRateResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SecurityInsightsControllerGetOpenCloseRateQueryQueryParams {
|
|
6
|
+
account: string;
|
|
7
|
+
projectIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int32
|
|
11
|
+
*/
|
|
12
|
+
teamRefId: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format date-time
|
|
15
|
+
*/
|
|
16
|
+
startDate: string;
|
|
17
|
+
/**
|
|
18
|
+
* @format date-time
|
|
19
|
+
*/
|
|
20
|
+
endDate: string;
|
|
21
|
+
granularity: string;
|
|
22
|
+
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
23
|
+
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
24
|
+
}
|
|
25
|
+
export type SecurityInsightsControllerGetOpenCloseRateOkResponse = ResponseWithPagination<OpenCloseRateResponseDto>;
|
|
26
|
+
export type SecurityInsightsControllerGetOpenCloseRateErrorResponse = string;
|
|
27
|
+
export interface SecurityInsightsControllerGetOpenCloseRateProps extends Omit<FetcherOptions<SecurityInsightsControllerGetOpenCloseRateQueryQueryParams, unknown>, 'url'> {
|
|
28
|
+
queryParams: SecurityInsightsControllerGetOpenCloseRateQueryQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export declare function securityInsightsControllerGetOpenCloseRate(props: SecurityInsightsControllerGetOpenCloseRateProps): Promise<SecurityInsightsControllerGetOpenCloseRateOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves the rate of vulnerabilities being closed vs opened
|
|
33
|
+
*/
|
|
34
|
+
export declare function useSecurityInsightsControllerGetOpenCloseRateQuery(props: SecurityInsightsControllerGetOpenCloseRateProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetOpenCloseRateOkResponse, SecurityInsightsControllerGetOpenCloseRateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetOpenCloseRateOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetOpenCloseRate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security/open-close-rate`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the rate of vulnerabilities being closed vs opened
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsControllerGetOpenCloseRateQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsControllerGetOpenCloseRate', props.queryParams], ({ signal }) => securityInsightsControllerGetOpenCloseRate(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OpenVulnerabilitiesBreakdownResponseDto } from '../schemas/OpenVulnerabilitiesBreakdownResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQueryQueryParams {
|
|
6
|
+
account: string;
|
|
7
|
+
projectIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int32
|
|
11
|
+
*/
|
|
12
|
+
teamRefId: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format date-time
|
|
15
|
+
*/
|
|
16
|
+
startDate: string;
|
|
17
|
+
/**
|
|
18
|
+
* @format date-time
|
|
19
|
+
*/
|
|
20
|
+
endDate: string;
|
|
21
|
+
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
22
|
+
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
23
|
+
}
|
|
24
|
+
export type SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownOkResponse = ResponseWithPagination<OpenVulnerabilitiesBreakdownResponseDto>;
|
|
25
|
+
export type SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownErrorResponse = string;
|
|
26
|
+
export interface SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownProps extends Omit<FetcherOptions<SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQueryQueryParams, unknown>, 'url'> {
|
|
27
|
+
queryParams: SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export declare function securityInsightsControllerGetOpenVulnerabilitiesBreakdown(props: SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownProps): Promise<SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Groups open vulnerabilities by team. Returns aggregated values for each team for the entire duration.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery(props: SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownOkResponse, SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetOpenVulnerabilitiesBreakdown(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security/open-vulnerabilities/breakdown`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Groups open vulnerabilities by team. Returns aggregated values for each team for the entire duration.
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsControllerGetOpenVulnerabilitiesBreakdown', props.queryParams], ({ signal }) => securityInsightsControllerGetOpenVulnerabilitiesBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SecurityDrilldownResponseDto } from '../schemas/SecurityDrilldownResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SecurityInsightsControllerGetSecurityDrilldownQueryQueryParams {
|
|
6
|
+
account: string;
|
|
7
|
+
projectIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int32
|
|
11
|
+
*/
|
|
12
|
+
teamRefId: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format date-time
|
|
15
|
+
*/
|
|
16
|
+
startDate: string;
|
|
17
|
+
/**
|
|
18
|
+
* @format date-time
|
|
19
|
+
*/
|
|
20
|
+
endDate: string;
|
|
21
|
+
metricType: 'AGED_VULNERABILITIES' | 'MTTR' | 'OPEN_CLOSE_RATE' | 'TOTAL_OPEN_VULNERABILITIES';
|
|
22
|
+
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
23
|
+
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
24
|
+
/**
|
|
25
|
+
* @format int32
|
|
26
|
+
* @default 0
|
|
27
|
+
*/
|
|
28
|
+
page?: number;
|
|
29
|
+
/**
|
|
30
|
+
* @format int32
|
|
31
|
+
* @default 20
|
|
32
|
+
*/
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
sortBy?: string;
|
|
35
|
+
sortDirection?: string;
|
|
36
|
+
}
|
|
37
|
+
export type SecurityInsightsControllerGetSecurityDrilldownOkResponse = ResponseWithPagination<SecurityDrilldownResponseDto>;
|
|
38
|
+
export type SecurityInsightsControllerGetSecurityDrilldownErrorResponse = string;
|
|
39
|
+
export interface SecurityInsightsControllerGetSecurityDrilldownProps extends Omit<FetcherOptions<SecurityInsightsControllerGetSecurityDrilldownQueryQueryParams, unknown>, 'url'> {
|
|
40
|
+
queryParams: SecurityInsightsControllerGetSecurityDrilldownQueryQueryParams;
|
|
41
|
+
}
|
|
42
|
+
export declare function securityInsightsControllerGetSecurityDrilldown(props: SecurityInsightsControllerGetSecurityDrilldownProps): Promise<SecurityInsightsControllerGetSecurityDrilldownOkResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves detailed vulnerability records with pagination and filtering
|
|
45
|
+
*/
|
|
46
|
+
export declare function useSecurityInsightsControllerGetSecurityDrilldownQuery(props: SecurityInsightsControllerGetSecurityDrilldownProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetSecurityDrilldownOkResponse, SecurityInsightsControllerGetSecurityDrilldownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetSecurityDrilldownOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetSecurityDrilldown(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security/drilldown`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves detailed vulnerability records with pagination and filtering
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsControllerGetSecurityDrilldownQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsControllerGetSecurityDrilldown', props.queryParams], ({ signal }) => securityInsightsControllerGetSecurityDrilldown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
3
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
4
|
+
export interface SecurityInsightsControllerGetSecurityFilterValuesQueryQueryParams {
|
|
5
|
+
filterKey: 'CODE_AREA' | 'COMPONENTS' | 'CUSTOM' | 'DEPLOYMENT_TYPE' | 'ENV_ID' | 'INFRA_ID' | 'ISSUE_PRIORITY' | 'ISSUE_STATUS' | 'ISSUE_TYPE' | 'LABEL' | 'LABELS' | 'ORGANIZATION' | 'PARENT_KEY' | 'PIPELINE_NAME' | 'PIPELINE_STATUS' | 'PRIORITY' | 'PROJECT' | 'REPO' | 'ROLLBACK' | 'SERVICE_NAME' | 'SNYK_BRANCH' | 'SNYK_ENVIRONMENT' | 'SNYK_FILE_PATH' | 'SNYK_MONOREPO_PATH' | 'SNYK_ORG_ID' | 'SNYK_PROJECT_TAG' | 'SNYK_REPOSITORY' | 'SOURCE_BRANCH' | 'SPRINT_NAME' | 'STAGE_NAME' | 'STATUS' | 'TAGS' | 'TARGET_BRANCH' | 'TEAM' | 'WIZ_CLOUD_ACCOUNT_ID' | 'WIZ_LANDING_ZONE_NAME' | 'WIZ_PROJECT_ID' | 'WIZ_REGION' | 'WIZ_RESOURCE_TAG' | 'WIZ_RESOURCE_TYPE';
|
|
6
|
+
account: string;
|
|
7
|
+
}
|
|
8
|
+
export type SecurityInsightsControllerGetSecurityFilterValuesOkResponse = ResponseWithPagination<string[]>;
|
|
9
|
+
export type SecurityInsightsControllerGetSecurityFilterValuesErrorResponse = string[];
|
|
10
|
+
export interface SecurityInsightsControllerGetSecurityFilterValuesProps extends Omit<FetcherOptions<SecurityInsightsControllerGetSecurityFilterValuesQueryQueryParams, unknown>, 'url'> {
|
|
11
|
+
queryParams: SecurityInsightsControllerGetSecurityFilterValuesQueryQueryParams;
|
|
12
|
+
}
|
|
13
|
+
export declare function securityInsightsControllerGetSecurityFilterValues(props: SecurityInsightsControllerGetSecurityFilterValuesProps): Promise<SecurityInsightsControllerGetSecurityFilterValuesOkResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Returns a list of distinct values for a specific filter key (SNYK filters supported).
|
|
16
|
+
*/
|
|
17
|
+
export declare function useSecurityInsightsControllerGetSecurityFilterValuesQuery(props: SecurityInsightsControllerGetSecurityFilterValuesProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetSecurityFilterValuesOkResponse, SecurityInsightsControllerGetSecurityFilterValuesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetSecurityFilterValuesOkResponse, SecurityInsightsControllerGetSecurityFilterValuesErrorResponse>;
|
|
@@ -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 securityInsightsControllerGetSecurityFilterValues(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security/filter_values`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a list of distinct values for a specific filter key (SNYK filters supported).
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsControllerGetSecurityFilterValuesQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsControllerGetSecurityFilterValues', props.queryParams], ({ signal }) => securityInsightsControllerGetSecurityFilterValues(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OpenVulnerabilitiesResponseDto } from '../schemas/OpenVulnerabilitiesResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SecurityInsightsControllerGetTotalOpenVulnerabilitiesQueryQueryParams {
|
|
6
|
+
account: string;
|
|
7
|
+
projectIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int32
|
|
11
|
+
*/
|
|
12
|
+
teamRefId: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format date-time
|
|
15
|
+
*/
|
|
16
|
+
startDate: string;
|
|
17
|
+
/**
|
|
18
|
+
* @format date-time
|
|
19
|
+
*/
|
|
20
|
+
endDate: string;
|
|
21
|
+
granularity: string;
|
|
22
|
+
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
23
|
+
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
24
|
+
}
|
|
25
|
+
export type SecurityInsightsControllerGetTotalOpenVulnerabilitiesOkResponse = ResponseWithPagination<OpenVulnerabilitiesResponseDto>;
|
|
26
|
+
export type SecurityInsightsControllerGetTotalOpenVulnerabilitiesErrorResponse = string;
|
|
27
|
+
export interface SecurityInsightsControllerGetTotalOpenVulnerabilitiesProps extends Omit<FetcherOptions<SecurityInsightsControllerGetTotalOpenVulnerabilitiesQueryQueryParams, unknown>, 'url'> {
|
|
28
|
+
queryParams: SecurityInsightsControllerGetTotalOpenVulnerabilitiesQueryQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export declare function securityInsightsControllerGetTotalOpenVulnerabilities(props: SecurityInsightsControllerGetTotalOpenVulnerabilitiesProps): Promise<SecurityInsightsControllerGetTotalOpenVulnerabilitiesOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves total count of open vulnerabilities with platform and severity breakdowns
|
|
33
|
+
*/
|
|
34
|
+
export declare function useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery(props: SecurityInsightsControllerGetTotalOpenVulnerabilitiesProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetTotalOpenVulnerabilitiesOkResponse, SecurityInsightsControllerGetTotalOpenVulnerabilitiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetTotalOpenVulnerabilitiesOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetTotalOpenVulnerabilities(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security/open-vulnerabilities`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves total count of open vulnerabilities with platform and severity breakdowns
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsControllerGetTotalOpenVulnerabilities', props.queryParams], ({ signal }) => securityInsightsControllerGetTotalOpenVulnerabilities(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -319,6 +319,26 @@ export type { ScmGaControllerGetBuildInfoFromPrErrorResponse, ScmGaControllerGet
|
|
|
319
319
|
export { scmGaControllerGetBuildInfoFromPr, useScmGaControllerGetBuildInfoFromPrQuery, } from './hooks/useScmGaControllerGetBuildInfoFromPrQuery';
|
|
320
320
|
export type { ScmGaControllerGetDeployInfoFromPrErrorResponse, ScmGaControllerGetDeployInfoFromPrOkResponse, ScmGaControllerGetDeployInfoFromPrProps, ScmGaControllerGetDeployInfoFromPrQueryQueryParams, ScmGaControllerGetDeployInfoFromPrRequestBody, } from './hooks/useScmGaControllerGetDeployInfoFromPrQuery';
|
|
321
321
|
export { scmGaControllerGetDeployInfoFromPr, useScmGaControllerGetDeployInfoFromPrQuery, } from './hooks/useScmGaControllerGetDeployInfoFromPrQuery';
|
|
322
|
+
export type { SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownErrorResponse, SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownOkResponse, SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownProps, SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQueryQueryParams, } from './hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery';
|
|
323
|
+
export { securityInsightsControllerGetAgedVulnerabilitiesBreakdown, useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery, } from './hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery';
|
|
324
|
+
export type { SecurityInsightsControllerGetAgedVulnerabilitiesErrorResponse, SecurityInsightsControllerGetAgedVulnerabilitiesOkResponse, SecurityInsightsControllerGetAgedVulnerabilitiesProps, SecurityInsightsControllerGetAgedVulnerabilitiesQueryQueryParams, } from './hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesQuery';
|
|
325
|
+
export { securityInsightsControllerGetAgedVulnerabilities, useSecurityInsightsControllerGetAgedVulnerabilitiesQuery, } from './hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesQuery';
|
|
326
|
+
export type { SecurityInsightsControllerGetMttrBreakdownErrorResponse, SecurityInsightsControllerGetMttrBreakdownOkResponse, SecurityInsightsControllerGetMttrBreakdownProps, SecurityInsightsControllerGetMttrBreakdownQueryQueryParams, } from './hooks/useSecurityInsightsControllerGetMttrBreakdownQuery';
|
|
327
|
+
export { securityInsightsControllerGetMttrBreakdown, useSecurityInsightsControllerGetMttrBreakdownQuery, } from './hooks/useSecurityInsightsControllerGetMttrBreakdownQuery';
|
|
328
|
+
export type { SecurityInsightsControllerGetMttrErrorResponse, SecurityInsightsControllerGetMttrOkResponse, SecurityInsightsControllerGetMttrProps, SecurityInsightsControllerGetMttrQueryQueryParams, } from './hooks/useSecurityInsightsControllerGetMttrQuery';
|
|
329
|
+
export { securityInsightsControllerGetMttr, useSecurityInsightsControllerGetMttrQuery, } from './hooks/useSecurityInsightsControllerGetMttrQuery';
|
|
330
|
+
export type { SecurityInsightsControllerGetOpenCloseRateBreakdownErrorResponse, SecurityInsightsControllerGetOpenCloseRateBreakdownOkResponse, SecurityInsightsControllerGetOpenCloseRateBreakdownProps, SecurityInsightsControllerGetOpenCloseRateBreakdownQueryQueryParams, } from './hooks/useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery';
|
|
331
|
+
export { securityInsightsControllerGetOpenCloseRateBreakdown, useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery, } from './hooks/useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery';
|
|
332
|
+
export type { SecurityInsightsControllerGetOpenCloseRateErrorResponse, SecurityInsightsControllerGetOpenCloseRateOkResponse, SecurityInsightsControllerGetOpenCloseRateProps, SecurityInsightsControllerGetOpenCloseRateQueryQueryParams, } from './hooks/useSecurityInsightsControllerGetOpenCloseRateQuery';
|
|
333
|
+
export { securityInsightsControllerGetOpenCloseRate, useSecurityInsightsControllerGetOpenCloseRateQuery, } from './hooks/useSecurityInsightsControllerGetOpenCloseRateQuery';
|
|
334
|
+
export type { SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownErrorResponse, SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownOkResponse, SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownProps, SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQueryQueryParams, } from './hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery';
|
|
335
|
+
export { securityInsightsControllerGetOpenVulnerabilitiesBreakdown, useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery, } from './hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery';
|
|
336
|
+
export type { SecurityInsightsControllerGetSecurityDrilldownErrorResponse, SecurityInsightsControllerGetSecurityDrilldownOkResponse, SecurityInsightsControllerGetSecurityDrilldownProps, SecurityInsightsControllerGetSecurityDrilldownQueryQueryParams, } from './hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery';
|
|
337
|
+
export { securityInsightsControllerGetSecurityDrilldown, useSecurityInsightsControllerGetSecurityDrilldownQuery, } from './hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery';
|
|
338
|
+
export type { SecurityInsightsControllerGetSecurityFilterValuesErrorResponse, SecurityInsightsControllerGetSecurityFilterValuesOkResponse, SecurityInsightsControllerGetSecurityFilterValuesProps, SecurityInsightsControllerGetSecurityFilterValuesQueryQueryParams, } from './hooks/useSecurityInsightsControllerGetSecurityFilterValuesQuery';
|
|
339
|
+
export { securityInsightsControllerGetSecurityFilterValues, useSecurityInsightsControllerGetSecurityFilterValuesQuery, } from './hooks/useSecurityInsightsControllerGetSecurityFilterValuesQuery';
|
|
340
|
+
export type { SecurityInsightsControllerGetTotalOpenVulnerabilitiesErrorResponse, SecurityInsightsControllerGetTotalOpenVulnerabilitiesOkResponse, SecurityInsightsControllerGetTotalOpenVulnerabilitiesProps, SecurityInsightsControllerGetTotalOpenVulnerabilitiesQueryQueryParams, } from './hooks/useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery';
|
|
341
|
+
export { securityInsightsControllerGetTotalOpenVulnerabilities, useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery, } from './hooks/useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery';
|
|
322
342
|
export type { SecurityProfileControllerCreateProfileErrorResponse, SecurityProfileControllerCreateProfileOkResponse, SecurityProfileControllerCreateProfileProps, SecurityProfileControllerCreateProfileRequestBody, } from './hooks/useSecurityProfileControllerCreateProfileMutation';
|
|
323
343
|
export { securityProfileControllerCreateProfile, useSecurityProfileControllerCreateProfileMutation, } from './hooks/useSecurityProfileControllerCreateProfileMutation';
|
|
324
344
|
export type { SecurityProfileControllerDeleteProfileErrorResponse, SecurityProfileControllerDeleteProfileMutationPathParams, SecurityProfileControllerDeleteProfileOkResponse, SecurityProfileControllerDeleteProfileProps, } from './hooks/useSecurityProfileControllerDeleteProfileMutation';
|
|
@@ -371,6 +391,11 @@ export type { AccessResponseDto } from './schemas/AccessResponseDto';
|
|
|
371
391
|
export type { ActivityDataDto } from './schemas/ActivityDataDto';
|
|
372
392
|
export type { AdoptionDataPoint } from './schemas/AdoptionDataPoint';
|
|
373
393
|
export type { AdoptionPeriodData } from './schemas/AdoptionPeriodData';
|
|
394
|
+
export type { AgedVulnerabilitiesBreakdownItemDto } from './schemas/AgedVulnerabilitiesBreakdownItemDto';
|
|
395
|
+
export type { AgedVulnerabilitiesBreakdownResponseDto } from './schemas/AgedVulnerabilitiesBreakdownResponseDto';
|
|
396
|
+
export type { AgedVulnerabilitiesDataPointDto } from './schemas/AgedVulnerabilitiesDataPointDto';
|
|
397
|
+
export type { AgedVulnerabilitiesResponseDto } from './schemas/AgedVulnerabilitiesResponseDto';
|
|
398
|
+
export type { AgedVulnerabilitiesSummaryDto } from './schemas/AgedVulnerabilitiesSummaryDto';
|
|
374
399
|
export type { AiAdoptionBreakdownRequestDto } from './schemas/AiAdoptionBreakdownRequestDto';
|
|
375
400
|
export type { AiAdoptionBreakdownResponseDto } from './schemas/AiAdoptionBreakdownResponseDto';
|
|
376
401
|
export type { AiAdoptionMetricsRequestDto } from './schemas/AiAdoptionMetricsRequestDto';
|
|
@@ -558,11 +583,26 @@ export type { MinimalDeveloperDto } from './schemas/MinimalDeveloperDto';
|
|
|
558
583
|
export type { MinimalOrgTree } from './schemas/MinimalOrgTree';
|
|
559
584
|
export type { MinimalTeamHierarchyResponseDto } from './schemas/MinimalTeamHierarchyResponseDto';
|
|
560
585
|
export type { MonthlyLicenseUsageResponseDto } from './schemas/MonthlyLicenseUsageResponseDto';
|
|
586
|
+
export type { MttrBreakdownItemDto } from './schemas/MttrBreakdownItemDto';
|
|
587
|
+
export type { MttrBreakdownResponseDto } from './schemas/MttrBreakdownResponseDto';
|
|
561
588
|
export type { MttrConfigurationDto } from './schemas/MttrConfigurationDto';
|
|
562
589
|
export type { MttrDataPoint } from './schemas/MttrDataPoint';
|
|
590
|
+
export type { MttrDataPointDto } from './schemas/MttrDataPointDto';
|
|
563
591
|
export type { MttrDrillDownResponseDto } from './schemas/MttrDrillDownResponseDto';
|
|
564
592
|
export type { MttrDrilldownRequest } from './schemas/MttrDrilldownRequest';
|
|
565
593
|
export type { MttrMetric } from './schemas/MttrMetric';
|
|
594
|
+
export type { MttrResponseDto } from './schemas/MttrResponseDto';
|
|
595
|
+
export type { MttrSummaryDto } from './schemas/MttrSummaryDto';
|
|
596
|
+
export type { OpenCloseRateBreakdownItemDto } from './schemas/OpenCloseRateBreakdownItemDto';
|
|
597
|
+
export type { OpenCloseRateBreakdownResponseDto } from './schemas/OpenCloseRateBreakdownResponseDto';
|
|
598
|
+
export type { OpenCloseRateDataPointDto } from './schemas/OpenCloseRateDataPointDto';
|
|
599
|
+
export type { OpenCloseRateResponseDto } from './schemas/OpenCloseRateResponseDto';
|
|
600
|
+
export type { OpenCloseRateSummaryDto } from './schemas/OpenCloseRateSummaryDto';
|
|
601
|
+
export type { OpenVulnerabilitiesBreakdownItemDto } from './schemas/OpenVulnerabilitiesBreakdownItemDto';
|
|
602
|
+
export type { OpenVulnerabilitiesBreakdownResponseDto } from './schemas/OpenVulnerabilitiesBreakdownResponseDto';
|
|
603
|
+
export type { OpenVulnerabilitiesDataPointDto } from './schemas/OpenVulnerabilitiesDataPointDto';
|
|
604
|
+
export type { OpenVulnerabilitiesResponseDto } from './schemas/OpenVulnerabilitiesResponseDto';
|
|
605
|
+
export type { OpenVulnerabilitiesSummaryDto } from './schemas/OpenVulnerabilitiesSummaryDto';
|
|
566
606
|
export type { OrgTreeCreateRequestDto } from './schemas/OrgTreeCreateRequestDto';
|
|
567
607
|
export type { OrgTreePreviewRequestDto } from './schemas/OrgTreePreviewRequestDto';
|
|
568
608
|
export type { OrgTreeProfileDto } from './schemas/OrgTreeProfileDto';
|
|
@@ -613,6 +653,7 @@ export type { ReleaseIssueDto } from './schemas/ReleaseIssueDto';
|
|
|
613
653
|
export type { ReleaseIssuesResponseWrapper } from './schemas/ReleaseIssuesResponseWrapper';
|
|
614
654
|
export type { ScmStatsRequest } from './schemas/ScmStatsRequest';
|
|
615
655
|
export type { SectionDto } from './schemas/SectionDto';
|
|
656
|
+
export type { SecurityDrilldownResponseDto } from './schemas/SecurityDrilldownResponseDto';
|
|
616
657
|
export type { SecurityProfileCreateRequestDto } from './schemas/SecurityProfileCreateRequestDto';
|
|
617
658
|
export type { SecurityProfileResponseDto } from './schemas/SecurityProfileResponseDto';
|
|
618
659
|
export type { SortOption } from './schemas/SortOption';
|
|
@@ -666,6 +707,7 @@ export type { TotalStatisticCount } from './schemas/TotalStatisticCount';
|
|
|
666
707
|
export type { UserMetrics } from './schemas/UserMetrics';
|
|
667
708
|
export type { ValidationError } from './schemas/ValidationError';
|
|
668
709
|
export type { VersionReleaseRequest } from './schemas/VersionReleaseRequest';
|
|
710
|
+
export type { VulnerabilityDetail } from './schemas/VulnerabilityDetail';
|
|
669
711
|
export type { WorkCompletedDrilldownResponseDataPoint } from './schemas/WorkCompletedDrilldownResponseDataPoint';
|
|
670
712
|
export type { WorkCompletedDrilldownResponseDataPointV3 } from './schemas/WorkCompletedDrilldownResponseDataPointV3';
|
|
671
713
|
export type { WorkCompletedIndividualDrilldownResponseDataPoint } from './schemas/WorkCompletedIndividualDrilldownResponseDataPoint';
|
|
@@ -158,6 +158,16 @@ export { productivityV3ControllerGetFeatureMetrics, useProductivityV3ControllerG
|
|
|
158
158
|
export { productivityV3ControllerGetIndividualUserFeatureDrillDown, useProductivityV3ControllerGetIndividualUserFeatureDrillDownQuery, } from './hooks/useProductivityV3ControllerGetIndividualUserFeatureDrillDownQuery';
|
|
159
159
|
export { scmGaControllerGetBuildInfoFromPr, useScmGaControllerGetBuildInfoFromPrQuery, } from './hooks/useScmGaControllerGetBuildInfoFromPrQuery';
|
|
160
160
|
export { scmGaControllerGetDeployInfoFromPr, useScmGaControllerGetDeployInfoFromPrQuery, } from './hooks/useScmGaControllerGetDeployInfoFromPrQuery';
|
|
161
|
+
export { securityInsightsControllerGetAgedVulnerabilitiesBreakdown, useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery, } from './hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery';
|
|
162
|
+
export { securityInsightsControllerGetAgedVulnerabilities, useSecurityInsightsControllerGetAgedVulnerabilitiesQuery, } from './hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesQuery';
|
|
163
|
+
export { securityInsightsControllerGetMttrBreakdown, useSecurityInsightsControllerGetMttrBreakdownQuery, } from './hooks/useSecurityInsightsControllerGetMttrBreakdownQuery';
|
|
164
|
+
export { securityInsightsControllerGetMttr, useSecurityInsightsControllerGetMttrQuery, } from './hooks/useSecurityInsightsControllerGetMttrQuery';
|
|
165
|
+
export { securityInsightsControllerGetOpenCloseRateBreakdown, useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery, } from './hooks/useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery';
|
|
166
|
+
export { securityInsightsControllerGetOpenCloseRate, useSecurityInsightsControllerGetOpenCloseRateQuery, } from './hooks/useSecurityInsightsControllerGetOpenCloseRateQuery';
|
|
167
|
+
export { securityInsightsControllerGetOpenVulnerabilitiesBreakdown, useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery, } from './hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery';
|
|
168
|
+
export { securityInsightsControllerGetSecurityDrilldown, useSecurityInsightsControllerGetSecurityDrilldownQuery, } from './hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery';
|
|
169
|
+
export { securityInsightsControllerGetSecurityFilterValues, useSecurityInsightsControllerGetSecurityFilterValuesQuery, } from './hooks/useSecurityInsightsControllerGetSecurityFilterValuesQuery';
|
|
170
|
+
export { securityInsightsControllerGetTotalOpenVulnerabilities, useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery, } from './hooks/useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery';
|
|
161
171
|
export { securityProfileControllerCreateProfile, useSecurityProfileControllerCreateProfileMutation, } from './hooks/useSecurityProfileControllerCreateProfileMutation';
|
|
162
172
|
export { securityProfileControllerDeleteProfile, useSecurityProfileControllerDeleteProfileMutation, } from './hooks/useSecurityProfileControllerDeleteProfileMutation';
|
|
163
173
|
export { securityProfileControllerGetProfile, useSecurityProfileControllerGetProfileQuery, } from './hooks/useSecurityProfileControllerGetProfileQuery';
|