Skip to content

Commit 61899d4

Browse files
committed
regen sdk
1 parent 7c7ebb0 commit 61899d4

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

packages/sdk/js/src/gen/types.gen.ts

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,10 @@ export type UserMessage = {
598598
time: {
599599
created: number
600600
}
601+
summary?: {
602+
diffs: Array<FileDiff>
603+
text: string
604+
}
601605
}
602606

603607
export type ProviderAuthError = {
@@ -629,6 +633,19 @@ export type MessageAbortedError = {
629633
}
630634
}
631635

636+
export type ApiError = {
637+
name: "APIError"
638+
data: {
639+
message: string
640+
statusCode?: number
641+
isRetryable: boolean
642+
responseHeaders?: {
643+
[key: string]: string
644+
}
645+
responseBody?: string
646+
}
647+
}
648+
632649
export type AssistantMessage = {
633650
id: string
634651
sessionID: string
@@ -637,8 +654,9 @@ export type AssistantMessage = {
637654
created: number
638655
completed?: number
639656
}
640-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError
657+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError
641658
system: Array<string>
659+
parentID: string
642660
modelID: string
643661
providerID: string
644662
mode: string
@@ -857,6 +875,18 @@ export type AgentPart = {
857875
}
858876
}
859877

878+
export type RetryPart = {
879+
id: string
880+
sessionID: string
881+
messageID: string
882+
type: "retry"
883+
attempt: number
884+
error: ApiError
885+
time: {
886+
created: number
887+
}
888+
}
889+
860890
export type Part =
861891
| TextPart
862892
| ReasoningPart
@@ -867,6 +897,7 @@ export type Part =
867897
| SnapshotPart
868898
| PatchPart
869899
| AgentPart
900+
| RetryPart
870901

871902
export type TextPartInput = {
872903
id?: string
@@ -1178,7 +1209,7 @@ export type EventSessionError = {
11781209
type: "session.error"
11791210
properties: {
11801211
sessionID?: string
1181-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError
1212+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError
11821213
}
11831214
}
11841215

0 commit comments

Comments
 (0)