1// Auto-generated by shelley.exe.dev/cmd/go2ts.go
2// Do not edit manually - regenerate with: go run ./cmd/go2ts -o ui/src/generated-types.ts
3
4// DO NOT EDIT. This file is automatically generated.
5
6export interface Conversation {
7 conversation_id: string;
8 slug: string | null;
9 user_initiated: boolean;
10 created_at: string;
11 updated_at: string;
12 cwd: string | null;
13 archived: boolean;
14 parent_conversation_id: string | null;
15}
16
17export interface Usage {
18 input_tokens: number;
19 cache_creation_input_tokens: number;
20 cache_read_input_tokens: number;
21 output_tokens: number;
22 cost_usd: number;
23 model?: string;
24 start_time?: string | null;
25 end_time?: string | null;
26}
27
28export interface ApiMessageForTS {
29 message_id: string;
30 conversation_id: string;
31 sequence_id: number;
32 type: string;
33 llm_data?: string | null;
34 user_data?: string | null;
35 usage_data?: string | null;
36 created_at: string;
37 display_data?: string | null;
38 end_of_turn?: boolean | null;
39}
40
41export interface ConversationStateForTS {
42 conversation_id: string;
43 working: boolean;
44}
45
46export interface StreamResponseForTS {
47 messages: ApiMessageForTS[] | null;
48 conversation: Conversation;
49 conversation_state?: ConversationStateForTS | null;
50}
51
52export interface ConversationWithStateForTS {
53 conversation_id: string;
54 slug: string | null;
55 user_initiated: boolean;
56 created_at: string;
57 updated_at: string;
58 cwd: string | null;
59 archived: boolean;
60 parent_conversation_id: string | null;
61 working: boolean;
62}
63
64export type MessageType = 'user' | 'agent' | 'tool' | 'error' | 'system' | 'gitinfo';