teodor-new-chat-ui 4.2.6 → 4.2.7

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.
@@ -5,7 +5,7 @@
5
5
  * by the host application which passes tokens via apiConfig.
6
6
  */
7
7
  import { AxiosRequestConfig } from "axios";
8
- import type { ThreadSummary, ThreadInfo, CheckpointList, MessagesPayload, StatePayload, HistoryPayload, AgentSummary, AgentDetail, AgentSchemaInfo, ResumeResponse } from "@/types/api";
8
+ import type { ThreadSummary, ThreadInfo, MessagesPayload, HistoryPayload, AgentSummary, AgentDetail, AgentSchemaInfo, ResumeResponse } from "@/types/api";
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;
@@ -42,17 +42,11 @@ export declare class ChatApi {
42
42
  limit?: number;
43
43
  beforeId?: string | null;
44
44
  }): Promise<MessagesPayload>;
45
- getState(params: {
46
- threadId: string;
47
- checkpointId?: string;
48
- checkpointNs?: string;
49
- }): Promise<StatePayload>;
50
45
  getStateHistory(params: {
51
46
  threadId: string;
52
47
  checkpointId?: string;
53
48
  checkpointNs?: string;
54
49
  }): Promise<HistoryPayload>;
55
- listCheckpoints(threadId: string): Promise<CheckpointList>;
56
50
  /**
57
51
  * Resume a paused LangGraph run (after interrupt).
58
52
  *
@@ -1,2 +1,14 @@
1
- import type { HistoryPayload, MessagesPayload } from "@/types/api";
2
- export declare function historyToMessagesPayload(history: HistoryPayload | null | undefined): MessagesPayload;
1
+ import type { CheckpointSummary, HistoryPayload, MessagesPayload } from "@/types/api";
2
+ export type HistoryHydrationResult = {
3
+ payload: MessagesPayload & {
4
+ nextCursorNs?: string | null;
5
+ };
6
+ checkpoints: CheckpointSummary[];
7
+ interrupt: PendingInterrupt;
8
+ };
9
+ type PendingInterrupt = {
10
+ id: string;
11
+ value: unknown;
12
+ } | null;
13
+ export declare function historyToMessagesPayload(history: HistoryPayload | null | undefined): HistoryHydrationResult;
14
+ export {};
@@ -83,6 +83,7 @@ export interface MessagesPayload {
83
83
  messages: ChatMessage[];
84
84
  hasMore?: boolean;
85
85
  nextCursor?: string | null;
86
+ nextCursorNs?: string | null;
86
87
  }
87
88
  export interface StatePayload {
88
89
  threadId: string;
@@ -302,6 +303,7 @@ export interface ThreadSnapshot {
302
303
  messages: ChatMessage[];
303
304
  hasMore?: boolean;
304
305
  nextCursor?: string | null;
306
+ nextCursorNs?: string | null;
305
307
  }
306
308
  export interface ThreadStateMetadata {
307
309
  branchLabel?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teodor-new-chat-ui",
3
- "version": "4.2.6",
3
+ "version": "4.2.7",
4
4
  "description": "React chat UI components with streaming support, tool calls, and modern design",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",