chore: regenerate JavaScript SDK with structured output types
Regenerate SDK types to include outputFormat and structured_output fields.pull/8161/head
parent
32ef11da1f
commit
d582dc1c9f
File diff suppressed because it is too large
Load Diff
|
|
@ -48,6 +48,7 @@ import type {
|
|||
McpLocalConfig,
|
||||
McpRemoteConfig,
|
||||
McpStatusResponses,
|
||||
OutputFormat,
|
||||
Part as Part2,
|
||||
PartDeleteErrors,
|
||||
PartDeleteResponses,
|
||||
|
|
@ -1226,6 +1227,7 @@ export class Session extends HeyApiClient {
|
|||
tools?: {
|
||||
[key: string]: boolean
|
||||
}
|
||||
outputFormat?: OutputFormat
|
||||
system?: string
|
||||
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
|
||||
},
|
||||
|
|
@ -1243,6 +1245,7 @@ export class Session extends HeyApiClient {
|
|||
{ in: "body", key: "agent" },
|
||||
{ in: "body", key: "noReply" },
|
||||
{ in: "body", key: "tools" },
|
||||
{ in: "body", key: "outputFormat" },
|
||||
{ in: "body", key: "system" },
|
||||
{ in: "body", key: "parts" },
|
||||
],
|
||||
|
|
@ -1312,6 +1315,7 @@ export class Session extends HeyApiClient {
|
|||
tools?: {
|
||||
[key: string]: boolean
|
||||
}
|
||||
outputFormat?: OutputFormat
|
||||
system?: string
|
||||
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
|
||||
},
|
||||
|
|
@ -1329,6 +1333,7 @@ export class Session extends HeyApiClient {
|
|||
{ in: "body", key: "agent" },
|
||||
{ in: "body", key: "noReply" },
|
||||
{ in: "body", key: "tools" },
|
||||
{ in: "body", key: "outputFormat" },
|
||||
{ in: "body", key: "system" },
|
||||
{ in: "body", key: "parts" },
|
||||
],
|
||||
|
|
|
|||
|
|
@ -61,6 +61,22 @@ export type EventLspUpdated = {
|
|||
}
|
||||
}
|
||||
|
||||
export type OutputFormatText = {
|
||||
type: "text"
|
||||
}
|
||||
|
||||
export type JsonSchema = {
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
export type OutputFormatJsonSchema = {
|
||||
type: "json_schema"
|
||||
schema: JsonSchema
|
||||
retryCount?: number
|
||||
}
|
||||
|
||||
export type OutputFormat = OutputFormatText | OutputFormatJsonSchema
|
||||
|
||||
export type FileDiff = {
|
||||
file: string
|
||||
before: string
|
||||
|
|
@ -76,6 +92,7 @@ export type UserMessage = {
|
|||
time: {
|
||||
created: number
|
||||
}
|
||||
outputFormat?: OutputFormat
|
||||
summary?: {
|
||||
title?: string
|
||||
body?: string
|
||||
|
|
@ -121,6 +138,14 @@ export type MessageAbortedError = {
|
|||
}
|
||||
}
|
||||
|
||||
export type StructuredOutputError = {
|
||||
name: "StructuredOutputError"
|
||||
data: {
|
||||
message: string
|
||||
retries: number
|
||||
}
|
||||
}
|
||||
|
||||
export type ApiError = {
|
||||
name: "APIError"
|
||||
data: {
|
||||
|
|
@ -145,7 +170,13 @@ export type AssistantMessage = {
|
|||
created: number
|
||||
completed?: number
|
||||
}
|
||||
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError
|
||||
error?:
|
||||
| ProviderAuthError
|
||||
| UnknownError
|
||||
| MessageOutputLengthError
|
||||
| MessageAbortedError
|
||||
| StructuredOutputError
|
||||
| ApiError
|
||||
parentID: string
|
||||
modelID: string
|
||||
providerID: string
|
||||
|
|
@ -166,6 +197,7 @@ export type AssistantMessage = {
|
|||
write: number
|
||||
}
|
||||
}
|
||||
structured_output?: unknown
|
||||
finish?: string
|
||||
}
|
||||
|
||||
|
|
@ -672,7 +704,13 @@ export type EventSessionError = {
|
|||
type: "session.error"
|
||||
properties: {
|
||||
sessionID?: string
|
||||
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError
|
||||
error?:
|
||||
| ProviderAuthError
|
||||
| UnknownError
|
||||
| MessageOutputLengthError
|
||||
| MessageAbortedError
|
||||
| StructuredOutputError
|
||||
| ApiError
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2908,6 +2946,7 @@ export type SessionPromptData = {
|
|||
tools?: {
|
||||
[key: string]: boolean
|
||||
}
|
||||
outputFormat?: OutputFormat
|
||||
system?: string
|
||||
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
|
||||
}
|
||||
|
|
@ -3091,6 +3130,7 @@ export type SessionPromptAsyncData = {
|
|||
tools?: {
|
||||
[key: string]: boolean
|
||||
}
|
||||
outputFormat?: OutputFormat
|
||||
system?: string
|
||||
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue