mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-20 01:04:22 +01:00
regen sdk
This commit is contained in:
@@ -598,6 +598,10 @@ export type UserMessage = {
|
|||||||
time: {
|
time: {
|
||||||
created: number
|
created: number
|
||||||
}
|
}
|
||||||
|
summary?: {
|
||||||
|
diffs: Array<FileDiff>
|
||||||
|
text: string
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderAuthError = {
|
export type ProviderAuthError = {
|
||||||
@@ -629,6 +633,19 @@ export type MessageAbortedError = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ApiError = {
|
||||||
|
name: "APIError"
|
||||||
|
data: {
|
||||||
|
message: string
|
||||||
|
statusCode?: number
|
||||||
|
isRetryable: boolean
|
||||||
|
responseHeaders?: {
|
||||||
|
[key: string]: string
|
||||||
|
}
|
||||||
|
responseBody?: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export type AssistantMessage = {
|
export type AssistantMessage = {
|
||||||
id: string
|
id: string
|
||||||
sessionID: string
|
sessionID: string
|
||||||
@@ -637,8 +654,9 @@ export type AssistantMessage = {
|
|||||||
created: number
|
created: number
|
||||||
completed?: number
|
completed?: number
|
||||||
}
|
}
|
||||||
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError
|
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError
|
||||||
system: Array<string>
|
system: Array<string>
|
||||||
|
parentID: string
|
||||||
modelID: string
|
modelID: string
|
||||||
providerID: string
|
providerID: string
|
||||||
mode: string
|
mode: string
|
||||||
@@ -857,6 +875,18 @@ export type AgentPart = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type RetryPart = {
|
||||||
|
id: string
|
||||||
|
sessionID: string
|
||||||
|
messageID: string
|
||||||
|
type: "retry"
|
||||||
|
attempt: number
|
||||||
|
error: ApiError
|
||||||
|
time: {
|
||||||
|
created: number
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export type Part =
|
export type Part =
|
||||||
| TextPart
|
| TextPart
|
||||||
| ReasoningPart
|
| ReasoningPart
|
||||||
@@ -867,6 +897,7 @@ export type Part =
|
|||||||
| SnapshotPart
|
| SnapshotPart
|
||||||
| PatchPart
|
| PatchPart
|
||||||
| AgentPart
|
| AgentPart
|
||||||
|
| RetryPart
|
||||||
|
|
||||||
export type TextPartInput = {
|
export type TextPartInput = {
|
||||||
id?: string
|
id?: string
|
||||||
@@ -1178,7 +1209,7 @@ export type EventSessionError = {
|
|||||||
type: "session.error"
|
type: "session.error"
|
||||||
properties: {
|
properties: {
|
||||||
sessionID?: string
|
sessionID?: string
|
||||||
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError
|
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user