From 14ca65be596367a8389e2113fe4527fa5962306b Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Mon, 10 Feb 2025 11:41:59 -0700 Subject: [PATCH] update types --- .../api/asset_interfaces/chat/chatMessageInterfaces.ts | 3 ++- web/src/api/asset_interfaces/chat/config.ts | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/web/src/api/asset_interfaces/chat/chatMessageInterfaces.ts b/web/src/api/asset_interfaces/chat/chatMessageInterfaces.ts index f23b14f49..7e939dd1f 100644 --- a/web/src/api/asset_interfaces/chat/chatMessageInterfaces.ts +++ b/web/src/api/asset_interfaces/chat/chatMessageInterfaces.ts @@ -74,7 +74,8 @@ export type BusterChatMessageReasoning_text = { export type BusterChatMessageReasoning_file = { id: string; - type: FileType; + type: 'file'; + file_type: FileType; file_name: string; version_number: number; version_id: string; diff --git a/web/src/api/asset_interfaces/chat/config.ts b/web/src/api/asset_interfaces/chat/config.ts index f641e0fbc..25dba78a3 100644 --- a/web/src/api/asset_interfaces/chat/config.ts +++ b/web/src/api/asset_interfaces/chat/config.ts @@ -1,5 +1,12 @@ export type FileType = 'metric' | 'dashboard' | 'reasoning'; //'dataset' | 'collection' | | 'term' | 'value' -export type ThoughtFileType = 'metric' | 'dashboard' | 'collection' | 'dataset' | 'term' | 'value'; +export type ThoughtFileType = + | 'metric' + | 'dashboard' + | 'collection' + | 'dataset' + | 'term' + | 'value' + | 'empty'; export type AllFileTypes = ThoughtFileType | FileType;