@harnessio/react-sei-panorama-service-client 0.25.4 → 0.25.5

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 (93) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionBreakdownQuery.d.ts +57 -0
  2. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionBreakdownQuery.js +49 -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/index.d.ts +38 -18
  18. package/dist/sei-panorama-service/src/services/index.js +6 -2
  19. package/dist/sei-panorama-service/src/services/schemas/AdoptionDataPoint.d.ts +35 -0
  20. package/dist/sei-panorama-service/src/services/schemas/AdoptionPeriodData.d.ts +35 -0
  21. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionBreakdownRequestDto.d.ts +38 -0
  22. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionBreakdownResponseDto.d.ts +30 -0
  23. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionMetricsRequestDto.d.ts +34 -0
  24. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionMetricsResponseDto.d.ts +35 -0
  25. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionSummaryRequestDto.d.ts +32 -0
  26. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionSummaryResponseDto.d.ts +30 -0
  27. package/dist/sei-panorama-service/src/services/schemas/AiCombinedInsightsRequestDto.d.ts +37 -0
  28. package/dist/sei-panorama-service/src/services/schemas/AiMetrics.d.ts +40 -0
  29. package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsRequestDto.d.ts +66 -0
  30. package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsResponseDto.d.ts +30 -0
  31. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownDataPoint.d.ts +31 -0
  32. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownDataPoint.js +4 -0
  33. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownRequestDto.d.ts +16 -0
  34. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownRequestDto.js +4 -0
  35. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownResponseDto.d.ts +14 -0
  36. package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryRequestDto.d.ts +28 -0
  37. package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryRequestDto.js +4 -0
  38. package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryResponseDto.d.ts +31 -0
  39. package/dist/sei-panorama-service/src/services/schemas/AiTopLanguagesRequestDto.d.ts +28 -0
  40. package/dist/sei-panorama-service/src/services/schemas/AiTopLanguagesRequestDto.js +4 -0
  41. package/dist/sei-panorama-service/src/services/schemas/ApiError.d.ts +31 -0
  42. package/dist/sei-panorama-service/src/services/schemas/ApiError.js +1 -0
  43. package/dist/sei-panorama-service/src/services/schemas/IntegrationAdoptionSummary.d.ts +14 -0
  44. package/dist/sei-panorama-service/src/services/schemas/IntegrationAdoptionSummary.js +1 -0
  45. package/dist/sei-panorama-service/src/services/schemas/IntegrationRawMetrics.d.ts +15 -0
  46. package/dist/sei-panorama-service/src/services/schemas/IntegrationRawMetrics.js +1 -0
  47. package/dist/sei-panorama-service/src/services/schemas/IntegrationSummary.d.ts +10 -4
  48. package/dist/sei-panorama-service/src/services/schemas/IntegrationSummary.js +0 -3
  49. package/dist/sei-panorama-service/src/services/schemas/LanguageCount.d.ts +1 -1
  50. package/dist/sei-panorama-service/src/services/schemas/PaginationInfo.d.ts +14 -4
  51. package/dist/sei-panorama-service/src/services/schemas/PaginationParams.d.ts +19 -0
  52. package/dist/sei-panorama-service/src/services/schemas/PaginationParams.js +4 -0
  53. package/dist/sei-panorama-service/src/services/schemas/TeamPeriodData.d.ts +46 -0
  54. package/dist/sei-panorama-service/src/services/schemas/TeamPeriodData.js +4 -0
  55. package/dist/sei-panorama-service/src/services/schemas/ToolSummary.d.ts +53 -0
  56. package/dist/sei-panorama-service/src/services/schemas/ToolSummary.js +4 -0
  57. package/dist/sei-panorama-service/src/services/schemas/UserMetrics.d.ts +25 -0
  58. package/dist/sei-panorama-service/src/services/schemas/UserMetrics.js +1 -0
  59. package/dist/sei-panorama-service/src/services/schemas/ValidationError.d.ts +19 -0
  60. package/dist/sei-panorama-service/src/services/schemas/ValidationError.js +4 -0
  61. package/package.json +1 -1
  62. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery.d.ts +0 -22
  63. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery.js +0 -14
  64. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamAdoptionQuery.d.ts +0 -22
  65. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamAdoptionQuery.js +0 -14
  66. package/dist/sei-panorama-service/src/services/schemas/AiDailyActiveUsersDrilldownRequestDto.d.ts +0 -34
  67. package/dist/sei-panorama-service/src/services/schemas/AiDailyActiveUsersDrilldownResponseDto.d.ts +0 -58
  68. package/dist/sei-panorama-service/src/services/schemas/AiFeatureDataPoint.d.ts +0 -14
  69. package/dist/sei-panorama-service/src/services/schemas/AiFeatureDataResponseDto.d.ts +0 -22
  70. package/dist/sei-panorama-service/src/services/schemas/AiInsightsRequestDto.d.ts +0 -17
  71. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionRequestDto.d.ts +0 -34
  72. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionResponseDto.d.ts +0 -35
  73. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionUserDto.d.ts +0 -30
  74. package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownDataDto.d.ts +0 -27
  75. package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownOptions.d.ts +0 -12
  76. package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownUserDto.d.ts +0 -52
  77. package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownDataDto.d.ts +0 -17
  78. package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownOptions.d.ts +0 -12
  79. package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownUserDto.d.ts +0 -60
  80. /package/dist/sei-panorama-service/src/services/schemas/{AiFeatureDataPoint.js → AdoptionDataPoint.js} +0 -0
  81. /package/dist/sei-panorama-service/src/services/schemas/{AiInsightsRequestDto.js → AdoptionPeriodData.js} +0 -0
  82. /package/dist/sei-panorama-service/src/services/schemas/{AiTeamAdoptionUserDto.js → AiAdoptionBreakdownRequestDto.js} +0 -0
  83. /package/dist/sei-panorama-service/src/services/schemas/{AiDailyActiveUsersDrilldownRequestDto.js → AiAdoptionBreakdownResponseDto.js} +0 -0
  84. /package/dist/sei-panorama-service/src/services/schemas/{CursorDrilldownOptions.js → AiAdoptionMetricsRequestDto.js} +0 -0
  85. /package/dist/sei-panorama-service/src/services/schemas/{AiDailyActiveUsersDrilldownResponseDto.js → AiAdoptionMetricsResponseDto.js} +0 -0
  86. /package/dist/sei-panorama-service/src/services/schemas/{CursorDrilldownUserDto.js → AiAdoptionSummaryRequestDto.js} +0 -0
  87. /package/dist/sei-panorama-service/src/services/schemas/{AiFeatureDataResponseDto.js → AiAdoptionSummaryResponseDto.js} +0 -0
  88. /package/dist/sei-panorama-service/src/services/schemas/{WindsurfDrilldownOptions.js → AiCombinedInsightsRequestDto.js} +0 -0
  89. /package/dist/sei-panorama-service/src/services/schemas/{WindsurfDrilldownUserDto.js → AiMetrics.js} +0 -0
  90. /package/dist/sei-panorama-service/src/services/schemas/{AiTeamAdoptionRequestDto.js → AiRawMetricsRequestDto.js} +0 -0
  91. /package/dist/sei-panorama-service/src/services/schemas/{AiTeamAdoptionResponseDto.js → AiRawMetricsResponseDto.js} +0 -0
  92. /package/dist/sei-panorama-service/src/services/schemas/{CursorDrilldownDataDto.js → AiTeamBreakdownResponseDto.js} +0 -0
  93. /package/dist/sei-panorama-service/src/services/schemas/{WindsurfDrilldownDataDto.js → AiToolUsersSummaryResponseDto.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);
@@ -1,10 +1,18 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
- export type { AiInsightsControllerGetDailyActiveUsersDrilldownErrorResponse, AiInsightsControllerGetDailyActiveUsersDrilldownOkResponse, AiInsightsControllerGetDailyActiveUsersDrilldownProps, AiInsightsControllerGetDailyActiveUsersDrilldownQueryQueryParams, AiInsightsControllerGetDailyActiveUsersDrilldownRequestBody, } from './hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery';
3
- export { aiInsightsControllerGetDailyActiveUsersDrilldown, useAiInsightsControllerGetDailyActiveUsersDrilldownQuery, } from './hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery';
2
+ export type { AiInsightsControllerGetAdoptionBreakdownErrorResponse, AiInsightsControllerGetAdoptionBreakdownOkResponse, AiInsightsControllerGetAdoptionBreakdownProps, AiInsightsControllerGetAdoptionBreakdownQueryQueryParams, AiInsightsControllerGetAdoptionBreakdownRequestBody, } from './hooks/useAiInsightsControllerGetAdoptionBreakdownQuery';
3
+ export { aiInsightsControllerGetAdoptionBreakdown, useAiInsightsControllerGetAdoptionBreakdownQuery, } from './hooks/useAiInsightsControllerGetAdoptionBreakdownQuery';
4
+ export type { AiInsightsControllerGetAdoptionMetricsErrorResponse, AiInsightsControllerGetAdoptionMetricsOkResponse, AiInsightsControllerGetAdoptionMetricsProps, AiInsightsControllerGetAdoptionMetricsQueryQueryParams, AiInsightsControllerGetAdoptionMetricsRequestBody, } from './hooks/useAiInsightsControllerGetAdoptionMetricsQuery';
5
+ export { aiInsightsControllerGetAdoptionMetrics, useAiInsightsControllerGetAdoptionMetricsQuery, } from './hooks/useAiInsightsControllerGetAdoptionMetricsQuery';
6
+ export type { AiInsightsControllerGetAdoptionSummaryErrorResponse, AiInsightsControllerGetAdoptionSummaryOkResponse, AiInsightsControllerGetAdoptionSummaryProps, AiInsightsControllerGetAdoptionSummaryQueryQueryParams, AiInsightsControllerGetAdoptionSummaryRequestBody, } from './hooks/useAiInsightsControllerGetAdoptionSummaryQuery';
7
+ export { aiInsightsControllerGetAdoptionSummary, useAiInsightsControllerGetAdoptionSummaryQuery, } from './hooks/useAiInsightsControllerGetAdoptionSummaryQuery';
4
8
  export type { AiInsightsControllerGetFeatureMetricsErrorResponse, AiInsightsControllerGetFeatureMetricsOkResponse, AiInsightsControllerGetFeatureMetricsProps, AiInsightsControllerGetFeatureMetricsQueryQueryParams, AiInsightsControllerGetFeatureMetricsRequestBody, } from './hooks/useAiInsightsControllerGetFeatureMetricsQuery';
5
9
  export { aiInsightsControllerGetFeatureMetrics, useAiInsightsControllerGetFeatureMetricsQuery, } from './hooks/useAiInsightsControllerGetFeatureMetricsQuery';
6
- export type { AiInsightsControllerGetTeamAdoptionErrorResponse, AiInsightsControllerGetTeamAdoptionOkResponse, AiInsightsControllerGetTeamAdoptionProps, AiInsightsControllerGetTeamAdoptionQueryQueryParams, AiInsightsControllerGetTeamAdoptionRequestBody, } from './hooks/useAiInsightsControllerGetTeamAdoptionQuery';
7
- export { aiInsightsControllerGetTeamAdoption, useAiInsightsControllerGetTeamAdoptionQuery, } from './hooks/useAiInsightsControllerGetTeamAdoptionQuery';
10
+ export type { AiInsightsControllerGetRawMetricsErrorResponse, AiInsightsControllerGetRawMetricsOkResponse, AiInsightsControllerGetRawMetricsProps, AiInsightsControllerGetRawMetricsQueryQueryParams, AiInsightsControllerGetRawMetricsRequestBody, } from './hooks/useAiInsightsControllerGetRawMetricsQuery';
11
+ export { aiInsightsControllerGetRawMetrics, useAiInsightsControllerGetRawMetricsQuery, } from './hooks/useAiInsightsControllerGetRawMetricsQuery';
12
+ export type { AiInsightsControllerGetTeamBreakdownErrorResponse, AiInsightsControllerGetTeamBreakdownOkResponse, AiInsightsControllerGetTeamBreakdownProps, AiInsightsControllerGetTeamBreakdownQueryQueryParams, AiInsightsControllerGetTeamBreakdownRequestBody, } from './hooks/useAiInsightsControllerGetTeamBreakdownQuery';
13
+ export { aiInsightsControllerGetTeamBreakdown, useAiInsightsControllerGetTeamBreakdownQuery, } from './hooks/useAiInsightsControllerGetTeamBreakdownQuery';
14
+ export type { AiInsightsControllerGetToolUsersSummaryErrorResponse, AiInsightsControllerGetToolUsersSummaryOkResponse, AiInsightsControllerGetToolUsersSummaryProps, AiInsightsControllerGetToolUsersSummaryQueryQueryParams, AiInsightsControllerGetToolUsersSummaryRequestBody, } from './hooks/useAiInsightsControllerGetToolUsersSummaryQuery';
15
+ export { aiInsightsControllerGetToolUsersSummary, useAiInsightsControllerGetToolUsersSummaryQuery, } from './hooks/useAiInsightsControllerGetToolUsersSummaryQuery';
8
16
  export type { AiInsightsControllerGetTopLanguagesErrorResponse, AiInsightsControllerGetTopLanguagesOkResponse, AiInsightsControllerGetTopLanguagesProps, AiInsightsControllerGetTopLanguagesQueryQueryParams, AiInsightsControllerGetTopLanguagesRequestBody, } from './hooks/useAiInsightsControllerGetTopLanguagesQuery';
9
17
  export { aiInsightsControllerGetTopLanguages, useAiInsightsControllerGetTopLanguagesQuery, } from './hooks/useAiInsightsControllerGetTopLanguagesQuery';
10
18
  export type { AiSummaryControllerGenerateSummaryErrorResponse, AiSummaryControllerGenerateSummaryOkResponse, AiSummaryControllerGenerateSummaryProps, AiSummaryControllerGenerateSummaryQueryQueryParams, AiSummaryControllerGenerateSummaryRequestBody, } from './hooks/useAiSummaryControllerGenerateSummaryQuery';
@@ -359,17 +367,28 @@ export type { TeamsControllerUpdateTeamErrorResponse, TeamsControllerUpdateTeamM
359
367
  export { teamsControllerUpdateTeam, useTeamsControllerUpdateTeamMutation, } from './hooks/useTeamsControllerUpdateTeamMutation';
360
368
  export type { AccessResponseDto } from './schemas/AccessResponseDto';
361
369
  export type { ActivityDataDto } from './schemas/ActivityDataDto';
362
- export type { AiDailyActiveUsersDrilldownRequestDto } from './schemas/AiDailyActiveUsersDrilldownRequestDto';
363
- export type { AiDailyActiveUsersDrilldownResponseDto } from './schemas/AiDailyActiveUsersDrilldownResponseDto';
364
- export type { AiFeatureDataPoint } from './schemas/AiFeatureDataPoint';
365
- export type { AiFeatureDataResponseDto } from './schemas/AiFeatureDataResponseDto';
366
- export type { AiInsightsRequestDto } from './schemas/AiInsightsRequestDto';
370
+ export type { AdoptionDataPoint } from './schemas/AdoptionDataPoint';
371
+ export type { AdoptionPeriodData } from './schemas/AdoptionPeriodData';
372
+ export type { AiAdoptionBreakdownRequestDto } from './schemas/AiAdoptionBreakdownRequestDto';
373
+ export type { AiAdoptionBreakdownResponseDto } from './schemas/AiAdoptionBreakdownResponseDto';
374
+ export type { AiAdoptionMetricsRequestDto } from './schemas/AiAdoptionMetricsRequestDto';
375
+ export type { AiAdoptionMetricsResponseDto } from './schemas/AiAdoptionMetricsResponseDto';
376
+ export type { AiAdoptionSummaryRequestDto } from './schemas/AiAdoptionSummaryRequestDto';
377
+ export type { AiAdoptionSummaryResponseDto } from './schemas/AiAdoptionSummaryResponseDto';
378
+ export type { AiCombinedInsightsRequestDto } from './schemas/AiCombinedInsightsRequestDto';
379
+ export type { AiMetrics } from './schemas/AiMetrics';
380
+ export type { AiRawMetricsRequestDto } from './schemas/AiRawMetricsRequestDto';
381
+ export type { AiRawMetricsResponseDto } from './schemas/AiRawMetricsResponseDto';
367
382
  export type { AiSummaryRequestDto } from './schemas/AiSummaryRequestDto';
368
383
  export type { AiSummaryResponseDto } from './schemas/AiSummaryResponseDto';
369
- export type { AiTeamAdoptionRequestDto } from './schemas/AiTeamAdoptionRequestDto';
370
- export type { AiTeamAdoptionResponseDto } from './schemas/AiTeamAdoptionResponseDto';
371
- export type { AiTeamAdoptionUserDto } from './schemas/AiTeamAdoptionUserDto';
384
+ export type { AiTeamBreakdownDataPoint } from './schemas/AiTeamBreakdownDataPoint';
385
+ export type { AiTeamBreakdownRequestDto } from './schemas/AiTeamBreakdownRequestDto';
386
+ export type { AiTeamBreakdownResponseDto } from './schemas/AiTeamBreakdownResponseDto';
387
+ export type { AiToolUsersSummaryRequestDto } from './schemas/AiToolUsersSummaryRequestDto';
388
+ export type { AiToolUsersSummaryResponseDto } from './schemas/AiToolUsersSummaryResponseDto';
389
+ export type { AiTopLanguagesRequestDto } from './schemas/AiTopLanguagesRequestDto';
372
390
  export type { AiTopLanguagesResponseDto } from './schemas/AiTopLanguagesResponseDto';
391
+ export type { ApiError } from './schemas/ApiError';
373
392
  export type { ApiErrorResponse } from './schemas/ApiErrorResponse';
374
393
  export type { ApiResponseWrapper } from './schemas/ApiResponseWrapper';
375
394
  export type { AssociateDevelopersRequestDto } from './schemas/AssociateDevelopersRequestDto';
@@ -407,9 +426,6 @@ export type { CollectionEnriched } from './schemas/CollectionEnriched';
407
426
  export type { CollectionFilter } from './schemas/CollectionFilter';
408
427
  export type { CollectionTree } from './schemas/CollectionTree';
409
428
  export type { CommitInfo } from './schemas/CommitInfo';
410
- export type { CursorDrilldownDataDto } from './schemas/CursorDrilldownDataDto';
411
- export type { CursorDrilldownOptions } from './schemas/CursorDrilldownOptions';
412
- export type { CursorDrilldownUserDto } from './schemas/CursorDrilldownUserDto';
413
429
  export type { DailyCountDataPoint } from './schemas/DailyCountDataPoint';
414
430
  export type { DailyLicenseUsageResponseDto } from './schemas/DailyLicenseUsageResponseDto';
415
431
  export type { DataPoint } from './schemas/DataPoint';
@@ -495,6 +511,7 @@ export type { IndividualDrilldownDataPoint } from './schemas/IndividualDrilldown
495
511
  export type { IndividualDrilldownDataPointV3 } from './schemas/IndividualDrilldownDataPointV3';
496
512
  export type { IndividualDrilldownDataV3 } from './schemas/IndividualDrilldownDataV3';
497
513
  export type { Integration } from './schemas/Integration';
514
+ export type { IntegrationAdoptionSummary } from './schemas/IntegrationAdoptionSummary';
498
515
  export type { IntegrationConfigRequestDto } from './schemas/IntegrationConfigRequestDto';
499
516
  export type { IntegrationConfigResponseDto } from './schemas/IntegrationConfigResponseDto';
500
517
  export type { IntegrationDataStatusRequest } from './schemas/IntegrationDataStatusRequest';
@@ -502,6 +519,7 @@ export type { IntegrationHealthDrillDownDto } from './schemas/IntegrationHealthD
502
519
  export type { IntegrationHealthStatusDto } from './schemas/IntegrationHealthStatusDto';
503
520
  export type { IntegrationIdsDto } from './schemas/IntegrationIdsDto';
504
521
  export type { IntegrationObject } from './schemas/IntegrationObject';
522
+ export type { IntegrationRawMetrics } from './schemas/IntegrationRawMetrics';
505
523
  export type { IntegrationResponseDto } from './schemas/IntegrationResponseDto';
506
524
  export type { IntegrationStatsDto } from './schemas/IntegrationStatsDto';
507
525
  export type { IntegrationSummary } from './schemas/IntegrationSummary';
@@ -551,6 +569,7 @@ export type { OrgTreeUpdateRequestDto } from './schemas/OrgTreeUpdateRequestDto'
551
569
  export type { PaginatedResponseTeamSummary } from './schemas/PaginatedResponseTeamSummary';
552
570
  export type { PaginationInfo } from './schemas/PaginationInfo';
553
571
  export type { PaginationMetadata } from './schemas/PaginationMetadata';
572
+ export type { PaginationParams } from './schemas/PaginationParams';
554
573
  export type { PaginationRequest } from './schemas/PaginationRequest';
555
574
  export type { PrCommitsRequest } from './schemas/PrCommitsRequest';
556
575
  export type { PrCommitsResponse } from './schemas/PrCommitsResponse';
@@ -634,15 +653,16 @@ export type { TeamInfo } from './schemas/TeamInfo';
634
653
  export type { TeamInfoUpdateRequestDto } from './schemas/TeamInfoUpdateRequestDto';
635
654
  export type { TeamInsightConfigDto } from './schemas/TeamInsightConfigDto';
636
655
  export type { TeamIntegrationDto } from './schemas/TeamIntegrationDto';
656
+ export type { TeamPeriodData } from './schemas/TeamPeriodData';
637
657
  export type { TeamResponse } from './schemas/TeamResponse';
638
658
  export type { TeamSearchParams } from './schemas/TeamSearchParams';
639
659
  export type { TeamSummary } from './schemas/TeamSummary';
640
660
  export type { TeamsByAccessResponseDto } from './schemas/TeamsByAccessResponseDto';
661
+ export type { ToolSummary } from './schemas/ToolSummary';
641
662
  export type { TotalStatisticCount } from './schemas/TotalStatisticCount';
663
+ export type { UserMetrics } from './schemas/UserMetrics';
664
+ export type { ValidationError } from './schemas/ValidationError';
642
665
  export type { VersionReleaseRequest } from './schemas/VersionReleaseRequest';
643
- export type { WindsurfDrilldownDataDto } from './schemas/WindsurfDrilldownDataDto';
644
- export type { WindsurfDrilldownOptions } from './schemas/WindsurfDrilldownOptions';
645
- export type { WindsurfDrilldownUserDto } from './schemas/WindsurfDrilldownUserDto';
646
666
  export type { WorkCompletedDrilldownResponseDataPoint } from './schemas/WorkCompletedDrilldownResponseDataPoint';
647
667
  export type { WorkCompletedDrilldownResponseDataPointV3 } from './schemas/WorkCompletedDrilldownResponseDataPointV3';
648
668
  export type { WorkCompletedIndividualDrilldownResponseDataPoint } from './schemas/WorkCompletedIndividualDrilldownResponseDataPoint';
@@ -1,6 +1,10 @@
1
- export { aiInsightsControllerGetDailyActiveUsersDrilldown, useAiInsightsControllerGetDailyActiveUsersDrilldownQuery, } from './hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery';
1
+ export { aiInsightsControllerGetAdoptionBreakdown, useAiInsightsControllerGetAdoptionBreakdownQuery, } from './hooks/useAiInsightsControllerGetAdoptionBreakdownQuery';
2
+ export { aiInsightsControllerGetAdoptionMetrics, useAiInsightsControllerGetAdoptionMetricsQuery, } from './hooks/useAiInsightsControllerGetAdoptionMetricsQuery';
3
+ export { aiInsightsControllerGetAdoptionSummary, useAiInsightsControllerGetAdoptionSummaryQuery, } from './hooks/useAiInsightsControllerGetAdoptionSummaryQuery';
2
4
  export { aiInsightsControllerGetFeatureMetrics, useAiInsightsControllerGetFeatureMetricsQuery, } from './hooks/useAiInsightsControllerGetFeatureMetricsQuery';
3
- export { aiInsightsControllerGetTeamAdoption, useAiInsightsControllerGetTeamAdoptionQuery, } from './hooks/useAiInsightsControllerGetTeamAdoptionQuery';
5
+ export { aiInsightsControllerGetRawMetrics, useAiInsightsControllerGetRawMetricsQuery, } from './hooks/useAiInsightsControllerGetRawMetricsQuery';
6
+ export { aiInsightsControllerGetTeamBreakdown, useAiInsightsControllerGetTeamBreakdownQuery, } from './hooks/useAiInsightsControllerGetTeamBreakdownQuery';
7
+ export { aiInsightsControllerGetToolUsersSummary, useAiInsightsControllerGetToolUsersSummaryQuery, } from './hooks/useAiInsightsControllerGetToolUsersSummaryQuery';
4
8
  export { aiInsightsControllerGetTopLanguages, useAiInsightsControllerGetTopLanguagesQuery, } from './hooks/useAiInsightsControllerGetTopLanguagesQuery';
5
9
  export { aiSummaryControllerGenerateSummary, useAiSummaryControllerGenerateSummaryQuery, } from './hooks/useAiSummaryControllerGenerateSummaryQuery';
6
10
  export { asyncExportControllerDownloadExport, useAsyncExportControllerDownloadExportQuery, } from './hooks/useAsyncExportControllerDownloadExportQuery';
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Adoption metrics for a specific time period
3
+ */
4
+ export interface AdoptionDataPoint {
5
+ /**
6
+ * Number of active users in this period
7
+ * @format int32
8
+ * @example 42
9
+ */
10
+ activeUsers?: number;
11
+ /**
12
+ * End date of this data point period
13
+ * @format date-time
14
+ * @example "2025-11-16"
15
+ */
16
+ endDate?: string;
17
+ /**
18
+ * Number of inactive users (licensed but not active)
19
+ * @format int32
20
+ * @example 8
21
+ */
22
+ inactiveUsers?: number;
23
+ /**
24
+ * Start date of this data point period
25
+ * @format date-time
26
+ * @example "2025-11-10"
27
+ */
28
+ startDate?: string;
29
+ /**
30
+ * Number of users not licensed for this integration
31
+ * @format int32
32
+ * @example 15
33
+ */
34
+ unAssigned?: number;
35
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Adoption statistics for a single period
3
+ */
4
+ export interface AdoptionPeriodData {
5
+ /**
6
+ * Number of active users in this period
7
+ * @format int32
8
+ * @example 42
9
+ */
10
+ activeUsers?: number;
11
+ /**
12
+ * End date of this period
13
+ * @format date-time
14
+ * @example "2025-11-16"
15
+ */
16
+ endDate?: string;
17
+ /**
18
+ * Number of inactive licensed users in this period
19
+ * @format int32
20
+ * @example 8
21
+ */
22
+ inactiveUsers?: number;
23
+ /**
24
+ * Start date of this period
25
+ * @format date-time
26
+ * @example "2025-11-10"
27
+ */
28
+ startDate?: string;
29
+ /**
30
+ * Number of users without license in this period
31
+ * @format int32
32
+ * @example 15
33
+ */
34
+ unAssigned?: number;
35
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Request for AI adoption breakdown by child teams
3
+ */
4
+ export interface AiAdoptionBreakdownRequestDto {
5
+ bothRequested?: boolean;
6
+ cursorRequested?: boolean;
7
+ /**
8
+ * End date of the analysis period
9
+ * @format date-time
10
+ * @example "2025-12-07"
11
+ */
12
+ endDate: string;
13
+ /**
14
+ * Time granularity for breakdown
15
+ * @example "WEEKLY"
16
+ */
17
+ granularity?: 'DAILY' | 'MONTHLY' | 'WEEKLY';
18
+ /**
19
+ * List of integration types to include
20
+ * @example ["cursor","windsurf"]
21
+ */
22
+ integrationType: Array<'cursor' | 'windsurf'>;
23
+ integrationTypeList?: Array<'cursor' | 'windsurf'>;
24
+ /**
25
+ * Start date of the analysis period
26
+ * @format date-time
27
+ * @example "2025-11-10"
28
+ */
29
+ startDate: string;
30
+ /**
31
+ * Team reference ID (parent team)
32
+ * @format int32
33
+ * @example 203128
34
+ */
35
+ teamRefId: number;
36
+ validatedGranularity?: string;
37
+ windsurfRequested?: boolean;
38
+ }
@@ -0,0 +1,30 @@
1
+ import type { TeamPeriodData } from '../schemas/TeamPeriodData';
2
+ /**
3
+ * AI adoption breakdown by child teams over time
4
+ */
5
+ export interface AiAdoptionBreakdownResponseDto {
6
+ /**
7
+ * Cursor adoption breakdown by teams and periods
8
+ */
9
+ cursor?: TeamPeriodData[];
10
+ /**
11
+ * Both Cursor and Windsurf adoption breakdown by teams and periods
12
+ */
13
+ cursorAndWindsurf?: TeamPeriodData[];
14
+ /**
15
+ * End date of the analysis period
16
+ * @format date-time
17
+ * @example "2025-12-07"
18
+ */
19
+ endDate?: string;
20
+ /**
21
+ * Start date of the analysis period
22
+ * @format date-time
23
+ * @example "2025-11-10"
24
+ */
25
+ startDate?: string;
26
+ /**
27
+ * Windsurf adoption breakdown by teams and periods
28
+ */
29
+ windsurf?: TeamPeriodData[];
30
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Request for AI adoption metrics with time-series data
3
+ */
4
+ export interface AiAdoptionMetricsRequestDto {
5
+ /**
6
+ * End date for the metrics period (ISO 8601 format)
7
+ * @format date-time
8
+ * @example "2025-12-07"
9
+ */
10
+ endDate: string;
11
+ /**
12
+ * Time granularity for data points
13
+ * @example "WEEKLY"
14
+ */
15
+ granularity: 'DAILY' | 'MONTHLY' | 'WEEKLY';
16
+ /**
17
+ * List of AI integration types to include in the response
18
+ * @example ["cursor","windsurf"]
19
+ */
20
+ integrationType: Array<'cursor' | 'windsurf'>;
21
+ integrationTypeList?: Array<'cursor' | 'windsurf'>;
22
+ /**
23
+ * Start date for the metrics period (ISO 8601 format)
24
+ * @format date-time
25
+ * @example "2025-11-10"
26
+ */
27
+ startDate: string;
28
+ /**
29
+ * Team reference ID
30
+ * @format int32
31
+ * @example 203128
32
+ */
33
+ teamRefId: number;
34
+ }
@@ -0,0 +1,35 @@
1
+ import type { AdoptionDataPoint } from '../schemas/AdoptionDataPoint';
2
+ /**
3
+ * AI adoption metrics response with time-series data per integration
4
+ */
5
+ export interface AiAdoptionMetricsResponseDto {
6
+ /**
7
+ * Time-series adoption data for Cursor integration
8
+ */
9
+ cursor?: AdoptionDataPoint[];
10
+ /**
11
+ * Time-series adoption data for users active in both Cursor and Windsurf
12
+ */
13
+ cursorAndWindsurf?: AdoptionDataPoint[];
14
+ /**
15
+ * End date of the metrics period
16
+ * @format date-time
17
+ * @example "2025-12-07"
18
+ */
19
+ endDate?: string;
20
+ /**
21
+ * Time granularity of data points
22
+ * @example "WEEKLY"
23
+ */
24
+ granularity?: string;
25
+ /**
26
+ * Start date of the metrics period
27
+ * @format date-time
28
+ * @example "2025-11-10"
29
+ */
30
+ startDate?: string;
31
+ /**
32
+ * Time-series adoption data for Windsurf integration
33
+ */
34
+ windsurf?: AdoptionDataPoint[];
35
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Request for AI adoption summary with period comparison
3
+ */
4
+ export interface AiAdoptionSummaryRequestDto {
5
+ bothRequested?: boolean;
6
+ cursorRequested?: boolean;
7
+ /**
8
+ * End date of the analysis period
9
+ * @format date-time
10
+ * @example "2025-12-10"
11
+ */
12
+ endDate: string;
13
+ /**
14
+ * List of integration types to include
15
+ * @example ["cursor","windsurf"]
16
+ */
17
+ integrationType: Array<'cursor' | 'windsurf'>;
18
+ integrationTypeList?: Array<'cursor' | 'windsurf'>;
19
+ /**
20
+ * Start date of the analysis period
21
+ * @format date-time
22
+ * @example "2025-10-10"
23
+ */
24
+ startDate: string;
25
+ /**
26
+ * Team reference ID
27
+ * @format int32
28
+ * @example 203128
29
+ */
30
+ teamRefId: number;
31
+ windsurfRequested?: boolean;
32
+ }
@@ -0,0 +1,30 @@
1
+ import type { IntegrationAdoptionSummary } from '../schemas/IntegrationAdoptionSummary';
2
+ /**
3
+ * AI adoption summary with current and previous period comparison
4
+ */
5
+ export interface AiAdoptionSummaryResponseDto {
6
+ /**
7
+ * Cursor adoption summary with current and previous period data
8
+ */
9
+ cursor?: IntegrationAdoptionSummary;
10
+ /**
11
+ * Combined Cursor and Windsurf adoption summary
12
+ */
13
+ cursorAndWindsurf?: IntegrationAdoptionSummary;
14
+ /**
15
+ * End date of the current analysis period
16
+ * @format date-time
17
+ * @example "2025-12-07"
18
+ */
19
+ endDate?: string;
20
+ /**
21
+ * Start date of the current analysis period
22
+ * @format date-time
23
+ * @example "2025-11-10"
24
+ */
25
+ startDate?: string;
26
+ /**
27
+ * Windsurf adoption summary with current and previous period data
28
+ */
29
+ windsurf?: IntegrationAdoptionSummary;
30
+ }