@harnessio/react-sei-panorama-service-client 0.25.18 → 0.25.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.d.ts +4 -5
  2. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.js +4 -5
  3. package/dist/sei-panorama-service/src/services/hooks/useDeveloperControllerUpsertDeveloperIdentitiesMutation.d.ts +1 -1
  4. package/dist/sei-panorama-service/src/services/hooks/useIntegrationControllerGetIntegrationProjectsQuery.d.ts +17 -0
  5. package/dist/sei-panorama-service/src/services/hooks/useIntegrationControllerGetIntegrationProjectsQuery.js +14 -0
  6. package/dist/sei-panorama-service/src/services/hooks/useIntegrationControllerGetIntegrationReposQuery.d.ts +17 -0
  7. package/dist/sei-panorama-service/src/services/hooks/useIntegrationControllerGetIntegrationReposQuery.js +14 -0
  8. package/dist/sei-panorama-service/src/services/hooks/useMigrationControllerExecuteMigrationMutation.d.ts +20 -0
  9. package/dist/sei-panorama-service/src/services/hooks/useMigrationControllerExecuteMigrationMutation.js +18 -0
  10. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery.d.ts +33 -0
  11. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery.js +14 -0
  12. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesQuery.d.ts +34 -0
  13. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesQuery.js +14 -0
  14. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrBreakdownQuery.d.ts +33 -0
  15. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrBreakdownQuery.js +14 -0
  16. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrQuery.d.ts +34 -0
  17. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrQuery.js +14 -0
  18. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery.d.ts +33 -0
  19. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery.js +14 -0
  20. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateQuery.d.ts +34 -0
  21. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateQuery.js +14 -0
  22. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery.d.ts +33 -0
  23. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery.js +14 -0
  24. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery.d.ts +46 -0
  25. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery.js +14 -0
  26. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery.d.ts +34 -0
  27. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery.js +14 -0
  28. package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamFiltersQuery.d.ts +24 -0
  29. package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamFiltersQuery.js +14 -0
  30. package/dist/sei-panorama-service/src/services/index.d.ts +58 -1
  31. package/dist/sei-panorama-service/src/services/index.js +13 -0
  32. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesBreakdownItemDto.d.ts +40 -0
  33. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesBreakdownResponseDto.d.ts +27 -0
  34. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesBreakdownResponseDto.js +1 -0
  35. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesDataPointDto.d.ts +41 -0
  36. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesDataPointDto.js +4 -0
  37. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesResponseDto.d.ts +32 -0
  38. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesResponseDto.js +1 -0
  39. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesSummaryDto.d.ts +17 -0
  40. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesSummaryDto.js +4 -0
  41. package/dist/sei-panorama-service/src/services/schemas/AiMetrics.d.ts +6 -6
  42. package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsRequestDto.d.ts +2 -1
  43. package/dist/sei-panorama-service/src/services/schemas/AiReworkSummaryResponseDto.d.ts +2 -2
  44. package/dist/sei-panorama-service/src/services/schemas/AiprVelocitySummaryResponseDto.d.ts +2 -2
  45. package/dist/sei-panorama-service/src/services/schemas/CursorMetrics.d.ts +16 -17
  46. package/dist/sei-panorama-service/src/services/schemas/IntegrationSummary.d.ts +16 -3
  47. package/dist/sei-panorama-service/src/services/schemas/IntegrationWithValuesDto.d.ts +14 -0
  48. package/dist/sei-panorama-service/src/services/schemas/IntegrationWithValuesDto.js +1 -0
  49. package/dist/sei-panorama-service/src/services/schemas/MigrationConfig.d.ts +11 -0
  50. package/dist/sei-panorama-service/src/services/schemas/MigrationConfig.js +4 -0
  51. package/dist/sei-panorama-service/src/services/schemas/MigrationExecutionResponse.d.ts +18 -0
  52. package/dist/sei-panorama-service/src/services/schemas/MigrationExecutionResponse.js +1 -0
  53. package/dist/sei-panorama-service/src/services/schemas/MigrationScriptResponse.d.ts +8 -0
  54. package/dist/sei-panorama-service/src/services/schemas/MigrationScriptResponse.js +1 -0
  55. package/dist/sei-panorama-service/src/services/schemas/MvAnalysis.d.ts +4 -0
  56. package/dist/sei-panorama-service/src/services/schemas/MvAnalysis.js +4 -0
  57. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownItemDto.d.ts +34 -0
  58. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownItemDto.js +4 -0
  59. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownResponseDto.d.ts +27 -0
  60. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownResponseDto.js +1 -0
  61. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateDataPointDto.d.ts +35 -0
  62. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateDataPointDto.js +4 -0
  63. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateResponseDto.d.ts +32 -0
  64. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateResponseDto.js +1 -0
  65. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateSummaryDto.d.ts +17 -0
  66. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateSummaryDto.js +4 -0
  67. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownItemDto.d.ts +46 -0
  68. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownItemDto.js +4 -0
  69. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownResponseDto.d.ts +27 -0
  70. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownResponseDto.js +1 -0
  71. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesDataPointDto.d.ts +47 -0
  72. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesDataPointDto.js +4 -0
  73. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesResponseDto.d.ts +31 -0
  74. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesResponseDto.js +1 -0
  75. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesSummaryDto.d.ts +17 -0
  76. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesSummaryDto.js +4 -0
  77. package/dist/sei-panorama-service/src/services/schemas/OverallPrMetrics.d.ts +15 -0
  78. package/dist/sei-panorama-service/src/services/schemas/OverallPrMetrics.js +4 -0
  79. package/dist/sei-panorama-service/src/services/schemas/{OverallMetrics.d.ts → OverallReworkMetrics.d.ts} +1 -1
  80. package/dist/sei-panorama-service/src/services/schemas/OverallReworkMetrics.js +4 -0
  81. package/dist/sei-panorama-service/src/services/schemas/PrCycleTimeDrilldownResponseDataPointV3.d.ts +4 -0
  82. package/dist/sei-panorama-service/src/services/schemas/SecurityDrilldownResponseDto.d.ts +6 -0
  83. package/dist/sei-panorama-service/src/services/schemas/SecurityDrilldownResponseDto.js +1 -0
  84. package/dist/sei-panorama-service/src/services/schemas/SecurityMttrBreakdownItemDto.d.ts +22 -0
  85. package/dist/sei-panorama-service/src/services/schemas/SecurityMttrBreakdownItemDto.js +4 -0
  86. package/dist/sei-panorama-service/src/services/schemas/SecurityMttrBreakdownResponseDto.d.ts +27 -0
  87. package/dist/sei-panorama-service/src/services/schemas/SecurityMttrBreakdownResponseDto.js +1 -0
  88. package/dist/sei-panorama-service/src/services/schemas/SecurityMttrDataPointDto.d.ts +23 -0
  89. package/dist/sei-panorama-service/src/services/schemas/SecurityMttrDataPointDto.js +4 -0
  90. package/dist/sei-panorama-service/src/services/schemas/SecurityMttrResponseDto.d.ts +32 -0
  91. package/dist/sei-panorama-service/src/services/schemas/SecurityMttrResponseDto.js +1 -0
  92. package/dist/sei-panorama-service/src/services/schemas/SecurityMttrSummaryDto.d.ts +17 -0
  93. package/dist/sei-panorama-service/src/services/schemas/SecurityMttrSummaryDto.js +4 -0
  94. package/dist/sei-panorama-service/src/services/schemas/SimpleFilter.d.ts +36 -0
  95. package/dist/sei-panorama-service/src/services/schemas/SimpleFilter.js +4 -0
  96. package/dist/sei-panorama-service/src/services/schemas/TeamFiltersResponseDto.d.ts +51 -0
  97. package/dist/sei-panorama-service/src/services/schemas/TeamFiltersResponseDto.js +1 -0
  98. package/dist/sei-panorama-service/src/services/schemas/TenantMvAnalysis.d.ts +7 -0
  99. package/dist/sei-panorama-service/src/services/schemas/TenantMvAnalysis.js +1 -0
  100. package/dist/sei-panorama-service/src/services/schemas/VulnerabilityDetail.d.ts +48 -0
  101. package/dist/sei-panorama-service/src/services/schemas/VulnerabilityDetail.js +4 -0
  102. package/dist/sei-panorama-service/src/services/schemas/WindsurfMetrics.d.ts +8 -9
  103. package/package.json +1 -1
  104. /package/dist/sei-panorama-service/src/services/schemas/{OverallMetrics.js → AgedVulnerabilitiesBreakdownItemDto.js} +0 -0
@@ -20,13 +20,12 @@ export declare function aiInsightsControllerGetRawMetrics(props: AiInsightsContr
20
20
  * Retrieves detailed user-level metrics with pagination and sorting support.
21
21
  *
22
22
  * **Type Parameter:**
23
- * - `all` (default when absent): Returns integration + productivity data for all user types
24
- * - `active`: Returns integration + productivity data only for active users (those with AI activity)
25
- * - `inactive`: Returns productivity data only for inactive users (licensed but no AI activity) - cursor/windsurf fields are empty
26
- * - `unassigned`: Returns productivity data only for unassigned users (not licensed for AI tools) - cursor/windsurf fields are empty
23
+ * - `active` (default): Returns full metrics for active users
24
+ * - `inactive`: Returns only userName, userEmail, team for inactive users (licensed but not active)
25
+ * - `unassigned`: Returns only userName, userEmail, team for unassigned users (not licensed)
27
26
  *
28
27
  * **Productivity Metrics:**
29
- * For all types, includes productivity metrics:
28
+ * For `type=active`, automatically includes productivity metrics:
30
29
  * - prMerged: Number of PRs merged
31
30
  * - defectsResolved: Number of defects resolved
32
31
  * - featuresDelivered: Number of features delivered
@@ -10,13 +10,12 @@ export function aiInsightsControllerGetRawMetrics(props) {
10
10
  * Retrieves detailed user-level metrics with pagination and sorting support.
11
11
  *
12
12
  * **Type Parameter:**
13
- * - `all` (default when absent): Returns integration + productivity data for all user types
14
- * - `active`: Returns integration + productivity data only for active users (those with AI activity)
15
- * - `inactive`: Returns productivity data only for inactive users (licensed but no AI activity) - cursor/windsurf fields are empty
16
- * - `unassigned`: Returns productivity data only for unassigned users (not licensed for AI tools) - cursor/windsurf fields are empty
13
+ * - `active` (default): Returns full metrics for active users
14
+ * - `inactive`: Returns only userName, userEmail, team for inactive users (licensed but not active)
15
+ * - `unassigned`: Returns only userName, userEmail, team for unassigned users (not licensed)
17
16
  *
18
17
  * **Productivity Metrics:**
19
- * For all types, includes productivity metrics:
18
+ * For `type=active`, automatically includes productivity metrics:
20
19
  * - prMerged: Number of PRs merged
21
20
  * - defectsResolved: Number of defects resolved
22
21
  * - featuresDelivered: Number of features delivered
@@ -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) | ErrorResponse;
10
+ export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = DeveloperIdentityUpsertFailureResponse | ErrorResponse;
11
11
  export interface DeveloperControllerUpsertDeveloperIdentitiesProps extends Omit<FetcherOptions<unknown, DeveloperControllerUpsertDeveloperIdentitiesRequestBody>, 'url'> {
12
12
  body: DeveloperControllerUpsertDeveloperIdentitiesRequestBody;
13
13
  }
@@ -0,0 +1,17 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { IntegrationWithValuesDto } from '../schemas/IntegrationWithValuesDto';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface IntegrationControllerGetIntegrationProjectsQueryQueryParams {
6
+ integrationIds?: number[];
7
+ }
8
+ export type IntegrationControllerGetIntegrationProjectsOkResponse = ResponseWithPagination<IntegrationWithValuesDto[]>;
9
+ export type IntegrationControllerGetIntegrationProjectsErrorResponse = IntegrationWithValuesDto[];
10
+ export interface IntegrationControllerGetIntegrationProjectsProps extends Omit<FetcherOptions<IntegrationControllerGetIntegrationProjectsQueryQueryParams, unknown>, 'url'> {
11
+ queryParams: IntegrationControllerGetIntegrationProjectsQueryQueryParams;
12
+ }
13
+ export declare function integrationControllerGetIntegrationProjects(props: IntegrationControllerGetIntegrationProjectsProps): Promise<IntegrationControllerGetIntegrationProjectsOkResponse>;
14
+ /**
15
+ * Returns a list of integrations with their projects. Results are sorted case-insensitively in ascending order.
16
+ */
17
+ export declare function useIntegrationControllerGetIntegrationProjectsQuery(props: IntegrationControllerGetIntegrationProjectsProps, options?: Omit<UseQueryOptions<IntegrationControllerGetIntegrationProjectsOkResponse, IntegrationControllerGetIntegrationProjectsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<IntegrationControllerGetIntegrationProjectsOkResponse, IntegrationControllerGetIntegrationProjectsErrorResponse>;
@@ -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 integrationControllerGetIntegrationProjects(props) {
7
+ return fetcher(Object.assign({ url: `/v2/integrations/im/projects`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns a list of integrations with their projects. Results are sorted case-insensitively in ascending order.
11
+ */
12
+ export function useIntegrationControllerGetIntegrationProjectsQuery(props, options) {
13
+ return useQuery(['IntegrationControllerGetIntegrationProjects', props.queryParams], ({ signal }) => integrationControllerGetIntegrationProjects(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,17 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { IntegrationWithValuesDto } from '../schemas/IntegrationWithValuesDto';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface IntegrationControllerGetIntegrationReposQueryQueryParams {
6
+ integrationIds?: number[];
7
+ }
8
+ export type IntegrationControllerGetIntegrationReposOkResponse = ResponseWithPagination<IntegrationWithValuesDto[]>;
9
+ export type IntegrationControllerGetIntegrationReposErrorResponse = IntegrationWithValuesDto[];
10
+ export interface IntegrationControllerGetIntegrationReposProps extends Omit<FetcherOptions<IntegrationControllerGetIntegrationReposQueryQueryParams, unknown>, 'url'> {
11
+ queryParams: IntegrationControllerGetIntegrationReposQueryQueryParams;
12
+ }
13
+ export declare function integrationControllerGetIntegrationRepos(props: IntegrationControllerGetIntegrationReposProps): Promise<IntegrationControllerGetIntegrationReposOkResponse>;
14
+ /**
15
+ * Returns a list of integrations with their repositories. Results are sorted case-insensitively in ascending order.
16
+ */
17
+ export declare function useIntegrationControllerGetIntegrationReposQuery(props: IntegrationControllerGetIntegrationReposProps, options?: Omit<UseQueryOptions<IntegrationControllerGetIntegrationReposOkResponse, IntegrationControllerGetIntegrationReposErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<IntegrationControllerGetIntegrationReposOkResponse, IntegrationControllerGetIntegrationReposErrorResponse>;
@@ -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 integrationControllerGetIntegrationRepos(props) {
7
+ return fetcher(Object.assign({ url: `/v2/integrations/scm/repos`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns a list of integrations with their repositories. Results are sorted case-insensitively in ascending order.
11
+ */
12
+ export function useIntegrationControllerGetIntegrationReposQuery(props, options) {
13
+ return useQuery(['IntegrationControllerGetIntegrationRepos', props.queryParams], ({ signal }) => integrationControllerGetIntegrationRepos(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,20 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { MigrationExecutionResponse } from '../schemas/MigrationExecutionResponse';
3
+ import type { MigrationConfig } from '../schemas/MigrationConfig';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export type MigrationControllerExecuteMigrationRequestBody = MigrationConfig;
7
+ export type MigrationControllerExecuteMigrationOkResponse = ResponseWithPagination<MigrationExecutionResponse>;
8
+ export type MigrationControllerExecuteMigrationErrorResponse = unknown | MigrationExecutionResponse;
9
+ export interface MigrationControllerExecuteMigrationProps extends Omit<FetcherOptions<unknown, MigrationControllerExecuteMigrationRequestBody>, 'url'> {
10
+ body: MigrationControllerExecuteMigrationRequestBody;
11
+ }
12
+ export declare function migrationControllerExecuteMigration(props: MigrationControllerExecuteMigrationProps): Promise<MigrationControllerExecuteMigrationOkResponse>;
13
+ /**
14
+ * Executes migration job by calling the temporal ETL worker service /migrations/v1 endpoint.
15
+ * Uses DeferredResult to return the ACTUAL migration response without blocking server threads.
16
+ * Client waits for the response (up to 10 minutes), but server thread is released immediately.
17
+ * Returns complete migration results including tenant status and MV analysis.
18
+ *
19
+ */
20
+ export declare function useMigrationControllerExecuteMigrationMutation(options?: Omit<UseMutationOptions<MigrationControllerExecuteMigrationOkResponse, MigrationControllerExecuteMigrationErrorResponse, MigrationControllerExecuteMigrationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MigrationControllerExecuteMigrationOkResponse, unknown, MigrationControllerExecuteMigrationProps, unknown>;
@@ -0,0 +1,18 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function migrationControllerExecuteMigration(props) {
7
+ return fetcher(Object.assign({ url: `/v2/migration/data-platform`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Executes migration job by calling the temporal ETL worker service /migrations/v1 endpoint.
11
+ * Uses DeferredResult to return the ACTUAL migration response without blocking server threads.
12
+ * Client waits for the response (up to 10 minutes), but server thread is released immediately.
13
+ * Returns complete migration results including tenant status and MV analysis.
14
+ *
15
+ */
16
+ export function useMigrationControllerExecuteMigrationMutation(options) {
17
+ return useMutation((mutateProps) => migrationControllerExecuteMigration(mutateProps), options);
18
+ }
@@ -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 { SecurityMttrBreakdownResponseDto } from '../schemas/SecurityMttrBreakdownResponseDto';
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<SecurityMttrBreakdownResponseDto>;
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
+ }
@@ -0,0 +1,34 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { SecurityMttrResponseDto } from '../schemas/SecurityMttrResponseDto';
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<SecurityMttrResponseDto>;
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>;
@@ -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,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>;