@mxmweb/aichat 1.9.8 → 2.0.0

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.
Files changed (69) hide show
  1. package/README.md +14 -7
  2. package/assets/style.css +1 -1
  3. package/components/AiChat.d.ts +5 -1
  4. package/index.js +6375 -6277
  5. package/package.json +1 -1
  6. package/stats.html +1 -1
  7. package/utils/fileIcon.d.ts +9 -0
  8. package/LoginPage/components/Login/LoginBox/index.d.ts +0 -18
  9. package/LoginPage/components/Login/RegisterBox/index.d.ts +0 -15
  10. package/LoginPage/components/Login/index.d.ts +0 -17
  11. package/LoginPage/index.d.ts +0 -4
  12. package/LoginPage/useServices.d.ts +0 -9
  13. package/LoginPage/utils.d.ts +0 -2
  14. package/adopters/GientechChat/Conversations/Item.d.ts +0 -10
  15. package/adopters/GientechChat/Conversations/List.d.ts +0 -18
  16. package/adopters/GientechChat/Conversations/groupByTime.d.ts +0 -17
  17. package/adopters/GientechChat/Conversations/index.d.ts +0 -18
  18. package/adopters/GientechChat/constants.d.ts +0 -17
  19. package/adopters/GientechChat/index.d.ts +0 -42
  20. package/adopters/GientechChat/types.d.ts +0 -14
  21. package/adopters/HeadLessChat/constants.d.ts +0 -16
  22. package/adopters/HeadLessChat/index.d.ts +0 -14
  23. package/adopters/HeadLessChat/types.d.ts +0 -21
  24. package/adopters/gientechCommon/components/AppError.d.ts +0 -4
  25. package/adopters/gientechCommon/components/AppLoading.d.ts +0 -1
  26. package/adopters/gientechCommon/components/DeleteModal.d.ts +0 -1
  27. package/adopters/gientechCommon/components/DisplayError.d.ts +0 -1
  28. package/adopters/gientechCommon/components/DisplayLoading.d.ts +0 -1
  29. package/adopters/gientechCommon/components/FeedBackModal.d.ts +0 -2
  30. package/adopters/gientechCommon/components/FileManager/FileCardCommon.d.ts +0 -19
  31. package/adopters/gientechCommon/components/FileManager/index.d.ts +0 -21
  32. package/adopters/gientechCommon/components/Messages/GientechNewChatWelcome.d.ts +0 -11
  33. package/adopters/gientechCommon/components/Messages/ReferenceCard.d.ts +0 -17
  34. package/adopters/gientechCommon/components/Messages/RetriveItem.d.ts +0 -28
  35. package/adopters/gientechCommon/components/Messages/WebRetriveItem.d.ts +0 -3
  36. package/adopters/gientechCommon/components/RenameModal.d.ts +0 -1
  37. package/adopters/gientechCommon/configs/commonConfig.d.ts +0 -2
  38. package/adopters/gientechCommon/configs/senderConfig.d.ts +0 -1
  39. package/adopters/gientechCommon/configs/stylesConfig.d.ts +0 -88
  40. package/adopters/gientechCommon/hooks/AichatUseController.d.ts +0 -45
  41. package/adopters/gientechCommon/utils/request.d.ts +0 -2
  42. package/adopters/gientechCommon/utils/serverFn.d.ts +0 -52
  43. package/core/AiChat.d.ts +0 -73
  44. package/core/AiChat.types.d.ts +0 -106
  45. package/core/DefaultAppError.d.ts +0 -1
  46. package/core/DefaultAppLoading.d.ts +0 -1
  47. package/core/DefaultDisplayError.d.ts +0 -1
  48. package/core/DefaultDisplayLoading.d.ts +0 -1
  49. package/core/DefaultNewChatWelcome.d.ts +0 -1
  50. package/core/Displayer/DefaultAiChatBox.d.ts +0 -1
  51. package/core/Displayer/DefaultUserChatBox.d.ts +0 -1
  52. package/core/Displayer/index.d.ts +0 -14
  53. package/core/DynamicForm.d.ts +0 -8
  54. package/core/Loading.d.ts +0 -1
  55. package/core/Sender/FileUpload.d.ts +0 -12
  56. package/core/Sender/FilesDisplay.d.ts +0 -16
  57. package/core/Sender/VoiceInput.d.ts +0 -6
  58. package/core/Sender/contexts/BadgeContext.d.ts +0 -10
  59. package/core/Sender/index.d.ts +0 -33
  60. package/core/Sidebar/Loading.d.ts +0 -1
  61. package/core/Sidebar/RetriveConfigPanel.d.ts +0 -10
  62. package/core/Sidebar/useDynamicFormItems.d.ts +0 -2
  63. package/core/SidebarProp.d.ts +0 -16
  64. package/core/common/FileCardCommon.d.ts +0 -19
  65. package/core/defaultStyleSet.d.ts +0 -94
  66. package/core/styles.config.d.ts +0 -4
  67. package/servers/chatApi.d.ts +0 -7
  68. package/servers/fileApi.d.ts +0 -5
  69. package/servers/modelApi.d.ts +0 -8
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * 文件类型图标获取函数
4
+ * 优先使用用户传入的 styles.theme.icons,如果没有则使用默认图标
5
+ * @param type 文件类型(如 'pdf', 'docx', 'jpg' 等)
6
+ * @param styles 样式配置对象,可包含 theme.icons 自定义图标
7
+ * @returns React.ReactNode 图标组件
8
+ */
9
+ export declare function getFileTypeIcon(type: string, styles?: any): React.ReactNode;
@@ -1,18 +0,0 @@
1
- import { FormInstance } from 'antd';
2
- import { default as React } from 'react';
3
- export declare enum LoginFormActionEnum {
4
- CANCEL = "cancel",
5
- SUBMIT = "submit",
6
- REFRESH = "refresh",
7
- REGISTER = "register"
8
- }
9
- interface Iprops {
10
- setIsRegister: React.Dispatch<React.SetStateAction<boolean>>;
11
- logoImg?: string;
12
- eventEmit?: (n: string, d: any) => void;
13
- form: FormInstance<any>;
14
- codeImgSrc?: string;
15
- loginLoading?: boolean;
16
- }
17
- declare const LoginBox: React.FC<Iprops>;
18
- export default LoginBox;
@@ -1,15 +0,0 @@
1
- import { FormInstance } from 'antd';
2
- import { default as React } from 'react';
3
- export declare enum RegisterFormActionEnum {
4
- CANCEL = "cancel",
5
- SUBMIT = "submit"
6
- }
7
- interface Iprops {
8
- eventEmit?: (name: string, data: any) => void;
9
- setIsRegister: React.Dispatch<React.SetStateAction<boolean>>;
10
- form: FormInstance<any>;
11
- registerLoading?: boolean;
12
- registreKaptchaUrl?: string;
13
- }
14
- declare const RegisterBox: React.FC<Iprops>;
15
- export default RegisterBox;
@@ -1,17 +0,0 @@
1
- interface LoginStyle {
2
- defaultBg?: string;
3
- colorPrimary?: string;
4
- }
5
- interface LoginProps {
6
- homeBg?: string;
7
- leftImg?: string;
8
- logoImg?: string;
9
- eventEmit?: (n: string, d: any) => void;
10
- loginLoading?: boolean;
11
- registerLoading?: boolean;
12
- codeImgSrc?: string;
13
- loginStyle?: LoginStyle;
14
- registreKaptchaUrl?: string;
15
- }
16
- declare const Login: (props: LoginProps) => import("react/jsx-runtime").JSX.Element;
17
- export default Login;
@@ -1,4 +0,0 @@
1
- declare function LoginPage({ setToken }: {
2
- setToken: (token: string) => void;
3
- }): import("react/jsx-runtime").JSX.Element;
4
- export default LoginPage;
@@ -1,9 +0,0 @@
1
- export declare const login: (config: {
2
- url: string;
3
- }, data: {
4
- restult: number;
5
- queryId: string;
6
- }, sucCb: (arg: any) => void, failCb?: (arg: any) => void) => Promise<void>;
7
- export declare const api_getKaptchaImage: (config: {
8
- url: string;
9
- }, cb: (arg: any) => void) => void;
@@ -1,2 +0,0 @@
1
- export declare const Encrypt: (word: any, keyStr?: any, ivStr?: any) => string;
2
- export declare const Decrypt: (word: string, keyStr: string, ivStr: string) => string;
@@ -1,10 +0,0 @@
1
- import { ListItemType } from '.';
2
- export interface GientechConversationBarItemProps {
3
- isActive: boolean;
4
- isDisabled: boolean;
5
- data: ListItemType;
6
- isNew: boolean;
7
- eventsEmit?: (type: string, data?: any) => void;
8
- styles?: any;
9
- }
10
- export declare function GientechConversationBarItem({ isActive, isNew, isDisabled, data, eventsEmit, styles }: GientechConversationBarItemProps): import("react/jsx-runtime").JSX.Element;
@@ -1,18 +0,0 @@
1
- import { ListItemType } from './groupByTime';
2
- export interface GientechConversationBarListProps {
3
- data: ListItemType[];
4
- activedItem: string;
5
- onChange?: (sessionId: string) => void;
6
- onDelete?: (item: ListItemType) => void;
7
- sortRules?: {
8
- label: string;
9
- dayPeriod: number;
10
- }[];
11
- eventsEmit?: (eventName: string, data?: any) => void;
12
- assistantList?: any[];
13
- height?: number;
14
- styles?: any;
15
- }
16
- export declare function GientechConversationBarList(props: GientechConversationBarListProps & {
17
- styles?: any;
18
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,17 +0,0 @@
1
- export interface ListItemType {
2
- label: string;
3
- sessionId: string;
4
- gmtModified: number;
5
- [key: string]: any;
6
- }
7
- export interface SortRule {
8
- label: string;
9
- dayPeriod: number;
10
- }
11
- /**
12
- * 按时间分组会话数据
13
- * @param data 会话列表
14
- * @param rules 分组规则
15
- * @returns 分组后的对象
16
- */
17
- export declare function groupConversationsByTime(data: ListItemType[], rules?: SortRule[]): Record<string, ListItemType[]>;
@@ -1,18 +0,0 @@
1
- export interface ListItemType {
2
- label: string;
3
- sessionId: string;
4
- gmtModified: number;
5
- [key: string]: any;
6
- }
7
- export interface GientechConversationPanelProps {
8
- data: ListItemType[];
9
- sortRules?: {
10
- label: string;
11
- dayPeriod: number;
12
- }[];
13
- activedItem: string;
14
- eventsEmit?: (eventName: string, data?: any) => void;
15
- assistantList?: any[];
16
- styles?: any;
17
- }
18
- export default function GientechConversationPanel(props: GientechConversationPanelProps): import("react/jsx-runtime").JSX.Element;
@@ -1,17 +0,0 @@
1
- export declare const DefaultSenderConfig: {
2
- actions: {
3
- icon: import("react/jsx-runtime").JSX.Element;
4
- name: string;
5
- badgeCount: number;
6
- }[];
7
- switchs: {
8
- label: string;
9
- name: string;
10
- type: string;
11
- defaultValue: boolean;
12
- enabled: boolean;
13
- icon: import("react/jsx-runtime").JSX.Element;
14
- }[];
15
- };
16
- export declare const MaxHistoryChatDisplay = 5000;
17
- export declare const MaxHistoryItemDisplay = 3000;
@@ -1,42 +0,0 @@
1
- import { default as React } from 'react';
2
- import { default as AiChat } from '../../core/AiChat';
3
- import { Styles } from '@mxmweb/zui';
4
- interface SenderConfig {
5
- actions?: Array<{
6
- name: string;
7
- icon?: React.ReactNode;
8
- badgeCount?: number;
9
- enabled?: boolean;
10
- [key: string]: any;
11
- }>;
12
- switchs?: Array<{
13
- name: string;
14
- label: string;
15
- enabled?: boolean;
16
- [key: string]: any;
17
- }>;
18
- [key: string]: any;
19
- }
20
- interface CustomComponents {
21
- LogoBox?: React.ComponentType<any> | null;
22
- AiChatBox?: React.ComponentType<any>;
23
- UserChatBox?: React.ComponentType<any>;
24
- WelcomeComponent?: React.ComponentType<any>;
25
- DisplayLoading?: React.ComponentType<any>;
26
- DisplayError?: React.ComponentType<any>;
27
- AppError?: React.ComponentType<any>;
28
- AppLoading?: React.ComponentType<any>;
29
- [key: string]: React.ComponentType<any> | null | undefined;
30
- }
31
- interface GientechChatAdopterProps {
32
- token: string;
33
- url?: string;
34
- CSRFToken?: string;
35
- styles?: Styles;
36
- eventsEmit?: (eventName: string, data: any) => void;
37
- CustomComponents?: CustomComponents;
38
- senderConfig?: SenderConfig;
39
- [key: string]: any;
40
- }
41
- export default function withGientechChatAdopter(WrappedComponent?: typeof AiChat): ({ token, url, styles, CSRFToken, eventsEmit, ...rest }: GientechChatAdopterProps) => import("react/jsx-runtime").JSX.Element;
42
- export {};
@@ -1,14 +0,0 @@
1
- export interface UploadedFile {
2
- name: string;
3
- size: number;
4
- type: string;
5
- filePath: string;
6
- convertedFilePath?: string;
7
- uid: string;
8
- }
9
- export interface EmptyMessageData {
10
- content: string;
11
- filePaths?: string;
12
- queryId: string;
13
- currentFiles?: UploadedFile[];
14
- }
@@ -1,16 +0,0 @@
1
- export declare const DefaultSenderConfig: {
2
- actions: {
3
- icon: import("react/jsx-runtime").JSX.Element;
4
- name: string;
5
- badgeCount: number;
6
- }[];
7
- switchs: {
8
- label: string;
9
- name: string;
10
- type: string;
11
- defaultValue: boolean;
12
- enabled: boolean;
13
- icon: import("react/jsx-runtime").JSX.Element;
14
- }[];
15
- };
16
- export declare const MaxHistoryChatDisplay = 5000;
@@ -1,14 +0,0 @@
1
- import { default as AiChat } from '../../core/AiChat';
2
- interface HeadlessChatAdopterProps {
3
- token: string;
4
- url?: string;
5
- configId?: string;
6
- useLogin?: boolean;
7
- styles?: any;
8
- welcomeContent?: string;
9
- onError?: (ems: any) => void;
10
- eventsEmit?: (eventName: string, data: any) => void;
11
- [key: string]: any;
12
- }
13
- export default function withHeadLessChatAdopter(WrappedComponent?: typeof AiChat): ({ token, url, welcomeContent, styles, eventsEmit, onError, configId, ...rest }: HeadlessChatAdopterProps) => import("react/jsx-runtime").JSX.Element;
14
- export {};
@@ -1,21 +0,0 @@
1
- export interface UploadedFile {
2
- name: string;
3
- size: number;
4
- type: string;
5
- filePath: string;
6
- convertedFilePath?: string;
7
- uid: string;
8
- }
9
- export interface EmptyMessageData {
10
- content: string;
11
- filePaths?: string;
12
- queryId: string;
13
- currentFiles?: UploadedFile[];
14
- }
15
- export interface GientechChatAdopterProps {
16
- token: string;
17
- url?: string;
18
- styles?: any;
19
- eventsEmit?: (eventName: string, data: any) => void;
20
- [key: string]: any;
21
- }
@@ -1,4 +0,0 @@
1
- export default function AppError({ msg, subMsg }: {
2
- msg?: string;
3
- subMsg?: string;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function AppLoading(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const DeleteModal: ({ isModalOpen, handleOk, handleCancel, data }: any) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function DisplayError(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function DisplayLoading(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- declare const FeedBackModal: ({ open, setOpen, feedBackList, handleConfirm }: any) => import("react/jsx-runtime").JSX.Element;
2
- export default FeedBackModal;
@@ -1,19 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface FileCardCommonProps {
3
- fileName: string;
4
- fileSize?: number;
5
- icon: React.ReactNode;
6
- statusText?: string;
7
- statusColor?: string;
8
- statusIcon?: React.ReactNode;
9
- onRemove?: () => void;
10
- themeColors?: any;
11
- cardId?: string;
12
- showRemove?: boolean;
13
- disabledRemove?: boolean;
14
- onRemoveWithAnim?: (id: string) => void;
15
- extra?: React.ReactNode;
16
- style?: React.CSSProperties;
17
- }
18
- declare const FileCardCommon: React.FC<FileCardCommonProps>;
19
- export default FileCardCommon;
@@ -1,21 +0,0 @@
1
- import { Styles } from '@mxmweb/zui';
2
- export declare function getFileTypeIcon(type: string, styles?: any): import("react/jsx-runtime").JSX.Element;
3
- interface FileItem {
4
- file: File;
5
- preview?: string;
6
- type: string;
7
- status?: 'pending' | 'uploading' | 'uploaded' | 'error';
8
- url?: string;
9
- error?: string;
10
- }
11
- export default function FileManager({ open, onCancel, files, currentFiles, onUpload, onRemoveFile, styles, eventsEmit }: {
12
- open: boolean;
13
- onCancel: () => void;
14
- files: FileItem[];
15
- styles: Styles;
16
- currentFiles: FileItem[];
17
- onUpload?: (files: FileList) => void;
18
- onRemoveFile?: (file: FileItem, idx: number, type: 'uploaded' | 'pending') => void;
19
- eventsEmit?: (eventName: string, payload?: any) => void;
20
- }): import("react/jsx-runtime").JSX.Element;
21
- export {};
@@ -1,11 +0,0 @@
1
- import { Styles } from '@mxmweb/zui';
2
- interface GientechNewChatWelcomeProps {
3
- assistantList: any[];
4
- eventsEmit?: (type: string, data?: any) => void;
5
- styles?: Styles;
6
- selectedId?: string;
7
- onSelectAssistant?: (id: string) => void;
8
- productLogo?: string;
9
- }
10
- declare function GientechNewChatWelcome(props: GientechNewChatWelcomeProps): import("react/jsx-runtime").JSX.Element;
11
- export default GientechNewChatWelcome;
@@ -1,17 +0,0 @@
1
- import { default as React } from 'react';
2
- interface ReferenceCardProps {
3
- file_type?: string;
4
- file_name?: string;
5
- url?: string;
6
- parse_url?: string;
7
- retrieve_tags?: any[];
8
- clip_from?: string;
9
- eventsEmit?: (eventName: string, payload?: any) => void;
10
- styles: any;
11
- onlyDownloadTypes?: string[];
12
- type?: 'file' | 'image' | 'collection';
13
- collectionItems?: Array<Partial<ReferenceCardProps>>;
14
- [key: string]: any;
15
- }
16
- declare const ReferenceCard: React.FC<ReferenceCardProps>;
17
- export default ReferenceCard;
@@ -1,28 +0,0 @@
1
- import { default as React } from 'react';
2
- interface Tag {
3
- id: string;
4
- index: string;
5
- image_urls: string[];
6
- fromtype: string;
7
- }
8
- interface RetriveFile {
9
- file_id: string;
10
- file_name: string;
11
- file_type: string;
12
- score: number;
13
- tags: Tag[];
14
- parsedFilePath?: string;
15
- }
16
- interface RetriveItemProps {
17
- is_download?: string;
18
- from?: string;
19
- files: RetriveFile[];
20
- onQa?: (file: RetriveFile) => void;
21
- onPreview?: (file: RetriveFile) => void;
22
- onDownload?: (file: RetriveFile) => void;
23
- styles?: any;
24
- onTagClick?: (tag: Tag, file: RetriveFile) => void;
25
- eventsEmit?: (eventName: string, payload?: any) => void;
26
- }
27
- declare const RetriveItem: React.FC<RetriveItemProps>;
28
- export default RetriveItem;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const WebRetriveItem: React.FC<any>;
3
- export default WebRetriveItem;
@@ -1 +0,0 @@
1
- export declare const RenameModal: ({ isModalOpen, handleOk, handleCancel, data }: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export declare const maxPollCount = 1000;
2
- export declare const maxPollInterval = 3000;
@@ -1 +0,0 @@
1
- export {};
@@ -1,88 +0,0 @@
1
- export type SizeType = 'sm' | 'md' | 'lg';
2
- export type FontWeightType = 'normal' | 'bold' | 'thin';
3
- export type FontFamilyType = 'default' | 'serif' | 'mono';
4
- export interface AiChatStyles {
5
- theme?: AppTheme;
6
- mode?: 'light' | 'dark';
7
- [key: string]: any;
8
- }
9
- export interface ThemeColors {
10
- primary: string;
11
- secondary: string;
12
- success: string;
13
- warning: string;
14
- error: string;
15
- info: string;
16
- background: string;
17
- text: string;
18
- border: string;
19
- disabled: string;
20
- disabledBackground: string;
21
- disabledText: string;
22
- shadow: string;
23
- appBackground: string;
24
- }
25
- export interface ThemeOthers {
26
- }
27
- export interface ThemeSpace {
28
- sidebar: string;
29
- size: string;
30
- radius: string;
31
- padding: string;
32
- margin: string;
33
- shadow: string;
34
- lineHeight: string;
35
- }
36
- export interface ThemeIcons {
37
- aiAvatar: string;
38
- userAvatar: string;
39
- pdf: string;
40
- word: string;
41
- image: string;
42
- video: string;
43
- audio: string;
44
- excel: string;
45
- ppt: string;
46
- }
47
- export interface AppTheme {
48
- colors: ThemeColors;
49
- space: ThemeSpace;
50
- icons: ThemeIcons;
51
- others: ThemeOthers;
52
- }
53
- export declare const defaultTheme: AppTheme;
54
- export declare const sidebarMap: {
55
- sm: string;
56
- md: string;
57
- lg: string;
58
- };
59
- export declare const sizeMap: {
60
- sm: string;
61
- md: string;
62
- lg: string;
63
- };
64
- export declare const radiusMap: {
65
- sm: string;
66
- md: string;
67
- lg: string;
68
- };
69
- export declare const paddingMap: {
70
- sm: string;
71
- md: string;
72
- lg: string;
73
- };
74
- export declare const marginMap: {
75
- sm: string;
76
- md: string;
77
- lg: string;
78
- };
79
- export declare const shadowMap: {
80
- sm: string;
81
- md: string;
82
- lg: string;
83
- };
84
- export declare const lineHeightMap: {
85
- sm: string;
86
- md: string;
87
- lg: string;
88
- };
@@ -1,45 +0,0 @@
1
- import { AppStatusManager } from '../../../core/AiChat';
2
- interface Api_Chat {
3
- sessionId: string;
4
- queryId: string;
5
- name: string;
6
- lastDate: string | number;
7
- type: string;
8
- content: string;
9
- configId: string;
10
- audioUrl: string;
11
- fileUids: any[];
12
- signal?: AbortSignal;
13
- sysType?: 'KNO_INDEX' | 'INT_SESSION' | 'TEMPORARY';
14
- }
15
- export declare enum StatusType {
16
- Pending = 0,
17
- Process = 1,
18
- Done = 2,
19
- Error = 3
20
- }
21
- declare const AichatUseController: ({ baseUrl, token, CSRFToken, setChatData, activeSessionId, setAppStatus, setConversationList, }: {
22
- baseUrl: string;
23
- token: string;
24
- CSRFToken?: string;
25
- setChatData: (arg: any[] | ((prev: any[]) => any[])) => void;
26
- activeSessionId: string | undefined;
27
- setAppStatus: React.Dispatch<React.SetStateAction<AppStatusManager>>;
28
- setConversationList: React.Dispatch<React.SetStateAction<any[]>>;
29
- }) => {
30
- updateUserFilesMessage: ({ currentFiles }: {
31
- currentFiles: any[];
32
- }) => void;
33
- api_startChat_re: (data: Api_Chat, onSuccess?: (gmtModified: number) => void) => void;
34
- addEmptyMessage: ({ queryId, content, filePaths, currentFiles, }: {
35
- queryId: string;
36
- content: string;
37
- filePaths?: string;
38
- currentFiles?: any[];
39
- }) => void;
40
- setLastEmptyMessage: ({ now }: {
41
- now: number;
42
- }) => void;
43
- stopStream: () => void;
44
- };
45
- export default AichatUseController;
@@ -1,2 +0,0 @@
1
- declare const request: import('axios').AxiosInstance;
2
- export default request;
@@ -1,52 +0,0 @@
1
- export declare const handleFeedBack: (config: {
2
- url: string;
3
- token: string;
4
- CSRFToken?: string;
5
- }, data: {
6
- restult: number;
7
- queryId: string;
8
- }, cb: () => void) => Promise<void>;
9
- export declare const handleCancelFeedBack: (config: {
10
- url: string;
11
- token: string;
12
- CSRFToken?: string;
13
- }, data: {
14
- queryId: string;
15
- }, cb: () => void) => Promise<void>;
16
- export declare const getFeedbackList: (config: {
17
- url: string;
18
- token: string;
19
- }, cb: (arg: any) => void) => void;
20
- export declare const handleRename: (config: {
21
- url: string;
22
- token: string;
23
- CSRFToken?: string;
24
- }, data: {
25
- label: string;
26
- sessionId: string;
27
- }, cb: (arg: any) => void) => Promise<void>;
28
- export declare const handleDeleteConversation: (config: {
29
- url: string;
30
- token: string;
31
- CSRFToken?: string;
32
- }, data: {
33
- sessionId: string;
34
- }, cb: (arg: any) => void) => Promise<void>;
35
- export declare const handleCreateConversation: (config: {
36
- url: string;
37
- token: string;
38
- CSRFToken?: string;
39
- }, data: {
40
- label: string;
41
- sessionId: string;
42
- sysType: string;
43
- configId: string | number;
44
- }, cb: (res: any) => void) => Promise<void>;
45
- export declare const removeFilefromTempUpload: (config: {
46
- url: string;
47
- token: string;
48
- CSRFToken?: string;
49
- }, params: {
50
- uid: string;
51
- queryId?: string;
52
- }, cb?: (success: boolean, res?: any) => void) => Promise<void>;