fix(sdk): preserve SSE event payload types

This commit is contained in:
𝓛𝓲𝓽𝓽𝓵𝓮 𝓕𝓻𝓪𝓷𝓴 2026-06-26 20:37:53 +00:00
commit 8a8b572e9f
4 changed files with 43 additions and 22 deletions

View file

@ -2766,8 +2766,6 @@ export type SessionHistory = {
hasMore: boolean
}
export type SessionDurableEvent1 = string
export type SessionMessagesResponse = {
data: Array<SessionMessage>
cursor: {
@ -2847,7 +2845,7 @@ export type QuestionRejected2 = {
}
}
export type V2Event1 =
export type V2Event =
| ModelsDevRefreshed
| IntegrationUpdated
| IntegrationConnectionUpdated
@ -2937,8 +2935,6 @@ export type V2Event1 =
| ServerConnected
| GlobalDisposed
export type V2Event = string
export type ForbiddenError = {
_tag: "ForbiddenError"
message: string
@ -11897,7 +11893,7 @@ export type V2SessionEventsResponses = {
200: {
id: string
event: string
data: SessionDurableEvent1
data: SessionDurableEvent
}
}