Skip to content

Commit f2d1467

Browse files
committed
Minor edits
1 parent 20b166e commit f2d1467

File tree

1 file changed

+3
-9
lines changed
  • packages/core/src/codewhispererChat/view/connector

1 file changed

+3
-9
lines changed

packages/core/src/codewhispererChat/view/connector/connector.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Timestamp } from 'aws-sdk/clients/apigateway'
77
import { MessagePublisher } from '../../../amazonq/messages/messagePublisher'
88
import { EditorContextCommandType } from '../../commands/registerCommands'
99
import { 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'
1111
import { DocumentReference } from '../../controllers/chat/model'
1212

1313
class 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-
119113
export 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

Comments
 (0)