@standardagents/client 0.10.1-dev.cea2b66 → 0.10.1-dev.d2d335e
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 +28 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,32 @@ interface ThreadFile {
|
|
|
52
52
|
height?: number;
|
|
53
53
|
messageId?: string;
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Pending attachment waiting to be sent with a message.
|
|
57
|
+
* These are NOT uploaded until sendMessage() is called.
|
|
58
|
+
*/
|
|
59
|
+
interface PendingAttachment {
|
|
60
|
+
id: string;
|
|
61
|
+
file: File;
|
|
62
|
+
name: string;
|
|
63
|
+
mimeType: string;
|
|
64
|
+
size: number;
|
|
65
|
+
isImage: boolean;
|
|
66
|
+
previewUrl: string | null;
|
|
67
|
+
width?: number;
|
|
68
|
+
height?: number;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Attachment payload sent with sendMessage API.
|
|
72
|
+
* Contains base64-encoded file data.
|
|
73
|
+
*/
|
|
74
|
+
interface AttachmentPayload {
|
|
75
|
+
name: string;
|
|
76
|
+
mimeType: string;
|
|
77
|
+
data: string;
|
|
78
|
+
width?: number;
|
|
79
|
+
height?: number;
|
|
80
|
+
}
|
|
55
81
|
interface WorkItem {
|
|
56
82
|
id: string;
|
|
57
83
|
type: "tool_call" | "tool_result";
|
|
@@ -126,7 +152,7 @@ interface SendMessagePayload {
|
|
|
126
152
|
role: "user" | "assistant" | "system";
|
|
127
153
|
content: string;
|
|
128
154
|
silent?: boolean;
|
|
129
|
-
attachments?:
|
|
155
|
+
attachments?: AttachmentPayload[];
|
|
130
156
|
}
|
|
131
157
|
interface Thread {
|
|
132
158
|
id: string;
|
|
@@ -474,4 +500,4 @@ declare function generatePendingFileId(): string;
|
|
|
474
500
|
*/
|
|
475
501
|
declare function readFileAsDataUrl(file: File): Promise<string>;
|
|
476
502
|
|
|
477
|
-
export { AgentBuilderClient, type AgentBuilderConfig, type AttachmentRef, type ConnectionStatus, type CreateThreadPayload, type CustomEvent, type ErrorEvent, type FileUpdateCallback, FileUploadManager, type GetMessagesOptions, type ImageProcessingResult, type LogDataEvent, type LogStreamEvent, type LogWebSocketCallbacks, type Message, type MessageChunkEvent, type MessageDataEvent, type MessageStreamEvent, type MessageWebSocketCallbacks, type SendMessagePayload, type StoppedByUserEvent, type Thread, type ThreadConnectionCallbacks, ThreadConnectionManager, type ThreadConnectionOptions, type ThreadEvent, type ThreadFile, type ThreadMessage, type UploadOptions, type WorkItem, type WorkMessage, canGenerateThumbnails, generateImageThumbnail, generatePendingFileId, isImageMimeType, messagesToFiles, parseAttachments, readFileAsDataUrl, transformToWorkblocks };
|
|
503
|
+
export { AgentBuilderClient, type AgentBuilderConfig, type AttachmentPayload, type AttachmentRef, type ConnectionStatus, type CreateThreadPayload, type CustomEvent, type ErrorEvent, type FileUpdateCallback, FileUploadManager, type GetMessagesOptions, type ImageProcessingResult, type LogDataEvent, type LogStreamEvent, type LogWebSocketCallbacks, type Message, type MessageChunkEvent, type MessageDataEvent, type MessageStreamEvent, type MessageWebSocketCallbacks, type PendingAttachment, type SendMessagePayload, type StoppedByUserEvent, type Thread, type ThreadConnectionCallbacks, ThreadConnectionManager, type ThreadConnectionOptions, type ThreadEvent, type ThreadFile, type ThreadMessage, type UploadOptions, type WorkItem, type WorkMessage, canGenerateThumbnails, generateImageThumbnail, generatePendingFileId, isImageMimeType, messagesToFiles, parseAttachments, readFileAsDataUrl, transformToWorkblocks };
|