@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,51 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiAdoptionBreakdownResponseDto } from '../schemas/AiAdoptionBreakdownResponseDto';
3
+ import type { ApiError } from '../schemas/ApiError';
4
+ import type { AiAdoptionBreakdownRequestDto } from '../schemas/AiAdoptionBreakdownRequestDto';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface AiInsightsControllerGetAdoptionBreakdownQueryQueryParams {
8
+ projectIdentifier: string;
9
+ orgIdentifier: string;
10
+ }
11
+ export type AiInsightsControllerGetAdoptionBreakdownRequestBody = AiAdoptionBreakdownRequestDto;
12
+ export type AiInsightsControllerGetAdoptionBreakdownOkResponse = ResponseWithPagination<AiAdoptionBreakdownResponseDto>;
13
+ export type AiInsightsControllerGetAdoptionBreakdownErrorResponse = ApiError;
14
+ export interface AiInsightsControllerGetAdoptionBreakdownProps extends Omit<FetcherOptions<AiInsightsControllerGetAdoptionBreakdownQueryQueryParams, AiInsightsControllerGetAdoptionBreakdownRequestBody>, 'url'> {
15
+ queryParams: AiInsightsControllerGetAdoptionBreakdownQueryQueryParams;
16
+ body: AiInsightsControllerGetAdoptionBreakdownRequestBody;
17
+ }
18
+ export declare function aiInsightsControllerGetAdoptionBreakdown(props: AiInsightsControllerGetAdoptionBreakdownProps): Promise<AiInsightsControllerGetAdoptionBreakdownOkResponse>;
19
+ /**
20
+ * Retrieves adoption metrics broken down by direct child teams with aggregated values across the entire date range.
21
+ *
22
+ * **Important:** This endpoint processes only direct child teams of the specified team and aggregates
23
+ * data across the entire date range (granularity parameter is ignored).
24
+ *
25
+ * **Returns adoption data for each child team:**
26
+ * - Team-specific active, inactive, and not-licensed user counts aggregated across entire date range
27
+ * - Data is organized by integration type (Cursor, Windsurf, and both)
28
+ *
29
+ * **Integration Breakdown:**
30
+ * - `cursor` - Adoption breakdown for Cursor integration by child team
31
+ * - `windsurf` - Adoption breakdown for Windsurf integration by child team
32
+ * - `cursorAndWindsurf` - Users active in both integrations (only when both are requested)
33
+ *
34
+ * **Metrics per Team:**
35
+ * - `teamId` - Child team reference ID
36
+ * - `teamName` - Child team name
37
+ * - `activeUsers` - Total users who actively used the tool across entire date range
38
+ * - `inactiveUsers` - Total licensed users who did not use the tool
39
+ * - `unAssigned` - Total team members without a license for this tool
40
+ * - `startDate` - Start of the aggregation period
41
+ * - `endDate` - End of the aggregation period
42
+ *
43
+ * **Note:** Granularity is not supported - returns single aggregated value per team.
44
+ *
45
+ * **Use Cases:**
46
+ * - Compare adoption across different child teams
47
+ * - Identify teams needing support or training
48
+ * - Monitor license utilization per team
49
+ *
50
+ */
51
+ export declare function useAiInsightsControllerGetAdoptionBreakdownQuery(props: AiInsightsControllerGetAdoptionBreakdownProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetAdoptionBreakdownOkResponse, AiInsightsControllerGetAdoptionBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetAdoptionBreakdownOkResponse, ApiError>;
@@ -0,0 +1,43 @@
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 aiInsightsControllerGetAdoptionBreakdown(props) {
7
+ return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/adoptions/breakdown`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Retrieves adoption 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
+ * **Returns adoption data for each child team:**
16
+ * - Team-specific active, inactive, and not-licensed user counts aggregated across entire date range
17
+ * - Data is organized by integration type (Cursor, Windsurf, and both)
18
+ *
19
+ * **Integration Breakdown:**
20
+ * - `cursor` - Adoption breakdown for Cursor integration by child team
21
+ * - `windsurf` - Adoption breakdown for Windsurf integration by child team
22
+ * - `cursorAndWindsurf` - Users active in both integrations (only when both are requested)
23
+ *
24
+ * **Metrics per Team:**
25
+ * - `teamId` - Child team reference ID
26
+ * - `teamName` - Child team name
27
+ * - `activeUsers` - Total users who actively used the tool across entire date range
28
+ * - `inactiveUsers` - Total licensed users who did not use the tool
29
+ * - `unAssigned` - Total team members without a license for this tool
30
+ * - `startDate` - Start of the aggregation period
31
+ * - `endDate` - End of the aggregation period
32
+ *
33
+ * **Note:** Granularity is not supported - returns single aggregated value per team.
34
+ *
35
+ * **Use Cases:**
36
+ * - Compare adoption across different child teams
37
+ * - Identify teams needing support or training
38
+ * - Monitor license utilization per team
39
+ *
40
+ */
41
+ export function useAiInsightsControllerGetAdoptionBreakdownQuery(props, options) {
42
+ return useQuery(['AIInsightsControllerGetAdoptionBreakdown', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetAdoptionBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
43
+ }
@@ -0,0 +1,52 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiAdoptionMetricsResponseDto } from '../schemas/AiAdoptionMetricsResponseDto';
3
+ import type { ApiError } from '../schemas/ApiError';
4
+ import type { AiAdoptionMetricsRequestDto } from '../schemas/AiAdoptionMetricsRequestDto';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface AiInsightsControllerGetAdoptionMetricsQueryQueryParams {
8
+ projectIdentifier: string;
9
+ orgIdentifier: string;
10
+ }
11
+ export type AiInsightsControllerGetAdoptionMetricsRequestBody = AiAdoptionMetricsRequestDto;
12
+ export type AiInsightsControllerGetAdoptionMetricsOkResponse = ResponseWithPagination<AiAdoptionMetricsResponseDto>;
13
+ export type AiInsightsControllerGetAdoptionMetricsErrorResponse = ApiError;
14
+ export interface AiInsightsControllerGetAdoptionMetricsProps extends Omit<FetcherOptions<AiInsightsControllerGetAdoptionMetricsQueryQueryParams, AiInsightsControllerGetAdoptionMetricsRequestBody>, 'url'> {
15
+ queryParams: AiInsightsControllerGetAdoptionMetricsQueryQueryParams;
16
+ body: AiInsightsControllerGetAdoptionMetricsRequestBody;
17
+ }
18
+ export declare function aiInsightsControllerGetAdoptionMetrics(props: AiInsightsControllerGetAdoptionMetricsProps): Promise<AiInsightsControllerGetAdoptionMetricsOkResponse>;
19
+ /**
20
+ * Retrieves adoption metrics over time showing active, inactive, and unlicensed user counts.
21
+ *
22
+ * **Granularity Options:**
23
+ * - `DAILY` - One data point per day
24
+ * - `WEEKLY` - One data point per week
25
+ * - `MONTHLY` - One data point per month
26
+ *
27
+ * **Integration Types:**
28
+ * Specify using an array of enum values:
29
+ * - `cursor` - Cursor AI coding assistant
30
+ * - `windsurf` - Windsurf AI coding platform
31
+ *
32
+ * **Response Structure:**
33
+ * Returns time-series data arrays for each integration type based on request:
34
+ * - `cursor` - Adoption data for Cursor integration
35
+ * - `windsurf` - Adoption data for Windsurf integration
36
+ * - `CursorAndWindsurf` - Users active in both integrations (only when both are requested)
37
+ *
38
+ * **Metrics per Data Point:**
39
+ * - `startDate` - Start date of the period
40
+ * - `endDate` - End date of the period
41
+ * - `activeUsers` - Users who actively used the tool in this period
42
+ * - `inactiveUsers` - Licensed users who did not use the tool
43
+ * - `unAssigned` - Team members without a license for this tool
44
+ *
45
+ * **Use Cases:**
46
+ * - Track adoption trends over time
47
+ * - Identify periods of high/low engagement
48
+ * - Monitor license utilization
49
+ * - Compare adoption across different AI tools
50
+ *
51
+ */
52
+ export declare function useAiInsightsControllerGetAdoptionMetricsQuery(props: AiInsightsControllerGetAdoptionMetricsProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetAdoptionMetricsOkResponse, AiInsightsControllerGetAdoptionMetricsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetAdoptionMetricsOkResponse, ApiError>;
@@ -0,0 +1,44 @@
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 aiInsightsControllerGetAdoptionMetrics(props) {
7
+ return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/adoptions`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Retrieves adoption metrics over time showing active, inactive, and unlicensed user counts.
11
+ *
12
+ * **Granularity Options:**
13
+ * - `DAILY` - One data point per day
14
+ * - `WEEKLY` - One data point per week
15
+ * - `MONTHLY` - One data point per month
16
+ *
17
+ * **Integration Types:**
18
+ * Specify using an array of enum values:
19
+ * - `cursor` - Cursor AI coding assistant
20
+ * - `windsurf` - Windsurf AI coding platform
21
+ *
22
+ * **Response Structure:**
23
+ * Returns time-series data arrays for each integration type based on request:
24
+ * - `cursor` - Adoption data for Cursor integration
25
+ * - `windsurf` - Adoption data for Windsurf integration
26
+ * - `CursorAndWindsurf` - Users active in both integrations (only when both are requested)
27
+ *
28
+ * **Metrics per Data Point:**
29
+ * - `startDate` - Start date of the period
30
+ * - `endDate` - End date of the period
31
+ * - `activeUsers` - Users who actively used the tool in this period
32
+ * - `inactiveUsers` - Licensed users who did not use the tool
33
+ * - `unAssigned` - Team members without a license for this tool
34
+ *
35
+ * **Use Cases:**
36
+ * - Track adoption trends over time
37
+ * - Identify periods of high/low engagement
38
+ * - Monitor license utilization
39
+ * - Compare adoption across different AI tools
40
+ *
41
+ */
42
+ export function useAiInsightsControllerGetAdoptionMetricsQuery(props, options) {
43
+ return useQuery(['AIInsightsControllerGetAdoptionMetrics', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetAdoptionMetrics(Object.assign(Object.assign({}, props), { signal })), options);
44
+ }
@@ -0,0 +1,51 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiAdoptionSummaryResponseDto } from '../schemas/AiAdoptionSummaryResponseDto';
3
+ import type { ApiError } from '../schemas/ApiError';
4
+ import type { AiAdoptionSummaryRequestDto } from '../schemas/AiAdoptionSummaryRequestDto';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface AiInsightsControllerGetAdoptionSummaryQueryQueryParams {
8
+ projectIdentifier: string;
9
+ orgIdentifier: string;
10
+ }
11
+ export type AiInsightsControllerGetAdoptionSummaryRequestBody = AiAdoptionSummaryRequestDto;
12
+ export type AiInsightsControllerGetAdoptionSummaryOkResponse = ResponseWithPagination<AiAdoptionSummaryResponseDto>;
13
+ export type AiInsightsControllerGetAdoptionSummaryErrorResponse = ApiError;
14
+ export interface AiInsightsControllerGetAdoptionSummaryProps extends Omit<FetcherOptions<AiInsightsControllerGetAdoptionSummaryQueryQueryParams, AiInsightsControllerGetAdoptionSummaryRequestBody>, 'url'> {
15
+ queryParams: AiInsightsControllerGetAdoptionSummaryQueryQueryParams;
16
+ body: AiInsightsControllerGetAdoptionSummaryRequestBody;
17
+ }
18
+ export declare function aiInsightsControllerGetAdoptionSummary(props: AiInsightsControllerGetAdoptionSummaryProps): Promise<AiInsightsControllerGetAdoptionSummaryOkResponse>;
19
+ /**
20
+ * Retrieves aggregate adoption summary statistics with current and previous period comparison.
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:
29
+ * - `cursor` - Adoption data for Cursor integration only
30
+ * - `windsurf` - Adoption data for Windsurf integration only
31
+ * - `cursorAndWindsurf` - Users active in both integrations (only when both are requested)
32
+ *
33
+ * Each integration contains:
34
+ * - `currentPeriod` - Metrics for the requested date range
35
+ * - `previousPeriod` - Metrics for the previous period (automatically calculated)
36
+ *
37
+ * **Metrics per Period:**
38
+ * - `startDate` - Start date of the period
39
+ * - `endDate` - End date of the period
40
+ * - `activeUsers` - Users who actively used the tool
41
+ * - `inactiveUsers` - Licensed users who did not use the tool
42
+ * - `unAssigned` - Team members without a license for this tool
43
+ *
44
+ * **Use Cases:**
45
+ * - Executive dashboards showing overall adoption
46
+ * - Period-over-period adoption trend analysis
47
+ * - License utilization tracking
48
+ * - ROI analysis for AI tools
49
+ *
50
+ */
51
+ export declare function useAiInsightsControllerGetAdoptionSummaryQuery(props: AiInsightsControllerGetAdoptionSummaryProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetAdoptionSummaryOkResponse, AiInsightsControllerGetAdoptionSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetAdoptionSummaryOkResponse, ApiError>;
@@ -0,0 +1,43 @@
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 aiInsightsControllerGetAdoptionSummary(props) {
7
+ return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/adoptions/summary`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Retrieves aggregate adoption summary statistics with current and previous period comparison.
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:
19
+ * - `cursor` - Adoption data for Cursor integration only
20
+ * - `windsurf` - Adoption data for Windsurf integration only
21
+ * - `cursorAndWindsurf` - Users active in both integrations (only when both are requested)
22
+ *
23
+ * Each integration contains:
24
+ * - `currentPeriod` - Metrics for the requested date range
25
+ * - `previousPeriod` - Metrics for the previous period (automatically calculated)
26
+ *
27
+ * **Metrics per Period:**
28
+ * - `startDate` - Start date of the period
29
+ * - `endDate` - End date of the period
30
+ * - `activeUsers` - Users who actively used the tool
31
+ * - `inactiveUsers` - Licensed users who did not use the tool
32
+ * - `unAssigned` - Team members without a license for this tool
33
+ *
34
+ * **Use Cases:**
35
+ * - Executive dashboards showing overall adoption
36
+ * - Period-over-period adoption trend analysis
37
+ * - License utilization tracking
38
+ * - ROI analysis for AI tools
39
+ *
40
+ */
41
+ export function useAiInsightsControllerGetAdoptionSummaryQuery(props, options) {
42
+ return useQuery(['AIInsightsControllerGetAdoptionSummary', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetAdoptionSummary(Object.assign(Object.assign({}, props), { signal })), options);
43
+ }
@@ -1,22 +1,41 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { AiFeatureDataResponseDto } from '../schemas/AiFeatureDataResponseDto';
3
- import type { AiInsightsRequestDto } from '../schemas/AiInsightsRequestDto';
2
+ import type { ApiError } from '../schemas/ApiError';
3
+ import type { AiCombinedInsightsRequestDto } from '../schemas/AiCombinedInsightsRequestDto';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface AiInsightsControllerGetFeatureMetricsQueryQueryParams {
7
- account: string;
8
7
  projectIdentifier: string;
9
8
  orgIdentifier: string;
10
9
  }
11
- export type AiInsightsControllerGetFeatureMetricsRequestBody = AiInsightsRequestDto;
12
- export type AiInsightsControllerGetFeatureMetricsOkResponse = ResponseWithPagination<AiFeatureDataResponseDto>;
13
- export type AiInsightsControllerGetFeatureMetricsErrorResponse = string;
10
+ export type AiInsightsControllerGetFeatureMetricsRequestBody = AiCombinedInsightsRequestDto;
11
+ export type AiInsightsControllerGetFeatureMetricsOkResponse = ResponseWithPagination<string>;
12
+ export type AiInsightsControllerGetFeatureMetricsErrorResponse = ApiError;
14
13
  export interface AiInsightsControllerGetFeatureMetricsProps extends Omit<FetcherOptions<AiInsightsControllerGetFeatureMetricsQueryQueryParams, AiInsightsControllerGetFeatureMetricsRequestBody>, 'url'> {
15
14
  queryParams: AiInsightsControllerGetFeatureMetricsQueryQueryParams;
16
15
  body: AiInsightsControllerGetFeatureMetricsRequestBody;
17
16
  }
18
17
  export declare function aiInsightsControllerGetFeatureMetrics(props: AiInsightsControllerGetFeatureMetricsProps): Promise<AiInsightsControllerGetFeatureMetricsOkResponse>;
19
18
  /**
20
- * Retrieves feature metrics for various AI insights with current and previous period comparisons.
19
+ * Retrieves time-series feature metrics for AI coding assistants with period-over-period comparisons.
20
+ *
21
+ * **Supported Metrics:**
22
+ * - `linesAddedPerContributor` - Average net lines added per contributor
23
+ * - `linesSuggested` - Total lines suggested by AI (Windsurf only)
24
+ * - `linesAccepted` - Total lines accepted from AI suggestions (Windsurf only)
25
+ * - `acceptanceRatePercentage` - Percentage of AI suggestions accepted (both integrations)
26
+ *
27
+ * **Granularity Options:**
28
+ * - `DAILY` - Daily time series data points
29
+ * - `WEEKLY` - Weekly aggregated data points
30
+ * - `MONTHLY` - Monthly aggregated data points
31
+ *
32
+ * **Integration Types:**
33
+ * - `cursor` - Cursor AI coding assistant
34
+ * - `windsurf` - Windsurf AI coding platform
35
+ *
36
+ * **Response Structure:**
37
+ * Returns time-series data arrays for each requested integration type (cursor and/or windsurf).
38
+ * Each data point contains startDate, endDate, and value for the specified metric.
39
+ *
21
40
  */
22
- export declare function useAiInsightsControllerGetFeatureMetricsQuery(props: AiInsightsControllerGetFeatureMetricsProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetFeatureMetricsOkResponse, AiInsightsControllerGetFeatureMetricsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetFeatureMetricsOkResponse, string>;
41
+ export declare function useAiInsightsControllerGetFeatureMetricsQuery(props: AiInsightsControllerGetFeatureMetricsProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetFeatureMetricsOkResponse, AiInsightsControllerGetFeatureMetricsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetFeatureMetricsOkResponse, ApiError>;
@@ -4,10 +4,30 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function aiInsightsControllerGetFeatureMetrics(props) {
7
- return fetcher(Object.assign({ url: `/v2/insights/ai/feature_metrics`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/usage/metrics`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Retrieves feature metrics for various AI insights with current and previous period comparisons.
10
+ * Retrieves time-series feature metrics for AI coding assistants with period-over-period comparisons.
11
+ *
12
+ * **Supported Metrics:**
13
+ * - `linesAddedPerContributor` - Average net lines added per contributor
14
+ * - `linesSuggested` - Total lines suggested by AI (Windsurf only)
15
+ * - `linesAccepted` - Total lines accepted from AI suggestions (Windsurf only)
16
+ * - `acceptanceRatePercentage` - Percentage of AI suggestions accepted (both integrations)
17
+ *
18
+ * **Granularity Options:**
19
+ * - `DAILY` - Daily time series data points
20
+ * - `WEEKLY` - Weekly aggregated data points
21
+ * - `MONTHLY` - Monthly aggregated data points
22
+ *
23
+ * **Integration Types:**
24
+ * - `cursor` - Cursor AI coding assistant
25
+ * - `windsurf` - Windsurf AI coding platform
26
+ *
27
+ * **Response Structure:**
28
+ * Returns time-series data arrays for each requested integration type (cursor and/or windsurf).
29
+ * Each data point contains startDate, endDate, and value for the specified metric.
30
+ *
11
31
  */
12
32
  export function useAiInsightsControllerGetFeatureMetricsQuery(props, options) {
13
33
  return useQuery(['AIInsightsControllerGetFeatureMetrics', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetFeatureMetrics(Object.assign(Object.assign({}, props), { signal })), options);
@@ -0,0 +1,103 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiRawMetricsResponseDto } from '../schemas/AiRawMetricsResponseDto';
3
+ import type { ApiError } from '../schemas/ApiError';
4
+ import type { AiRawMetricsRequestDto } from '../schemas/AiRawMetricsRequestDto';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface AiInsightsControllerGetRawMetricsQueryQueryParams {
8
+ projectIdentifier: string;
9
+ orgIdentifier: string;
10
+ }
11
+ export type AiInsightsControllerGetRawMetricsRequestBody = AiRawMetricsRequestDto;
12
+ export type AiInsightsControllerGetRawMetricsOkResponse = ResponseWithPagination<AiRawMetricsResponseDto>;
13
+ export type AiInsightsControllerGetRawMetricsErrorResponse = ApiError;
14
+ export interface AiInsightsControllerGetRawMetricsProps extends Omit<FetcherOptions<AiInsightsControllerGetRawMetricsQueryQueryParams, AiInsightsControllerGetRawMetricsRequestBody>, 'url'> {
15
+ queryParams: AiInsightsControllerGetRawMetricsQueryQueryParams;
16
+ body: AiInsightsControllerGetRawMetricsRequestBody;
17
+ }
18
+ export declare function aiInsightsControllerGetRawMetrics(props: AiInsightsControllerGetRawMetricsProps): Promise<AiInsightsControllerGetRawMetricsOkResponse>;
19
+ /**
20
+ * Retrieves detailed user-level metrics with pagination and sorting support.
21
+ *
22
+ * **Type Parameter:**
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)
26
+ *
27
+ * **Integration Types:**
28
+ * Specify using an array of enum values:
29
+ * - `cursor` - Cursor AI coding assistant
30
+ * - `windsurf` - Windsurf AI coding platform
31
+ *
32
+ * **Response Structure:**
33
+ * Returns data for each requested integration type:
34
+ * - `cursor` - Cursor integration metrics
35
+ * - `windsurf` - Windsurf integration metrics
36
+ * - `cursorAndWindsurf` - Combined metrics (only when both integrations are requested)
37
+ *
38
+ * Each integration contains:
39
+ * - `users` - Array of user metric objects
40
+ * - `pagination` - Pagination metadata (currentPage, pageSize, totalRecords, totalPages)
41
+ *
42
+ * **Active User Metrics (Cursor):**
43
+ * - userName, userEmail - User identification
44
+ * - team - Team name
45
+ * - ai - Nested AI metrics object containing:
46
+ * - totalActiveDays - Number of days user was active
47
+ * - lastActiveDate - Most recent activity date
48
+ * - primaryLanguage - Most frequently used programming language
49
+ * - linesAccepted - Total lines accepted from AI suggestions
50
+ * - linesSuggested - Total lines suggested by AI
51
+ * - linesAcceptPercent - Acceptance rate percentage
52
+ *
53
+ * **Active User Metrics (Windsurf):**
54
+ * - userName, userEmail - User identification
55
+ * - team - Team name
56
+ * - ai - Nested AI metrics object containing:
57
+ * - totalActiveDays - Number of days user was active
58
+ * - lastActiveDate - Most recent activity date
59
+ * - linesAccepted - Total lines accepted
60
+ * - linesSuggested - Total lines suggested
61
+ * - linesAcceptPercent - Acceptance rate percentage
62
+ *
63
+ * **Inactive User Metrics:**
64
+ * - userName, userEmail - User identification
65
+ * - team - Team name
66
+ *
67
+ * **Unassigned User Metrics:**
68
+ * - userName, userEmail - User identification
69
+ * - team - Team name
70
+ *
71
+ * **Pagination:**
72
+ * - Default page size: 10
73
+ * - Maximum page size: 100
74
+ * - Page numbers are 0-indexed
75
+ *
76
+ * **Sorting:**
77
+ * NOTE: Both camelCase and snake_case are supported (e.g., userName or user_name)
78
+ * CamelCase will be automatically converted to snake_case for database queries.
79
+ *
80
+ * For inactive users:
81
+ * - Default sort: user_name (DESC)
82
+ * - Supported fields: userName/user_name, userEmail/user_email
83
+ *
84
+ * For unassigned users:
85
+ * - Default sort: user_name (DESC)
86
+ * - Supported fields: userName/user_name, userEmail/user_email
87
+ *
88
+ * For active users (Cursor):
89
+ * - Default sort: lines_accept_percent (DESC) - shows top performers first
90
+ * - Supported fields: userName/user_name, userEmail/user_email, totalActiveDays/total_active_days,
91
+ * lastActiveDate/last_active_date, primaryLanguage/primary_language, linesAccepted/lines_accepted,
92
+ * linesSuggested/lines_suggested, linesAcceptPercent/lines_accept_percent
93
+ *
94
+ * For active users (Windsurf):
95
+ * - Default sort: lines_accept_percent (DESC) - shows top performers first
96
+ * - Supported fields: userName/user_name, userEmail/user_email, totalActiveDays/total_active_days,
97
+ * lastActiveDate/last_active_date, linesAccepted/lines_accepted, linesSuggested/lines_suggested,
98
+ * linesAcceptPercent/lines_accept_percent
99
+ *
100
+ * Sort criteria: ASC or DESC (defaults to DESC)
101
+ *
102
+ */
103
+ export declare function useAiInsightsControllerGetRawMetricsQuery(props: AiInsightsControllerGetRawMetricsProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetRawMetricsOkResponse, AiInsightsControllerGetRawMetricsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetRawMetricsOkResponse, ApiError>;
@@ -0,0 +1,95 @@
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 aiInsightsControllerGetRawMetrics(props) {
7
+ return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/raw_metrics`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Retrieves detailed user-level metrics with pagination and sorting support.
11
+ *
12
+ * **Type Parameter:**
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)
16
+ *
17
+ * **Integration Types:**
18
+ * Specify using an array of enum values:
19
+ * - `cursor` - Cursor AI coding assistant
20
+ * - `windsurf` - Windsurf AI coding platform
21
+ *
22
+ * **Response Structure:**
23
+ * Returns data for each requested integration type:
24
+ * - `cursor` - Cursor integration metrics
25
+ * - `windsurf` - Windsurf integration metrics
26
+ * - `cursorAndWindsurf` - Combined metrics (only when both integrations are requested)
27
+ *
28
+ * Each integration contains:
29
+ * - `users` - Array of user metric objects
30
+ * - `pagination` - Pagination metadata (currentPage, pageSize, totalRecords, totalPages)
31
+ *
32
+ * **Active User Metrics (Cursor):**
33
+ * - userName, userEmail - User identification
34
+ * - team - Team name
35
+ * - ai - Nested AI metrics object containing:
36
+ * - totalActiveDays - Number of days user was active
37
+ * - lastActiveDate - Most recent activity date
38
+ * - primaryLanguage - Most frequently used programming language
39
+ * - linesAccepted - Total lines accepted from AI suggestions
40
+ * - linesSuggested - Total lines suggested by AI
41
+ * - linesAcceptPercent - Acceptance rate percentage
42
+ *
43
+ * **Active User Metrics (Windsurf):**
44
+ * - userName, userEmail - User identification
45
+ * - team - Team name
46
+ * - ai - Nested AI metrics object containing:
47
+ * - totalActiveDays - Number of days user was active
48
+ * - lastActiveDate - Most recent activity date
49
+ * - linesAccepted - Total lines accepted
50
+ * - linesSuggested - Total lines suggested
51
+ * - linesAcceptPercent - Acceptance rate percentage
52
+ *
53
+ * **Inactive User Metrics:**
54
+ * - userName, userEmail - User identification
55
+ * - team - Team name
56
+ *
57
+ * **Unassigned User Metrics:**
58
+ * - userName, userEmail - User identification
59
+ * - team - Team name
60
+ *
61
+ * **Pagination:**
62
+ * - Default page size: 10
63
+ * - Maximum page size: 100
64
+ * - Page numbers are 0-indexed
65
+ *
66
+ * **Sorting:**
67
+ * NOTE: Both camelCase and snake_case are supported (e.g., userName or user_name)
68
+ * CamelCase will be automatically converted to snake_case for database queries.
69
+ *
70
+ * For inactive users:
71
+ * - Default sort: user_name (DESC)
72
+ * - Supported fields: userName/user_name, userEmail/user_email
73
+ *
74
+ * For unassigned users:
75
+ * - Default sort: user_name (DESC)
76
+ * - Supported fields: userName/user_name, userEmail/user_email
77
+ *
78
+ * For active users (Cursor):
79
+ * - Default sort: lines_accept_percent (DESC) - shows top performers first
80
+ * - Supported fields: userName/user_name, userEmail/user_email, totalActiveDays/total_active_days,
81
+ * lastActiveDate/last_active_date, primaryLanguage/primary_language, linesAccepted/lines_accepted,
82
+ * linesSuggested/lines_suggested, linesAcceptPercent/lines_accept_percent
83
+ *
84
+ * For active users (Windsurf):
85
+ * - Default sort: lines_accept_percent (DESC) - shows top performers first
86
+ * - Supported fields: userName/user_name, userEmail/user_email, totalActiveDays/total_active_days,
87
+ * lastActiveDate/last_active_date, linesAccepted/lines_accepted, linesSuggested/lines_suggested,
88
+ * linesAcceptPercent/lines_accept_percent
89
+ *
90
+ * Sort criteria: ASC or DESC (defaults to DESC)
91
+ *
92
+ */
93
+ export function useAiInsightsControllerGetRawMetricsQuery(props, options) {
94
+ return useQuery(['AIInsightsControllerGetRawMetrics', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetRawMetrics(Object.assign(Object.assign({}, props), { signal })), options);
95
+ }
@@ -0,0 +1,50 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiTeamBreakdownResponseDto } from '../schemas/AiTeamBreakdownResponseDto';
3
+ import type { ApiError } from '../schemas/ApiError';
4
+ import type { AiTeamBreakdownRequestDto } from '../schemas/AiTeamBreakdownRequestDto';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface AiInsightsControllerGetTeamBreakdownQueryQueryParams {
8
+ projectIdentifier: string;
9
+ orgIdentifier: string;
10
+ }
11
+ export type AiInsightsControllerGetTeamBreakdownRequestBody = AiTeamBreakdownRequestDto;
12
+ export type AiInsightsControllerGetTeamBreakdownOkResponse = ResponseWithPagination<AiTeamBreakdownResponseDto>;
13
+ export type AiInsightsControllerGetTeamBreakdownErrorResponse = ApiError;
14
+ export interface AiInsightsControllerGetTeamBreakdownProps extends Omit<FetcherOptions<AiInsightsControllerGetTeamBreakdownQueryQueryParams, AiInsightsControllerGetTeamBreakdownRequestBody>, 'url'> {
15
+ queryParams: AiInsightsControllerGetTeamBreakdownQueryQueryParams;
16
+ body: AiInsightsControllerGetTeamBreakdownRequestBody;
17
+ }
18
+ export declare function aiInsightsControllerGetTeamBreakdown(props: AiInsightsControllerGetTeamBreakdownProps): Promise<AiInsightsControllerGetTeamBreakdownOkResponse>;
19
+ /**
20
+ * Retrieves metrics broken down by direct child teams with aggregated values across the entire date range.
21
+ *
22
+ * **Important:** This endpoint processes only direct child teams of the specified team and aggregates
23
+ * data across the entire date range (granularity parameter is ignored).
24
+ *
25
+ * **Supported Metrics:**
26
+ * - `linesAddedPerContributor` - Net lines added per contributor by team (both integrations)
27
+ * - `acceptanceRatePercentage` - Acceptance rate by team (both integrations)
28
+ * - `linesSuggested` - Lines suggested by AI by team (Windsurf only)
29
+ * - `linesAccepted` - Lines accepted from AI by team (Windsurf only)
30
+ * - `addedVsDeletedLinesRatio` - Ratio of added vs deleted lines (Cursor only)
31
+ * - `aiSpendPer1KLineOfEdit` - Cost per 1000 lines of code (Cursor only)
32
+ *
33
+ * **Integration Types:**
34
+ * Specify using an array of enum values:
35
+ * - `cursor` - Cursor AI coding assistant
36
+ * - `windsurf` - Windsurf AI coding platform
37
+ *
38
+ * **Response Structure:**
39
+ * Returns data arrays for each requested integration type (cursor and/or windsurf).
40
+ * Each array contains team breakdown data with:
41
+ * - teamId: Direct child team reference ID
42
+ * - teamName: Direct child team name
43
+ * - startDate: Start of the aggregation period
44
+ * - endDate: End of the aggregation period
45
+ * - value: Aggregated metric value for the team across entire date range
46
+ *
47
+ * **Note:** Granularity is not supported - returns single aggregated value per team.
48
+ *
49
+ */
50
+ export declare function useAiInsightsControllerGetTeamBreakdownQuery(props: AiInsightsControllerGetTeamBreakdownProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetTeamBreakdownOkResponse, AiInsightsControllerGetTeamBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetTeamBreakdownOkResponse, ApiError>;