generated-types.ts

 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  heartbeat?: boolean;
53}
54
55export interface ConversationWithStateForTS {
56  conversation_id: string;
57  slug: string | null;
58  user_initiated: boolean;
59  created_at: string;
60  updated_at: string;
61  cwd: string | null;
62  archived: boolean;
63  parent_conversation_id: string | null;
64  model: string | null;
65  working: boolean;
66}
67
68export type MessageType = "user" | "agent" | "tool" | "error" | "system" | "gitinfo";