@harnessio/react-sei-panorama-service-client 0.31.14 → 0.31.16
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.
- package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetSessionFeedQuery.d.ts +73 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetSessionFeedQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetWorkItemLinkedPrsQuery.d.ts +2 -2
- package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerListSessionsQuery.d.ts +40 -15
- package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerListSessionsQuery.js +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useDeveloperControllerUpsertDeveloperIdentitiesMutation.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useInternalAiEngineeringControllerGetSpendSeriesMutation.d.ts +21 -0
- package/dist/sei-panorama-service/src/services/hooks/useInternalAiEngineeringControllerGetSpendSeriesMutation.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useInternalAiEngineeringControllerGetSpendTotalMutation.d.ts +21 -0
- package/dist/sei-panorama-service/src/services/hooks/useInternalAiEngineeringControllerGetSpendTotalMutation.js +14 -0
- package/dist/sei-panorama-service/src/services/index.d.ts +25 -0
- package/dist/sei-panorama-service/src/services/index.js +3 -0
- package/dist/sei-panorama-service/src/services/schemas/ApiResponseSessionFeedResponse.d.ts +23 -0
- package/dist/sei-panorama-service/src/services/schemas/ApiResponseSessionFeedResponse.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/ApiResponseSessionListResponse.d.ts +23 -0
- package/dist/sei-panorama-service/src/services/schemas/ApiResponseSessionListResponse.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/DeveloperToolSeries.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/DeveloperToolSeries.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/DeveloperToolSpend.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/DeveloperToolSpend.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/EfficiencyRequest.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendCollisionGroup.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendCollisionGroup.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendDeveloperRow.d.ts +25 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendDeveloperRow.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendMetadata.d.ts +14 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendMetadata.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendRequest.d.ts +33 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendRequest.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendSeriesPoint.d.ts +16 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendSeriesPoint.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendSeriesRequest.d.ts +28 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendSeriesRequest.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendSeriesResponse.d.ts +20 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendSeriesResponse.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendToolBreakdown.d.ts +21 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendToolBreakdown.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendToolSeriesRow.d.ts +21 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendToolSeriesRow.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendTotalResponse.d.ts +20 -0
- package/dist/sei-panorama-service/src/services/schemas/InternalAiSpendTotalResponse.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/ItsmCustomFieldDto.d.ts +4 -0
- package/dist/sei-panorama-service/src/services/schemas/SessionFeedResponse.d.ts +43 -0
- package/dist/sei-panorama-service/src/services/schemas/SessionFeedResponse.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/SessionFeedSummary.d.ts +38 -0
- package/dist/sei-panorama-service/src/services/schemas/SessionFeedSummary.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/SessionFragment.d.ts +94 -0
- package/dist/sei-panorama-service/src/services/schemas/SessionFragment.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/SessionListResponse.d.ts +19 -0
- package/dist/sei-panorama-service/src/services/schemas/SessionListResponse.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/SessionSummary.d.ts +88 -0
- package/dist/sei-panorama-service/src/services/schemas/SessionSummary.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/SharedCommitEntry.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiResponseSessionFeedResponse } from '../schemas/ApiResponseSessionFeedResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface AiEngineeringControllerGetSessionFeedQueryPathParams {
|
|
6
|
+
session_id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AiEngineeringControllerGetSessionFeedQueryQueryParams {
|
|
9
|
+
account: string;
|
|
10
|
+
schema: string;
|
|
11
|
+
/**
|
|
12
|
+
* @format int32
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @format int32
|
|
17
|
+
*/
|
|
18
|
+
offset?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @example "default"
|
|
21
|
+
*/
|
|
22
|
+
orgIdentifier?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @example "sei"
|
|
25
|
+
*/
|
|
26
|
+
projectIdentifier?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @example "kmpySmUISimoRrJL6NL73w"
|
|
29
|
+
*/
|
|
30
|
+
routingId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @example "2026-01-01"
|
|
33
|
+
*/
|
|
34
|
+
start_date: string;
|
|
35
|
+
/**
|
|
36
|
+
* @example "2026-05-04"
|
|
37
|
+
*/
|
|
38
|
+
end_date: string;
|
|
39
|
+
/**
|
|
40
|
+
* @example "WEEKLY"
|
|
41
|
+
*/
|
|
42
|
+
granularity?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @example "1"
|
|
45
|
+
*/
|
|
46
|
+
orgTreeId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @example "team-123"
|
|
49
|
+
*/
|
|
50
|
+
teamRefId?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @example "claude-code"
|
|
53
|
+
*/
|
|
54
|
+
assistant?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @example "java"
|
|
57
|
+
*/
|
|
58
|
+
language?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @example "senior_engineer"
|
|
61
|
+
*/
|
|
62
|
+
role?: string;
|
|
63
|
+
}
|
|
64
|
+
export type AiEngineeringControllerGetSessionFeedOkResponse = ResponseWithPagination<ApiResponseSessionFeedResponse>;
|
|
65
|
+
export type AiEngineeringControllerGetSessionFeedErrorResponse = unknown;
|
|
66
|
+
export interface AiEngineeringControllerGetSessionFeedProps extends AiEngineeringControllerGetSessionFeedQueryPathParams, Omit<FetcherOptions<AiEngineeringControllerGetSessionFeedQueryQueryParams, unknown>, 'url'> {
|
|
67
|
+
queryParams: AiEngineeringControllerGetSessionFeedQueryQueryParams;
|
|
68
|
+
}
|
|
69
|
+
export declare function aiEngineeringControllerGetSessionFeed(props: AiEngineeringControllerGetSessionFeedProps): Promise<AiEngineeringControllerGetSessionFeedOkResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Get chronological fragment feed for a session
|
|
72
|
+
*/
|
|
73
|
+
export declare function useAiEngineeringControllerGetSessionFeedQuery(props: AiEngineeringControllerGetSessionFeedProps, options?: Omit<UseQueryOptions<AiEngineeringControllerGetSessionFeedOkResponse, AiEngineeringControllerGetSessionFeedErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiEngineeringControllerGetSessionFeedOkResponse, 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 aiEngineeringControllerGetSessionFeed(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/ai-engineering/sessions/${props.session_id}/feed`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get chronological fragment feed for a session
|
|
11
|
+
*/
|
|
12
|
+
export function useAiEngineeringControllerGetSessionFeedQuery(props, options) {
|
|
13
|
+
return useQuery(['AiEngineeringControllerGetSessionFeed', props.session_id, props.queryParams], ({ signal }) => aiEngineeringControllerGetSessionFeed(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -8,8 +8,8 @@ export interface AiEngineeringControllerGetWorkItemLinkedPrsQueryPathParams {
|
|
|
8
8
|
export interface AiEngineeringControllerGetWorkItemLinkedPrsQueryQueryParams {
|
|
9
9
|
account: string;
|
|
10
10
|
schema: string;
|
|
11
|
-
start_date
|
|
12
|
-
end_date
|
|
11
|
+
start_date?: string;
|
|
12
|
+
end_date?: string;
|
|
13
13
|
/**
|
|
14
14
|
* @example "default"
|
|
15
15
|
*/
|
|
@@ -1,40 +1,65 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ApiResponseSessionListResponse } from '../schemas/ApiResponseSessionListResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface AiEngineeringControllerListSessionsQueryQueryParams {
|
|
6
6
|
account: string;
|
|
7
7
|
schema: string;
|
|
8
|
+
user_email: string;
|
|
9
|
+
start_date?: string;
|
|
10
|
+
end_date?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @format int32
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @format int32
|
|
17
|
+
*/
|
|
18
|
+
offset?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @example "default"
|
|
21
|
+
*/
|
|
8
22
|
orgIdentifier?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @example "sei"
|
|
25
|
+
*/
|
|
9
26
|
projectIdentifier?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @example "kmpySmUISimoRrJL6NL73w"
|
|
29
|
+
*/
|
|
10
30
|
routingId?: string;
|
|
11
31
|
/**
|
|
12
|
-
* @
|
|
32
|
+
* @example "WEEKLY"
|
|
13
33
|
*/
|
|
14
|
-
orgTreeId?: number;
|
|
15
|
-
teamRefId?: string;
|
|
16
|
-
start_date?: string;
|
|
17
|
-
end_date?: string;
|
|
18
34
|
granularity?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @example "1"
|
|
37
|
+
*/
|
|
38
|
+
orgTreeId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @example "team-123"
|
|
41
|
+
*/
|
|
42
|
+
teamRefId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @example "claude-code"
|
|
45
|
+
*/
|
|
19
46
|
assistant?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @example "java"
|
|
49
|
+
*/
|
|
20
50
|
language?: string;
|
|
21
|
-
role?: string;
|
|
22
|
-
metrics?: string;
|
|
23
|
-
select?: string;
|
|
24
|
-
sort?: string;
|
|
25
|
-
cursor?: string;
|
|
26
51
|
/**
|
|
27
|
-
* @
|
|
52
|
+
* @example "senior_engineer"
|
|
28
53
|
*/
|
|
29
|
-
|
|
54
|
+
role?: string;
|
|
30
55
|
}
|
|
31
|
-
export type AiEngineeringControllerListSessionsOkResponse = ResponseWithPagination<
|
|
56
|
+
export type AiEngineeringControllerListSessionsOkResponse = ResponseWithPagination<ApiResponseSessionListResponse>;
|
|
32
57
|
export type AiEngineeringControllerListSessionsErrorResponse = unknown;
|
|
33
58
|
export interface AiEngineeringControllerListSessionsProps extends Omit<FetcherOptions<AiEngineeringControllerListSessionsQueryQueryParams, unknown>, 'url'> {
|
|
34
59
|
queryParams: AiEngineeringControllerListSessionsQueryQueryParams;
|
|
35
60
|
}
|
|
36
61
|
export declare function aiEngineeringControllerListSessions(props: AiEngineeringControllerListSessionsProps): Promise<AiEngineeringControllerListSessionsOkResponse>;
|
|
37
62
|
/**
|
|
38
|
-
* List sessions
|
|
63
|
+
* List sessions for a user
|
|
39
64
|
*/
|
|
40
65
|
export declare function useAiEngineeringControllerListSessionsQuery(props: AiEngineeringControllerListSessionsProps, options?: Omit<UseQueryOptions<AiEngineeringControllerListSessionsOkResponse, AiEngineeringControllerListSessionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiEngineeringControllerListSessionsOkResponse, unknown>;
|
package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerListSessionsQuery.js
CHANGED
|
@@ -7,7 +7,7 @@ export function aiEngineeringControllerListSessions(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v2/ai-engineering/sessions`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* List sessions
|
|
10
|
+
* List sessions for a user
|
|
11
11
|
*/
|
|
12
12
|
export function useAiEngineeringControllerListSessionsQuery(props, options) {
|
|
13
13
|
return useQuery(['AiEngineeringControllerListSessions', props.queryParams], ({ signal }) => aiEngineeringControllerListSessions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -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;
|
|
10
|
+
export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = (DeveloperIdentityUpsertFailureResponse & ErrorResponse) | ErrorResponse;
|
|
11
11
|
export interface DeveloperControllerUpsertDeveloperIdentitiesProps extends Omit<FetcherOptions<unknown, DeveloperControllerUpsertDeveloperIdentitiesRequestBody>, 'url'> {
|
|
12
12
|
body: DeveloperControllerUpsertDeveloperIdentitiesRequestBody;
|
|
13
13
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { InternalAiSpendSeriesResponse } from '../schemas/InternalAiSpendSeriesResponse';
|
|
3
|
+
import type { InternalAiSpendSeriesRequest } from '../schemas/InternalAiSpendSeriesRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface InternalAiEngineeringControllerGetSpendSeriesMutationQueryParams {
|
|
7
|
+
accountId: string;
|
|
8
|
+
tenantId: string;
|
|
9
|
+
}
|
|
10
|
+
export type InternalAiEngineeringControllerGetSpendSeriesRequestBody = InternalAiSpendSeriesRequest;
|
|
11
|
+
export type InternalAiEngineeringControllerGetSpendSeriesOkResponse = ResponseWithPagination<InternalAiSpendSeriesResponse>;
|
|
12
|
+
export type InternalAiEngineeringControllerGetSpendSeriesErrorResponse = unknown;
|
|
13
|
+
export interface InternalAiEngineeringControllerGetSpendSeriesProps extends Omit<FetcherOptions<InternalAiEngineeringControllerGetSpendSeriesMutationQueryParams, InternalAiEngineeringControllerGetSpendSeriesRequestBody>, 'url'> {
|
|
14
|
+
queryParams: InternalAiEngineeringControllerGetSpendSeriesMutationQueryParams;
|
|
15
|
+
body: InternalAiEngineeringControllerGetSpendSeriesRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function internalAiEngineeringControllerGetSpendSeries(props: InternalAiEngineeringControllerGetSpendSeriesProps): Promise<InternalAiEngineeringControllerGetSpendSeriesOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Returns time series spend data per developer for the specified granularity
|
|
20
|
+
*/
|
|
21
|
+
export declare function useInternalAiEngineeringControllerGetSpendSeriesMutation(options?: Omit<UseMutationOptions<InternalAiEngineeringControllerGetSpendSeriesOkResponse, InternalAiEngineeringControllerGetSpendSeriesErrorResponse, InternalAiEngineeringControllerGetSpendSeriesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<InternalAiEngineeringControllerGetSpendSeriesOkResponse, unknown, InternalAiEngineeringControllerGetSpendSeriesProps, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function internalAiEngineeringControllerGetSpendSeries(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/internal/ai-engineering/spend/series`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns time series spend data per developer for the specified granularity
|
|
11
|
+
*/
|
|
12
|
+
export function useInternalAiEngineeringControllerGetSpendSeriesMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => internalAiEngineeringControllerGetSpendSeries(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { InternalAiSpendTotalResponse } from '../schemas/InternalAiSpendTotalResponse';
|
|
3
|
+
import type { InternalAiSpendRequest } from '../schemas/InternalAiSpendRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface InternalAiEngineeringControllerGetSpendTotalMutationQueryParams {
|
|
7
|
+
accountId: string;
|
|
8
|
+
tenantId: string;
|
|
9
|
+
}
|
|
10
|
+
export type InternalAiEngineeringControllerGetSpendTotalRequestBody = InternalAiSpendRequest;
|
|
11
|
+
export type InternalAiEngineeringControllerGetSpendTotalOkResponse = ResponseWithPagination<InternalAiSpendTotalResponse>;
|
|
12
|
+
export type InternalAiEngineeringControllerGetSpendTotalErrorResponse = unknown;
|
|
13
|
+
export interface InternalAiEngineeringControllerGetSpendTotalProps extends Omit<FetcherOptions<InternalAiEngineeringControllerGetSpendTotalMutationQueryParams, InternalAiEngineeringControllerGetSpendTotalRequestBody>, 'url'> {
|
|
14
|
+
queryParams: InternalAiEngineeringControllerGetSpendTotalMutationQueryParams;
|
|
15
|
+
body: InternalAiEngineeringControllerGetSpendTotalRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function internalAiEngineeringControllerGetSpendTotal(props: InternalAiEngineeringControllerGetSpendTotalProps): Promise<InternalAiEngineeringControllerGetSpendTotalOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Returns total spend across the specified date range grouped by email
|
|
20
|
+
*/
|
|
21
|
+
export declare function useInternalAiEngineeringControllerGetSpendTotalMutation(options?: Omit<UseMutationOptions<InternalAiEngineeringControllerGetSpendTotalOkResponse, InternalAiEngineeringControllerGetSpendTotalErrorResponse, InternalAiEngineeringControllerGetSpendTotalProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<InternalAiEngineeringControllerGetSpendTotalOkResponse, unknown, InternalAiEngineeringControllerGetSpendTotalProps, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function internalAiEngineeringControllerGetSpendTotal(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/internal/ai-engineering/spend/total`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns total spend across the specified date range grouped by email
|
|
11
|
+
*/
|
|
12
|
+
export function useInternalAiEngineeringControllerGetSpendTotalMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => internalAiEngineeringControllerGetSpendTotal(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -45,6 +45,8 @@ export type { AiEngineeringControllerGetRolesCatalogErrorResponse, AiEngineering
|
|
|
45
45
|
export { aiEngineeringControllerGetRolesCatalog, useAiEngineeringControllerGetRolesCatalogQuery, } from './hooks/useAiEngineeringControllerGetRolesCatalogQuery';
|
|
46
46
|
export type { AiEngineeringControllerGetScorecardsErrorResponse, AiEngineeringControllerGetScorecardsOkResponse, AiEngineeringControllerGetScorecardsProps, AiEngineeringControllerGetScorecardsQueryPathParams, AiEngineeringControllerGetScorecardsQueryQueryParams, } from './hooks/useAiEngineeringControllerGetScorecardsQuery';
|
|
47
47
|
export { aiEngineeringControllerGetScorecards, useAiEngineeringControllerGetScorecardsQuery, } from './hooks/useAiEngineeringControllerGetScorecardsQuery';
|
|
48
|
+
export type { AiEngineeringControllerGetSessionFeedErrorResponse, AiEngineeringControllerGetSessionFeedOkResponse, AiEngineeringControllerGetSessionFeedProps, AiEngineeringControllerGetSessionFeedQueryPathParams, AiEngineeringControllerGetSessionFeedQueryQueryParams, } from './hooks/useAiEngineeringControllerGetSessionFeedQuery';
|
|
49
|
+
export { aiEngineeringControllerGetSessionFeed, useAiEngineeringControllerGetSessionFeedQuery, } from './hooks/useAiEngineeringControllerGetSessionFeedQuery';
|
|
48
50
|
export type { AiEngineeringControllerGetToolCallCategoriesCatalogErrorResponse, AiEngineeringControllerGetToolCallCategoriesCatalogOkResponse, AiEngineeringControllerGetToolCallCategoriesCatalogProps, AiEngineeringControllerGetToolCallCategoriesCatalogQueryQueryParams, } from './hooks/useAiEngineeringControllerGetToolCallCategoriesCatalogQuery';
|
|
49
51
|
export { aiEngineeringControllerGetToolCallCategoriesCatalog, useAiEngineeringControllerGetToolCallCategoriesCatalogQuery, } from './hooks/useAiEngineeringControllerGetToolCallCategoriesCatalogQuery';
|
|
50
52
|
export type { AiEngineeringControllerGetWorkItemLinkedPrsErrorResponse, AiEngineeringControllerGetWorkItemLinkedPrsOkResponse, AiEngineeringControllerGetWorkItemLinkedPrsProps, AiEngineeringControllerGetWorkItemLinkedPrsQueryPathParams, AiEngineeringControllerGetWorkItemLinkedPrsQueryQueryParams, } from './hooks/useAiEngineeringControllerGetWorkItemLinkedPrsQuery';
|
|
@@ -423,6 +425,10 @@ export type { IntegrationStatsControllerGetWindsurfUsersCountErrorResponse, Inte
|
|
|
423
425
|
export { integrationStatsControllerGetWindsurfUsersCount, useIntegrationStatsControllerGetWindsurfUsersCountQuery, } from './hooks/useIntegrationStatsControllerGetWindsurfUsersCountQuery';
|
|
424
426
|
export type { IntegrationStatsControllerGetWindsurfUsersCountWithDateRangeErrorResponse, IntegrationStatsControllerGetWindsurfUsersCountWithDateRangeMutationQueryParams, IntegrationStatsControllerGetWindsurfUsersCountWithDateRangeOkResponse, IntegrationStatsControllerGetWindsurfUsersCountWithDateRangeProps, IntegrationStatsControllerGetWindsurfUsersCountWithDateRangeRequestBody, } from './hooks/useIntegrationStatsControllerGetWindsurfUsersCountWithDateRangeMutation';
|
|
425
427
|
export { integrationStatsControllerGetWindsurfUsersCountWithDateRange, useIntegrationStatsControllerGetWindsurfUsersCountWithDateRangeMutation, } from './hooks/useIntegrationStatsControllerGetWindsurfUsersCountWithDateRangeMutation';
|
|
428
|
+
export type { InternalAiEngineeringControllerGetSpendSeriesErrorResponse, InternalAiEngineeringControllerGetSpendSeriesMutationQueryParams, InternalAiEngineeringControllerGetSpendSeriesOkResponse, InternalAiEngineeringControllerGetSpendSeriesProps, InternalAiEngineeringControllerGetSpendSeriesRequestBody, } from './hooks/useInternalAiEngineeringControllerGetSpendSeriesMutation';
|
|
429
|
+
export { internalAiEngineeringControllerGetSpendSeries, useInternalAiEngineeringControllerGetSpendSeriesMutation, } from './hooks/useInternalAiEngineeringControllerGetSpendSeriesMutation';
|
|
430
|
+
export type { InternalAiEngineeringControllerGetSpendTotalErrorResponse, InternalAiEngineeringControllerGetSpendTotalMutationQueryParams, InternalAiEngineeringControllerGetSpendTotalOkResponse, InternalAiEngineeringControllerGetSpendTotalProps, InternalAiEngineeringControllerGetSpendTotalRequestBody, } from './hooks/useInternalAiEngineeringControllerGetSpendTotalMutation';
|
|
431
|
+
export { internalAiEngineeringControllerGetSpendTotal, useInternalAiEngineeringControllerGetSpendTotalMutation, } from './hooks/useInternalAiEngineeringControllerGetSpendTotalMutation';
|
|
426
432
|
export type { IssueTimeInStatusExportControllerCreateExportErrorResponse, IssueTimeInStatusExportControllerCreateExportMutationQueryParams, IssueTimeInStatusExportControllerCreateExportOkResponse, IssueTimeInStatusExportControllerCreateExportProps, IssueTimeInStatusExportControllerCreateExportRequestBody, } from './hooks/useIssueTimeInStatusExportControllerCreateExportMutation';
|
|
427
433
|
export { issueTimeInStatusExportControllerCreateExport, useIssueTimeInStatusExportControllerCreateExportMutation, } from './hooks/useIssueTimeInStatusExportControllerCreateExportMutation';
|
|
428
434
|
export type { IssueTimeInStatusExportControllerDownloadExportErrorResponse, IssueTimeInStatusExportControllerDownloadExportOkResponse, IssueTimeInStatusExportControllerDownloadExportProps, IssueTimeInStatusExportControllerDownloadExportQueryPathParams, } from './hooks/useIssueTimeInStatusExportControllerDownloadExportQuery';
|
|
@@ -730,6 +736,8 @@ export type { ApiResponseMetricBreakdownData } from './schemas/ApiResponseMetric
|
|
|
730
736
|
export type { ApiResponseOptimizationItem } from './schemas/ApiResponseOptimizationItem';
|
|
731
737
|
export type { ApiResponseOptimizationListData } from './schemas/ApiResponseOptimizationListData';
|
|
732
738
|
export type { ApiResponseScorecardData } from './schemas/ApiResponseScorecardData';
|
|
739
|
+
export type { ApiResponseSessionFeedResponse } from './schemas/ApiResponseSessionFeedResponse';
|
|
740
|
+
export type { ApiResponseSessionListResponse } from './schemas/ApiResponseSessionListResponse';
|
|
733
741
|
export type { ApiResponseTimeSeriesTemplate } from './schemas/ApiResponseTimeSeriesTemplate';
|
|
734
742
|
export type { ApiResponseWorkItemLinkedPrsResponse } from './schemas/ApiResponseWorkItemLinkedPrsResponse';
|
|
735
743
|
export type { ApiResponseWrapper } from './schemas/ApiResponseWrapper';
|
|
@@ -830,6 +838,8 @@ export type { DeveloperReuploadResponseDto } from './schemas/DeveloperReuploadRe
|
|
|
830
838
|
export type { DeveloperSaveResponseDto } from './schemas/DeveloperSaveResponseDto';
|
|
831
839
|
export type { DeveloperSchemaDto } from './schemas/DeveloperSchemaDto';
|
|
832
840
|
export type { DeveloperSearchParams } from './schemas/DeveloperSearchParams';
|
|
841
|
+
export type { DeveloperToolSeries } from './schemas/DeveloperToolSeries';
|
|
842
|
+
export type { DeveloperToolSpend } from './schemas/DeveloperToolSpend';
|
|
833
843
|
export type { DeveloperUpsertResponseDto } from './schemas/DeveloperUpsertResponseDto';
|
|
834
844
|
export type { DeveloperValidationErrorDto } from './schemas/DeveloperValidationErrorDto';
|
|
835
845
|
export type { DeveloperVersionActivationDto } from './schemas/DeveloperVersionActivationDto';
|
|
@@ -942,6 +952,16 @@ export type { IntegrationSummary } from './schemas/IntegrationSummary';
|
|
|
942
952
|
export type { IntegrationUser } from './schemas/IntegrationUser';
|
|
943
953
|
export type { IntegrationUserInfo } from './schemas/IntegrationUserInfo';
|
|
944
954
|
export type { IntegrationWithValuesDto } from './schemas/IntegrationWithValuesDto';
|
|
955
|
+
export type { InternalAiSpendCollisionGroup } from './schemas/InternalAiSpendCollisionGroup';
|
|
956
|
+
export type { InternalAiSpendDeveloperRow } from './schemas/InternalAiSpendDeveloperRow';
|
|
957
|
+
export type { InternalAiSpendMetadata } from './schemas/InternalAiSpendMetadata';
|
|
958
|
+
export type { InternalAiSpendRequest } from './schemas/InternalAiSpendRequest';
|
|
959
|
+
export type { InternalAiSpendSeriesPoint } from './schemas/InternalAiSpendSeriesPoint';
|
|
960
|
+
export type { InternalAiSpendSeriesRequest } from './schemas/InternalAiSpendSeriesRequest';
|
|
961
|
+
export type { InternalAiSpendSeriesResponse } from './schemas/InternalAiSpendSeriesResponse';
|
|
962
|
+
export type { InternalAiSpendToolBreakdown } from './schemas/InternalAiSpendToolBreakdown';
|
|
963
|
+
export type { InternalAiSpendToolSeriesRow } from './schemas/InternalAiSpendToolSeriesRow';
|
|
964
|
+
export type { InternalAiSpendTotalResponse } from './schemas/InternalAiSpendTotalResponse';
|
|
945
965
|
export type { IssueRequest } from './schemas/IssueRequest';
|
|
946
966
|
export type { IssueTimeInStatusExportRequestDto } from './schemas/IssueTimeInStatusExportRequestDto';
|
|
947
967
|
export type { IssueTimeInStatusExportResponseDto } from './schemas/IssueTimeInStatusExportResponseDto';
|
|
@@ -1094,6 +1114,11 @@ export type { SecurityStatsDrilldownResponseDto } from './schemas/SecurityStatsD
|
|
|
1094
1114
|
export type { SecurityStatsRequest } from './schemas/SecurityStatsRequest';
|
|
1095
1115
|
export type { SecurityStatsTrendResponseDto } from './schemas/SecurityStatsTrendResponseDto';
|
|
1096
1116
|
export type { SegmentSummary } from './schemas/SegmentSummary';
|
|
1117
|
+
export type { SessionFeedResponse } from './schemas/SessionFeedResponse';
|
|
1118
|
+
export type { SessionFeedSummary } from './schemas/SessionFeedSummary';
|
|
1119
|
+
export type { SessionFragment } from './schemas/SessionFragment';
|
|
1120
|
+
export type { SessionListResponse } from './schemas/SessionListResponse';
|
|
1121
|
+
export type { SessionSummary } from './schemas/SessionSummary';
|
|
1097
1122
|
export type { SeverityCounts } from './schemas/SeverityCounts';
|
|
1098
1123
|
export type { SeverityData } from './schemas/SeverityData';
|
|
1099
1124
|
export type { SeveritySummaryData } from './schemas/SeveritySummaryData';
|
|
@@ -21,6 +21,7 @@ export { aiEngineeringControllerGetProductivityDrilldown, useAiEngineeringContro
|
|
|
21
21
|
export { aiEngineeringControllerGetProductivitySummary, useAiEngineeringControllerGetProductivitySummaryQuery, } from './hooks/useAiEngineeringControllerGetProductivitySummaryQuery';
|
|
22
22
|
export { aiEngineeringControllerGetRolesCatalog, useAiEngineeringControllerGetRolesCatalogQuery, } from './hooks/useAiEngineeringControllerGetRolesCatalogQuery';
|
|
23
23
|
export { aiEngineeringControllerGetScorecards, useAiEngineeringControllerGetScorecardsQuery, } from './hooks/useAiEngineeringControllerGetScorecardsQuery';
|
|
24
|
+
export { aiEngineeringControllerGetSessionFeed, useAiEngineeringControllerGetSessionFeedQuery, } from './hooks/useAiEngineeringControllerGetSessionFeedQuery';
|
|
24
25
|
export { aiEngineeringControllerGetToolCallCategoriesCatalog, useAiEngineeringControllerGetToolCallCategoriesCatalogQuery, } from './hooks/useAiEngineeringControllerGetToolCallCategoriesCatalogQuery';
|
|
25
26
|
export { aiEngineeringControllerGetWorkItemLinkedPrs, useAiEngineeringControllerGetWorkItemLinkedPrsQuery, } from './hooks/useAiEngineeringControllerGetWorkItemLinkedPrsQuery';
|
|
26
27
|
export { aiEngineeringControllerGetWorkTypesCatalog, useAiEngineeringControllerGetWorkTypesCatalogQuery, } from './hooks/useAiEngineeringControllerGetWorkTypesCatalogQuery';
|
|
@@ -210,6 +211,8 @@ export { integrationStatsControllerGetWindsurfEventsCount, useIntegrationStatsCo
|
|
|
210
211
|
export { integrationStatsControllerGetWindsurfEventsCountWithDateRange, useIntegrationStatsControllerGetWindsurfEventsCountWithDateRangeMutation, } from './hooks/useIntegrationStatsControllerGetWindsurfEventsCountWithDateRangeMutation';
|
|
211
212
|
export { integrationStatsControllerGetWindsurfUsersCount, useIntegrationStatsControllerGetWindsurfUsersCountQuery, } from './hooks/useIntegrationStatsControllerGetWindsurfUsersCountQuery';
|
|
212
213
|
export { integrationStatsControllerGetWindsurfUsersCountWithDateRange, useIntegrationStatsControllerGetWindsurfUsersCountWithDateRangeMutation, } from './hooks/useIntegrationStatsControllerGetWindsurfUsersCountWithDateRangeMutation';
|
|
214
|
+
export { internalAiEngineeringControllerGetSpendSeries, useInternalAiEngineeringControllerGetSpendSeriesMutation, } from './hooks/useInternalAiEngineeringControllerGetSpendSeriesMutation';
|
|
215
|
+
export { internalAiEngineeringControllerGetSpendTotal, useInternalAiEngineeringControllerGetSpendTotalMutation, } from './hooks/useInternalAiEngineeringControllerGetSpendTotalMutation';
|
|
213
216
|
export { issueTimeInStatusExportControllerCreateExport, useIssueTimeInStatusExportControllerCreateExportMutation, } from './hooks/useIssueTimeInStatusExportControllerCreateExportMutation';
|
|
214
217
|
export { issueTimeInStatusExportControllerDownloadExport, useIssueTimeInStatusExportControllerDownloadExportQuery, } from './hooks/useIssueTimeInStatusExportControllerDownloadExportQuery';
|
|
215
218
|
export { issueTimeInStatusExportControllerGetExportStatus, useIssueTimeInStatusExportControllerGetExportStatusQuery, } from './hooks/useIssueTimeInStatusExportControllerGetExportStatusQuery';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { SessionFeedResponse } from '../schemas/SessionFeedResponse';
|
|
2
|
+
export interface ApiResponseSessionFeedResponse {
|
|
3
|
+
/**
|
|
4
|
+
* Endpoint-specific payload (template DTOs, lists, aggregates, etc.)
|
|
5
|
+
*/
|
|
6
|
+
data?: SessionFeedResponse;
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { SessionListResponse } from '../schemas/SessionListResponse';
|
|
2
|
+
export interface ApiResponseSessionListResponse {
|
|
3
|
+
/**
|
|
4
|
+
* Endpoint-specific payload (template DTOs, lists, aggregates, etc.)
|
|
5
|
+
*/
|
|
6
|
+
data?: SessionListResponse;
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { InternalAiSpendSeriesPoint } from '../schemas/InternalAiSpendSeriesPoint';
|
|
2
|
+
/**
|
|
3
|
+
* Developer's time series spend on a specific tool
|
|
4
|
+
*/
|
|
5
|
+
export interface DeveloperToolSeries {
|
|
6
|
+
/**
|
|
7
|
+
* Developer email
|
|
8
|
+
* @example "alice@company.com"
|
|
9
|
+
*/
|
|
10
|
+
email?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Time series data points for this developer's spend on this tool
|
|
13
|
+
*/
|
|
14
|
+
points?: InternalAiSpendSeriesPoint[];
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Developer's spend on a specific tool
|
|
3
|
+
*/
|
|
4
|
+
export interface DeveloperToolSpend {
|
|
5
|
+
/**
|
|
6
|
+
* Developer email
|
|
7
|
+
* @example "alice@company.com"
|
|
8
|
+
*/
|
|
9
|
+
email?: string;
|
|
10
|
+
/**
|
|
11
|
+
* This developer's spend on this tool in USD
|
|
12
|
+
* @example 80
|
|
13
|
+
*/
|
|
14
|
+
spendDollars?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Group of normalized emails that resolve to the same canonical email
|
|
3
|
+
*/
|
|
4
|
+
export interface InternalAiSpendCollisionGroup {
|
|
5
|
+
/**
|
|
6
|
+
* List of input emails that resolved to this canonical email
|
|
7
|
+
* @example ["Alice@harness.io","alice@HARNESS.io"]
|
|
8
|
+
*/
|
|
9
|
+
normalizedEmails?: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Canonical resolved email address
|
|
12
|
+
* @example "alice@company.com"
|
|
13
|
+
*/
|
|
14
|
+
resolvedEmail?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { InternalAiSpendSeriesPoint } from '../schemas/InternalAiSpendSeriesPoint';
|
|
2
|
+
/**
|
|
3
|
+
* Developer spend row for both total and series responses (groupable by email or tool)
|
|
4
|
+
*/
|
|
5
|
+
export interface InternalAiSpendDeveloperRow {
|
|
6
|
+
/**
|
|
7
|
+
* Developer email (when grouped by email; null if grouped by tool)
|
|
8
|
+
* @example "Alice@harness.io"
|
|
9
|
+
*/
|
|
10
|
+
email?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Time series data points for this developer/tool (series response only)
|
|
13
|
+
*/
|
|
14
|
+
points?: InternalAiSpendSeriesPoint[];
|
|
15
|
+
/**
|
|
16
|
+
* Tool/agent name (when grouped by tool; null if grouped by email)
|
|
17
|
+
* @example "claude"
|
|
18
|
+
*/
|
|
19
|
+
tool?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Total spend in dollars for this developer/tool (total response only)
|
|
22
|
+
* @example 123.45
|
|
23
|
+
*/
|
|
24
|
+
totalSpendDollars?: number;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { InternalAiSpendCollisionGroup } from '../schemas/InternalAiSpendCollisionGroup';
|
|
2
|
+
/**
|
|
3
|
+
* Metadata about email resolution and collisions
|
|
4
|
+
*/
|
|
5
|
+
export interface InternalAiSpendMetadata {
|
|
6
|
+
/**
|
|
7
|
+
* Groups of emails that collided (resolved to the same canonical email)
|
|
8
|
+
*/
|
|
9
|
+
collisionGroups?: InternalAiSpendCollisionGroup[];
|
|
10
|
+
/**
|
|
11
|
+
* List of emails that could not be resolved
|
|
12
|
+
*/
|
|
13
|
+
unresolvedEmails?: string[];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request for internal AI spend by email or tool - total aggregate
|
|
3
|
+
*/
|
|
4
|
+
export interface InternalAiSpendRequest {
|
|
5
|
+
dateRangeValid?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* List of developer emails (optional if tool is provided). If null or empty, defaults to account-wide aggregation when tool is also provided
|
|
8
|
+
* @example ["alice@company.com","bob@company.com"]
|
|
9
|
+
*/
|
|
10
|
+
emails?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* End date (inclusive)
|
|
13
|
+
* @format date
|
|
14
|
+
* @example "2026-01-31"
|
|
15
|
+
*/
|
|
16
|
+
endDate: string;
|
|
17
|
+
/**
|
|
18
|
+
* Tool/agent ID (optional). If provided, filters the spendByTool breakdown to return only this tool. Note: Different from 'tool' parameter - this filters breakdown results, not the main grouping mode
|
|
19
|
+
* @example "claude"
|
|
20
|
+
*/
|
|
21
|
+
filterByTool?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Start date (inclusive)
|
|
24
|
+
* @format date
|
|
25
|
+
* @example "2026-01-01"
|
|
26
|
+
*/
|
|
27
|
+
startDate: string;
|
|
28
|
+
/**
|
|
29
|
+
* Tool/agent ID (optional). If provided, spend is grouped by tool instead of developer email
|
|
30
|
+
* @example "claude"
|
|
31
|
+
*/
|
|
32
|
+
tool?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time series point for spend
|
|
3
|
+
*/
|
|
4
|
+
export interface InternalAiSpendSeriesPoint {
|
|
5
|
+
/**
|
|
6
|
+
* Date for this point
|
|
7
|
+
* @format date
|
|
8
|
+
* @example "2026-01-01"
|
|
9
|
+
*/
|
|
10
|
+
date?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Spend in dollars for this date
|
|
13
|
+
* @example 12.34
|
|
14
|
+
*/
|
|
15
|
+
spendDollars?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request for internal AI spend by email or tool - time series
|
|
3
|
+
*/
|
|
4
|
+
export interface InternalAiSpendSeriesRequest {
|
|
5
|
+
dateRangeValid?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* List of developer emails (optional if tool is provided). If null or empty, defaults to account-wide aggregation when tool is also provided
|
|
8
|
+
* @example ["alice@company.com","bob@company.com"]
|
|
9
|
+
*/
|
|
10
|
+
emails?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* End date (inclusive)
|
|
13
|
+
* @format date
|
|
14
|
+
* @example "2026-01-31"
|
|
15
|
+
*/
|
|
16
|
+
endDate: string;
|
|
17
|
+
/**
|
|
18
|
+
* Time series granularity
|
|
19
|
+
* @example "DAILY"
|
|
20
|
+
*/
|
|
21
|
+
granularity: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY';
|
|
22
|
+
/**
|
|
23
|
+
* Start date (inclusive)
|
|
24
|
+
* @format date
|
|
25
|
+
* @example "2026-01-01"
|
|
26
|
+
*/
|
|
27
|
+
startDate: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { InternalAiSpendDeveloperRow } from '../schemas/InternalAiSpendDeveloperRow';
|
|
2
|
+
import type { InternalAiSpendMetadata } from '../schemas/InternalAiSpendMetadata';
|
|
3
|
+
import type { InternalAiSpendToolSeriesRow } from '../schemas/InternalAiSpendToolSeriesRow';
|
|
4
|
+
/**
|
|
5
|
+
* Response for time series spend by email
|
|
6
|
+
*/
|
|
7
|
+
export interface InternalAiSpendSeriesResponse {
|
|
8
|
+
/**
|
|
9
|
+
* List of developers with their time series data
|
|
10
|
+
*/
|
|
11
|
+
developers?: InternalAiSpendDeveloperRow[];
|
|
12
|
+
/**
|
|
13
|
+
* Metadata about email resolution
|
|
14
|
+
*/
|
|
15
|
+
metadata?: InternalAiSpendMetadata;
|
|
16
|
+
/**
|
|
17
|
+
* Breakdown of spend time series by tool/agent
|
|
18
|
+
*/
|
|
19
|
+
seriesByTool?: InternalAiSpendToolSeriesRow[];
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DeveloperToolSpend } from '../schemas/DeveloperToolSpend';
|
|
2
|
+
/**
|
|
3
|
+
* Tool/agent spend breakdown with optional per-developer details
|
|
4
|
+
*/
|
|
5
|
+
export interface InternalAiSpendToolBreakdown {
|
|
6
|
+
/**
|
|
7
|
+
* Per-developer spend breakdown for this tool (when filtering by specific developers)
|
|
8
|
+
* @example [{"email":"alice@company.com","spend":80},{"email":"bob@company.com","spend":43.45}]
|
|
9
|
+
*/
|
|
10
|
+
developersSpend?: DeveloperToolSpend[];
|
|
11
|
+
/**
|
|
12
|
+
* Total spend for this tool in USD
|
|
13
|
+
* @example 123.45
|
|
14
|
+
*/
|
|
15
|
+
spendDollars?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Tool/agent name
|
|
18
|
+
* @example "claude"
|
|
19
|
+
*/
|
|
20
|
+
tool?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DeveloperToolSeries } from '../schemas/DeveloperToolSeries';
|
|
2
|
+
import type { InternalAiSpendSeriesPoint } from '../schemas/InternalAiSpendSeriesPoint';
|
|
3
|
+
/**
|
|
4
|
+
* Tool row with time series spend points and optional per-developer series
|
|
5
|
+
*/
|
|
6
|
+
export interface InternalAiSpendToolSeriesRow {
|
|
7
|
+
/**
|
|
8
|
+
* Per-developer time series breakdown for this tool (when filtering by specific developers)
|
|
9
|
+
* @example "[{\"email\":\"alice@company.com\",\"points\":[...]},{\"email\":\"bob@company.com\",\"points\":[...]}]"
|
|
10
|
+
*/
|
|
11
|
+
developersSeries?: DeveloperToolSeries[];
|
|
12
|
+
/**
|
|
13
|
+
* Total time series data points for this tool
|
|
14
|
+
*/
|
|
15
|
+
points?: InternalAiSpendSeriesPoint[];
|
|
16
|
+
/**
|
|
17
|
+
* Tool/agent name
|
|
18
|
+
* @example "claude"
|
|
19
|
+
*/
|
|
20
|
+
tool?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { InternalAiSpendDeveloperRow } from '../schemas/InternalAiSpendDeveloperRow';
|
|
2
|
+
import type { InternalAiSpendMetadata } from '../schemas/InternalAiSpendMetadata';
|
|
3
|
+
import type { InternalAiSpendToolBreakdown } from '../schemas/InternalAiSpendToolBreakdown';
|
|
4
|
+
/**
|
|
5
|
+
* Response for total spend by email
|
|
6
|
+
*/
|
|
7
|
+
export interface InternalAiSpendTotalResponse {
|
|
8
|
+
/**
|
|
9
|
+
* List of developers with their total spend
|
|
10
|
+
*/
|
|
11
|
+
developers?: InternalAiSpendDeveloperRow[];
|
|
12
|
+
/**
|
|
13
|
+
* Metadata about email resolution
|
|
14
|
+
*/
|
|
15
|
+
metadata?: InternalAiSpendMetadata;
|
|
16
|
+
/**
|
|
17
|
+
* Breakdown of spend by tool/agent
|
|
18
|
+
*/
|
|
19
|
+
spendByTool?: InternalAiSpendToolBreakdown[];
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -18,4 +18,8 @@ export interface ItsmCustomFieldDto {
|
|
|
18
18
|
* Record type indicating whether this field belongs to an Incident or Change Request
|
|
19
19
|
*/
|
|
20
20
|
recordType?: 'CHANGE_REQUEST' | 'INCIDENT';
|
|
21
|
+
/**
|
|
22
|
+
* Source of the field in incident_field_value: 'attribute' (lives in the attributes JSON map) or 'custom_field' (lives in the custom_fields JSON map). Null when unknown.
|
|
23
|
+
*/
|
|
24
|
+
source?: string;
|
|
21
25
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { SessionFragment } from '../schemas/SessionFragment';
|
|
2
|
+
import type { PaginationInfo } from '../schemas/PaginationInfo';
|
|
3
|
+
import type { SessionFeedSummary } from '../schemas/SessionFeedSummary';
|
|
4
|
+
/**
|
|
5
|
+
* Session feed with chronological fragments and summary
|
|
6
|
+
*/
|
|
7
|
+
export interface SessionFeedResponse {
|
|
8
|
+
/**
|
|
9
|
+
* Agent used in session (claude or cursor)
|
|
10
|
+
*/
|
|
11
|
+
agent?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Session end time
|
|
14
|
+
* @format date-time
|
|
15
|
+
*/
|
|
16
|
+
endedAt?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Chronologically ordered fragments
|
|
19
|
+
*/
|
|
20
|
+
fragments?: SessionFragment[];
|
|
21
|
+
/**
|
|
22
|
+
* Pagination metadata
|
|
23
|
+
*/
|
|
24
|
+
pagination?: PaginationInfo;
|
|
25
|
+
/**
|
|
26
|
+
* Project name
|
|
27
|
+
*/
|
|
28
|
+
project?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Unique session ID
|
|
31
|
+
* @format uuid
|
|
32
|
+
*/
|
|
33
|
+
sessionId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Session start time
|
|
36
|
+
* @format date-time
|
|
37
|
+
*/
|
|
38
|
+
startedAt?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Session summary with rollups
|
|
41
|
+
*/
|
|
42
|
+
summary?: SessionFeedSummary;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rollup summary for session feed
|
|
3
|
+
*/
|
|
4
|
+
export interface SessionFeedSummary {
|
|
5
|
+
/**
|
|
6
|
+
* Total active time in seconds
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
durationActiveSec?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Total idle time in seconds
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
durationIdleSec?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Total fragments in session
|
|
17
|
+
* @format int64
|
|
18
|
+
*/
|
|
19
|
+
fragmentCount?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Git branches touched
|
|
22
|
+
*/
|
|
23
|
+
gitBranches?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Agents used in session
|
|
26
|
+
*/
|
|
27
|
+
tools?: string[];
|
|
28
|
+
/**
|
|
29
|
+
* Total API calls
|
|
30
|
+
* @format int64
|
|
31
|
+
*/
|
|
32
|
+
totalApiCalls?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Total cost in millicents
|
|
35
|
+
* @format int64
|
|
36
|
+
*/
|
|
37
|
+
totalCostMillicents?: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Individual fragment in a session feed
|
|
3
|
+
*/
|
|
4
|
+
export interface SessionFragment {
|
|
5
|
+
/**
|
|
6
|
+
* API calls made
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
apiCallCount?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Cost in millicents
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
costMillicents?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Fragment duration in seconds
|
|
17
|
+
* @format int64
|
|
18
|
+
*/
|
|
19
|
+
durationSec?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Fragment end time
|
|
22
|
+
* @format date-time
|
|
23
|
+
*/
|
|
24
|
+
end?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Number of errors in fragment
|
|
27
|
+
* @format int64
|
|
28
|
+
*/
|
|
29
|
+
errorCount?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Files edited in this fragment
|
|
32
|
+
*/
|
|
33
|
+
filesEdited?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* Files read in this fragment
|
|
36
|
+
*/
|
|
37
|
+
filesRead?: string[];
|
|
38
|
+
/**
|
|
39
|
+
* 0-based index of fragment within session, ordered by start time
|
|
40
|
+
* @format int32
|
|
41
|
+
*/
|
|
42
|
+
fragmentIndex?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Git branch
|
|
45
|
+
*/
|
|
46
|
+
gitBranch?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Lines added (cumulative per model within session)
|
|
49
|
+
* @format int64
|
|
50
|
+
*/
|
|
51
|
+
linesAdded?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Whether lines are cumulative within the run
|
|
54
|
+
* @example true
|
|
55
|
+
*/
|
|
56
|
+
linesAreCumulative?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Lines edited (cumulative per model within session)
|
|
59
|
+
* @format int64
|
|
60
|
+
*/
|
|
61
|
+
linesEdited?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Lines removed (cumulative per model within session)
|
|
64
|
+
* @format int64
|
|
65
|
+
*/
|
|
66
|
+
linesRemoved?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Model used
|
|
69
|
+
*/
|
|
70
|
+
model?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Skills used in this fragment
|
|
73
|
+
*/
|
|
74
|
+
skillsUsed?: string[];
|
|
75
|
+
/**
|
|
76
|
+
* Fragment start time
|
|
77
|
+
* @format date-time
|
|
78
|
+
*/
|
|
79
|
+
start?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Agent used (claude or cursor)
|
|
82
|
+
*/
|
|
83
|
+
tool?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Tool usage breakdown by tool name and count
|
|
86
|
+
*/
|
|
87
|
+
toolUseBreakdown?: {
|
|
88
|
+
[key: string]: number;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Whether fragment was aborted
|
|
92
|
+
*/
|
|
93
|
+
wasAborted?: boolean;
|
|
94
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PaginationInfo } from '../schemas/PaginationInfo';
|
|
2
|
+
import type { SessionSummary } from '../schemas/SessionSummary';
|
|
3
|
+
/**
|
|
4
|
+
* Paginated list of sessions for a user
|
|
5
|
+
*/
|
|
6
|
+
export interface SessionListResponse {
|
|
7
|
+
/**
|
|
8
|
+
* Pagination metadata
|
|
9
|
+
*/
|
|
10
|
+
pagination?: PaginationInfo;
|
|
11
|
+
/**
|
|
12
|
+
* Sessions for the user
|
|
13
|
+
*/
|
|
14
|
+
sessions?: SessionSummary[];
|
|
15
|
+
/**
|
|
16
|
+
* User email queried
|
|
17
|
+
*/
|
|
18
|
+
userEmail?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session summary for list view
|
|
3
|
+
*/
|
|
4
|
+
export interface SessionSummary {
|
|
5
|
+
/**
|
|
6
|
+
* Total active time in seconds (sum of fragment durations)
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
durationActiveSec?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Total idle time in seconds (gaps between fragments)
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
durationIdleSec?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Session end time
|
|
17
|
+
* @format date-time
|
|
18
|
+
*/
|
|
19
|
+
endedAt?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Number of fragments in session
|
|
22
|
+
* @format int32
|
|
23
|
+
*/
|
|
24
|
+
fragmentCount?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Git branches touched
|
|
27
|
+
*/
|
|
28
|
+
gitBranches?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Whether session had errors
|
|
31
|
+
*/
|
|
32
|
+
hadErrors?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Models used
|
|
35
|
+
*/
|
|
36
|
+
modelsUsed?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Primary/dominant model used in session
|
|
39
|
+
*/
|
|
40
|
+
primaryModel?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Project name
|
|
43
|
+
*/
|
|
44
|
+
project?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Unique session ID
|
|
47
|
+
* @format uuid
|
|
48
|
+
*/
|
|
49
|
+
sessionId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Session start time
|
|
52
|
+
* @format date-time
|
|
53
|
+
*/
|
|
54
|
+
startedAt?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Agents used in session (claude, cursor)
|
|
57
|
+
*/
|
|
58
|
+
tools?: string[];
|
|
59
|
+
/**
|
|
60
|
+
* Total API calls
|
|
61
|
+
* @format int64
|
|
62
|
+
*/
|
|
63
|
+
totalApiCalls?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Total cost in millicents
|
|
66
|
+
* @format int64
|
|
67
|
+
*/
|
|
68
|
+
totalCostMillicents?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Total lines added (sum across all runs)
|
|
71
|
+
* @format int64
|
|
72
|
+
*/
|
|
73
|
+
totalLinesAdded?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Total lines edited (sum across all runs)
|
|
76
|
+
* @format int64
|
|
77
|
+
*/
|
|
78
|
+
totalLinesEdited?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Total lines removed (sum across all runs)
|
|
81
|
+
* @format int64
|
|
82
|
+
*/
|
|
83
|
+
totalLinesRemoved?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Whether session was aborted
|
|
86
|
+
*/
|
|
87
|
+
wasAborted?: boolean;
|
|
88
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-sei-panorama-service-client",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.16",
|
|
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",
|