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 model: string | null;
16}
17
18export interface Usage {
19 input_tokens: number;
20 cache_creation_input_tokens: number;
21 cache_read_input_tokens: number;
22 output_tokens: number;
23 cost_usd: number;
24 model?: string;
25 start_time?: string | null;
26 end_time?: string | null;
27}
28
29export interface ApiMessageForTS {
30 message_id: string;
31 conversation_id: string;
32 sequence_id: number;
33 type: string;
34 llm_data?: string | null;
35 user_data?: string | null;
36 usage_data?: string | null;
37 created_at: string;
38 display_data?: string | null;
39 end_of_turn?: boolean | null;
40}
41
42export interface ConversationStateForTS {
43 conversation_id: string;
44 working: boolean;
45 model?: string;
46}
47
48export interface StreamResponseForTS {
49 messages: ApiMessageForTS[] | null;
50 conversation: Conversation;
51 conversation_state?: ConversationStateForTS | null;
52}
53
54export interface ConversationWithStateForTS {
55 conversation_id: string;
56 slug: string | null;
57 user_initiated: boolean;
58 created_at: string;
59 updated_at: string;
60 cwd: string | null;
61 archived: boolean;
62 parent_conversation_id: string | null;
63 model: string | null;
64 working: boolean;
65}
66
67export type MessageType = "user" | "agent" | "tool" | "error" | "system" | "gitinfo";