teodor-new-chat-ui 4.3.67 → 4.3.69
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.esm.js +4142 -4138
- package/dist/index.umd.js +34 -34
- package/dist/lib/chat-api.d.ts +7 -2
- package/package.json +1 -1
package/dist/lib/chat-api.d.ts
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
* This client only handles chat-related operations. Authentication is handled
|
|
5
5
|
* by the host application which passes tokens via apiConfig.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
7
|
+
import type { AgentDetail, AgentSchemaInfo, AgentSummary, CheckpointSnapshot, HistoryPayload, ThreadInfo, ThreadSummary } from "@/types/api";
|
|
8
|
+
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
9
9
|
export declare function resolveChatBaseUrl(baseUrl?: string): string;
|
|
10
10
|
type TokenListener = (token: string | null) => void;
|
|
11
11
|
export declare function getChatToken(): string | null;
|
|
12
12
|
export declare function setChatToken(token: string | null): void;
|
|
13
13
|
export declare function onChatTokenChanged(callback: TokenListener): () => void;
|
|
14
|
+
declare const httpClient: AxiosInstance;
|
|
14
15
|
export declare function get<T = unknown>(url: string, config?: AxiosRequestConfig): Promise<T>;
|
|
15
16
|
export declare function post<T = unknown, B = unknown>(url: string, body?: B, config?: AxiosRequestConfig): Promise<T>;
|
|
16
17
|
export declare function put<T = unknown, B = unknown>(url: string, body?: B, config?: AxiosRequestConfig): Promise<T>;
|
|
@@ -45,8 +46,12 @@ export declare class ChatApi {
|
|
|
45
46
|
checkpointId?: string;
|
|
46
47
|
checkpointNs?: string;
|
|
47
48
|
}): Promise<HistoryPayload>;
|
|
49
|
+
cancelRun(threadId: string): Promise<{
|
|
50
|
+
status: string;
|
|
51
|
+
}>;
|
|
48
52
|
}
|
|
49
53
|
export declare const chatApiClient: ChatApi;
|
|
54
|
+
export { httpClient };
|
|
50
55
|
export default chatApiClient;
|
|
51
56
|
export declare const ApiClient: typeof ChatApi;
|
|
52
57
|
export declare const Api: typeof ChatApi;
|
package/package.json
CHANGED