@harnessio/react-sei-panorama-service-client 0.30.1 → 0.31.0

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 (26) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetLeaderboardClassesCatalogQuery.d.ts +56 -0
  2. package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetLeaderboardClassesCatalogQuery.js +14 -0
  3. package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetLeaderboardClassesSummaryQuery.d.ts +40 -0
  4. package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetLeaderboardClassesSummaryQuery.js +14 -0
  5. package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetLeaderboardsLegacyQuery.d.ts +65 -0
  6. package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetLeaderboardsLegacyQuery.js +15 -0
  7. package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetLeaderboardsQuery.d.ts +8 -1
  8. package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetLeaderboardsQuery.js +2 -2
  9. package/dist/sei-panorama-service/src/services/hooks/useDeveloperControllerUpsertDeveloperIdentitiesMutation.d.ts +1 -1
  10. package/dist/sei-panorama-service/src/services/index.d.ts +12 -0
  11. package/dist/sei-panorama-service/src/services/index.js +3 -0
  12. package/dist/sei-panorama-service/src/services/schemas/ActiveThreshold.d.ts +16 -0
  13. package/dist/sei-panorama-service/src/services/schemas/ActiveThreshold.js +4 -0
  14. package/dist/sei-panorama-service/src/services/schemas/ActiveUsersCount.d.ts +17 -0
  15. package/dist/sei-panorama-service/src/services/schemas/ActiveUsersCount.js +4 -0
  16. package/dist/sei-panorama-service/src/services/schemas/ApiResponseLeaderboardSegmentsSummaryData.d.ts +23 -0
  17. package/dist/sei-panorama-service/src/services/schemas/ApiResponseLeaderboardSegmentsSummaryData.js +1 -0
  18. package/dist/sei-panorama-service/src/services/schemas/IntegrationResponseDto.d.ts +1 -1
  19. package/dist/sei-panorama-service/src/services/schemas/LeaderboardSegmentsSummaryData.d.ts +31 -0
  20. package/dist/sei-panorama-service/src/services/schemas/LeaderboardSegmentsSummaryData.js +1 -0
  21. package/dist/sei-panorama-service/src/services/schemas/MetricValueWithUnit.d.ts +16 -0
  22. package/dist/sei-panorama-service/src/services/schemas/MetricValueWithUnit.js +4 -0
  23. package/dist/sei-panorama-service/src/services/schemas/RankedEntity.d.ts +9 -0
  24. package/dist/sei-panorama-service/src/services/schemas/SegmentSummary.d.ts +48 -0
  25. package/dist/sei-panorama-service/src/services/schemas/SegmentSummary.js +1 -0
  26. package/package.json +1 -1
@@ -0,0 +1,56 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ApiResponseCatalogTemplate } from '../schemas/ApiResponseCatalogTemplate';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface AiEngineeringControllerGetLeaderboardClassesCatalogQueryPathParams {
6
+ category: string;
7
+ }
8
+ export interface AiEngineeringControllerGetLeaderboardClassesCatalogQueryQueryParams {
9
+ account: string;
10
+ schema: string;
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ routingId?: string;
14
+ /**
15
+ * @example "2026-01-01"
16
+ */
17
+ start_date: string;
18
+ /**
19
+ * @example "2026-05-04"
20
+ */
21
+ end_date: string;
22
+ /**
23
+ * @example "WEEKLY"
24
+ */
25
+ granularity?: string;
26
+ /**
27
+ * @example "1"
28
+ */
29
+ orgTreeId?: string;
30
+ /**
31
+ * @example "team-123"
32
+ */
33
+ teamRefId?: string;
34
+ /**
35
+ * @example "claude-code"
36
+ */
37
+ assistant?: string;
38
+ /**
39
+ * @example "java"
40
+ */
41
+ language?: string;
42
+ /**
43
+ * @example "senior_engineer"
44
+ */
45
+ role?: string;
46
+ }
47
+ export type AiEngineeringControllerGetLeaderboardClassesCatalogOkResponse = ResponseWithPagination<ApiResponseCatalogTemplate>;
48
+ export type AiEngineeringControllerGetLeaderboardClassesCatalogErrorResponse = unknown;
49
+ export interface AiEngineeringControllerGetLeaderboardClassesCatalogProps extends AiEngineeringControllerGetLeaderboardClassesCatalogQueryPathParams, Omit<FetcherOptions<AiEngineeringControllerGetLeaderboardClassesCatalogQueryQueryParams, unknown>, 'url'> {
50
+ queryParams: AiEngineeringControllerGetLeaderboardClassesCatalogQueryQueryParams;
51
+ }
52
+ export declare function aiEngineeringControllerGetLeaderboardClassesCatalog(props: AiEngineeringControllerGetLeaderboardClassesCatalogProps): Promise<AiEngineeringControllerGetLeaderboardClassesCatalogOkResponse>;
53
+ /**
54
+ * Get catalog of available leaderboard classification segments
55
+ */
56
+ export declare function useAiEngineeringControllerGetLeaderboardClassesCatalogQuery(props: AiEngineeringControllerGetLeaderboardClassesCatalogProps, options?: Omit<UseQueryOptions<AiEngineeringControllerGetLeaderboardClassesCatalogOkResponse, AiEngineeringControllerGetLeaderboardClassesCatalogErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiEngineeringControllerGetLeaderboardClassesCatalogOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function aiEngineeringControllerGetLeaderboardClassesCatalog(props) {
7
+ return fetcher(Object.assign({ url: `/v2/ai-engineering/insights/${props.category}/metrics/leaderboards/segments`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get catalog of available leaderboard classification segments
11
+ */
12
+ export function useAiEngineeringControllerGetLeaderboardClassesCatalogQuery(props, options) {
13
+ return useQuery(['AiEngineeringControllerGetLeaderboardClassesCatalog', props.category, props.queryParams], ({ signal }) => aiEngineeringControllerGetLeaderboardClassesCatalog(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,40 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ApiResponseLeaderboardSegmentsSummaryData } from '../schemas/ApiResponseLeaderboardSegmentsSummaryData';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface AiEngineeringControllerGetLeaderboardClassesSummaryQueryPathParams {
6
+ category: string;
7
+ }
8
+ export interface AiEngineeringControllerGetLeaderboardClassesSummaryQueryQueryParams {
9
+ account: string;
10
+ schema: string;
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ routingId?: string;
14
+ /**
15
+ * @format int32
16
+ */
17
+ orgTreeId?: number;
18
+ teamRefId?: string;
19
+ start_date?: string;
20
+ end_date?: string;
21
+ granularity?: string;
22
+ assistant?: string;
23
+ language?: string;
24
+ role?: string;
25
+ type?: string;
26
+ /**
27
+ * @format int32
28
+ */
29
+ active_threshold?: number;
30
+ }
31
+ export type AiEngineeringControllerGetLeaderboardClassesSummaryOkResponse = ResponseWithPagination<ApiResponseLeaderboardSegmentsSummaryData>;
32
+ export type AiEngineeringControllerGetLeaderboardClassesSummaryErrorResponse = unknown;
33
+ export interface AiEngineeringControllerGetLeaderboardClassesSummaryProps extends AiEngineeringControllerGetLeaderboardClassesSummaryQueryPathParams, Omit<FetcherOptions<AiEngineeringControllerGetLeaderboardClassesSummaryQueryQueryParams, unknown>, 'url'> {
34
+ queryParams: AiEngineeringControllerGetLeaderboardClassesSummaryQueryQueryParams;
35
+ }
36
+ export declare function aiEngineeringControllerGetLeaderboardClassesSummary(props: AiEngineeringControllerGetLeaderboardClassesSummaryProps): Promise<AiEngineeringControllerGetLeaderboardClassesSummaryOkResponse>;
37
+ /**
38
+ * Get per-segment summary cards for leaderboard categories
39
+ */
40
+ export declare function useAiEngineeringControllerGetLeaderboardClassesSummaryQuery(props: AiEngineeringControllerGetLeaderboardClassesSummaryProps, options?: Omit<UseQueryOptions<AiEngineeringControllerGetLeaderboardClassesSummaryOkResponse, AiEngineeringControllerGetLeaderboardClassesSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiEngineeringControllerGetLeaderboardClassesSummaryOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function aiEngineeringControllerGetLeaderboardClassesSummary(props) {
7
+ return fetcher(Object.assign({ url: `/v2/ai-engineering/insights/${props.category}/metrics/leaderboards/segments-summary`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get per-segment summary cards for leaderboard categories
11
+ */
12
+ export function useAiEngineeringControllerGetLeaderboardClassesSummaryQuery(props, options) {
13
+ return useQuery(['AiEngineeringControllerGetLeaderboardClassesSummary', props.category, props.queryParams], ({ signal }) => aiEngineeringControllerGetLeaderboardClassesSummary(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,65 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ApiResponseEntityListTemplate } from '../schemas/ApiResponseEntityListTemplate';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface AiEngineeringControllerGetLeaderboardsLegacyQueryPathParams {
6
+ category: string;
7
+ }
8
+ export interface AiEngineeringControllerGetLeaderboardsLegacyQueryQueryParams {
9
+ account: string;
10
+ schema: string;
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ routingId?: string;
14
+ /**
15
+ * @format int32
16
+ */
17
+ orgTreeId?: number;
18
+ teamRefId?: string;
19
+ start_date?: string;
20
+ end_date?: string;
21
+ granularity?: string;
22
+ assistant?: string;
23
+ language?: string;
24
+ role?: string;
25
+ order?: string;
26
+ sort?: string;
27
+ /**
28
+ * @format int32
29
+ */
30
+ limit?: number;
31
+ /**
32
+ * @format int32
33
+ */
34
+ offset?: number;
35
+ segment?: string;
36
+ segments?: string;
37
+ /**
38
+ * @format int32
39
+ */
40
+ active_threshold?: number;
41
+ dimensions?: string;
42
+ /**
43
+ * @example "team"
44
+ */
45
+ type?: string;
46
+ /**
47
+ * @example "overspending"
48
+ */
49
+ class?: string;
50
+ /**
51
+ * @example "overspending,ramping_up"
52
+ */
53
+ classes?: string;
54
+ }
55
+ export type AiEngineeringControllerGetLeaderboardsLegacyOkResponse = ResponseWithPagination<ApiResponseEntityListTemplate>;
56
+ export type AiEngineeringControllerGetLeaderboardsLegacyErrorResponse = unknown;
57
+ export interface AiEngineeringControllerGetLeaderboardsLegacyProps extends AiEngineeringControllerGetLeaderboardsLegacyQueryPathParams, Omit<FetcherOptions<AiEngineeringControllerGetLeaderboardsLegacyQueryQueryParams, unknown>, 'url'> {
58
+ queryParams: AiEngineeringControllerGetLeaderboardsLegacyQueryQueryParams;
59
+ }
60
+ export declare function aiEngineeringControllerGetLeaderboardsLegacy(props: AiEngineeringControllerGetLeaderboardsLegacyProps): Promise<AiEngineeringControllerGetLeaderboardsLegacyOkResponse>;
61
+ /**
62
+ * Get leaderboard for an insight category (deprecated - use /leaderboards/{type} instead)
63
+ * @deprecated
64
+ */
65
+ export declare function useAiEngineeringControllerGetLeaderboardsLegacyQuery(props: AiEngineeringControllerGetLeaderboardsLegacyProps, options?: Omit<UseQueryOptions<AiEngineeringControllerGetLeaderboardsLegacyOkResponse, AiEngineeringControllerGetLeaderboardsLegacyErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiEngineeringControllerGetLeaderboardsLegacyOkResponse, unknown>;
@@ -0,0 +1,15 @@
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 aiEngineeringControllerGetLeaderboardsLegacy(props) {
7
+ return fetcher(Object.assign({ url: `/v2/ai-engineering/insights/${props.category}/metrics/leaderboards`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get leaderboard for an insight category (deprecated - use /leaderboards/{type} instead)
11
+ * @deprecated
12
+ */
13
+ export function useAiEngineeringControllerGetLeaderboardsLegacyQuery(props, options) {
14
+ return useQuery(['AiEngineeringControllerGetLeaderboardsLegacy', props.category, props.queryParams], ({ signal }) => aiEngineeringControllerGetLeaderboardsLegacy(Object.assign(Object.assign({}, props), { signal })), options);
15
+ }
@@ -4,6 +4,7 @@ import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface AiEngineeringControllerGetLeaderboardsQueryPathParams {
6
6
  category: string;
7
+ type: string;
7
8
  }
8
9
  export interface AiEngineeringControllerGetLeaderboardsQueryQueryParams {
9
10
  account: string;
@@ -22,7 +23,6 @@ export interface AiEngineeringControllerGetLeaderboardsQueryQueryParams {
22
23
  assistant?: string;
23
24
  language?: string;
24
25
  role?: string;
25
- type?: string;
26
26
  order?: string;
27
27
  sort?: string;
28
28
  /**
@@ -33,6 +33,13 @@ export interface AiEngineeringControllerGetLeaderboardsQueryQueryParams {
33
33
  * @format int32
34
34
  */
35
35
  offset?: number;
36
+ segment?: string;
37
+ segments?: string;
38
+ /**
39
+ * @format int32
40
+ */
41
+ active_threshold?: number;
42
+ dimensions?: string;
36
43
  }
37
44
  export type AiEngineeringControllerGetLeaderboardsOkResponse = ResponseWithPagination<ApiResponseEntityListTemplate>;
38
45
  export type AiEngineeringControllerGetLeaderboardsErrorResponse = unknown;
@@ -4,11 +4,11 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function aiEngineeringControllerGetLeaderboards(props) {
7
- return fetcher(Object.assign({ url: `/v2/ai-engineering/insights/${props.category}/metrics/leaderboards`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v2/ai-engineering/insights/${props.category}/leaderboards/${props.type}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get leaderboard for an insight category
11
11
  */
12
12
  export function useAiEngineeringControllerGetLeaderboardsQuery(props, options) {
13
- return useQuery(['AiEngineeringControllerGetLeaderboards', props.category, props.queryParams], ({ signal }) => aiEngineeringControllerGetLeaderboards(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['AiEngineeringControllerGetLeaderboards', props.category, props.type, props.queryParams], ({ signal }) => aiEngineeringControllerGetLeaderboards(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -7,7 +7,7 @@ import type { ResponseWithPagination } from '../helpers';
7
7
  import { FetcherOptions } from '../../../../fetcher/index.js';
8
8
  export type DeveloperControllerUpsertDeveloperIdentitiesRequestBody = DeveloperIdentity[];
9
9
  export type DeveloperControllerUpsertDeveloperIdentitiesOkResponse = ResponseWithPagination<DeveloperIdentityUpsertResponse>;
10
- export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = (DeveloperIdentityUpsertFailureResponse & ErrorResponse) | ErrorResponse;
10
+ export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = DeveloperIdentityUpsertFailureResponse | ErrorResponse;
11
11
  export interface DeveloperControllerUpsertDeveloperIdentitiesProps extends Omit<FetcherOptions<unknown, DeveloperControllerUpsertDeveloperIdentitiesRequestBody>, 'url'> {
12
12
  body: DeveloperControllerUpsertDeveloperIdentitiesRequestBody;
13
13
  }
@@ -9,6 +9,12 @@ export type { AiEngineeringControllerGetInvestmentCategoriesCatalogErrorResponse
9
9
  export { aiEngineeringControllerGetInvestmentCategoriesCatalog, useAiEngineeringControllerGetInvestmentCategoriesCatalogQuery, } from './hooks/useAiEngineeringControllerGetInvestmentCategoriesCatalogQuery';
10
10
  export type { AiEngineeringControllerGetLanguagesCatalogErrorResponse, AiEngineeringControllerGetLanguagesCatalogOkResponse, AiEngineeringControllerGetLanguagesCatalogProps, AiEngineeringControllerGetLanguagesCatalogQueryQueryParams, } from './hooks/useAiEngineeringControllerGetLanguagesCatalogQuery';
11
11
  export { aiEngineeringControllerGetLanguagesCatalog, useAiEngineeringControllerGetLanguagesCatalogQuery, } from './hooks/useAiEngineeringControllerGetLanguagesCatalogQuery';
12
+ export type { AiEngineeringControllerGetLeaderboardClassesCatalogErrorResponse, AiEngineeringControllerGetLeaderboardClassesCatalogOkResponse, AiEngineeringControllerGetLeaderboardClassesCatalogProps, AiEngineeringControllerGetLeaderboardClassesCatalogQueryPathParams, AiEngineeringControllerGetLeaderboardClassesCatalogQueryQueryParams, } from './hooks/useAiEngineeringControllerGetLeaderboardClassesCatalogQuery';
13
+ export { aiEngineeringControllerGetLeaderboardClassesCatalog, useAiEngineeringControllerGetLeaderboardClassesCatalogQuery, } from './hooks/useAiEngineeringControllerGetLeaderboardClassesCatalogQuery';
14
+ export type { AiEngineeringControllerGetLeaderboardClassesSummaryErrorResponse, AiEngineeringControllerGetLeaderboardClassesSummaryOkResponse, AiEngineeringControllerGetLeaderboardClassesSummaryProps, AiEngineeringControllerGetLeaderboardClassesSummaryQueryPathParams, AiEngineeringControllerGetLeaderboardClassesSummaryQueryQueryParams, } from './hooks/useAiEngineeringControllerGetLeaderboardClassesSummaryQuery';
15
+ export { aiEngineeringControllerGetLeaderboardClassesSummary, useAiEngineeringControllerGetLeaderboardClassesSummaryQuery, } from './hooks/useAiEngineeringControllerGetLeaderboardClassesSummaryQuery';
16
+ export type { AiEngineeringControllerGetLeaderboardsLegacyErrorResponse, AiEngineeringControllerGetLeaderboardsLegacyOkResponse, AiEngineeringControllerGetLeaderboardsLegacyProps, AiEngineeringControllerGetLeaderboardsLegacyQueryPathParams, AiEngineeringControllerGetLeaderboardsLegacyQueryQueryParams, } from './hooks/useAiEngineeringControllerGetLeaderboardsLegacyQuery';
17
+ export { aiEngineeringControllerGetLeaderboardsLegacy, useAiEngineeringControllerGetLeaderboardsLegacyQuery, } from './hooks/useAiEngineeringControllerGetLeaderboardsLegacyQuery';
12
18
  export type { AiEngineeringControllerGetLeaderboardsErrorResponse, AiEngineeringControllerGetLeaderboardsOkResponse, AiEngineeringControllerGetLeaderboardsProps, AiEngineeringControllerGetLeaderboardsQueryPathParams, AiEngineeringControllerGetLeaderboardsQueryQueryParams, } from './hooks/useAiEngineeringControllerGetLeaderboardsQuery';
13
19
  export { aiEngineeringControllerGetLeaderboards, useAiEngineeringControllerGetLeaderboardsQuery, } from './hooks/useAiEngineeringControllerGetLeaderboardsQuery';
14
20
  export type { AiEngineeringControllerGetMetricBreakdownErrorResponse, AiEngineeringControllerGetMetricBreakdownOkResponse, AiEngineeringControllerGetMetricBreakdownProps, AiEngineeringControllerGetMetricBreakdownQueryPathParams, AiEngineeringControllerGetMetricBreakdownQueryQueryParams, } from './hooks/useAiEngineeringControllerGetMetricBreakdownQuery';
@@ -630,6 +636,8 @@ export { teamsControllerUpdateTeamIntegrations, useTeamsControllerUpdateTeamInte
630
636
  export type { TeamsControllerUpdateTeamErrorResponse, TeamsControllerUpdateTeamMutationPathParams, TeamsControllerUpdateTeamMutationQueryParams, TeamsControllerUpdateTeamOkResponse, TeamsControllerUpdateTeamProps, TeamsControllerUpdateTeamRequestBody, } from './hooks/useTeamsControllerUpdateTeamMutation';
631
637
  export { teamsControllerUpdateTeam, useTeamsControllerUpdateTeamMutation, } from './hooks/useTeamsControllerUpdateTeamMutation';
632
638
  export type { AccessResponseDto } from './schemas/AccessResponseDto';
639
+ export type { ActiveThreshold } from './schemas/ActiveThreshold';
640
+ export type { ActiveUsersCount } from './schemas/ActiveUsersCount';
633
641
  export type { ActiveWorkStatusConfig } from './schemas/ActiveWorkStatusConfig';
634
642
  export type { ActivityDataDto } from './schemas/ActivityDataDto';
635
643
  export type { ActivityLog } from './schemas/ActivityLog';
@@ -673,6 +681,7 @@ export type { ApiResponseCatalogTemplate } from './schemas/ApiResponseCatalogTem
673
681
  export type { ApiResponseCorrelationData } from './schemas/ApiResponseCorrelationData';
674
682
  export type { ApiResponseEntityListData } from './schemas/ApiResponseEntityListData';
675
683
  export type { ApiResponseEntityListTemplate } from './schemas/ApiResponseEntityListTemplate';
684
+ export type { ApiResponseLeaderboardSegmentsSummaryData } from './schemas/ApiResponseLeaderboardSegmentsSummaryData';
676
685
  export type { ApiResponseMetricAggregateTemplate } from './schemas/ApiResponseMetricAggregateTemplate';
677
686
  export type { ApiResponseMetricBreakdownData } from './schemas/ApiResponseMetricBreakdownData';
678
687
  export type { ApiResponseOptimizationItem } from './schemas/ApiResponseOptimizationItem';
@@ -891,6 +900,7 @@ export type { ItsmDrilldownSummary } from './schemas/ItsmDrilldownSummary';
891
900
  export type { JobDetailDto } from './schemas/JobDetailDto';
892
901
  export type { JsonNode } from './schemas/JsonNode';
893
902
  export type { LanguageCount } from './schemas/LanguageCount';
903
+ export type { LeaderboardSegmentsSummaryData } from './schemas/LeaderboardSegmentsSummaryData';
894
904
  export type { LicenseSearchParams } from './schemas/LicenseSearchParams';
895
905
  export type { ListResponseDto } from './schemas/ListResponseDto';
896
906
  export type { ListResponseDtoDeveloperIdentity } from './schemas/ListResponseDtoDeveloperIdentity';
@@ -911,6 +921,7 @@ export type { MetricAggregateTemplate } from './schemas/MetricAggregateTemplate'
911
921
  export type { MetricBreakdownData } from './schemas/MetricBreakdownData';
912
922
  export type { MetricEntry } from './schemas/MetricEntry';
913
923
  export type { MetricValue } from './schemas/MetricValue';
924
+ export type { MetricValueWithUnit } from './schemas/MetricValueWithUnit';
914
925
  export type { MetricsExport } from './schemas/MetricsExport';
915
926
  export type { MetricsExportListResponseDto } from './schemas/MetricsExportListResponseDto';
916
927
  export type { MetricsExportRequestDto } from './schemas/MetricsExportRequestDto';
@@ -1020,6 +1031,7 @@ export type { SecurityProfileResponseDto } from './schemas/SecurityProfileRespon
1020
1031
  export type { SecurityStatsDrilldownResponseDto } from './schemas/SecurityStatsDrilldownResponseDto';
1021
1032
  export type { SecurityStatsRequest } from './schemas/SecurityStatsRequest';
1022
1033
  export type { SecurityStatsTrendResponseDto } from './schemas/SecurityStatsTrendResponseDto';
1034
+ export type { SegmentSummary } from './schemas/SegmentSummary';
1023
1035
  export type { SeverityCounts } from './schemas/SeverityCounts';
1024
1036
  export type { SeverityData } from './schemas/SeverityData';
1025
1037
  export type { SeveritySummaryData } from './schemas/SeveritySummaryData';
@@ -3,6 +3,9 @@ export { aiEngineeringControllerGetAgentsCatalog, useAiEngineeringControllerGetA
3
3
  export { aiEngineeringControllerGetCorrelations, useAiEngineeringControllerGetCorrelationsQuery, } from './hooks/useAiEngineeringControllerGetCorrelationsQuery';
4
4
  export { aiEngineeringControllerGetInvestmentCategoriesCatalog, useAiEngineeringControllerGetInvestmentCategoriesCatalogQuery, } from './hooks/useAiEngineeringControllerGetInvestmentCategoriesCatalogQuery';
5
5
  export { aiEngineeringControllerGetLanguagesCatalog, useAiEngineeringControllerGetLanguagesCatalogQuery, } from './hooks/useAiEngineeringControllerGetLanguagesCatalogQuery';
6
+ export { aiEngineeringControllerGetLeaderboardClassesCatalog, useAiEngineeringControllerGetLeaderboardClassesCatalogQuery, } from './hooks/useAiEngineeringControllerGetLeaderboardClassesCatalogQuery';
7
+ export { aiEngineeringControllerGetLeaderboardClassesSummary, useAiEngineeringControllerGetLeaderboardClassesSummaryQuery, } from './hooks/useAiEngineeringControllerGetLeaderboardClassesSummaryQuery';
8
+ export { aiEngineeringControllerGetLeaderboardsLegacy, useAiEngineeringControllerGetLeaderboardsLegacyQuery, } from './hooks/useAiEngineeringControllerGetLeaderboardsLegacyQuery';
6
9
  export { aiEngineeringControllerGetLeaderboards, useAiEngineeringControllerGetLeaderboardsQuery, } from './hooks/useAiEngineeringControllerGetLeaderboardsQuery';
7
10
  export { aiEngineeringControllerGetMetricBreakdown, useAiEngineeringControllerGetMetricBreakdownQuery, } from './hooks/useAiEngineeringControllerGetMetricBreakdownQuery';
8
11
  export { aiEngineeringControllerGetMetricSeries, useAiEngineeringControllerGetMetricSeriesQuery, } from './hooks/useAiEngineeringControllerGetMetricSeriesQuery';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Active threshold setting
3
+ */
4
+ export interface ActiveThreshold {
5
+ /**
6
+ * Unit of measurement
7
+ * @example "days/month"
8
+ */
9
+ unit?: string;
10
+ /**
11
+ * Threshold value
12
+ * @format int32
13
+ * @example 10
14
+ */
15
+ value?: number;
16
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Active users count and percentage
3
+ */
4
+ export interface ActiveUsersCount {
5
+ /**
6
+ * Count of active users
7
+ * @format int32
8
+ * @example 1
9
+ */
10
+ count?: number;
11
+ /**
12
+ * Percentage of class population that is active
13
+ * @format double
14
+ * @example 0.06
15
+ */
16
+ pct?: number;
17
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,23 @@
1
+ import type { LeaderboardSegmentsSummaryData } from '../schemas/LeaderboardSegmentsSummaryData';
2
+ export interface ApiResponseLeaderboardSegmentsSummaryData {
3
+ /**
4
+ * Endpoint-specific payload (template DTOs, lists, aggregates, etc.)
5
+ */
6
+ data?: LeaderboardSegmentsSummaryData;
7
+ /**
8
+ * HATEOAS links for resource navigation (self, next, prev, etc.)
9
+ */
10
+ links?: {
11
+ [key: string]: {
12
+ [key: string]: any;
13
+ };
14
+ };
15
+ /**
16
+ * Operation metadata: date ranges, filters, granularity, pagination info, etc.
17
+ */
18
+ meta?: {
19
+ [key: string]: {
20
+ [key: string]: any;
21
+ };
22
+ };
23
+ }
@@ -5,7 +5,7 @@ export interface IntegrationResponseDto {
5
5
  /**
6
6
  * Application type
7
7
  */
8
- applicationType?: 'ADO_BOARDS' | 'ADO_PIPELINES' | 'ADO_REPOS' | 'ARMORCODE' | 'BITBUCKET' | 'BITBUCKET_SERVER' | 'CLAUDE_CODE' | 'CURSOR' | 'CUSTOM' | 'CUSTOM_INGESTION' | 'GITHUB' | 'GITHUB_ACTIONS' | 'GITHUB_COPILOT' | 'GITLAB' | 'GIT_AI' | 'HARNESSCODE' | 'HARNESSNG' | 'HARNESS_CD' | 'HARNESS_CI' | 'JENKINS' | 'JIRA' | 'QTEST' | 'SERVICENOW' | 'SNYK' | 'WINDSURF' | 'WIZ';
8
+ applicationType?: 'ADO_BOARDS' | 'ADO_PIPELINES' | 'ADO_REPOS' | 'ARMORCODE' | 'BITBUCKET' | 'BITBUCKET_SERVER' | 'CLAUDE_CODE' | 'CURSOR' | 'CUSTOM' | 'CUSTOM_INGESTION' | 'GITHUB' | 'GITHUB_ACTIONS' | 'GITHUB_COPILOT' | 'GITLAB' | 'GIT_AI' | 'HARNESSCODE' | 'HARNESSNG' | 'HARNESS_CD' | 'HARNESS_CI' | 'JENKINS' | 'JIRA' | 'PAGERDUTY' | 'QTEST' | 'SERVICENOW' | 'SNYK' | 'WINDSURF' | 'WIZ';
9
9
  /**
10
10
  * Integration ID
11
11
  * @format int32
@@ -0,0 +1,31 @@
1
+ import type { ActiveThreshold } from '../schemas/ActiveThreshold';
2
+ import type { TimeSeriesPeriod } from '../schemas/TimeSeriesPeriod';
3
+ import type { SegmentSummary } from '../schemas/SegmentSummary';
4
+ /**
5
+ * Per-segment summary cards for leaderboard categories. Counts can sum to more than total_population due to multi-segment membership.
6
+ */
7
+ export interface LeaderboardSegmentsSummaryData {
8
+ /**
9
+ * Active threshold setting used for segmentation
10
+ */
11
+ activeThreshold?: ActiveThreshold;
12
+ /**
13
+ * Time period for the segmentation
14
+ */
15
+ period?: TimeSeriesPeriod;
16
+ /**
17
+ * Per-segment summary statistics
18
+ */
19
+ segments?: SegmentSummary[];
20
+ /**
21
+ * Total population in scope (before segment filtering)
22
+ * @format int32
23
+ * @example 17
24
+ */
25
+ totalPopulation?: number;
26
+ /**
27
+ * Entity type being segmented
28
+ * @example "developers"
29
+ */
30
+ type?: string;
31
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Metric value with unit
3
+ */
4
+ export interface MetricValueWithUnit {
5
+ /**
6
+ * Unit of measurement
7
+ * @example "USD"
8
+ */
9
+ unit?: string;
10
+ /**
11
+ * Numeric value
12
+ * @format double
13
+ * @example 759
14
+ */
15
+ value?: number;
16
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,8 +1,13 @@
1
+ import type { BreakdownItem } from '../schemas/BreakdownItem';
1
2
  import type { SimpleMetric } from '../schemas/SimpleMetric';
2
3
  /**
3
4
  * Represents a ranked entity with metrics and metadata
4
5
  */
5
6
  export interface RankedEntity {
7
+ /**
8
+ * Breakdown of metrics by dimensions (e.g., by agent, language, etc.)
9
+ */
10
+ breakdown?: BreakdownItem[];
6
11
  /**
7
12
  * Per-agent drill-down rows (developers leaderboard only)
8
13
  */
@@ -36,4 +41,8 @@ export interface RankedEntity {
36
41
  * @example 1
37
42
  */
38
43
  rank?: number;
44
+ /**
45
+ * Segment memberships computed from this entity's metrics. Multi-membership allowed (e.g. ['overspending','ramping_up']).
46
+ */
47
+ segments?: string[];
39
48
  }
@@ -0,0 +1,48 @@
1
+ import type { ActiveUsersCount } from '../schemas/ActiveUsersCount';
2
+ import type { MetricValueWithUnit } from '../schemas/MetricValueWithUnit';
3
+ /**
4
+ * Summary for one leaderboard segment
5
+ */
6
+ export interface SegmentSummary {
7
+ /**
8
+ * Active users in this class
9
+ */
10
+ activeUsers?: ActiveUsersCount;
11
+ /**
12
+ * Human-readable filter expression defining this segment
13
+ * @example "Active days ≥10 AND code ship rate >60% AND cost/KLOC ≤ P75"
14
+ */
15
+ filterExpression?: string;
16
+ /**
17
+ * Segment key
18
+ * @example "champions"
19
+ */
20
+ key?: string;
21
+ /**
22
+ * Human-readable segment label
23
+ * @example "Champions"
24
+ */
25
+ label?: string;
26
+ /**
27
+ * Count of entities in this class
28
+ * @format int32
29
+ * @example 0
30
+ */
31
+ matchingCount?: number;
32
+ /**
33
+ * Percentage of total population in this class
34
+ * @format double
35
+ * @example 0
36
+ */
37
+ matchingPct?: number;
38
+ /**
39
+ * Total spend for entities in this class
40
+ */
41
+ spend?: MetricValueWithUnit;
42
+ /**
43
+ * Percentage of total spend consumed by this class
44
+ * @format double
45
+ * @example 0
46
+ */
47
+ spendPctOfTotal?: number;
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.30.1",
3
+ "version": "0.31.0",
4
4
  "description": "Harness React sei panorama service client - SEI Panorama APIs integrated with react hooks for Panorama project",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",