@harnessio/react-sei-panorama-service-client 0.31.15 → 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/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/index.d.ts +9 -0
- package/dist/sei-panorama-service/src/services/index.js +1 -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/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/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
|
+
}
|
|
@@ -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
|
}
|
|
@@ -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';
|
|
@@ -734,6 +736,8 @@ export type { ApiResponseMetricBreakdownData } from './schemas/ApiResponseMetric
|
|
|
734
736
|
export type { ApiResponseOptimizationItem } from './schemas/ApiResponseOptimizationItem';
|
|
735
737
|
export type { ApiResponseOptimizationListData } from './schemas/ApiResponseOptimizationListData';
|
|
736
738
|
export type { ApiResponseScorecardData } from './schemas/ApiResponseScorecardData';
|
|
739
|
+
export type { ApiResponseSessionFeedResponse } from './schemas/ApiResponseSessionFeedResponse';
|
|
740
|
+
export type { ApiResponseSessionListResponse } from './schemas/ApiResponseSessionListResponse';
|
|
737
741
|
export type { ApiResponseTimeSeriesTemplate } from './schemas/ApiResponseTimeSeriesTemplate';
|
|
738
742
|
export type { ApiResponseWorkItemLinkedPrsResponse } from './schemas/ApiResponseWorkItemLinkedPrsResponse';
|
|
739
743
|
export type { ApiResponseWrapper } from './schemas/ApiResponseWrapper';
|
|
@@ -1110,6 +1114,11 @@ export type { SecurityStatsDrilldownResponseDto } from './schemas/SecurityStatsD
|
|
|
1110
1114
|
export type { SecurityStatsRequest } from './schemas/SecurityStatsRequest';
|
|
1111
1115
|
export type { SecurityStatsTrendResponseDto } from './schemas/SecurityStatsTrendResponseDto';
|
|
1112
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';
|
|
1113
1122
|
export type { SeverityCounts } from './schemas/SeverityCounts';
|
|
1114
1123
|
export type { SeverityData } from './schemas/SeverityData';
|
|
1115
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';
|
|
@@ -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,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",
|