@blade-hq/agent-client 2610.0.0-beta.83 → 2610.0.0-beta.85
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.js +19 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/sessions.d.ts +6 -0
- package/dist/schemas/message.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.md +3 -1
|
@@ -304,6 +304,12 @@ export interface ImportSessionOptions {
|
|
|
304
304
|
}
|
|
305
305
|
export declare class SessionsResource {
|
|
306
306
|
private client;
|
|
307
|
+
private readonly pendingImages;
|
|
308
|
+
/** Fetch an immutable message image using this client's authenticated identity. */
|
|
309
|
+
fetchImage(sessionId: string, assetId: string, preview?: boolean): Promise<Blob>;
|
|
310
|
+
/** Fetch a public-share image; the server validates the share token on every request. */
|
|
311
|
+
fetchSharedImage(token: string, assetId: string, preview?: boolean): Promise<Blob>;
|
|
312
|
+
private fetchImagePath;
|
|
307
313
|
constructor(client: BladeClient);
|
|
308
314
|
getMcpApp(sessionId: string, sourceId: string, init?: RequestInit): Promise<McpAppArchive>;
|
|
309
315
|
onMcpAppChanged(sessionId: string, sourceId: string, listener: () => void): () => void;
|
package/package.json
CHANGED
package/public-api.md
CHANGED
|
@@ -844,7 +844,7 @@ toolCallId: string | undefined
|
|
|
844
844
|
## `ImageUrlContentPart` (interface)
|
|
845
845
|
|
|
846
846
|
```ts
|
|
847
|
-
image_url: { url: string; }
|
|
847
|
+
image_url: { url: string; source_path?: string; width?: number; height?: number; }
|
|
848
848
|
type: "image_url"
|
|
849
849
|
```
|
|
850
850
|
|
|
@@ -1821,7 +1821,9 @@ deleteFile: (sessionId: string, filePath: string) => Promise<void>
|
|
|
1821
1821
|
deleteSession: (sessionId: string, options?: { deleteWorkspace?: boolean; }) => Promise<{ deleted: boolean; workspace_deleted?: boolean; }>
|
|
1822
1822
|
downloadFile: (sessionId: string, filePath: string, downloadName?: string) => Promise<void>
|
|
1823
1823
|
exportSession: (sessionId: string) => Promise<void>
|
|
1824
|
+
fetchImage: (sessionId: string, assetId: string, preview?: boolean) => Promise<Blob>
|
|
1824
1825
|
fetchSessionPluginIcon: (sessionId: string, name: string) => Promise<Blob>
|
|
1826
|
+
fetchSharedImage: (token: string, assetId: string, preview?: boolean) => Promise<Blob>
|
|
1825
1827
|
getBackgroundTask: (sessionId: string, taskId: string, tail?: number, init?: RequestInit) => Promise<BackgroundTask>
|
|
1826
1828
|
getDownloadDirUrl: (sessionId: string, dirPath: string) => string
|
|
1827
1829
|
getMcpApp: (sessionId: string, sourceId: string, init?: RequestInit) => Promise<McpAppArchive>
|