@beanx/cathygo-protocol 0.1.1 → 0.1.2
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/index.d.ts +13 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -59,8 +59,12 @@ type LearningTurnEventPayload = {
|
|
|
59
59
|
input_mode?: "text" | "image" | "text_image" | string;
|
|
60
60
|
required_model_capabilities?: string[];
|
|
61
61
|
message_id?: string;
|
|
62
|
+
role?: "user" | "assistant" | "system";
|
|
62
63
|
delta?: string;
|
|
63
64
|
message?: string;
|
|
65
|
+
parts?: ConversationMessagePart[];
|
|
66
|
+
metadata?: Record<string, unknown>;
|
|
67
|
+
created_at?: string;
|
|
64
68
|
blocks?: unknown[];
|
|
65
69
|
status?: "accepted" | "idle" | "running" | "stopping" | "completed" | "failed" | "cancelled" | string;
|
|
66
70
|
reason?: string;
|
|
@@ -78,7 +82,7 @@ type LearningTurnEventPayload = {
|
|
|
78
82
|
};
|
|
79
83
|
type LearningTurnEvent = {
|
|
80
84
|
type: "event";
|
|
81
|
-
event: "session.created" | "session.deleted" | "session.input.accepted" | "session.stop.requested" | "turn.started" | "assistant.delta" | "assistant.completed" | "turn.completed" | "turn.failed" | "turn.cancelled" | "agent.activity.started" | "agent.activity.updated" | "agent.activity.completed" | "agent.progress.delta" | `debug.${string}` | `experimental.${string}`;
|
|
85
|
+
event: "session.created" | "session.deleted" | "session.input.accepted" | "session.stop.requested" | "user.message.created" | "turn.started" | "assistant.delta" | "assistant.completed" | "turn.completed" | "turn.failed" | "turn.cancelled" | "agent.activity.started" | "agent.activity.updated" | "agent.activity.completed" | "agent.progress.delta" | `debug.${string}` | `experimental.${string}`;
|
|
82
86
|
seq: number;
|
|
83
87
|
payload: LearningTurnEventPayload;
|
|
84
88
|
};
|
|
@@ -175,6 +179,7 @@ interface ConversationMessage {
|
|
|
175
179
|
parts?: ConversationMessagePart[];
|
|
176
180
|
turn_id?: string | null;
|
|
177
181
|
created_at: string;
|
|
182
|
+
metadata?: Record<string, unknown>;
|
|
178
183
|
}
|
|
179
184
|
interface ConversationDetail {
|
|
180
185
|
session: ConversationSummary & {
|
|
@@ -211,6 +216,13 @@ interface GatewayAttachment {
|
|
|
211
216
|
width?: number | null;
|
|
212
217
|
height?: number | null;
|
|
213
218
|
created_at?: string | null;
|
|
219
|
+
thumbnail?: GatewayAttachmentThumbnail | null;
|
|
220
|
+
}
|
|
221
|
+
interface GatewayAttachmentThumbnail {
|
|
222
|
+
mime_type: string;
|
|
223
|
+
data_base64: string;
|
|
224
|
+
width?: number | null;
|
|
225
|
+
height?: number | null;
|
|
214
226
|
}
|
|
215
227
|
interface ConversationMessagePart {
|
|
216
228
|
id?: string;
|