teodor-new-chat-ui 4.3.554 → 4.3.556

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.
@@ -89,7 +89,15 @@ export type MessageStreamEvent = {
89
89
  delta: MessagePart[];
90
90
  } | {
91
91
  type: "message.end";
92
- } | ToolProgressEvent;
92
+ } | ToolProgressEvent | {
93
+ type: "messages/partial";
94
+ messages: Array<{
95
+ content: string;
96
+ id: string;
97
+ type: string;
98
+ response_metadata?: Record<string, unknown>;
99
+ }>;
100
+ };
93
101
  export type ThreadStreamEvent = {
94
102
  type: "thread_info";
95
103
  threadId: string;
@@ -128,7 +136,16 @@ export type SystemStreamEvent = {
128
136
  } | ({
129
137
  type: "state_history";
130
138
  seq?: number;
131
- } & HistoryPayload);
139
+ } & HistoryPayload) | {
140
+ type: "metadata";
141
+ threadId?: string;
142
+ status?: string;
143
+ runId?: string;
144
+ } | {
145
+ type: "updates";
146
+ tools?: Record<string, unknown>;
147
+ [key: string]: unknown;
148
+ };
132
149
  export type ThreadInfoEvent = Extract<ThreadStreamEvent, {
133
150
  type: "thread_info";
134
151
  }>;