@@ -7,7 +7,7 @@ import { Timestamp } from 'aws-sdk/clients/apigateway'
77import { MessagePublisher } from '../../../amazonq/messages/messagePublisher'
88import { EditorContextCommandType } from '../../commands/registerCommands'
99import { AuthFollowUpType } from '../../../amazonq/auth/model'
10- import { ChatItemButton , ChatItemFormItem , MynahUIDataModel , QuickActionCommand } from '@aws/mynah-ui'
10+ import { ChatItemButton , ChatItemContent , ChatItemFormItem , MynahUIDataModel , QuickActionCommand } from '@aws/mynah-ui'
1111import { DocumentReference } from '../../controllers/chat/model'
1212
1313class UiMessage {
@@ -110,12 +110,6 @@ export interface CodeReference {
110110 }
111111}
112112
113- export interface FileList {
114- fileTreeTitle ?: string
115- rootFolderTitle ?: string
116- filePaths ?: string [ ]
117- }
118-
119113export interface AuthNeededExceptionProps {
120114 readonly message : string
121115 readonly authType : AuthFollowUpType
@@ -216,7 +210,7 @@ export interface ChatMessageProps {
216210 readonly contextList : DocumentReference [ ] | undefined
217211 readonly title ?: string
218212 readonly buttons ?: ChatItemButton [ ]
219- readonly fileList ?: FileList
213+ readonly fileList ?: ChatItemContent [ 'fileList' ]
220214 readonly canBeVoted ?: boolean
221215}
222216
@@ -235,7 +229,7 @@ export class ChatMessage extends UiMessage {
235229 readonly contextList : DocumentReference [ ] | undefined
236230 readonly title ?: string
237231 readonly buttons ?: ChatItemButton [ ]
238- readonly fileList ?: FileList
232+ readonly fileList ?: ChatItemContent [ 'fileList' ]
239233 readonly canBeVoted ?: boolean = false
240234 override type = 'chatMessage'
241235
0 commit comments