fix(sdk): preserve SSE event payload types
This commit is contained in:
parent
7a17925495
commit
8a8b572e9f
4 changed files with 43 additions and 22 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11260,7 +11260,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"data": {
|
||||
"$ref": "#/components/schemas/SessionDurableEvent1"
|
||||
"$ref": "#/components/schemas/SessionDurableEvent"
|
||||
}
|
||||
},
|
||||
"required": ["id", "event", "data"],
|
||||
|
|
@ -23732,13 +23732,6 @@
|
|||
"required": ["data", "hasMore"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"SessionDurableEvent1": {
|
||||
"type": "string",
|
||||
"contentSchema": {
|
||||
"$ref": "#/components/schemas/SessionDurableEvent"
|
||||
},
|
||||
"contentMediaType": "application/json"
|
||||
},
|
||||
"SessionMessagesResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -23975,7 +23968,7 @@
|
|||
"required": ["id", "type", "data"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"V2Event1": {
|
||||
"V2Event": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Models-devRefreshed"
|
||||
|
|
@ -24243,13 +24236,6 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"V2Event": {
|
||||
"type": "string",
|
||||
"contentSchema": {
|
||||
"$ref": "#/components/schemas/V2Event1"
|
||||
},
|
||||
"contentMediaType": "application/json"
|
||||
},
|
||||
"ForbiddenError": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue