fix: pass image parts to custom commands (#6525)

Co-authored-by: Melih Mucuk <melih@monkeysteam.com>
This commit is contained in:
Melih Mucuk 2026-01-05 22:06:57 +03:00 committed by GitHub
commit a38e1701ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 81 additions and 3 deletions

View file

@ -24,6 +24,7 @@ import type {
ExperimentalResourceListResponses,
FileListResponses,
FilePartInput,
FilePartSource,
FileReadResponses,
FileStatusResponses,
FindFilesResponses,
@ -1451,6 +1452,14 @@ export class Session extends HeyApiClient {
arguments?: string
command?: string
variant?: string
parts?: Array<{
id?: string
type: "file"
mime: string
filename?: string
url: string
source?: FilePartSource
}>
},
options?: Options<never, ThrowOnError>,
) {
@ -1467,6 +1476,7 @@ export class Session extends HeyApiClient {
{ in: "body", key: "arguments" },
{ in: "body", key: "command" },
{ in: "body", key: "variant" },
{ in: "body", key: "parts" },
],
},
],

View file

@ -3292,6 +3292,14 @@ export type SessionCommandData = {
arguments: string
command: string
variant?: string
parts?: Array<{
id?: string
type: "file"
mime: string
filename?: string
url: string
source?: FilePartSource
}>
}
path: {
/**