@harnessio/react-sei-panorama-service-client 0.25.11 → 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.
Files changed (158) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionBreakdownQuery.d.ts +51 -0
  2. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionBreakdownQuery.js +43 -0
  3. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionMetricsQuery.d.ts +52 -0
  4. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionMetricsQuery.js +44 -0
  5. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionSummaryQuery.d.ts +51 -0
  6. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionSummaryQuery.js +43 -0
  7. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetFeatureMetricsQuery.d.ts +27 -8
  8. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetFeatureMetricsQuery.js +22 -2
  9. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.d.ts +103 -0
  10. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.js +95 -0
  11. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamBreakdownQuery.d.ts +50 -0
  12. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamBreakdownQuery.js +42 -0
  13. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetToolUsersSummaryQuery.d.ts +44 -0
  14. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetToolUsersSummaryQuery.js +36 -0
  15. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTopLanguagesQuery.d.ts +30 -6
  16. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTopLanguagesQuery.js +26 -2
  17. package/dist/sei-panorama-service/src/services/hooks/useHealthControllerCheckDbHealthQuery.d.ts +12 -0
  18. package/dist/sei-panorama-service/src/services/hooks/useHealthControllerCheckDbHealthQuery.js +14 -0
  19. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery.d.ts +33 -0
  20. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery.js +14 -0
  21. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesQuery.d.ts +34 -0
  22. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesQuery.js +14 -0
  23. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrBreakdownQuery.d.ts +33 -0
  24. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrBreakdownQuery.js +14 -0
  25. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrQuery.d.ts +34 -0
  26. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrQuery.js +14 -0
  27. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery.d.ts +33 -0
  28. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery.js +14 -0
  29. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateQuery.d.ts +34 -0
  30. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateQuery.js +14 -0
  31. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery.d.ts +33 -0
  32. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery.js +14 -0
  33. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery.d.ts +46 -0
  34. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery.js +14 -0
  35. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityFilterValuesQuery.d.ts +17 -0
  36. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityFilterValuesQuery.js +14 -0
  37. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery.d.ts +34 -0
  38. package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery.js +14 -0
  39. package/dist/sei-panorama-service/src/services/index.d.ts +83 -18
  40. package/dist/sei-panorama-service/src/services/index.js +17 -2
  41. package/dist/sei-panorama-service/src/services/schemas/AdoptionDataPoint.d.ts +35 -0
  42. package/dist/sei-panorama-service/src/services/schemas/AdoptionPeriodData.d.ts +35 -0
  43. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesBreakdownItemDto.d.ts +40 -0
  44. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesBreakdownResponseDto.d.ts +27 -0
  45. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesDataPointDto.d.ts +41 -0
  46. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesResponseDto.d.ts +32 -0
  47. package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesSummaryDto.d.ts +17 -0
  48. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionBreakdownRequestDto.d.ts +38 -0
  49. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionBreakdownResponseDto.d.ts +30 -0
  50. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionMetricsRequestDto.d.ts +34 -0
  51. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionMetricsResponseDto.d.ts +35 -0
  52. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionSummaryRequestDto.d.ts +32 -0
  53. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionSummaryRequestDto.js +4 -0
  54. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionSummaryResponseDto.d.ts +30 -0
  55. package/dist/sei-panorama-service/src/services/schemas/AiCombinedInsightsRequestDto.d.ts +37 -0
  56. package/dist/sei-panorama-service/src/services/schemas/AiCombinedInsightsRequestDto.js +4 -0
  57. package/dist/sei-panorama-service/src/services/schemas/AiMetrics.d.ts +40 -0
  58. package/dist/sei-panorama-service/src/services/schemas/AiMetrics.js +4 -0
  59. package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsRequestDto.d.ts +66 -0
  60. package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsResponseDto.d.ts +30 -0
  61. package/dist/sei-panorama-service/src/services/schemas/AiSummary.d.ts +14 -0
  62. package/dist/sei-panorama-service/src/services/schemas/AiSummary.js +1 -0
  63. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownDataPoint.d.ts +31 -0
  64. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownDataPoint.js +4 -0
  65. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownRequestDto.d.ts +16 -0
  66. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownRequestDto.js +4 -0
  67. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownResponseDto.d.ts +14 -0
  68. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownResponseDto.js +1 -0
  69. package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryRequestDto.d.ts +28 -0
  70. package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryRequestDto.js +4 -0
  71. package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryResponseDto.d.ts +31 -0
  72. package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryResponseDto.js +1 -0
  73. package/dist/sei-panorama-service/src/services/schemas/AiTopLanguagesRequestDto.d.ts +28 -0
  74. package/dist/sei-panorama-service/src/services/schemas/AiTopLanguagesRequestDto.js +4 -0
  75. package/dist/sei-panorama-service/src/services/schemas/ApiError.d.ts +31 -0
  76. package/dist/sei-panorama-service/src/services/schemas/ApiError.js +1 -0
  77. package/dist/sei-panorama-service/src/services/schemas/IntegrationAdoptionSummary.d.ts +14 -0
  78. package/dist/sei-panorama-service/src/services/schemas/IntegrationAdoptionSummary.js +1 -0
  79. package/dist/sei-panorama-service/src/services/schemas/IntegrationRawMetrics.d.ts +15 -0
  80. package/dist/sei-panorama-service/src/services/schemas/IntegrationRawMetrics.js +1 -0
  81. package/dist/sei-panorama-service/src/services/schemas/LanguageCount.d.ts +5 -1
  82. package/dist/sei-panorama-service/src/services/schemas/MttrBreakdownItemDto.d.ts +22 -0
  83. package/dist/sei-panorama-service/src/services/schemas/MttrBreakdownItemDto.js +4 -0
  84. package/dist/sei-panorama-service/src/services/schemas/MttrBreakdownResponseDto.d.ts +27 -0
  85. package/dist/sei-panorama-service/src/services/schemas/MttrBreakdownResponseDto.js +1 -0
  86. package/dist/sei-panorama-service/src/services/schemas/MttrDataPointDto.d.ts +23 -0
  87. package/dist/sei-panorama-service/src/services/schemas/MttrDataPointDto.js +4 -0
  88. package/dist/sei-panorama-service/src/services/schemas/MttrResponseDto.d.ts +32 -0
  89. package/dist/sei-panorama-service/src/services/schemas/MttrResponseDto.js +1 -0
  90. package/dist/sei-panorama-service/src/services/schemas/MttrSummaryDto.d.ts +17 -0
  91. package/dist/sei-panorama-service/src/services/schemas/MttrSummaryDto.js +4 -0
  92. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownItemDto.d.ts +34 -0
  93. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownItemDto.js +4 -0
  94. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownResponseDto.d.ts +27 -0
  95. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownResponseDto.js +1 -0
  96. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateDataPointDto.d.ts +35 -0
  97. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateDataPointDto.js +4 -0
  98. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateResponseDto.d.ts +32 -0
  99. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateResponseDto.js +1 -0
  100. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateSummaryDto.d.ts +17 -0
  101. package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateSummaryDto.js +4 -0
  102. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownItemDto.d.ts +46 -0
  103. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownItemDto.js +4 -0
  104. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownResponseDto.d.ts +27 -0
  105. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownResponseDto.js +1 -0
  106. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesDataPointDto.d.ts +47 -0
  107. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesDataPointDto.js +4 -0
  108. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesResponseDto.d.ts +31 -0
  109. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesResponseDto.js +1 -0
  110. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesSummaryDto.d.ts +17 -0
  111. package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesSummaryDto.js +4 -0
  112. package/dist/sei-panorama-service/src/services/schemas/PaginationParams.d.ts +19 -0
  113. package/dist/sei-panorama-service/src/services/schemas/PaginationParams.js +4 -0
  114. package/dist/sei-panorama-service/src/services/schemas/SecurityDrilldownResponseDto.d.ts +6 -0
  115. package/dist/sei-panorama-service/src/services/schemas/SecurityDrilldownResponseDto.js +1 -0
  116. package/dist/sei-panorama-service/src/services/schemas/TeamPeriodData.d.ts +46 -0
  117. package/dist/sei-panorama-service/src/services/schemas/TeamPeriodData.js +4 -0
  118. package/dist/sei-panorama-service/src/services/schemas/ToolSummary.d.ts +53 -0
  119. package/dist/sei-panorama-service/src/services/schemas/ToolSummary.js +4 -0
  120. package/dist/sei-panorama-service/src/services/schemas/UserMetrics.d.ts +25 -0
  121. package/dist/sei-panorama-service/src/services/schemas/UserMetrics.js +1 -0
  122. package/dist/sei-panorama-service/src/services/schemas/ValidationError.d.ts +19 -0
  123. package/dist/sei-panorama-service/src/services/schemas/ValidationError.js +4 -0
  124. package/dist/sei-panorama-service/src/services/schemas/VulnerabilityDetail.d.ts +48 -0
  125. package/dist/sei-panorama-service/src/services/schemas/VulnerabilityDetail.js +4 -0
  126. package/package.json +1 -1
  127. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery.d.ts +0 -22
  128. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery.js +0 -14
  129. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamAdoptionQuery.d.ts +0 -22
  130. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamAdoptionQuery.js +0 -14
  131. package/dist/sei-panorama-service/src/services/schemas/AiDailyActiveUsersDrilldownRequestDto.d.ts +0 -34
  132. package/dist/sei-panorama-service/src/services/schemas/AiDailyActiveUsersDrilldownResponseDto.d.ts +0 -58
  133. package/dist/sei-panorama-service/src/services/schemas/AiFeatureDataPoint.d.ts +0 -14
  134. package/dist/sei-panorama-service/src/services/schemas/AiFeatureDataResponseDto.d.ts +0 -22
  135. package/dist/sei-panorama-service/src/services/schemas/AiInsightsRequestDto.d.ts +0 -17
  136. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionRequestDto.d.ts +0 -34
  137. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionResponseDto.d.ts +0 -35
  138. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionUserDto.d.ts +0 -30
  139. package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownDataDto.d.ts +0 -27
  140. package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownOptions.d.ts +0 -12
  141. package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownUserDto.d.ts +0 -52
  142. package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownDataDto.d.ts +0 -17
  143. package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownOptions.d.ts +0 -12
  144. package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownUserDto.d.ts +0 -60
  145. /package/dist/sei-panorama-service/src/services/schemas/{AiFeatureDataPoint.js → AdoptionDataPoint.js} +0 -0
  146. /package/dist/sei-panorama-service/src/services/schemas/{AiInsightsRequestDto.js → AdoptionPeriodData.js} +0 -0
  147. /package/dist/sei-panorama-service/src/services/schemas/{AiTeamAdoptionUserDto.js → AgedVulnerabilitiesBreakdownItemDto.js} +0 -0
  148. /package/dist/sei-panorama-service/src/services/schemas/{AiDailyActiveUsersDrilldownRequestDto.js → AgedVulnerabilitiesBreakdownResponseDto.js} +0 -0
  149. /package/dist/sei-panorama-service/src/services/schemas/{CursorDrilldownOptions.js → AgedVulnerabilitiesDataPointDto.js} +0 -0
  150. /package/dist/sei-panorama-service/src/services/schemas/{AiDailyActiveUsersDrilldownResponseDto.js → AgedVulnerabilitiesResponseDto.js} +0 -0
  151. /package/dist/sei-panorama-service/src/services/schemas/{CursorDrilldownUserDto.js → AgedVulnerabilitiesSummaryDto.js} +0 -0
  152. /package/dist/sei-panorama-service/src/services/schemas/{WindsurfDrilldownOptions.js → AiAdoptionBreakdownRequestDto.js} +0 -0
  153. /package/dist/sei-panorama-service/src/services/schemas/{AiFeatureDataResponseDto.js → AiAdoptionBreakdownResponseDto.js} +0 -0
  154. /package/dist/sei-panorama-service/src/services/schemas/{WindsurfDrilldownUserDto.js → AiAdoptionMetricsRequestDto.js} +0 -0
  155. /package/dist/sei-panorama-service/src/services/schemas/{AiTeamAdoptionRequestDto.js → AiAdoptionMetricsResponseDto.js} +0 -0
  156. /package/dist/sei-panorama-service/src/services/schemas/{AiTeamAdoptionResponseDto.js → AiAdoptionSummaryResponseDto.js} +0 -0
  157. /package/dist/sei-panorama-service/src/services/schemas/{CursorDrilldownDataDto.js → AiRawMetricsRequestDto.js} +0 -0
  158. /package/dist/sei-panorama-service/src/services/schemas/{WindsurfDrilldownDataDto.js → AiRawMetricsResponseDto.js} +0 -0
@@ -0,0 +1,42 @@
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 aiInsightsControllerGetTeamBreakdown(props) {
7
+ return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/usage/breakdown`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Retrieves metrics broken down by direct child teams with aggregated values across the entire date range.
11
+ *
12
+ * **Important:** This endpoint processes only direct child teams of the specified team and aggregates
13
+ * data across the entire date range (granularity parameter is ignored).
14
+ *
15
+ * **Supported Metrics:**
16
+ * - `linesAddedPerContributor` - Net lines added per contributor by team (both integrations)
17
+ * - `acceptanceRatePercentage` - Acceptance rate by team (both integrations)
18
+ * - `linesSuggested` - Lines suggested by AI by team (Windsurf only)
19
+ * - `linesAccepted` - Lines accepted from AI by team (Windsurf only)
20
+ * - `addedVsDeletedLinesRatio` - Ratio of added vs deleted lines (Cursor only)
21
+ * - `aiSpendPer1KLineOfEdit` - Cost per 1000 lines of code (Cursor only)
22
+ *
23
+ * **Integration Types:**
24
+ * Specify using an array of enum values:
25
+ * - `cursor` - Cursor AI coding assistant
26
+ * - `windsurf` - Windsurf AI coding platform
27
+ *
28
+ * **Response Structure:**
29
+ * Returns data arrays for each requested integration type (cursor and/or windsurf).
30
+ * Each array contains team breakdown data with:
31
+ * - teamId: Direct child team reference ID
32
+ * - teamName: Direct child team name
33
+ * - startDate: Start of the aggregation period
34
+ * - endDate: End of the aggregation period
35
+ * - value: Aggregated metric value for the team across entire date range
36
+ *
37
+ * **Note:** Granularity is not supported - returns single aggregated value per team.
38
+ *
39
+ */
40
+ export function useAiInsightsControllerGetTeamBreakdownQuery(props, options) {
41
+ return useQuery(['AIInsightsControllerGetTeamBreakdown', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetTeamBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
42
+ }
@@ -0,0 +1,44 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiToolUsersSummaryResponseDto } from '../schemas/AiToolUsersSummaryResponseDto';
3
+ import type { ApiError } from '../schemas/ApiError';
4
+ import type { AiToolUsersSummaryRequestDto } from '../schemas/AiToolUsersSummaryRequestDto';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface AiInsightsControllerGetToolUsersSummaryQueryQueryParams {
8
+ projectIdentifier: string;
9
+ orgIdentifier: string;
10
+ }
11
+ export type AiInsightsControllerGetToolUsersSummaryRequestBody = AiToolUsersSummaryRequestDto;
12
+ export type AiInsightsControllerGetToolUsersSummaryOkResponse = ResponseWithPagination<AiToolUsersSummaryResponseDto>;
13
+ export type AiInsightsControllerGetToolUsersSummaryErrorResponse = ApiError;
14
+ export interface AiInsightsControllerGetToolUsersSummaryProps extends Omit<FetcherOptions<AiInsightsControllerGetToolUsersSummaryQueryQueryParams, AiInsightsControllerGetToolUsersSummaryRequestBody>, 'url'> {
15
+ queryParams: AiInsightsControllerGetToolUsersSummaryQueryQueryParams;
16
+ body: AiInsightsControllerGetToolUsersSummaryRequestBody;
17
+ }
18
+ export declare function aiInsightsControllerGetToolUsersSummary(props: AiInsightsControllerGetToolUsersSummaryProps): Promise<AiInsightsControllerGetToolUsersSummaryOkResponse>;
19
+ /**
20
+ * Retrieves high-level summary statistics for AI coding assistant usage.
21
+ *
22
+ * **Integration Types:**
23
+ * Specify using an array of enum values:
24
+ * - `cursor` - Cursor AI coding assistant
25
+ * - `windsurf` - Windsurf AI coding platform
26
+ *
27
+ * **Response Structure:**
28
+ * Returns data for each requested integration type (cursor and/or windsurf), each containing:
29
+ *
30
+ * **Current Period Metrics:**
31
+ * - **linesAccepted** - Total lines added (accepted) across all team members
32
+ * - **linesSuggested** - Total lines suggested across all team members
33
+ * - **acceptanceRate** - Acceptance rate percentage (linesAccepted / linesSuggested * 100)
34
+ * - **activeUsers** - Number of active users in this period
35
+ * - **inactiveUsers** - Number of inactive users (licensed but not active)
36
+ * - **unAssigned** - Number of unassigned users (not licensed)
37
+ *
38
+ * **Previous Period Metrics:**
39
+ * Same metrics as current period for trend comparison.
40
+ *
41
+ * Useful for executive dashboards and high-level adoption tracking.
42
+ *
43
+ */
44
+ export declare function useAiInsightsControllerGetToolUsersSummaryQuery(props: AiInsightsControllerGetToolUsersSummaryProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetToolUsersSummaryOkResponse, AiInsightsControllerGetToolUsersSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetToolUsersSummaryOkResponse, ApiError>;
@@ -0,0 +1,36 @@
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 aiInsightsControllerGetToolUsersSummary(props) {
7
+ return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/usage/summary`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Retrieves high-level summary statistics for AI coding assistant usage.
11
+ *
12
+ * **Integration Types:**
13
+ * Specify using an array of enum values:
14
+ * - `cursor` - Cursor AI coding assistant
15
+ * - `windsurf` - Windsurf AI coding platform
16
+ *
17
+ * **Response Structure:**
18
+ * Returns data for each requested integration type (cursor and/or windsurf), each containing:
19
+ *
20
+ * **Current Period Metrics:**
21
+ * - **linesAccepted** - Total lines added (accepted) across all team members
22
+ * - **linesSuggested** - Total lines suggested across all team members
23
+ * - **acceptanceRate** - Acceptance rate percentage (linesAccepted / linesSuggested * 100)
24
+ * - **activeUsers** - Number of active users in this period
25
+ * - **inactiveUsers** - Number of inactive users (licensed but not active)
26
+ * - **unAssigned** - Number of unassigned users (not licensed)
27
+ *
28
+ * **Previous Period Metrics:**
29
+ * Same metrics as current period for trend comparison.
30
+ *
31
+ * Useful for executive dashboards and high-level adoption tracking.
32
+ *
33
+ */
34
+ export function useAiInsightsControllerGetToolUsersSummaryQuery(props, options) {
35
+ return useQuery(['AIInsightsControllerGetToolUsersSummary', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetToolUsersSummary(Object.assign(Object.assign({}, props), { signal })), options);
36
+ }
@@ -1,22 +1,46 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { AiTopLanguagesResponseDto } from '../schemas/AiTopLanguagesResponseDto';
3
- import type { AiInsightsRequestDto } from '../schemas/AiInsightsRequestDto';
3
+ import type { ApiError } from '../schemas/ApiError';
4
+ import type { AiTopLanguagesRequestDto } from '../schemas/AiTopLanguagesRequestDto';
4
5
  import type { ResponseWithPagination } from '../helpers';
5
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
7
  export interface AiInsightsControllerGetTopLanguagesQueryQueryParams {
7
- account: string;
8
8
  projectIdentifier: string;
9
9
  orgIdentifier: string;
10
10
  }
11
- export type AiInsightsControllerGetTopLanguagesRequestBody = AiInsightsRequestDto;
11
+ export type AiInsightsControllerGetTopLanguagesRequestBody = AiTopLanguagesRequestDto;
12
12
  export type AiInsightsControllerGetTopLanguagesOkResponse = ResponseWithPagination<AiTopLanguagesResponseDto>;
13
- export type AiInsightsControllerGetTopLanguagesErrorResponse = string;
13
+ export type AiInsightsControllerGetTopLanguagesErrorResponse = ApiError;
14
14
  export interface AiInsightsControllerGetTopLanguagesProps extends Omit<FetcherOptions<AiInsightsControllerGetTopLanguagesQueryQueryParams, AiInsightsControllerGetTopLanguagesRequestBody>, 'url'> {
15
15
  queryParams: AiInsightsControllerGetTopLanguagesQueryQueryParams;
16
16
  body: AiInsightsControllerGetTopLanguagesRequestBody;
17
17
  }
18
18
  export declare function aiInsightsControllerGetTopLanguages(props: AiInsightsControllerGetTopLanguagesProps): Promise<AiInsightsControllerGetTopLanguagesOkResponse>;
19
19
  /**
20
- * Retrieves top programming languages with their usage counts.
20
+ * Retrieves ranked list of programming languages based on AI coding assistant usage.
21
+ *
22
+ * **IMPORTANT: This endpoint only supports Cursor integration.**
23
+ * Requests with Windsurf integration will be rejected with a 400 error.
24
+ *
25
+ * Returns language usage statistics including:
26
+ * - Language name
27
+ * - Number of file changes for each language (file_changes_count)
28
+ *
29
+ * Results are sorted by file changes count in descending order.
30
+ *
31
+ * **Integration Types:**
32
+ * Specify using an array of enum values (Cursor only):
33
+ * - `cursor` - Cursor AI coding assistant (ONLY)
34
+ *
35
+ * **Not Supported:**
36
+ * - `windsurf` - Will return 400 Bad Request error with message:
37
+ * "Top languages feature is only supported for Cursor integration. Windsurf integration is not supported for this endpoint."
38
+ *
39
+ * **Response Structure:**
40
+ * Returns a single response object containing:
41
+ * - startDate: Start of the date range
42
+ * - endDate: End of the date range
43
+ * - languages: Array of language objects with name and file_changes_count
44
+ *
21
45
  */
22
- export declare function useAiInsightsControllerGetTopLanguagesQuery(props: AiInsightsControllerGetTopLanguagesProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetTopLanguagesOkResponse, AiInsightsControllerGetTopLanguagesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetTopLanguagesOkResponse, string>;
46
+ export declare function useAiInsightsControllerGetTopLanguagesQuery(props: AiInsightsControllerGetTopLanguagesProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetTopLanguagesOkResponse, AiInsightsControllerGetTopLanguagesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetTopLanguagesOkResponse, ApiError>;
@@ -4,10 +4,34 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function aiInsightsControllerGetTopLanguages(props) {
7
- return fetcher(Object.assign({ url: `/v2/insights/ai/top_languages`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/usage/top_languages`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Retrieves top programming languages with their usage counts.
10
+ * Retrieves ranked list of programming languages based on AI coding assistant usage.
11
+ *
12
+ * **IMPORTANT: This endpoint only supports Cursor integration.**
13
+ * Requests with Windsurf integration will be rejected with a 400 error.
14
+ *
15
+ * Returns language usage statistics including:
16
+ * - Language name
17
+ * - Number of file changes for each language (file_changes_count)
18
+ *
19
+ * Results are sorted by file changes count in descending order.
20
+ *
21
+ * **Integration Types:**
22
+ * Specify using an array of enum values (Cursor only):
23
+ * - `cursor` - Cursor AI coding assistant (ONLY)
24
+ *
25
+ * **Not Supported:**
26
+ * - `windsurf` - Will return 400 Bad Request error with message:
27
+ * "Top languages feature is only supported for Cursor integration. Windsurf integration is not supported for this endpoint."
28
+ *
29
+ * **Response Structure:**
30
+ * Returns a single response object containing:
31
+ * - startDate: Start of the date range
32
+ * - endDate: End of the date range
33
+ * - languages: Array of language objects with name and file_changes_count
34
+ *
11
35
  */
12
36
  export function useAiInsightsControllerGetTopLanguagesQuery(props, options) {
13
37
  return useQuery(['AIInsightsControllerGetTopLanguages', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetTopLanguages(Object.assign(Object.assign({}, props), { signal })), options);
@@ -0,0 +1,12 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export type HealthControllerCheckDbHealthOkResponse = ResponseWithPagination<string>;
5
+ export type HealthControllerCheckDbHealthErrorResponse = unknown;
6
+ export interface HealthControllerCheckDbHealthProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
7
+ }
8
+ export declare function healthControllerCheckDbHealth(props: HealthControllerCheckDbHealthProps): Promise<HealthControllerCheckDbHealthOkResponse>;
9
+ /**
10
+ * Returns the health status of the database.
11
+ */
12
+ export declare function useHealthControllerCheckDbHealthQuery(props: HealthControllerCheckDbHealthProps, options?: Omit<UseQueryOptions<HealthControllerCheckDbHealthOkResponse, HealthControllerCheckDbHealthErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<HealthControllerCheckDbHealthOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function healthControllerCheckDbHealth(props) {
7
+ return fetcher(Object.assign({ url: `/v2/health/db-health`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns the health status of the database.
11
+ */
12
+ export function useHealthControllerCheckDbHealthQuery(props, options) {
13
+ return useQuery(['HealthControllerCheckDbHealth'], ({ signal }) => healthControllerCheckDbHealth(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -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
+ }
@@ -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>;
@@ -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
+ }