@@ -1875,9 +1875,11 @@ export type SyncEventSessionNextModelSwitched = {
18751875 data : {
18761876 timestamp : number
18771877 sessionID : string
1878- id : string
1879- providerID : string
1880- variant ?: string
1878+ model : {
1879+ id : string
1880+ providerID : string
1881+ variant : string
1882+ }
18811883 }
18821884}
18831885
@@ -1948,7 +1950,7 @@ export type SyncEventSessionNextStepStarted = {
19481950 model : {
19491951 id : string
19501952 providerID : string
1951- variant ? : string
1953+ variant : string
19521954 }
19531955 snapshot ?: string
19541956 }
@@ -1987,10 +1989,7 @@ export type SyncEventSessionNextStepFailed = {
19871989 data : {
19881990 timestamp : number
19891991 sessionID : string
1990- error : {
1991- type : string
1992- message : string
1993- }
1992+ error : SessionErrorUnknown
19941993 }
19951994}
19961995
@@ -2188,10 +2187,7 @@ export type SyncEventSessionNextToolFailed = {
21882187 timestamp : number
21892188 sessionID : string
21902189 callID : string
2191- error : {
2192- type : string
2193- message : string
2194- }
2190+ error : SessionErrorUnknown
21952191 provider : {
21962192 executed : boolean
21972193 metadata ?: {
@@ -2616,9 +2612,11 @@ export type EventSessionNextModelSwitched = {
26162612 properties : {
26172613 timestamp : number
26182614 sessionID : string
2619- id : string
2620- providerID : string
2621- variant ?: string
2615+ model : {
2616+ id : string
2617+ providerID : string
2618+ variant : string
2619+ }
26222620 }
26232621}
26242622
@@ -2693,7 +2691,7 @@ export type EventSessionNextStepStarted = {
26932691 model : {
26942692 id : string
26952693 providerID : string
2696- variant ? : string
2694+ variant : string
26972695 }
26982696 snapshot ?: string
26992697 }
@@ -2720,16 +2718,18 @@ export type EventSessionNextStepEnded = {
27202718 }
27212719}
27222720
2721+ export type SessionErrorUnknown = {
2722+ type : "unknown"
2723+ message : string
2724+ }
2725+
27232726export type EventSessionNextStepFailed = {
27242727 id : string
27252728 type : "session.next.step.failed"
27262729 properties : {
27272730 timestamp : number
27282731 sessionID : string
2729- error : {
2730- type : string
2731- message : string
2732- }
2732+ error : SessionErrorUnknown
27332733 }
27342734}
27352735
@@ -2900,10 +2900,7 @@ export type EventSessionNextToolFailed = {
29002900 timestamp : number
29012901 sessionID : string
29022902 callID : string
2903- error : {
2904- type : string
2905- message : string
2906- }
2903+ error : SessionErrorUnknown
29072904 provider : {
29082905 executed : boolean
29092906 metadata ?: {
@@ -2994,7 +2991,7 @@ export type SessionInfo = {
29942991 model ?: {
29952992 id : string
29962993 providerID : string
2997- variant ? : string
2994+ variant : string
29982995 }
29992996 time : {
30002997 created : number
@@ -3030,7 +3027,7 @@ export type SessionMessageModelSwitched = {
30303027 model : {
30313028 id : string
30323029 providerID : string
3033- variant ? : string
3030+ variant : string
30343031 }
30353032}
30363033
@@ -3124,10 +3121,7 @@ export type SessionMessageToolStateError = {
31243121 structured : {
31253122 [ key : string ] : unknown
31263123 }
3127- error : {
3128- type : string
3129- message : string
3130- }
3124+ error : SessionErrorUnknown
31313125}
31323126
31333127export type SessionMessageAssistantTool = {
@@ -3167,7 +3161,7 @@ export type SessionMessageAssistant = {
31673161 model : {
31683162 id : string
31693163 providerID : string
3170- variant ? : string
3164+ variant : string
31713165 }
31723166 content : Array < SessionMessageAssistantText | SessionMessageAssistantReasoning | SessionMessageAssistantTool >
31733167 snapshot ?: {
@@ -3185,10 +3179,7 @@ export type SessionMessageAssistant = {
31853179 write : number
31863180 }
31873181 }
3188- error ?: {
3189- type : string
3190- message : string
3191- }
3182+ error ?: SessionErrorUnknown
31923183}
31933184
31943185export type SessionMessageCompaction = {
0 commit comments