@harnessio/react-sei-panorama-service-client 0.30.0 → 0.30.1
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/useAiEngineeringControllerGetLeaderboardsQuery.d.ts +4 -0
- package/dist/sei-panorama-service/src/services/hooks/useDeveloperControllerUpsertDeveloperIdentitiesMutation.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useGitAiArtifactControllerDownloadLatestArtifactQuery.d.ts +16 -0
- package/dist/sei-panorama-service/src/services/hooks/useGitAiArtifactControllerDownloadLatestArtifactQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useGitAiArtifactControllerGetLatestArtifactQuery.d.ts +17 -0
- package/dist/sei-panorama-service/src/services/hooks/useGitAiArtifactControllerGetLatestArtifactQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQuery.d.ts +31 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsStatsControllerGetOpenVulnerabilitiesQuery.d.ts +32 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsStatsControllerGetOpenVulnerabilitiesQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsStatsControllerGetSecurityStatsDrilldownQuery.d.ts +44 -0
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsStatsControllerGetSecurityStatsDrilldownQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/index.d.ts +16 -0
- package/dist/sei-panorama-service/src/services/index.js +5 -0
- package/dist/sei-panorama-service/src/services/schemas/BreakdownItem.d.ts +15 -21
- package/dist/sei-panorama-service/src/services/schemas/BreakdownItem.js +0 -3
- package/dist/sei-panorama-service/src/services/schemas/GitAiArtifactDownloadResponse.d.ts +11 -0
- package/dist/sei-panorama-service/src/services/schemas/GitAiArtifactDownloadResponse.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/MetricValue.d.ts +6 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesStatsBreakdownResponseDto.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesStatsBreakdownResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/PaginationInfo.d.ts +5 -0
- package/dist/sei-panorama-service/src/services/schemas/SecurityStatsDrilldownResponseDto.d.ts +6 -0
- package/dist/sei-panorama-service/src/services/schemas/SecurityStatsDrilldownResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/SecurityStatsTrendResponseDto.d.ts +14 -0
- package/dist/sei-panorama-service/src/services/schemas/SecurityStatsTrendResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/SeverityCounts.d.ts +26 -0
- package/dist/sei-panorama-service/src/services/schemas/SeverityCounts.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/StatsRecord.d.ts +19 -0
- package/dist/sei-panorama-service/src/services/schemas/StatsRecord.js +1 -0
- package/package.json +1 -1
|
@@ -29,6 +29,10 @@ export interface AiEngineeringControllerGetLeaderboardsQueryQueryParams {
|
|
|
29
29
|
* @format int32
|
|
30
30
|
*/
|
|
31
31
|
limit?: number;
|
|
32
|
+
/**
|
|
33
|
+
* @format int32
|
|
34
|
+
*/
|
|
35
|
+
offset?: number;
|
|
32
36
|
}
|
|
33
37
|
export type AiEngineeringControllerGetLeaderboardsOkResponse = ResponseWithPagination<ApiResponseEntityListTemplate>;
|
|
34
38
|
export type AiEngineeringControllerGetLeaderboardsErrorResponse = unknown;
|
|
@@ -7,7 +7,7 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export type DeveloperControllerUpsertDeveloperIdentitiesRequestBody = DeveloperIdentity[];
|
|
9
9
|
export type DeveloperControllerUpsertDeveloperIdentitiesOkResponse = ResponseWithPagination<DeveloperIdentityUpsertResponse>;
|
|
10
|
-
export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = DeveloperIdentityUpsertFailureResponse | ErrorResponse;
|
|
10
|
+
export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = (DeveloperIdentityUpsertFailureResponse & ErrorResponse) | ErrorResponse;
|
|
11
11
|
export interface DeveloperControllerUpsertDeveloperIdentitiesProps extends Omit<FetcherOptions<unknown, DeveloperControllerUpsertDeveloperIdentitiesRequestBody>, 'url'> {
|
|
12
12
|
body: DeveloperControllerUpsertDeveloperIdentitiesRequestBody;
|
|
13
13
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
3
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
4
|
+
export interface GitAiArtifactControllerDownloadLatestArtifactQueryQueryParams {
|
|
5
|
+
platform: string;
|
|
6
|
+
}
|
|
7
|
+
export type GitAiArtifactControllerDownloadLatestArtifactOkResponse = ResponseWithPagination<string>;
|
|
8
|
+
export type GitAiArtifactControllerDownloadLatestArtifactErrorResponse = string;
|
|
9
|
+
export interface GitAiArtifactControllerDownloadLatestArtifactProps extends Omit<FetcherOptions<GitAiArtifactControllerDownloadLatestArtifactQueryQueryParams, unknown>, 'url'> {
|
|
10
|
+
queryParams: GitAiArtifactControllerDownloadLatestArtifactQueryQueryParams;
|
|
11
|
+
}
|
|
12
|
+
export declare function gitAiArtifactControllerDownloadLatestArtifact(props: GitAiArtifactControllerDownloadLatestArtifactProps): Promise<GitAiArtifactControllerDownloadLatestArtifactOkResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Download latest Git AI agent artifact for a supported platform
|
|
15
|
+
*/
|
|
16
|
+
export declare function useGitAiArtifactControllerDownloadLatestArtifactQuery(props: GitAiArtifactControllerDownloadLatestArtifactProps, options?: Omit<UseQueryOptions<GitAiArtifactControllerDownloadLatestArtifactOkResponse, GitAiArtifactControllerDownloadLatestArtifactErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GitAiArtifactControllerDownloadLatestArtifactOkResponse, 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 gitAiArtifactControllerDownloadLatestArtifact(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/git-ai/artifacts/latest/download`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Download latest Git AI agent artifact for a supported platform
|
|
11
|
+
*/
|
|
12
|
+
export function useGitAiArtifactControllerDownloadLatestArtifactQuery(props, options) {
|
|
13
|
+
return useQuery(['GitAiArtifactControllerDownloadLatestArtifact', props.queryParams], ({ signal }) => gitAiArtifactControllerDownloadLatestArtifact(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GitAiArtifactDownloadResponse } from '../schemas/GitAiArtifactDownloadResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GitAiArtifactControllerGetLatestArtifactQueryQueryParams {
|
|
6
|
+
platform: string;
|
|
7
|
+
}
|
|
8
|
+
export type GitAiArtifactControllerGetLatestArtifactOkResponse = ResponseWithPagination<GitAiArtifactDownloadResponse>;
|
|
9
|
+
export type GitAiArtifactControllerGetLatestArtifactErrorResponse = GitAiArtifactDownloadResponse;
|
|
10
|
+
export interface GitAiArtifactControllerGetLatestArtifactProps extends Omit<FetcherOptions<GitAiArtifactControllerGetLatestArtifactQueryQueryParams, unknown>, 'url'> {
|
|
11
|
+
queryParams: GitAiArtifactControllerGetLatestArtifactQueryQueryParams;
|
|
12
|
+
}
|
|
13
|
+
export declare function gitAiArtifactControllerGetLatestArtifact(props: GitAiArtifactControllerGetLatestArtifactProps): Promise<GitAiArtifactControllerGetLatestArtifactOkResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Get latest Git AI agent artifact for a supported platform
|
|
16
|
+
*/
|
|
17
|
+
export declare function useGitAiArtifactControllerGetLatestArtifactQuery(props: GitAiArtifactControllerGetLatestArtifactProps, options?: Omit<UseQueryOptions<GitAiArtifactControllerGetLatestArtifactOkResponse, GitAiArtifactControllerGetLatestArtifactErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GitAiArtifactControllerGetLatestArtifactOkResponse, GitAiArtifactDownloadResponse>;
|
|
@@ -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 gitAiArtifactControllerGetLatestArtifact(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/git-ai/artifacts/latest`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get latest Git AI agent artifact for a supported platform
|
|
11
|
+
*/
|
|
12
|
+
export function useGitAiArtifactControllerGetLatestArtifactQuery(props, options) {
|
|
13
|
+
return useQuery(['GitAiArtifactControllerGetLatestArtifact', props.queryParams], ({ signal }) => gitAiArtifactControllerGetLatestArtifact(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OpenVulnerabilitiesStatsBreakdownResponseDto } from '../schemas/OpenVulnerabilitiesStatsBreakdownResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQueryQueryParams {
|
|
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
|
+
}
|
|
22
|
+
export type SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownOkResponse = ResponseWithPagination<OpenVulnerabilitiesStatsBreakdownResponseDto>;
|
|
23
|
+
export type SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownErrorResponse = string;
|
|
24
|
+
export interface SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownProps extends Omit<FetcherOptions<SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQueryQueryParams, unknown>, 'url'> {
|
|
25
|
+
queryParams: SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQueryQueryParams;
|
|
26
|
+
}
|
|
27
|
+
export declare function securityInsightsStatsControllerGetOpenVulnerabilitiesBreakdown(props: SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownProps): Promise<SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownOkResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Aggregated severity counts grouped by one or more dimensions (default: source_tool, tag_value)
|
|
30
|
+
*/
|
|
31
|
+
export declare function useSecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQuery(props: SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownProps, options?: Omit<UseQueryOptions<SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownOkResponse, SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownOkResponse, 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 securityInsightsStatsControllerGetOpenVulnerabilitiesBreakdown(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security-stats/open-vulnerabilities/breakdown`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Aggregated severity counts grouped by one or more dimensions (default: source_tool, tag_value)
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdown', props.queryParams], ({ signal }) => securityInsightsStatsControllerGetOpenVulnerabilitiesBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SecurityStatsTrendResponseDto } from '../schemas/SecurityStatsTrendResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SecurityInsightsStatsControllerGetOpenVulnerabilitiesQueryQueryParams {
|
|
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?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY';
|
|
22
|
+
}
|
|
23
|
+
export type SecurityInsightsStatsControllerGetOpenVulnerabilitiesOkResponse = ResponseWithPagination<SecurityStatsTrendResponseDto>;
|
|
24
|
+
export type SecurityInsightsStatsControllerGetOpenVulnerabilitiesErrorResponse = string;
|
|
25
|
+
export interface SecurityInsightsStatsControllerGetOpenVulnerabilitiesProps extends Omit<FetcherOptions<SecurityInsightsStatsControllerGetOpenVulnerabilitiesQueryQueryParams, unknown>, 'url'> {
|
|
26
|
+
queryParams: SecurityInsightsStatsControllerGetOpenVulnerabilitiesQueryQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export declare function securityInsightsStatsControllerGetOpenVulnerabilities(props: SecurityInsightsStatsControllerGetOpenVulnerabilitiesProps): Promise<SecurityInsightsStatsControllerGetOpenVulnerabilitiesOkResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Time-series severity counts from security_stats grouped by snapshot_date and source_tool
|
|
31
|
+
*/
|
|
32
|
+
export declare function useSecurityInsightsStatsControllerGetOpenVulnerabilitiesQuery(props: SecurityInsightsStatsControllerGetOpenVulnerabilitiesProps, options?: Omit<UseQueryOptions<SecurityInsightsStatsControllerGetOpenVulnerabilitiesOkResponse, SecurityInsightsStatsControllerGetOpenVulnerabilitiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsStatsControllerGetOpenVulnerabilitiesOkResponse, 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 securityInsightsStatsControllerGetOpenVulnerabilities(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security-stats/open-vulnerabilities`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Time-series severity counts from security_stats grouped by snapshot_date and source_tool
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsStatsControllerGetOpenVulnerabilitiesQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsStatsControllerGetOpenVulnerabilities', props.queryParams], ({ signal }) => securityInsightsStatsControllerGetOpenVulnerabilities(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SecurityStatsDrilldownResponseDto } from '../schemas/SecurityStatsDrilldownResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SecurityInsightsStatsControllerGetSecurityStatsDrilldownQueryQueryParams {
|
|
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
|
+
/**
|
|
23
|
+
* @format int32
|
|
24
|
+
* @default 0
|
|
25
|
+
*/
|
|
26
|
+
page?: number;
|
|
27
|
+
/**
|
|
28
|
+
* @format int32
|
|
29
|
+
* @default 20
|
|
30
|
+
*/
|
|
31
|
+
pageSize?: number;
|
|
32
|
+
sortBy?: 'AGE_IN_DAYS' | 'ASSET_TYPE' | 'CVSS_SCORE' | 'DISCOVERED_AT' | 'RESOLVED_AT' | 'SEVERITY' | 'STATUS' | 'TIME_TO_FIX_DAYS' | 'VULNERABILITY_ID';
|
|
33
|
+
sortDirection?: 'ASC' | 'DESC';
|
|
34
|
+
}
|
|
35
|
+
export type SecurityInsightsStatsControllerGetSecurityStatsDrilldownOkResponse = ResponseWithPagination<SecurityStatsDrilldownResponseDto>;
|
|
36
|
+
export type SecurityInsightsStatsControllerGetSecurityStatsDrilldownErrorResponse = string;
|
|
37
|
+
export interface SecurityInsightsStatsControllerGetSecurityStatsDrilldownProps extends Omit<FetcherOptions<SecurityInsightsStatsControllerGetSecurityStatsDrilldownQueryQueryParams, unknown>, 'url'> {
|
|
38
|
+
queryParams: SecurityInsightsStatsControllerGetSecurityStatsDrilldownQueryQueryParams;
|
|
39
|
+
}
|
|
40
|
+
export declare function securityInsightsStatsControllerGetSecurityStatsDrilldown(props: SecurityInsightsStatsControllerGetSecurityStatsDrilldownProps): Promise<SecurityInsightsStatsControllerGetSecurityStatsDrilldownOkResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Paginated individual rows from the security_stats table
|
|
43
|
+
*/
|
|
44
|
+
export declare function useSecurityInsightsStatsControllerGetSecurityStatsDrilldownQuery(props: SecurityInsightsStatsControllerGetSecurityStatsDrilldownProps, options?: Omit<UseQueryOptions<SecurityInsightsStatsControllerGetSecurityStatsDrilldownOkResponse, SecurityInsightsStatsControllerGetSecurityStatsDrilldownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsStatsControllerGetSecurityStatsDrilldownOkResponse, 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 securityInsightsStatsControllerGetSecurityStatsDrilldown(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/security-stats/drilldown`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Paginated individual rows from the security_stats table
|
|
11
|
+
*/
|
|
12
|
+
export function useSecurityInsightsStatsControllerGetSecurityStatsDrilldownQuery(props, options) {
|
|
13
|
+
return useQuery(['SecurityInsightsStatsControllerGetSecurityStatsDrilldown', props.queryParams], ({ signal }) => securityInsightsStatsControllerGetSecurityStatsDrilldown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -315,6 +315,10 @@ export type { ExternalDataControllerIngestDataErrorResponse, ExternalDataControl
|
|
|
315
315
|
export { externalDataControllerIngestData, useExternalDataControllerIngestDataMutation, } from './hooks/useExternalDataControllerIngestDataMutation';
|
|
316
316
|
export type { ExternalDataControllerRegisterSchemaErrorResponse, ExternalDataControllerRegisterSchemaMutationPathParams, ExternalDataControllerRegisterSchemaOkResponse, ExternalDataControllerRegisterSchemaProps, ExternalDataControllerRegisterSchemaRequestBody, } from './hooks/useExternalDataControllerRegisterSchemaMutation';
|
|
317
317
|
export { externalDataControllerRegisterSchema, useExternalDataControllerRegisterSchemaMutation, } from './hooks/useExternalDataControllerRegisterSchemaMutation';
|
|
318
|
+
export type { GitAiArtifactControllerDownloadLatestArtifactErrorResponse, GitAiArtifactControllerDownloadLatestArtifactOkResponse, GitAiArtifactControllerDownloadLatestArtifactProps, GitAiArtifactControllerDownloadLatestArtifactQueryQueryParams, } from './hooks/useGitAiArtifactControllerDownloadLatestArtifactQuery';
|
|
319
|
+
export { gitAiArtifactControllerDownloadLatestArtifact, useGitAiArtifactControllerDownloadLatestArtifactQuery, } from './hooks/useGitAiArtifactControllerDownloadLatestArtifactQuery';
|
|
320
|
+
export type { GitAiArtifactControllerGetLatestArtifactErrorResponse, GitAiArtifactControllerGetLatestArtifactOkResponse, GitAiArtifactControllerGetLatestArtifactProps, GitAiArtifactControllerGetLatestArtifactQueryQueryParams, } from './hooks/useGitAiArtifactControllerGetLatestArtifactQuery';
|
|
321
|
+
export { gitAiArtifactControllerGetLatestArtifact, useGitAiArtifactControllerGetLatestArtifactQuery, } from './hooks/useGitAiArtifactControllerGetLatestArtifactQuery';
|
|
318
322
|
export type { HealthControllerCheckDbHealthErrorResponse, HealthControllerCheckDbHealthOkResponse, HealthControllerCheckDbHealthProps, } from './hooks/useHealthControllerCheckDbHealthQuery';
|
|
319
323
|
export { healthControllerCheckDbHealth, useHealthControllerCheckDbHealthQuery, } from './hooks/useHealthControllerCheckDbHealthQuery';
|
|
320
324
|
export type { ImFieldsControllerListImFieldsErrorResponse, ImFieldsControllerListImFieldsOkResponse, ImFieldsControllerListImFieldsProps, ImFieldsControllerListImFieldsQueryQueryParams, ImFieldsControllerListImFieldsRequestBody, } from './hooks/useImFieldsControllerListImFieldsQuery';
|
|
@@ -515,6 +519,12 @@ export type { SecurityInsightsControllerGetOpenVulnerabilitiesErrorResponse, Sec
|
|
|
515
519
|
export { securityInsightsControllerGetOpenVulnerabilities, useSecurityInsightsControllerGetOpenVulnerabilitiesQuery, } from './hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesQuery';
|
|
516
520
|
export type { SecurityInsightsControllerGetSecurityDrilldownErrorResponse, SecurityInsightsControllerGetSecurityDrilldownOkResponse, SecurityInsightsControllerGetSecurityDrilldownProps, SecurityInsightsControllerGetSecurityDrilldownQueryQueryParams, } from './hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery';
|
|
517
521
|
export { securityInsightsControllerGetSecurityDrilldown, useSecurityInsightsControllerGetSecurityDrilldownQuery, } from './hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery';
|
|
522
|
+
export type { SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownErrorResponse, SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownOkResponse, SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownProps, SecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQueryQueryParams, } from './hooks/useSecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQuery';
|
|
523
|
+
export { securityInsightsStatsControllerGetOpenVulnerabilitiesBreakdown, useSecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQuery, } from './hooks/useSecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQuery';
|
|
524
|
+
export type { SecurityInsightsStatsControllerGetOpenVulnerabilitiesErrorResponse, SecurityInsightsStatsControllerGetOpenVulnerabilitiesOkResponse, SecurityInsightsStatsControllerGetOpenVulnerabilitiesProps, SecurityInsightsStatsControllerGetOpenVulnerabilitiesQueryQueryParams, } from './hooks/useSecurityInsightsStatsControllerGetOpenVulnerabilitiesQuery';
|
|
525
|
+
export { securityInsightsStatsControllerGetOpenVulnerabilities, useSecurityInsightsStatsControllerGetOpenVulnerabilitiesQuery, } from './hooks/useSecurityInsightsStatsControllerGetOpenVulnerabilitiesQuery';
|
|
526
|
+
export type { SecurityInsightsStatsControllerGetSecurityStatsDrilldownErrorResponse, SecurityInsightsStatsControllerGetSecurityStatsDrilldownOkResponse, SecurityInsightsStatsControllerGetSecurityStatsDrilldownProps, SecurityInsightsStatsControllerGetSecurityStatsDrilldownQueryQueryParams, } from './hooks/useSecurityInsightsStatsControllerGetSecurityStatsDrilldownQuery';
|
|
527
|
+
export { securityInsightsStatsControllerGetSecurityStatsDrilldown, useSecurityInsightsStatsControllerGetSecurityStatsDrilldownQuery, } from './hooks/useSecurityInsightsStatsControllerGetSecurityStatsDrilldownQuery';
|
|
518
528
|
export type { SecurityProfileControllerCreateProfileErrorResponse, SecurityProfileControllerCreateProfileOkResponse, SecurityProfileControllerCreateProfileProps, SecurityProfileControllerCreateProfileRequestBody, } from './hooks/useSecurityProfileControllerCreateProfileMutation';
|
|
519
529
|
export { securityProfileControllerCreateProfile, useSecurityProfileControllerCreateProfileMutation, } from './hooks/useSecurityProfileControllerCreateProfileMutation';
|
|
520
530
|
export type { SecurityProfileControllerDeleteProfileErrorResponse, SecurityProfileControllerDeleteProfileMutationPathParams, SecurityProfileControllerDeleteProfileOkResponse, SecurityProfileControllerDeleteProfileProps, } from './hooks/useSecurityProfileControllerDeleteProfileMutation';
|
|
@@ -831,6 +841,7 @@ export type { FeatureSizes } from './schemas/FeatureSizes';
|
|
|
831
841
|
export type { FilterByField } from './schemas/FilterByField';
|
|
832
842
|
export type { FilterExpression } from './schemas/FilterExpression';
|
|
833
843
|
export type { FilterValuesRequestDto } from './schemas/FilterValuesRequestDto';
|
|
844
|
+
export type { GitAiArtifactDownloadResponse } from './schemas/GitAiArtifactDownloadResponse';
|
|
834
845
|
export type { GroupByField } from './schemas/GroupByField';
|
|
835
846
|
export type { GroupedTeamFiltersResponseDto } from './schemas/GroupedTeamFiltersResponseDto';
|
|
836
847
|
export type { HqlFilterKeyMetadataDto } from './schemas/HqlFilterKeyMetadataDto';
|
|
@@ -926,6 +937,7 @@ export type { OpenVulnerabilitiesBreakdownItemDto } from './schemas/OpenVulnerab
|
|
|
926
937
|
export type { OpenVulnerabilitiesBreakdownResponseDto } from './schemas/OpenVulnerabilitiesBreakdownResponseDto';
|
|
927
938
|
export type { OpenVulnerabilitiesDataPointDto } from './schemas/OpenVulnerabilitiesDataPointDto';
|
|
928
939
|
export type { OpenVulnerabilitiesResponseDto } from './schemas/OpenVulnerabilitiesResponseDto';
|
|
940
|
+
export type { OpenVulnerabilitiesStatsBreakdownResponseDto } from './schemas/OpenVulnerabilitiesStatsBreakdownResponseDto';
|
|
929
941
|
export type { OpenVulnerabilitiesSummaryDto } from './schemas/OpenVulnerabilitiesSummaryDto';
|
|
930
942
|
export type { OptimizationItem } from './schemas/OptimizationItem';
|
|
931
943
|
export type { OptimizationListData } from './schemas/OptimizationListData';
|
|
@@ -1005,7 +1017,10 @@ export type { SecurityChangeSummary } from './schemas/SecurityChangeSummary';
|
|
|
1005
1017
|
export type { SecurityDrilldownResponseDto } from './schemas/SecurityDrilldownResponseDto';
|
|
1006
1018
|
export type { SecurityProfileCreateRequestDto } from './schemas/SecurityProfileCreateRequestDto';
|
|
1007
1019
|
export type { SecurityProfileResponseDto } from './schemas/SecurityProfileResponseDto';
|
|
1020
|
+
export type { SecurityStatsDrilldownResponseDto } from './schemas/SecurityStatsDrilldownResponseDto';
|
|
1008
1021
|
export type { SecurityStatsRequest } from './schemas/SecurityStatsRequest';
|
|
1022
|
+
export type { SecurityStatsTrendResponseDto } from './schemas/SecurityStatsTrendResponseDto';
|
|
1023
|
+
export type { SeverityCounts } from './schemas/SeverityCounts';
|
|
1009
1024
|
export type { SeverityData } from './schemas/SeverityData';
|
|
1010
1025
|
export type { SeveritySummaryData } from './schemas/SeveritySummaryData';
|
|
1011
1026
|
export type { SimpleFilter } from './schemas/SimpleFilter';
|
|
@@ -1044,6 +1059,7 @@ export type { SprintTicketsRequestDto } from './schemas/SprintTicketsRequestDto'
|
|
|
1044
1059
|
export type { SprintTicketsResponseDto } from './schemas/SprintTicketsResponseDto';
|
|
1045
1060
|
export type { SprintWorkBreakdownDto } from './schemas/SprintWorkBreakdownDto';
|
|
1046
1061
|
export type { Stage } from './schemas/Stage';
|
|
1062
|
+
export type { StatsRecord } from './schemas/StatsRecord';
|
|
1047
1063
|
export type { SummaryCard } from './schemas/SummaryCard';
|
|
1048
1064
|
export type { SummaryHighlight } from './schemas/SummaryHighlight';
|
|
1049
1065
|
export type { SummaryMetadata } from './schemas/SummaryMetadata';
|
|
@@ -156,6 +156,8 @@ export { externalDataControllerGetIngestionStatus, useExternalDataControllerGetI
|
|
|
156
156
|
export { externalDataControllerGetSchemaHistory, useExternalDataControllerGetSchemaHistoryQuery, } from './hooks/useExternalDataControllerGetSchemaHistoryQuery';
|
|
157
157
|
export { externalDataControllerIngestData, useExternalDataControllerIngestDataMutation, } from './hooks/useExternalDataControllerIngestDataMutation';
|
|
158
158
|
export { externalDataControllerRegisterSchema, useExternalDataControllerRegisterSchemaMutation, } from './hooks/useExternalDataControllerRegisterSchemaMutation';
|
|
159
|
+
export { gitAiArtifactControllerDownloadLatestArtifact, useGitAiArtifactControllerDownloadLatestArtifactQuery, } from './hooks/useGitAiArtifactControllerDownloadLatestArtifactQuery';
|
|
160
|
+
export { gitAiArtifactControllerGetLatestArtifact, useGitAiArtifactControllerGetLatestArtifactQuery, } from './hooks/useGitAiArtifactControllerGetLatestArtifactQuery';
|
|
159
161
|
export { healthControllerCheckDbHealth, useHealthControllerCheckDbHealthQuery, } from './hooks/useHealthControllerCheckDbHealthQuery';
|
|
160
162
|
export { imFieldsControllerListImFields, useImFieldsControllerListImFieldsQuery, } from './hooks/useImFieldsControllerListImFieldsQuery';
|
|
161
163
|
export { integrationControllerGetFilterValues, useIntegrationControllerGetFilterValuesQuery, } from './hooks/useIntegrationControllerGetFilterValuesQuery';
|
|
@@ -256,6 +258,9 @@ export { scmGaControllerGetDeployInfoFromPr, useScmGaControllerGetDeployInfoFrom
|
|
|
256
258
|
export { securityInsightsControllerGetOpenVulnerabilitiesBreakdown, useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery, } from './hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery';
|
|
257
259
|
export { securityInsightsControllerGetOpenVulnerabilities, useSecurityInsightsControllerGetOpenVulnerabilitiesQuery, } from './hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesQuery';
|
|
258
260
|
export { securityInsightsControllerGetSecurityDrilldown, useSecurityInsightsControllerGetSecurityDrilldownQuery, } from './hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery';
|
|
261
|
+
export { securityInsightsStatsControllerGetOpenVulnerabilitiesBreakdown, useSecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQuery, } from './hooks/useSecurityInsightsStatsControllerGetOpenVulnerabilitiesBreakdownQuery';
|
|
262
|
+
export { securityInsightsStatsControllerGetOpenVulnerabilities, useSecurityInsightsStatsControllerGetOpenVulnerabilitiesQuery, } from './hooks/useSecurityInsightsStatsControllerGetOpenVulnerabilitiesQuery';
|
|
263
|
+
export { securityInsightsStatsControllerGetSecurityStatsDrilldown, useSecurityInsightsStatsControllerGetSecurityStatsDrilldownQuery, } from './hooks/useSecurityInsightsStatsControllerGetSecurityStatsDrilldownQuery';
|
|
259
264
|
export { securityProfileControllerCreateProfile, useSecurityProfileControllerCreateProfileMutation, } from './hooks/useSecurityProfileControllerCreateProfileMutation';
|
|
260
265
|
export { securityProfileControllerDeleteProfile, useSecurityProfileControllerDeleteProfileMutation, } from './hooks/useSecurityProfileControllerDeleteProfileMutation';
|
|
261
266
|
export { securityProfileControllerGetProfile, useSecurityProfileControllerGetProfileQuery, } from './hooks/useSecurityProfileControllerGetProfileQuery';
|
|
@@ -1,33 +1,27 @@
|
|
|
1
|
+
import type { SeverityCounts } from '../schemas/SeverityCounts';
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
+
* Team breakdown item for open vulnerabilities with severity counts
|
|
3
4
|
*/
|
|
4
5
|
export interface BreakdownItem {
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
-
* @format double
|
|
8
|
-
* @example 48
|
|
7
|
+
* Severity counts including critical, high, medium, low, info, total
|
|
9
8
|
*/
|
|
10
|
-
|
|
9
|
+
severityCounts?: SeverityCounts;
|
|
11
10
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @example "
|
|
11
|
+
* Team name
|
|
12
|
+
* @example "Platform Team"
|
|
14
13
|
*/
|
|
15
|
-
|
|
14
|
+
teamName?: string;
|
|
16
15
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @format
|
|
19
|
-
* @example
|
|
16
|
+
* Team reference ID
|
|
17
|
+
* @format int32
|
|
18
|
+
* @example 123
|
|
20
19
|
*/
|
|
21
|
-
|
|
20
|
+
teamRefId?: number;
|
|
22
21
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @
|
|
22
|
+
* Total open vulnerabilities (same as value)
|
|
23
|
+
* @format int64
|
|
24
|
+
* @example 380
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Metric value for this item
|
|
29
|
-
* @format double
|
|
30
|
-
* @example 3808
|
|
31
|
-
*/
|
|
32
|
-
value?: number;
|
|
26
|
+
total?: number;
|
|
33
27
|
}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* Represents a metric value with optional trend and change information
|
|
3
3
|
*/
|
|
4
4
|
export interface MetricValue {
|
|
5
|
+
/**
|
|
6
|
+
* Optional phase breakdown (e.g., coding/review/merge for pr-cycle-time)
|
|
7
|
+
*/
|
|
8
|
+
breakdown?: {
|
|
9
|
+
[key: string]: number;
|
|
10
|
+
};
|
|
5
11
|
/**
|
|
6
12
|
* Absolute change vs prior period
|
|
7
13
|
* @format double
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BreakdownItem } from '../schemas/BreakdownItem';
|
|
2
|
+
/**
|
|
3
|
+
* Breakdown response for open vulnerabilities from security_stats, grouped by team
|
|
4
|
+
*/
|
|
5
|
+
export interface OpenVulnerabilitiesStatsBreakdownResponseDto {
|
|
6
|
+
/**
|
|
7
|
+
* @format date-time
|
|
8
|
+
*/
|
|
9
|
+
endDate?: string;
|
|
10
|
+
openVulnerabilitiesBreakdownItems?: BreakdownItem[];
|
|
11
|
+
/**
|
|
12
|
+
* @format date-time
|
|
13
|
+
*/
|
|
14
|
+
startDate?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DataPoint } from '../schemas/DataPoint';
|
|
2
|
+
import type { SeveritySummaryData } from '../schemas/SeveritySummaryData';
|
|
3
|
+
export interface SecurityStatsTrendResponseDto {
|
|
4
|
+
dataPoints?: DataPoint[];
|
|
5
|
+
/**
|
|
6
|
+
* @format date-time
|
|
7
|
+
*/
|
|
8
|
+
endDate?: string;
|
|
9
|
+
severitySummary?: SeveritySummaryData;
|
|
10
|
+
/**
|
|
11
|
+
* @format date-time
|
|
12
|
+
*/
|
|
13
|
+
startDate?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface SeverityCounts {
|
|
2
|
+
/**
|
|
3
|
+
* @format int64
|
|
4
|
+
*/
|
|
5
|
+
critical?: number;
|
|
6
|
+
/**
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
high?: number;
|
|
10
|
+
/**
|
|
11
|
+
* @format int64
|
|
12
|
+
*/
|
|
13
|
+
info?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
*/
|
|
17
|
+
low?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @format int64
|
|
20
|
+
*/
|
|
21
|
+
medium?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @format int64
|
|
24
|
+
*/
|
|
25
|
+
total?: number;
|
|
26
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SeverityCounts } from '../schemas/SeverityCounts';
|
|
2
|
+
export interface StatsRecord {
|
|
3
|
+
aggDimension?: string;
|
|
4
|
+
aggValue?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
severityCounts?: SeverityCounts;
|
|
7
|
+
/**
|
|
8
|
+
* @format date-time
|
|
9
|
+
*/
|
|
10
|
+
snapshotDate?: string;
|
|
11
|
+
snapshotId?: string;
|
|
12
|
+
sourceTool?: string;
|
|
13
|
+
tagKey?: string;
|
|
14
|
+
tagValue?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @format date-time
|
|
17
|
+
*/
|
|
18
|
+
updatedAt?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-sei-panorama-service-client",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"description": "Harness React sei panorama service client - SEI Panorama APIs integrated with react hooks for Panorama project",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|