@@ -82,7 +82,7 @@ export interface FileList {
82
82
deletedFiles ?: string [ ]
83
83
}
84
84
85
- export interface ChatResult {
85
+ export interface ChatMessage {
86
86
body ?: string
87
87
messageId ?: string
88
88
canBeVoted ?: boolean // requires messageId to be filled to show vote thumbs
@@ -97,6 +97,7 @@ export interface ChatResult {
97
97
codeReference ?: ReferenceTrackerInformation [ ]
98
98
fileList ?: FileList
99
99
}
100
+ export interface ChatResult extends ChatMessage { }
100
101
101
102
export type EndChatParams = { tabId : string }
102
103
export type EndChatResult = boolean
@@ -131,7 +132,7 @@ export interface QuickActions {
131
132
132
133
export interface TabData {
133
134
placeholderText ?: string
134
- messages : ChatResult [ ]
135
+ messages : ChatMessage [ ]
135
136
}
136
137
137
138
/**
@@ -156,8 +157,10 @@ export interface EncryptedQuickActionParams extends PartialResultParams {
156
157
message : string
157
158
}
158
159
159
- // Currently the QuickAction result and ChatResult share the same shape
160
- export interface QuickActionResult extends ChatResult { }
160
+ // Currently the QuickActionResult and ChatResult share the same shape,
161
+ // however response for quick actions request is optional,
162
+ // if server chooses to handle the request asynchronously
163
+ export interface QuickActionResult extends ChatMessage { }
161
164
162
165
export interface FeedbackParams {
163
166
tabId : string
@@ -213,9 +216,10 @@ export interface FollowUpClickParams {
213
216
with options provided in `options` parameter and opens it.
214
217
*/
215
218
export interface OpenTabParams extends Partial < TabEventParams > {
216
- options ?: {
219
+ newTabOptions ?: {
217
220
useDefaultTabData ?: boolean
218
- tabData ?: TabData
221
+ state ?: TabState
222
+ data ?: TabData
219
223
}
220
224
}
221
225
export interface OpenTabResult extends TabEventParams { }
@@ -228,8 +232,7 @@ export interface TabState {
228
232
export interface ChatUpdateParams {
229
233
tabId : string
230
234
state ?: TabState
231
- placeholderText ?: string
232
- messages : ChatResult [ ]
235
+ data ?: TabData
233
236
}
234
237
235
238
export type FileAction = 'accept-change' | 'reject-change' | string
0 commit comments