@leeoohoo/aichat 1.0.8 → 1.0.11

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/index.d.ts CHANGED
@@ -185,6 +185,11 @@ export declare class ApiClient {
185
185
  }): Promise<any>;
186
186
  getSession(id: string): Promise<any>;
187
187
  deleteSession(id: string): Promise<any>;
188
+ updateSession(id: string, data: {
189
+ title?: string;
190
+ description?: string;
191
+ metadata?: any;
192
+ }): Promise<any>;
188
193
  getSessionMessages(sessionId: string, params?: {
189
194
  limit?: number;
190
195
  offset?: number;
@@ -746,7 +751,7 @@ export declare class DatabaseService {
746
751
  createSession(data: Omit<Session_2, 'id'>): Promise<Session_2>;
747
752
  getSession(id: string): Promise<Session_2 | null>;
748
753
  getAllSessions(): Promise<Session_2[]>;
749
- updateSession(_id: string, _updates: Partial<Session_2>): Promise<Session_2 | null>;
754
+ updateSession(id: string, updates: Partial<Session_2>): Promise<Session_2 | null>;
750
755
  deleteSession(id: string): Promise<boolean>;
751
756
  createMessage(data: Omit<Message_2, 'id'>): Promise<Message_2>;
752
757
  getSessionMessages(sessionId: string, options?: {
@@ -1094,15 +1099,29 @@ declare interface Session_2 {
1094
1099
 
1095
1100
  export declare const SessionList: default_2.FC<SessionListProps_2>;
1096
1101
 
1102
+ /**
1103
+ * SessionList 组件属性
1104
+ */
1097
1105
  export declare interface SessionListProps {
1098
1106
  isOpen?: boolean;
1099
1107
  onClose?: () => void;
1108
+ /**
1109
+ * 如果为 true,则使用相对定位嵌入到布局中;否则使用固定定位(抽屉模式)
1110
+ */
1111
+ embedded?: boolean;
1112
+ /**
1113
+ * 可选的 store 函数,用于在没有 Context Provider 的情况下使用
1114
+ */
1100
1115
  store?: any;
1101
1116
  }
1102
1117
 
1103
1118
  declare interface SessionListProps_2 {
1104
1119
  isOpen?: boolean;
1105
1120
  onClose?: () => void;
1121
+ /**
1122
+ * 如果为 true,则使用相对定位嵌入到布局中;否则使用固定定位(抽屉模式)
1123
+ */
1124
+ embedded?: boolean;
1106
1125
  store?: typeof useChatStore;
1107
1126
  }
1108
1127
 
@@ -1218,7 +1237,7 @@ export declare const useTheme: () => {
1218
1237
  toggleTheme: () => void;
1219
1238
  };
1220
1239
 
1221
- export declare const version = "1.0.0";
1240
+ export declare const version = "1.0.11";
1222
1241
 
1223
1242
  export declare const XIcon: default_2.FC<{
1224
1243
  className?: string;