@1interface/chat-core 0.20.0 → 0.20.1
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 +5 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -907,6 +907,10 @@ export declare const isEmptyMessage: (v: any) => boolean;
|
|
|
907
907
|
|
|
908
908
|
export declare function isHttpsUrl(value: unknown): value is string;
|
|
909
909
|
|
|
910
|
+
declare interface LoadConversationOptions {
|
|
911
|
+
quiet?: boolean;
|
|
912
|
+
}
|
|
913
|
+
|
|
910
914
|
export declare function loginApi(email: string, password: string): Promise<AuthApiResult>;
|
|
911
915
|
|
|
912
916
|
export declare function logoutApi(payload: LogoutRequest, options?: {
|
|
@@ -1590,7 +1594,7 @@ declare interface UseConversationReturn {
|
|
|
1590
1594
|
hasMoreMessages: boolean;
|
|
1591
1595
|
isLoadingMoreMessages: boolean;
|
|
1592
1596
|
startSession: () => Promise<string | null>;
|
|
1593
|
-
loadConversation: (conversationId: string, titleHint?: string | null) => Promise<boolean>;
|
|
1597
|
+
loadConversation: (conversationId: string, titleHint?: string | null, options?: LoadConversationOptions) => Promise<boolean>;
|
|
1594
1598
|
loadConversationTitle: (conversationId?: string | null) => Promise<string | null>;
|
|
1595
1599
|
loadMoreMessages: () => Promise<void>;
|
|
1596
1600
|
resetConversation: () => void;
|