This commit is contained in:
Dax Raad
2025-05-29 11:35:56 -04:00
parent 6f604bd0f9
commit a96c2ce65c
4 changed files with 81 additions and 67 deletions

View File

@@ -357,16 +357,12 @@
"properties": {
"type": "object",
"properties": {
"sessionID": {
"type": "string"
},
"messageID": {
"type": "string"
"info": {
"$ref": "#/components/schemas/Message.Info"
}
},
"required": [
"sessionID",
"messageID"
"info"
]
}
},
@@ -375,49 +371,6 @@
"properties"
]
},
"Event.session.updated": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "session.updated"
},
"properties": {
"type": "object",
"properties": {
"sessionID": {
"type": "string"
}
},
"required": [
"sessionID"
]
}
},
"required": [
"type",
"properties"
]
},
"Session.Info": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^ses"
},
"shareID": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"title"
]
},
"Message.Info": {
"type": "object",
"properties": {
@@ -760,6 +713,65 @@
"type"
]
},
"Event.session.updated": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "session.updated"
},
"properties": {
"type": "object",
"properties": {
"info": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^ses"
},
"shareID": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"title"
]
}
},
"required": [
"info"
]
}
},
"required": [
"type",
"properties"
]
},
"Session.Info": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^ses"
},
"shareID": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"title"
]
},
"Provider.Info": {
"type": "object",
"properties": {

View File

@@ -41,8 +41,7 @@ type EventLspClientDiagnostics struct {
// EventMessageUpdated defines model for Event.message.updated.
type EventMessageUpdated struct {
Properties struct {
MessageID string `json:"messageID"`
SessionID string `json:"sessionID"`
Info MessageInfo `json:"info"`
} `json:"properties"`
Type string `json:"type"`
}
@@ -50,7 +49,11 @@ type EventMessageUpdated struct {
// EventSessionUpdated defines model for Event.session.updated.
type EventSessionUpdated struct {
Properties struct {
SessionID string `json:"sessionID"`
Info struct {
Id string `json:"id"`
ShareID *string `json:"shareID,omitempty"`
Title string `json:"title"`
} `json:"info"`
} `json:"properties"`
Type string `json:"type"`
}