diff options
| author | Aiden Cline <[email protected]> | 2025-10-22 23:00:03 -0500 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-10-22 23:00:03 -0500 |
| commit | 61899d4fa7ad76431853bcf21ef0a88f73ec35a6 (patch) | |
| tree | bcb2c3cc140e72d9b1c175ce6946cd110f02da87 | |
| parent | 7c7ebb0a9d05ecc900595aa96f3cb83cc7f0258a (diff) | |
| download | opencode-61899d4fa7ad76431853bcf21ef0a88f73ec35a6.tar.gz opencode-61899d4fa7ad76431853bcf21ef0a88f73ec35a6.zip | |
regen sdk
| -rw-r--r-- | packages/sdk/js/src/gen/types.gen.ts | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/packages/sdk/js/src/gen/types.gen.ts b/packages/sdk/js/src/gen/types.gen.ts index 169f7bb4a..46aa2475e 100644 --- a/packages/sdk/js/src/gen/types.gen.ts +++ b/packages/sdk/js/src/gen/types.gen.ts @@ -598,6 +598,10 @@ export type UserMessage = { time: { created: number } + summary?: { + diffs: Array<FileDiff> + text: string + } } 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 = { id: string sessionID: string @@ -637,8 +654,9 @@ export type AssistantMessage = { created: number completed?: number } - error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError + error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError system: Array<string> + parentID: string modelID: string providerID: 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 = | TextPart | ReasoningPart @@ -867,6 +897,7 @@ export type Part = | SnapshotPart | PatchPart | AgentPart + | RetryPart export type TextPartInput = { id?: string @@ -1178,7 +1209,7 @@ export type EventSessionError = { type: "session.error" properties: { sessionID?: string - error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError + error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError } } |
