@iota-uz/sdk 0.4.17 → 0.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bichat/index.cjs +1507 -356
- package/dist/bichat/index.cjs.map +1 -1
- package/dist/bichat/index.d.cts +56 -7
- package/dist/bichat/index.d.ts +56 -7
- package/dist/bichat/index.mjs +1513 -363
- package/dist/bichat/index.mjs.map +1 -1
- package/package.json +1 -1
- package/tailwind/compiled.css +1 -1
package/dist/bichat/index.d.cts
CHANGED
|
@@ -129,6 +129,7 @@ interface AssistantTurn$1 {
|
|
|
129
129
|
citations: Citation$1[];
|
|
130
130
|
toolCalls?: ToolCall$1[];
|
|
131
131
|
chartData?: ChartData;
|
|
132
|
+
renderTables?: RenderTableData[];
|
|
132
133
|
artifacts: Artifact$1[];
|
|
133
134
|
codeOutputs: CodeOutput$1[];
|
|
134
135
|
debug?: DebugTrace$1;
|
|
@@ -175,6 +176,7 @@ interface Citation$1 {
|
|
|
175
176
|
interface Attachment$1 {
|
|
176
177
|
id?: string;
|
|
177
178
|
clientKey: string;
|
|
179
|
+
uploadId?: number;
|
|
178
180
|
filename: string;
|
|
179
181
|
mimeType: string;
|
|
180
182
|
sizeBytes: number;
|
|
@@ -230,6 +232,26 @@ interface ChartSeries {
|
|
|
230
232
|
/** Numeric data values */
|
|
231
233
|
data: number[];
|
|
232
234
|
}
|
|
235
|
+
interface RenderTableExport {
|
|
236
|
+
url: string;
|
|
237
|
+
filename: string;
|
|
238
|
+
rowCount?: number;
|
|
239
|
+
fileSizeKB?: number;
|
|
240
|
+
}
|
|
241
|
+
interface RenderTableData {
|
|
242
|
+
id: string;
|
|
243
|
+
title?: string;
|
|
244
|
+
query: string;
|
|
245
|
+
columns: string[];
|
|
246
|
+
headers: string[];
|
|
247
|
+
rows: unknown[][];
|
|
248
|
+
totalRows: number;
|
|
249
|
+
pageSize: number;
|
|
250
|
+
truncated: boolean;
|
|
251
|
+
truncatedReason?: string;
|
|
252
|
+
export?: RenderTableExport;
|
|
253
|
+
exportPrompt?: string;
|
|
254
|
+
}
|
|
233
255
|
interface Artifact$1 {
|
|
234
256
|
type: 'excel' | 'pdf';
|
|
235
257
|
filename: string;
|
|
@@ -242,6 +264,7 @@ interface SessionArtifact {
|
|
|
242
264
|
id: string;
|
|
243
265
|
sessionId: string;
|
|
244
266
|
messageId?: string;
|
|
267
|
+
uploadId?: number;
|
|
245
268
|
type: string;
|
|
246
269
|
name: string;
|
|
247
270
|
description?: string;
|
|
@@ -784,6 +807,10 @@ interface AssistantMessageCodeOutputsSlotProps {
|
|
|
784
807
|
/** Code execution outputs */
|
|
785
808
|
outputs: CodeOutput$1[];
|
|
786
809
|
}
|
|
810
|
+
interface AssistantMessageTablesSlotProps {
|
|
811
|
+
/** Interactive table payloads */
|
|
812
|
+
tables: RenderTableData[];
|
|
813
|
+
}
|
|
787
814
|
interface AssistantMessageArtifactsSlotProps {
|
|
788
815
|
/** Downloadable artifacts */
|
|
789
816
|
artifacts: Artifact$1[];
|
|
@@ -819,6 +846,8 @@ interface AssistantMessageSlots {
|
|
|
819
846
|
charts?: ReactNode | ((props: AssistantMessageChartsSlotProps) => ReactNode);
|
|
820
847
|
/** Custom code outputs renderer */
|
|
821
848
|
codeOutputs?: ReactNode | ((props: AssistantMessageCodeOutputsSlotProps) => ReactNode);
|
|
849
|
+
/** Custom table renderer */
|
|
850
|
+
tables?: ReactNode | ((props: AssistantMessageTablesSlotProps) => ReactNode);
|
|
822
851
|
/** Custom artifacts renderer */
|
|
823
852
|
artifacts?: ReactNode | ((props: AssistantMessageArtifactsSlotProps) => ReactNode);
|
|
824
853
|
/** Custom actions renderer */
|
|
@@ -839,6 +868,8 @@ interface AssistantMessageClassNames {
|
|
|
839
868
|
codeOutputs?: string;
|
|
840
869
|
/** Charts container */
|
|
841
870
|
charts?: string;
|
|
871
|
+
/** Tables container */
|
|
872
|
+
tables?: string;
|
|
842
873
|
/** Artifacts container */
|
|
843
874
|
artifacts?: string;
|
|
844
875
|
/** Sources container */
|
|
@@ -984,7 +1015,7 @@ declare function DownloadCard({ artifact }: DownloadCardProps): react_jsx_runtim
|
|
|
984
1015
|
interface InlineQuestionFormProps {
|
|
985
1016
|
pendingQuestion: PendingQuestion$1;
|
|
986
1017
|
}
|
|
987
|
-
declare function InlineQuestionForm({ pendingQuestion }: InlineQuestionFormProps): react_jsx_runtime.JSX.Element
|
|
1018
|
+
declare function InlineQuestionForm({ pendingQuestion }: InlineQuestionFormProps): react_jsx_runtime.JSX.Element;
|
|
988
1019
|
|
|
989
1020
|
interface MessageInputRef {
|
|
990
1021
|
focus: () => void;
|
|
@@ -1288,6 +1319,13 @@ interface TableWithExportProps {
|
|
|
1288
1319
|
}
|
|
1289
1320
|
declare const TableWithExport: react.NamedExoticComponent<TableWithExportProps>;
|
|
1290
1321
|
|
|
1322
|
+
interface InteractiveTableCardProps {
|
|
1323
|
+
table: RenderTableData;
|
|
1324
|
+
onSendMessage?: (content: string) => void;
|
|
1325
|
+
sendDisabled?: boolean;
|
|
1326
|
+
}
|
|
1327
|
+
declare const InteractiveTableCard: react.NamedExoticComponent<InteractiveTableCardProps>;
|
|
1328
|
+
|
|
1291
1329
|
/**
|
|
1292
1330
|
* useToast Hook
|
|
1293
1331
|
* Manages toast notification state
|
|
@@ -1435,6 +1473,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
|
|
|
1435
1473
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
1436
1474
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
1437
1475
|
handleReset: () => void;
|
|
1476
|
+
handleFallbackError: (error: Error, errorInfo: ErrorInfo) => void;
|
|
1438
1477
|
render(): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
1439
1478
|
}
|
|
1440
1479
|
|
|
@@ -2915,6 +2954,7 @@ interface HttpDataSourceConfig {
|
|
|
2915
2954
|
baseUrl: string;
|
|
2916
2955
|
rpcEndpoint: string;
|
|
2917
2956
|
streamEndpoint?: string;
|
|
2957
|
+
uploadEndpoint?: string;
|
|
2918
2958
|
csrfToken?: string | (() => string);
|
|
2919
2959
|
headers?: Record<string, string>;
|
|
2920
2960
|
timeout?: number;
|
|
@@ -2948,6 +2988,13 @@ declare class HttpDataSource implements ChatDataSource {
|
|
|
2948
2988
|
* Create headers for HTTP requests
|
|
2949
2989
|
*/
|
|
2950
2990
|
private createHeaders;
|
|
2991
|
+
private createUploadHeaders;
|
|
2992
|
+
private logAttachmentLifecycle;
|
|
2993
|
+
private normalizeAttachmentFile;
|
|
2994
|
+
private uploadFile;
|
|
2995
|
+
private attachmentToFile;
|
|
2996
|
+
private assertUploadReferences;
|
|
2997
|
+
private ensureAttachmentUpload;
|
|
2951
2998
|
private callRPC;
|
|
2952
2999
|
/**
|
|
2953
3000
|
* Create a new chat session
|
|
@@ -3107,6 +3154,7 @@ interface Artifact {
|
|
|
3107
3154
|
id: string;
|
|
3108
3155
|
sessionId: string;
|
|
3109
3156
|
messageId?: string;
|
|
3157
|
+
uploadId?: number;
|
|
3110
3158
|
type: string;
|
|
3111
3159
|
name: string;
|
|
3112
3160
|
description?: string;
|
|
@@ -3140,11 +3188,11 @@ interface AssistantTurn {
|
|
|
3140
3188
|
createdAt: string;
|
|
3141
3189
|
}
|
|
3142
3190
|
interface Attachment {
|
|
3143
|
-
id
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3191
|
+
id?: string;
|
|
3192
|
+
uploadId?: number;
|
|
3193
|
+
filename?: string;
|
|
3194
|
+
mimeType?: string;
|
|
3195
|
+
sizeBytes?: number;
|
|
3148
3196
|
url?: string;
|
|
3149
3197
|
}
|
|
3150
3198
|
interface Citation {
|
|
@@ -3473,6 +3521,7 @@ declare class ChatMachine {
|
|
|
3473
3521
|
private _setError;
|
|
3474
3522
|
private _retryFetchSession;
|
|
3475
3523
|
private _clearStreamError;
|
|
3524
|
+
private _notifySessionsUpdated;
|
|
3476
3525
|
private _cancel;
|
|
3477
3526
|
private _setCodeOutputs;
|
|
3478
3527
|
private _setMessage;
|
|
@@ -3617,4 +3666,4 @@ declare function isPermissionDeniedError(error: unknown): boolean;
|
|
|
3617
3666
|
*/
|
|
3618
3667
|
declare function toErrorDisplay(error: unknown, fallbackTitle: string): RPCErrorDisplay;
|
|
3619
3668
|
|
|
3620
|
-
export { ATTACHMENT_ACCEPT_ATTRIBUTE, ActionButton, type ActionButtonIconProps, type ActionButtonLabelProps, type ActionButtonRootProps, type ActionButtonTooltipProps, type AdminStore, _default$1 as Alert, AllChatsList, type AppConfig, _default as ArchiveBanner, ArchivedChatList, type Artifact$1 as Artifact, type ArtifactStore, type AsChildProps, AssistantMessage, type AssistantMessageActionsSlotProps, type AssistantMessageArtifactsSlotProps, type AssistantMessageAvatarSlotProps, type AssistantMessageChartsSlotProps, type AssistantMessageClassNames, type AssistantMessageCodeOutputsSlotProps, type AssistantMessageContentSlotProps, type AssistantMessageExplanationSlotProps, type AssistantMessageProps, type AssistantMessageSlots, type AssistantMessageSourcesSlotProps, type AssistantTurn$1 as AssistantTurn, AssistantTurnView, type AssistantTurnViewProps, type Attachment$1 as Attachment, MemoizedAttachmentGrid as AttachmentGrid, AttachmentPreview, AttachmentUpload, Avatar, type AvatarFallbackProps, type AvatarImageProps, type AvatarRootProps, type BiChatConfig, BiChatLayout, type BiChatLayoutProps, type BichatRPC, Bubble, type BubbleContentProps, type BubbleFooterProps, type BubbleHeaderProps, type BubbleMetadataProps, type BubbleRootProps, type BubbleVariant, CHART_VISUAL, ChartCard, type ChartData, type ChartSeries, type ChatDataSource, ChatHeader, type ChatInputStateValue, ChatMachine, type ChatMachineConfig, type ChatMessagingStateValue, ChatSession, type ChatSessionContextValue, ChatSessionProvider, type ChatSessionProviderProps, type ChatSessionStateValue, type Citation$1 as Citation, MemoizedCodeBlock as CodeBlock, type CodeOutput$1 as CodeOutput, CodeOutputsPanel, CompactionDoodle, ConfigProvider, ConfirmModal, type ConfirmModalProps, ConfirmationStep, type ConversationTurn$1 as ConversationTurn, DateGroupHeader, DebugPanel, type DebugPanelProps, DefaultErrorContent, DownloadCard, MemoizedEditableText as EditableText, type EditableTextProps, type EditableTextRef, MemoizedEmptyState as EmptyState, type EmptyStateProps, ErrorBoundary, type FileValidationError, type FileVisual, HttpDataSource, type HttpDataSourceConfig, type ImageAttachment, type ImageLoadingStatus, ImageModal, InlineQuestionForm, type IotaContext, IotaContextProvider, ListItemSkeleton, MemoizedLoadingSpinner as LoadingSpinner, type LocaleContext, MemoizedMarkdownRenderer as MarkdownRenderer, MessageActions, MessageInput, type MessageInputProps, type MessageInputRef, MessageList, MessageRole, type MessageTransport, type PendingQuestion$1 as PendingQuestion, PermissionGuard, type PermissionGuardProps, type Question, type QuestionAnswerData, type QuestionAnswers, QuestionForm, type QuestionOption, QuestionStep, type QueuedMessage, type RPCErrorDisplay, RateLimiter, type RateLimiterConfig, RetryActionArea, ScreenReaderAnnouncer, ScrollToBottomButton, MemoizedSearchInput as SearchInput, type SearchInputProps, type Session$1 as Session, type SessionArtifact, SessionArtifactList, SessionArtifactPreview, SessionArtifactsPanel, type SessionGroup, SessionItem, type SessionListResult$1 as SessionListResult, SessionSkeleton, type SessionStore, type SessionUser, type ShortcutConfig, Sidebar, type SidebarDrawerProps, type SidebarProps, MemoizedSkeleton as Skeleton, SkeletonAvatar, SkeletonCard, SkeletonGroup, type SkeletonGroupProps, type SkeletonProps, SkeletonText, SkipLink, Slot, type SlotProps, SourcesPanel, type StreamChunk, StreamError, type StreamEvent, StreamingCursor, SystemMessage, TableExportButton, TableWithExport, type TenantContext, type Theme, type ThemeBorderRadius, type ThemeColors, ThemeProvider, type ThemeSpacing, Toast, ToastContainer, type ToastItem, type ToastProps, type ToastType, type ToolCall$1 as ToolCall, TouchContextMenu, Turn, type TurnActionsProps, type TurnAssistantProps, TurnBubble, type TurnBubbleClassNames, type TurnBubbleProps, type TurnRootProps, type TurnTimestampProps, type TurnUserProps, MemoizedTypingIndicator as TypingIndicator, type TypingIndicatorProps, type UseAttachmentsOptions, type UseAttachmentsReturn, type UseAutoScrollOptions, type UseAutoScrollReturn, type UseImageGalleryOptions, type UseImageGalleryReturn, type UseMarkdownCopyOptions, type UseMarkdownCopyReturn, type UseMessageActionsOptions, type UseMessageActionsReturn, type UseSidebarStateReturn, type UseToastReturn, MemoizedUserAvatar as UserAvatar, type UserAvatarProps, type UserContext, MemoizedUserFilter as UserFilter, UserMessage, type UserMessageActionsSlotProps, type UserMessageAttachmentsSlotProps, type UserMessageAvatarSlotProps, type UserMessageClassNames, type UserMessageContentSlotProps, type UserMessageProps, type UserMessageSlots, type UserTurn$1 as UserTurn, UserTurnView, type UserTurnViewProps, WelcomeContent, addCSRFHeader, backdropVariants, buttonVariants, convertToBase64, createDataUrl, createHeadersWithCSRF, createHttpDataSource, darkTheme, dropdownVariants, errorMessageVariants, fadeInUpVariants, fadeInVariants, floatingButtonVariants, formatFileSize, getCSRFToken, getFileVisual, getValidChildren, groupSessionsByDate, hasPermission, isImageMimeType, isPermissionDeniedError, lightTheme, listItemVariants, messageContainerVariants, messageVariants, parseBichatStream, parseBichatStreamEvents, parseSSEStream, scaleFadeVariants, sessionItemVariants, staggerContainerVariants, toErrorDisplay, typingDotVariants, useActionButtonContext, useAttachments, useAutoScroll, useAvatarContext, useBubbleContext, useChatInput, useChatMessaging, useChatSession, useConfig, useFocusTrap, useImageGallery, useIotaContext, useKeyboardShortcuts, useLongPress, useMarkdownCopy, useMessageActions, useModalLock, useOptionalChatMessaging, useRequiredConfig, useScrollToBottom, useSidebarState, useStreaming, useTheme, useToast, useTranslation, useTurnContext, validateAttachmentFile, validateFileCount, validateImageFile, verbTransitionVariants };
|
|
3669
|
+
export { ATTACHMENT_ACCEPT_ATTRIBUTE, ActionButton, type ActionButtonIconProps, type ActionButtonLabelProps, type ActionButtonRootProps, type ActionButtonTooltipProps, type AdminStore, _default$1 as Alert, AllChatsList, type AppConfig, _default as ArchiveBanner, ArchivedChatList, type Artifact$1 as Artifact, type ArtifactStore, type AsChildProps, AssistantMessage, type AssistantMessageActionsSlotProps, type AssistantMessageArtifactsSlotProps, type AssistantMessageAvatarSlotProps, type AssistantMessageChartsSlotProps, type AssistantMessageClassNames, type AssistantMessageCodeOutputsSlotProps, type AssistantMessageContentSlotProps, type AssistantMessageExplanationSlotProps, type AssistantMessageProps, type AssistantMessageSlots, type AssistantMessageSourcesSlotProps, type AssistantMessageTablesSlotProps, type AssistantTurn$1 as AssistantTurn, AssistantTurnView, type AssistantTurnViewProps, type Attachment$1 as Attachment, MemoizedAttachmentGrid as AttachmentGrid, AttachmentPreview, AttachmentUpload, Avatar, type AvatarFallbackProps, type AvatarImageProps, type AvatarRootProps, type BiChatConfig, BiChatLayout, type BiChatLayoutProps, type BichatRPC, Bubble, type BubbleContentProps, type BubbleFooterProps, type BubbleHeaderProps, type BubbleMetadataProps, type BubbleRootProps, type BubbleVariant, CHART_VISUAL, ChartCard, type ChartData, type ChartSeries, type ChatDataSource, ChatHeader, type ChatInputStateValue, ChatMachine, type ChatMachineConfig, type ChatMessagingStateValue, ChatSession, type ChatSessionContextValue, ChatSessionProvider, type ChatSessionProviderProps, type ChatSessionStateValue, type Citation$1 as Citation, MemoizedCodeBlock as CodeBlock, type CodeOutput$1 as CodeOutput, CodeOutputsPanel, CompactionDoodle, ConfigProvider, ConfirmModal, type ConfirmModalProps, ConfirmationStep, type ConversationTurn$1 as ConversationTurn, DateGroupHeader, DebugPanel, type DebugPanelProps, DefaultErrorContent, DownloadCard, MemoizedEditableText as EditableText, type EditableTextProps, type EditableTextRef, MemoizedEmptyState as EmptyState, type EmptyStateProps, ErrorBoundary, type FileValidationError, type FileVisual, HttpDataSource, type HttpDataSourceConfig, type ImageAttachment, type ImageLoadingStatus, ImageModal, InlineQuestionForm, InteractiveTableCard, type IotaContext, IotaContextProvider, ListItemSkeleton, MemoizedLoadingSpinner as LoadingSpinner, type LocaleContext, MemoizedMarkdownRenderer as MarkdownRenderer, MessageActions, MessageInput, type MessageInputProps, type MessageInputRef, MessageList, MessageRole, type MessageTransport, type PendingQuestion$1 as PendingQuestion, PermissionGuard, type PermissionGuardProps, type Question, type QuestionAnswerData, type QuestionAnswers, QuestionForm, type QuestionOption, QuestionStep, type QueuedMessage, type RPCErrorDisplay, RateLimiter, type RateLimiterConfig, type RenderTableData, type RenderTableExport, RetryActionArea, ScreenReaderAnnouncer, ScrollToBottomButton, MemoizedSearchInput as SearchInput, type SearchInputProps, type Session$1 as Session, type SessionArtifact, SessionArtifactList, SessionArtifactPreview, SessionArtifactsPanel, type SessionGroup, SessionItem, type SessionListResult$1 as SessionListResult, SessionSkeleton, type SessionStore, type SessionUser, type ShortcutConfig, Sidebar, type SidebarDrawerProps, type SidebarProps, MemoizedSkeleton as Skeleton, SkeletonAvatar, SkeletonCard, SkeletonGroup, type SkeletonGroupProps, type SkeletonProps, SkeletonText, SkipLink, Slot, type SlotProps, SourcesPanel, type StreamChunk, StreamError, type StreamEvent, StreamingCursor, SystemMessage, TableExportButton, TableWithExport, type TenantContext, type Theme, type ThemeBorderRadius, type ThemeColors, ThemeProvider, type ThemeSpacing, Toast, ToastContainer, type ToastItem, type ToastProps, type ToastType, type ToolCall$1 as ToolCall, TouchContextMenu, Turn, type TurnActionsProps, type TurnAssistantProps, TurnBubble, type TurnBubbleClassNames, type TurnBubbleProps, type TurnRootProps, type TurnTimestampProps, type TurnUserProps, MemoizedTypingIndicator as TypingIndicator, type TypingIndicatorProps, type UseAttachmentsOptions, type UseAttachmentsReturn, type UseAutoScrollOptions, type UseAutoScrollReturn, type UseImageGalleryOptions, type UseImageGalleryReturn, type UseMarkdownCopyOptions, type UseMarkdownCopyReturn, type UseMessageActionsOptions, type UseMessageActionsReturn, type UseSidebarStateReturn, type UseToastReturn, MemoizedUserAvatar as UserAvatar, type UserAvatarProps, type UserContext, MemoizedUserFilter as UserFilter, UserMessage, type UserMessageActionsSlotProps, type UserMessageAttachmentsSlotProps, type UserMessageAvatarSlotProps, type UserMessageClassNames, type UserMessageContentSlotProps, type UserMessageProps, type UserMessageSlots, type UserTurn$1 as UserTurn, UserTurnView, type UserTurnViewProps, WelcomeContent, addCSRFHeader, backdropVariants, buttonVariants, convertToBase64, createDataUrl, createHeadersWithCSRF, createHttpDataSource, darkTheme, dropdownVariants, errorMessageVariants, fadeInUpVariants, fadeInVariants, floatingButtonVariants, formatFileSize, getCSRFToken, getFileVisual, getValidChildren, groupSessionsByDate, hasPermission, isImageMimeType, isPermissionDeniedError, lightTheme, listItemVariants, messageContainerVariants, messageVariants, parseBichatStream, parseBichatStreamEvents, parseSSEStream, scaleFadeVariants, sessionItemVariants, staggerContainerVariants, toErrorDisplay, typingDotVariants, useActionButtonContext, useAttachments, useAutoScroll, useAvatarContext, useBubbleContext, useChatInput, useChatMessaging, useChatSession, useConfig, useFocusTrap, useImageGallery, useIotaContext, useKeyboardShortcuts, useLongPress, useMarkdownCopy, useMessageActions, useModalLock, useOptionalChatMessaging, useRequiredConfig, useScrollToBottom, useSidebarState, useStreaming, useTheme, useToast, useTranslation, useTurnContext, validateAttachmentFile, validateFileCount, validateImageFile, verbTransitionVariants };
|
package/dist/bichat/index.d.ts
CHANGED
|
@@ -129,6 +129,7 @@ interface AssistantTurn$1 {
|
|
|
129
129
|
citations: Citation$1[];
|
|
130
130
|
toolCalls?: ToolCall$1[];
|
|
131
131
|
chartData?: ChartData;
|
|
132
|
+
renderTables?: RenderTableData[];
|
|
132
133
|
artifacts: Artifact$1[];
|
|
133
134
|
codeOutputs: CodeOutput$1[];
|
|
134
135
|
debug?: DebugTrace$1;
|
|
@@ -175,6 +176,7 @@ interface Citation$1 {
|
|
|
175
176
|
interface Attachment$1 {
|
|
176
177
|
id?: string;
|
|
177
178
|
clientKey: string;
|
|
179
|
+
uploadId?: number;
|
|
178
180
|
filename: string;
|
|
179
181
|
mimeType: string;
|
|
180
182
|
sizeBytes: number;
|
|
@@ -230,6 +232,26 @@ interface ChartSeries {
|
|
|
230
232
|
/** Numeric data values */
|
|
231
233
|
data: number[];
|
|
232
234
|
}
|
|
235
|
+
interface RenderTableExport {
|
|
236
|
+
url: string;
|
|
237
|
+
filename: string;
|
|
238
|
+
rowCount?: number;
|
|
239
|
+
fileSizeKB?: number;
|
|
240
|
+
}
|
|
241
|
+
interface RenderTableData {
|
|
242
|
+
id: string;
|
|
243
|
+
title?: string;
|
|
244
|
+
query: string;
|
|
245
|
+
columns: string[];
|
|
246
|
+
headers: string[];
|
|
247
|
+
rows: unknown[][];
|
|
248
|
+
totalRows: number;
|
|
249
|
+
pageSize: number;
|
|
250
|
+
truncated: boolean;
|
|
251
|
+
truncatedReason?: string;
|
|
252
|
+
export?: RenderTableExport;
|
|
253
|
+
exportPrompt?: string;
|
|
254
|
+
}
|
|
233
255
|
interface Artifact$1 {
|
|
234
256
|
type: 'excel' | 'pdf';
|
|
235
257
|
filename: string;
|
|
@@ -242,6 +264,7 @@ interface SessionArtifact {
|
|
|
242
264
|
id: string;
|
|
243
265
|
sessionId: string;
|
|
244
266
|
messageId?: string;
|
|
267
|
+
uploadId?: number;
|
|
245
268
|
type: string;
|
|
246
269
|
name: string;
|
|
247
270
|
description?: string;
|
|
@@ -784,6 +807,10 @@ interface AssistantMessageCodeOutputsSlotProps {
|
|
|
784
807
|
/** Code execution outputs */
|
|
785
808
|
outputs: CodeOutput$1[];
|
|
786
809
|
}
|
|
810
|
+
interface AssistantMessageTablesSlotProps {
|
|
811
|
+
/** Interactive table payloads */
|
|
812
|
+
tables: RenderTableData[];
|
|
813
|
+
}
|
|
787
814
|
interface AssistantMessageArtifactsSlotProps {
|
|
788
815
|
/** Downloadable artifacts */
|
|
789
816
|
artifacts: Artifact$1[];
|
|
@@ -819,6 +846,8 @@ interface AssistantMessageSlots {
|
|
|
819
846
|
charts?: ReactNode | ((props: AssistantMessageChartsSlotProps) => ReactNode);
|
|
820
847
|
/** Custom code outputs renderer */
|
|
821
848
|
codeOutputs?: ReactNode | ((props: AssistantMessageCodeOutputsSlotProps) => ReactNode);
|
|
849
|
+
/** Custom table renderer */
|
|
850
|
+
tables?: ReactNode | ((props: AssistantMessageTablesSlotProps) => ReactNode);
|
|
822
851
|
/** Custom artifacts renderer */
|
|
823
852
|
artifacts?: ReactNode | ((props: AssistantMessageArtifactsSlotProps) => ReactNode);
|
|
824
853
|
/** Custom actions renderer */
|
|
@@ -839,6 +868,8 @@ interface AssistantMessageClassNames {
|
|
|
839
868
|
codeOutputs?: string;
|
|
840
869
|
/** Charts container */
|
|
841
870
|
charts?: string;
|
|
871
|
+
/** Tables container */
|
|
872
|
+
tables?: string;
|
|
842
873
|
/** Artifacts container */
|
|
843
874
|
artifacts?: string;
|
|
844
875
|
/** Sources container */
|
|
@@ -984,7 +1015,7 @@ declare function DownloadCard({ artifact }: DownloadCardProps): react_jsx_runtim
|
|
|
984
1015
|
interface InlineQuestionFormProps {
|
|
985
1016
|
pendingQuestion: PendingQuestion$1;
|
|
986
1017
|
}
|
|
987
|
-
declare function InlineQuestionForm({ pendingQuestion }: InlineQuestionFormProps): react_jsx_runtime.JSX.Element
|
|
1018
|
+
declare function InlineQuestionForm({ pendingQuestion }: InlineQuestionFormProps): react_jsx_runtime.JSX.Element;
|
|
988
1019
|
|
|
989
1020
|
interface MessageInputRef {
|
|
990
1021
|
focus: () => void;
|
|
@@ -1288,6 +1319,13 @@ interface TableWithExportProps {
|
|
|
1288
1319
|
}
|
|
1289
1320
|
declare const TableWithExport: react.NamedExoticComponent<TableWithExportProps>;
|
|
1290
1321
|
|
|
1322
|
+
interface InteractiveTableCardProps {
|
|
1323
|
+
table: RenderTableData;
|
|
1324
|
+
onSendMessage?: (content: string) => void;
|
|
1325
|
+
sendDisabled?: boolean;
|
|
1326
|
+
}
|
|
1327
|
+
declare const InteractiveTableCard: react.NamedExoticComponent<InteractiveTableCardProps>;
|
|
1328
|
+
|
|
1291
1329
|
/**
|
|
1292
1330
|
* useToast Hook
|
|
1293
1331
|
* Manages toast notification state
|
|
@@ -1435,6 +1473,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
|
|
|
1435
1473
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
1436
1474
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
1437
1475
|
handleReset: () => void;
|
|
1476
|
+
handleFallbackError: (error: Error, errorInfo: ErrorInfo) => void;
|
|
1438
1477
|
render(): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
1439
1478
|
}
|
|
1440
1479
|
|
|
@@ -2915,6 +2954,7 @@ interface HttpDataSourceConfig {
|
|
|
2915
2954
|
baseUrl: string;
|
|
2916
2955
|
rpcEndpoint: string;
|
|
2917
2956
|
streamEndpoint?: string;
|
|
2957
|
+
uploadEndpoint?: string;
|
|
2918
2958
|
csrfToken?: string | (() => string);
|
|
2919
2959
|
headers?: Record<string, string>;
|
|
2920
2960
|
timeout?: number;
|
|
@@ -2948,6 +2988,13 @@ declare class HttpDataSource implements ChatDataSource {
|
|
|
2948
2988
|
* Create headers for HTTP requests
|
|
2949
2989
|
*/
|
|
2950
2990
|
private createHeaders;
|
|
2991
|
+
private createUploadHeaders;
|
|
2992
|
+
private logAttachmentLifecycle;
|
|
2993
|
+
private normalizeAttachmentFile;
|
|
2994
|
+
private uploadFile;
|
|
2995
|
+
private attachmentToFile;
|
|
2996
|
+
private assertUploadReferences;
|
|
2997
|
+
private ensureAttachmentUpload;
|
|
2951
2998
|
private callRPC;
|
|
2952
2999
|
/**
|
|
2953
3000
|
* Create a new chat session
|
|
@@ -3107,6 +3154,7 @@ interface Artifact {
|
|
|
3107
3154
|
id: string;
|
|
3108
3155
|
sessionId: string;
|
|
3109
3156
|
messageId?: string;
|
|
3157
|
+
uploadId?: number;
|
|
3110
3158
|
type: string;
|
|
3111
3159
|
name: string;
|
|
3112
3160
|
description?: string;
|
|
@@ -3140,11 +3188,11 @@ interface AssistantTurn {
|
|
|
3140
3188
|
createdAt: string;
|
|
3141
3189
|
}
|
|
3142
3190
|
interface Attachment {
|
|
3143
|
-
id
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3191
|
+
id?: string;
|
|
3192
|
+
uploadId?: number;
|
|
3193
|
+
filename?: string;
|
|
3194
|
+
mimeType?: string;
|
|
3195
|
+
sizeBytes?: number;
|
|
3148
3196
|
url?: string;
|
|
3149
3197
|
}
|
|
3150
3198
|
interface Citation {
|
|
@@ -3473,6 +3521,7 @@ declare class ChatMachine {
|
|
|
3473
3521
|
private _setError;
|
|
3474
3522
|
private _retryFetchSession;
|
|
3475
3523
|
private _clearStreamError;
|
|
3524
|
+
private _notifySessionsUpdated;
|
|
3476
3525
|
private _cancel;
|
|
3477
3526
|
private _setCodeOutputs;
|
|
3478
3527
|
private _setMessage;
|
|
@@ -3617,4 +3666,4 @@ declare function isPermissionDeniedError(error: unknown): boolean;
|
|
|
3617
3666
|
*/
|
|
3618
3667
|
declare function toErrorDisplay(error: unknown, fallbackTitle: string): RPCErrorDisplay;
|
|
3619
3668
|
|
|
3620
|
-
export { ATTACHMENT_ACCEPT_ATTRIBUTE, ActionButton, type ActionButtonIconProps, type ActionButtonLabelProps, type ActionButtonRootProps, type ActionButtonTooltipProps, type AdminStore, _default$1 as Alert, AllChatsList, type AppConfig, _default as ArchiveBanner, ArchivedChatList, type Artifact$1 as Artifact, type ArtifactStore, type AsChildProps, AssistantMessage, type AssistantMessageActionsSlotProps, type AssistantMessageArtifactsSlotProps, type AssistantMessageAvatarSlotProps, type AssistantMessageChartsSlotProps, type AssistantMessageClassNames, type AssistantMessageCodeOutputsSlotProps, type AssistantMessageContentSlotProps, type AssistantMessageExplanationSlotProps, type AssistantMessageProps, type AssistantMessageSlots, type AssistantMessageSourcesSlotProps, type AssistantTurn$1 as AssistantTurn, AssistantTurnView, type AssistantTurnViewProps, type Attachment$1 as Attachment, MemoizedAttachmentGrid as AttachmentGrid, AttachmentPreview, AttachmentUpload, Avatar, type AvatarFallbackProps, type AvatarImageProps, type AvatarRootProps, type BiChatConfig, BiChatLayout, type BiChatLayoutProps, type BichatRPC, Bubble, type BubbleContentProps, type BubbleFooterProps, type BubbleHeaderProps, type BubbleMetadataProps, type BubbleRootProps, type BubbleVariant, CHART_VISUAL, ChartCard, type ChartData, type ChartSeries, type ChatDataSource, ChatHeader, type ChatInputStateValue, ChatMachine, type ChatMachineConfig, type ChatMessagingStateValue, ChatSession, type ChatSessionContextValue, ChatSessionProvider, type ChatSessionProviderProps, type ChatSessionStateValue, type Citation$1 as Citation, MemoizedCodeBlock as CodeBlock, type CodeOutput$1 as CodeOutput, CodeOutputsPanel, CompactionDoodle, ConfigProvider, ConfirmModal, type ConfirmModalProps, ConfirmationStep, type ConversationTurn$1 as ConversationTurn, DateGroupHeader, DebugPanel, type DebugPanelProps, DefaultErrorContent, DownloadCard, MemoizedEditableText as EditableText, type EditableTextProps, type EditableTextRef, MemoizedEmptyState as EmptyState, type EmptyStateProps, ErrorBoundary, type FileValidationError, type FileVisual, HttpDataSource, type HttpDataSourceConfig, type ImageAttachment, type ImageLoadingStatus, ImageModal, InlineQuestionForm, type IotaContext, IotaContextProvider, ListItemSkeleton, MemoizedLoadingSpinner as LoadingSpinner, type LocaleContext, MemoizedMarkdownRenderer as MarkdownRenderer, MessageActions, MessageInput, type MessageInputProps, type MessageInputRef, MessageList, MessageRole, type MessageTransport, type PendingQuestion$1 as PendingQuestion, PermissionGuard, type PermissionGuardProps, type Question, type QuestionAnswerData, type QuestionAnswers, QuestionForm, type QuestionOption, QuestionStep, type QueuedMessage, type RPCErrorDisplay, RateLimiter, type RateLimiterConfig, RetryActionArea, ScreenReaderAnnouncer, ScrollToBottomButton, MemoizedSearchInput as SearchInput, type SearchInputProps, type Session$1 as Session, type SessionArtifact, SessionArtifactList, SessionArtifactPreview, SessionArtifactsPanel, type SessionGroup, SessionItem, type SessionListResult$1 as SessionListResult, SessionSkeleton, type SessionStore, type SessionUser, type ShortcutConfig, Sidebar, type SidebarDrawerProps, type SidebarProps, MemoizedSkeleton as Skeleton, SkeletonAvatar, SkeletonCard, SkeletonGroup, type SkeletonGroupProps, type SkeletonProps, SkeletonText, SkipLink, Slot, type SlotProps, SourcesPanel, type StreamChunk, StreamError, type StreamEvent, StreamingCursor, SystemMessage, TableExportButton, TableWithExport, type TenantContext, type Theme, type ThemeBorderRadius, type ThemeColors, ThemeProvider, type ThemeSpacing, Toast, ToastContainer, type ToastItem, type ToastProps, type ToastType, type ToolCall$1 as ToolCall, TouchContextMenu, Turn, type TurnActionsProps, type TurnAssistantProps, TurnBubble, type TurnBubbleClassNames, type TurnBubbleProps, type TurnRootProps, type TurnTimestampProps, type TurnUserProps, MemoizedTypingIndicator as TypingIndicator, type TypingIndicatorProps, type UseAttachmentsOptions, type UseAttachmentsReturn, type UseAutoScrollOptions, type UseAutoScrollReturn, type UseImageGalleryOptions, type UseImageGalleryReturn, type UseMarkdownCopyOptions, type UseMarkdownCopyReturn, type UseMessageActionsOptions, type UseMessageActionsReturn, type UseSidebarStateReturn, type UseToastReturn, MemoizedUserAvatar as UserAvatar, type UserAvatarProps, type UserContext, MemoizedUserFilter as UserFilter, UserMessage, type UserMessageActionsSlotProps, type UserMessageAttachmentsSlotProps, type UserMessageAvatarSlotProps, type UserMessageClassNames, type UserMessageContentSlotProps, type UserMessageProps, type UserMessageSlots, type UserTurn$1 as UserTurn, UserTurnView, type UserTurnViewProps, WelcomeContent, addCSRFHeader, backdropVariants, buttonVariants, convertToBase64, createDataUrl, createHeadersWithCSRF, createHttpDataSource, darkTheme, dropdownVariants, errorMessageVariants, fadeInUpVariants, fadeInVariants, floatingButtonVariants, formatFileSize, getCSRFToken, getFileVisual, getValidChildren, groupSessionsByDate, hasPermission, isImageMimeType, isPermissionDeniedError, lightTheme, listItemVariants, messageContainerVariants, messageVariants, parseBichatStream, parseBichatStreamEvents, parseSSEStream, scaleFadeVariants, sessionItemVariants, staggerContainerVariants, toErrorDisplay, typingDotVariants, useActionButtonContext, useAttachments, useAutoScroll, useAvatarContext, useBubbleContext, useChatInput, useChatMessaging, useChatSession, useConfig, useFocusTrap, useImageGallery, useIotaContext, useKeyboardShortcuts, useLongPress, useMarkdownCopy, useMessageActions, useModalLock, useOptionalChatMessaging, useRequiredConfig, useScrollToBottom, useSidebarState, useStreaming, useTheme, useToast, useTranslation, useTurnContext, validateAttachmentFile, validateFileCount, validateImageFile, verbTransitionVariants };
|
|
3669
|
+
export { ATTACHMENT_ACCEPT_ATTRIBUTE, ActionButton, type ActionButtonIconProps, type ActionButtonLabelProps, type ActionButtonRootProps, type ActionButtonTooltipProps, type AdminStore, _default$1 as Alert, AllChatsList, type AppConfig, _default as ArchiveBanner, ArchivedChatList, type Artifact$1 as Artifact, type ArtifactStore, type AsChildProps, AssistantMessage, type AssistantMessageActionsSlotProps, type AssistantMessageArtifactsSlotProps, type AssistantMessageAvatarSlotProps, type AssistantMessageChartsSlotProps, type AssistantMessageClassNames, type AssistantMessageCodeOutputsSlotProps, type AssistantMessageContentSlotProps, type AssistantMessageExplanationSlotProps, type AssistantMessageProps, type AssistantMessageSlots, type AssistantMessageSourcesSlotProps, type AssistantMessageTablesSlotProps, type AssistantTurn$1 as AssistantTurn, AssistantTurnView, type AssistantTurnViewProps, type Attachment$1 as Attachment, MemoizedAttachmentGrid as AttachmentGrid, AttachmentPreview, AttachmentUpload, Avatar, type AvatarFallbackProps, type AvatarImageProps, type AvatarRootProps, type BiChatConfig, BiChatLayout, type BiChatLayoutProps, type BichatRPC, Bubble, type BubbleContentProps, type BubbleFooterProps, type BubbleHeaderProps, type BubbleMetadataProps, type BubbleRootProps, type BubbleVariant, CHART_VISUAL, ChartCard, type ChartData, type ChartSeries, type ChatDataSource, ChatHeader, type ChatInputStateValue, ChatMachine, type ChatMachineConfig, type ChatMessagingStateValue, ChatSession, type ChatSessionContextValue, ChatSessionProvider, type ChatSessionProviderProps, type ChatSessionStateValue, type Citation$1 as Citation, MemoizedCodeBlock as CodeBlock, type CodeOutput$1 as CodeOutput, CodeOutputsPanel, CompactionDoodle, ConfigProvider, ConfirmModal, type ConfirmModalProps, ConfirmationStep, type ConversationTurn$1 as ConversationTurn, DateGroupHeader, DebugPanel, type DebugPanelProps, DefaultErrorContent, DownloadCard, MemoizedEditableText as EditableText, type EditableTextProps, type EditableTextRef, MemoizedEmptyState as EmptyState, type EmptyStateProps, ErrorBoundary, type FileValidationError, type FileVisual, HttpDataSource, type HttpDataSourceConfig, type ImageAttachment, type ImageLoadingStatus, ImageModal, InlineQuestionForm, InteractiveTableCard, type IotaContext, IotaContextProvider, ListItemSkeleton, MemoizedLoadingSpinner as LoadingSpinner, type LocaleContext, MemoizedMarkdownRenderer as MarkdownRenderer, MessageActions, MessageInput, type MessageInputProps, type MessageInputRef, MessageList, MessageRole, type MessageTransport, type PendingQuestion$1 as PendingQuestion, PermissionGuard, type PermissionGuardProps, type Question, type QuestionAnswerData, type QuestionAnswers, QuestionForm, type QuestionOption, QuestionStep, type QueuedMessage, type RPCErrorDisplay, RateLimiter, type RateLimiterConfig, type RenderTableData, type RenderTableExport, RetryActionArea, ScreenReaderAnnouncer, ScrollToBottomButton, MemoizedSearchInput as SearchInput, type SearchInputProps, type Session$1 as Session, type SessionArtifact, SessionArtifactList, SessionArtifactPreview, SessionArtifactsPanel, type SessionGroup, SessionItem, type SessionListResult$1 as SessionListResult, SessionSkeleton, type SessionStore, type SessionUser, type ShortcutConfig, Sidebar, type SidebarDrawerProps, type SidebarProps, MemoizedSkeleton as Skeleton, SkeletonAvatar, SkeletonCard, SkeletonGroup, type SkeletonGroupProps, type SkeletonProps, SkeletonText, SkipLink, Slot, type SlotProps, SourcesPanel, type StreamChunk, StreamError, type StreamEvent, StreamingCursor, SystemMessage, TableExportButton, TableWithExport, type TenantContext, type Theme, type ThemeBorderRadius, type ThemeColors, ThemeProvider, type ThemeSpacing, Toast, ToastContainer, type ToastItem, type ToastProps, type ToastType, type ToolCall$1 as ToolCall, TouchContextMenu, Turn, type TurnActionsProps, type TurnAssistantProps, TurnBubble, type TurnBubbleClassNames, type TurnBubbleProps, type TurnRootProps, type TurnTimestampProps, type TurnUserProps, MemoizedTypingIndicator as TypingIndicator, type TypingIndicatorProps, type UseAttachmentsOptions, type UseAttachmentsReturn, type UseAutoScrollOptions, type UseAutoScrollReturn, type UseImageGalleryOptions, type UseImageGalleryReturn, type UseMarkdownCopyOptions, type UseMarkdownCopyReturn, type UseMessageActionsOptions, type UseMessageActionsReturn, type UseSidebarStateReturn, type UseToastReturn, MemoizedUserAvatar as UserAvatar, type UserAvatarProps, type UserContext, MemoizedUserFilter as UserFilter, UserMessage, type UserMessageActionsSlotProps, type UserMessageAttachmentsSlotProps, type UserMessageAvatarSlotProps, type UserMessageClassNames, type UserMessageContentSlotProps, type UserMessageProps, type UserMessageSlots, type UserTurn$1 as UserTurn, UserTurnView, type UserTurnViewProps, WelcomeContent, addCSRFHeader, backdropVariants, buttonVariants, convertToBase64, createDataUrl, createHeadersWithCSRF, createHttpDataSource, darkTheme, dropdownVariants, errorMessageVariants, fadeInUpVariants, fadeInVariants, floatingButtonVariants, formatFileSize, getCSRFToken, getFileVisual, getValidChildren, groupSessionsByDate, hasPermission, isImageMimeType, isPermissionDeniedError, lightTheme, listItemVariants, messageContainerVariants, messageVariants, parseBichatStream, parseBichatStreamEvents, parseSSEStream, scaleFadeVariants, sessionItemVariants, staggerContainerVariants, toErrorDisplay, typingDotVariants, useActionButtonContext, useAttachments, useAutoScroll, useAvatarContext, useBubbleContext, useChatInput, useChatMessaging, useChatSession, useConfig, useFocusTrap, useImageGallery, useIotaContext, useKeyboardShortcuts, useLongPress, useMarkdownCopy, useMessageActions, useModalLock, useOptionalChatMessaging, useRequiredConfig, useScrollToBottom, useSidebarState, useStreaming, useTheme, useToast, useTranslation, useTurnContext, validateAttachmentFile, validateFileCount, validateImageFile, verbTransitionVariants };
|