fix(sdk): type SSE event payloads

Patch Effect OpenAPI generation so data-mode SSE responses expose their JSON payload schema instead of the raw data-line string wrapper. Regenerate legacy SDK types so V2Event and SessionDurableEvent remain the public payload unions.

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
This commit is contained in:
Kit Langton 2026-06-27 04:54:18 +00:00 committed by 𝓛𝓲𝓽𝓽𝓵𝓮 𝓕𝓻𝓪𝓷𝓴
commit 6dbd516466
5 changed files with 40 additions and 14 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
@ -11898,11 +11894,7 @@ export type V2SessionEventsResponses = {
/**
* Success
*/
200: {
id: string
event: string
data: SessionDurableEvent1
}
200: SessionDurableEvent
}
export type V2SessionEventsResponse = V2SessionEventsResponses[keyof V2SessionEventsResponses]