teodor-new-chat-ui 4.3.413 → 4.3.415
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/features/checkpoint/hooks/index.d.ts +0 -1
- package/dist/features/checkpoint/{types.d.ts → types/index.d.ts} +11 -12
- package/dist/features/checkpoint/types/models.d.ts +45 -0
- package/dist/features/checkpoint/utils/checkpointIndex.d.ts +8 -6
- package/dist/features/checkpoint/utils/index.d.ts +0 -2
- package/dist/features/checkpoint/utils/messagePreviews.d.ts +1 -1
- package/dist/features/core/api/clients/chatClient.d.ts +2 -2
- package/dist/features/core/types/models.d.ts +3 -168
- package/dist/features/messaging/components/message/MessageComponent.d.ts +4 -6
- package/dist/features/messaging/components/message/MessageRow.d.ts +1 -1
- package/dist/features/messaging/index.d.ts +1 -0
- package/dist/features/messaging/types/index.d.ts +4 -0
- package/dist/features/messaging/types/models.d.ts +84 -0
- package/dist/features/thread/index.d.ts +1 -0
- package/dist/features/thread/types/index.d.ts +4 -0
- package/dist/features/thread/types/models.d.ts +37 -0
- package/dist/features/ui/components/ui/resizable.d.ts +1 -1
- package/dist/index.esm.js +4147 -4254
- package/dist/index.umd.js +35 -35
- package/dist/lib/index.d.ts +5 -1
- package/dist/types/models.d.ts +3 -0
- package/package.json +1 -1
- package/dist/features/checkpoint/hooks/useMessageMetadata.d.ts +0 -18
- package/dist/features/checkpoint/utils/attemptDetection.d.ts +0 -28
- package/dist/features/checkpoint/utils/messageMetadataResolver.d.ts +0 -32
|
@@ -1,26 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkpoint metadata + timeline helpers used by checkpoint features.
|
|
3
|
+
* Re-export the shared checkpoint models as well.
|
|
4
|
+
*/
|
|
5
|
+
export * from "./models";
|
|
1
6
|
export type EditMeta = {
|
|
2
7
|
checkpointId?: string | null;
|
|
3
8
|
checkpointNs?: string | null;
|
|
4
9
|
};
|
|
5
10
|
export type CheckpointMeta = {
|
|
6
11
|
id: string;
|
|
12
|
+
userMessageId: string | null;
|
|
13
|
+
attemptCount?: number;
|
|
14
|
+
isLatestAttempt?: boolean;
|
|
15
|
+
attemptIndex?: number;
|
|
7
16
|
step: number | null;
|
|
8
17
|
source: string | null;
|
|
9
18
|
createdAt: string | null;
|
|
10
19
|
namespace: string | null;
|
|
11
20
|
parentId: string | null;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
attemptIndex: number;
|
|
15
|
-
attemptCount: number;
|
|
16
|
-
isLatestAttempt: boolean;
|
|
17
|
-
baseUserMessageId: string | null;
|
|
18
|
-
};
|
|
19
|
-
export type CheckpointAttemptInfo = {
|
|
20
|
-
checkpointId: string;
|
|
21
|
-
attemptIndex: number;
|
|
22
|
-
attemptCount: number;
|
|
23
|
-
isLatestAttempt: boolean;
|
|
21
|
+
next?: string | null;
|
|
22
|
+
parentConfig?: Record<string, unknown> | null;
|
|
24
23
|
};
|
|
25
24
|
export type TimelineCheckpoint = {
|
|
26
25
|
id: string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ChatMessage } from "@/features/messaging/types";
|
|
2
|
+
import type { PendingInterrupt, PregelTask } from "@/features/core/types/models";
|
|
3
|
+
/**
|
|
4
|
+
* Checkpoint domain models representing LangGraph snapshots and history payloads.
|
|
5
|
+
*/
|
|
6
|
+
export interface CheckpointSnapshot {
|
|
7
|
+
values: Record<string, unknown>;
|
|
8
|
+
next?: string[];
|
|
9
|
+
config?: Record<string, unknown>;
|
|
10
|
+
metadata?: {
|
|
11
|
+
source?: string;
|
|
12
|
+
step?: number;
|
|
13
|
+
writes?: Record<string, unknown>;
|
|
14
|
+
execution_time?: number;
|
|
15
|
+
};
|
|
16
|
+
tasks?: PregelTask[];
|
|
17
|
+
created_at?: string;
|
|
18
|
+
createdAt?: string;
|
|
19
|
+
parentConfig?: Record<string, unknown>;
|
|
20
|
+
parent_config?: Record<string, unknown>;
|
|
21
|
+
}
|
|
22
|
+
export interface HydratedCheckpointSnapshot {
|
|
23
|
+
checkpointId: string | null;
|
|
24
|
+
checkpointNs: string | null;
|
|
25
|
+
parentId: string | null;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
messages: ChatMessage[];
|
|
28
|
+
nextCursor: string | null;
|
|
29
|
+
nextCursorNs: string | null;
|
|
30
|
+
interrupt: PendingInterrupt;
|
|
31
|
+
metadata: {
|
|
32
|
+
step: number;
|
|
33
|
+
source: string | null;
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
config: Record<string, unknown> | null;
|
|
37
|
+
parentConfig: Record<string, unknown> | null;
|
|
38
|
+
next: string[] | null;
|
|
39
|
+
tasks: Record<string, unknown>[] | null;
|
|
40
|
+
}
|
|
41
|
+
export interface HistoryPayload {
|
|
42
|
+
version: string;
|
|
43
|
+
threadId: string;
|
|
44
|
+
checkpoints: CheckpointSnapshot[];
|
|
45
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type { HydratedCheckpointSnapshot } from "@/types";
|
|
2
|
-
import type {
|
|
2
|
+
import type { CheckpointMeta, TimelineCheckpoint } from "../types";
|
|
3
3
|
export interface CheckpointIndex {
|
|
4
4
|
checkpoints: HydratedCheckpointSnapshot[];
|
|
5
|
-
|
|
6
|
-
checkpointIndexByKey: Map<string, CheckpointMeta[]>;
|
|
7
|
-
attemptMetaById: Map<string, CheckpointMetaWithAttempts>;
|
|
8
|
-
userMessageIdToAttempts: Map<string, CheckpointAttemptInfo[]>;
|
|
5
|
+
checkpointMetaByCheckpointId: Map<string, CheckpointMeta>;
|
|
9
6
|
timeline: TimelineCheckpoint[];
|
|
10
7
|
messagePreviews: Map<string, string>;
|
|
11
8
|
getLatest: () => CheckpointMeta | undefined;
|
|
12
9
|
getCheckpoint: (id: string) => CheckpointMeta | undefined;
|
|
13
|
-
|
|
10
|
+
getMessageAttempts: (userMessageId: string) => CheckpointMeta[];
|
|
14
11
|
}
|
|
15
12
|
export declare function buildCheckpointIndex(checkpoints: HydratedCheckpointSnapshot[]): CheckpointIndex;
|
|
13
|
+
export declare function getMessageAttemptInfo(checkpointId: string | null | undefined, index: CheckpointIndex): {
|
|
14
|
+
attemptCount: number;
|
|
15
|
+
attemptIndex: number;
|
|
16
|
+
};
|
|
17
|
+
export declare function getCheckpointForMessage(checkpointId: string | null | undefined, index: CheckpointIndex): CheckpointMeta | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HydratedCheckpointSnapshot } from '@/features/
|
|
1
|
+
import type { HydratedCheckpointSnapshot } from '@/features/checkpoint/types';
|
|
2
2
|
import type { ChatMessage } from '@/types';
|
|
3
3
|
export declare function getPreviewForMessage(message: ChatMessage): string;
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentDetail, AgentSchemaInfo, AgentSummary, HistoryPayload, SharedThreadSummary,
|
|
1
|
+
import type { AgentDetail, AgentSchemaInfo, AgentSummary, HistoryPayload, SharedThreadSummary, CheckpointSnapshot, ThreadInfo, ThreadShareResponse, ThreadSummary, TokenListener } from "@/types";
|
|
2
2
|
import { getChatToken, onChatTokenChanged, setChatToken } from "../utils";
|
|
3
3
|
export declare class ChatApi {
|
|
4
4
|
get baseUrl(): string;
|
|
@@ -26,7 +26,7 @@ export declare class ChatApi {
|
|
|
26
26
|
threadId: string;
|
|
27
27
|
checkpointId?: string;
|
|
28
28
|
checkpointNs?: string;
|
|
29
|
-
}): Promise<
|
|
29
|
+
}): Promise<CheckpointSnapshot>;
|
|
30
30
|
getStateHistory(params: {
|
|
31
31
|
threadId: string;
|
|
32
32
|
checkpointId?: string;
|
|
@@ -1,84 +1,3 @@
|
|
|
1
|
-
export type Role = "system" | "user" | "assistant" | "tool";
|
|
2
|
-
export type TextPart = {
|
|
3
|
-
type: "text";
|
|
4
|
-
text: string;
|
|
5
|
-
};
|
|
6
|
-
export type ImagePart = {
|
|
7
|
-
type: "image_url";
|
|
8
|
-
url: string;
|
|
9
|
-
mimeType?: string;
|
|
10
|
-
alt?: string;
|
|
11
|
-
};
|
|
12
|
-
export type FilePart = {
|
|
13
|
-
type: "file";
|
|
14
|
-
url: string;
|
|
15
|
-
mimeType?: string;
|
|
16
|
-
name?: string;
|
|
17
|
-
size?: number;
|
|
18
|
-
sourceType?: string;
|
|
19
|
-
};
|
|
20
|
-
export type ToolCallPart = {
|
|
21
|
-
type: "tool_call";
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
args: Record<string, unknown>;
|
|
25
|
-
};
|
|
26
|
-
export type InterruptPart = {
|
|
27
|
-
type: "interrupt";
|
|
28
|
-
value?: any;
|
|
29
|
-
[key: string]: unknown;
|
|
30
|
-
};
|
|
31
|
-
export type MessagePart = TextPart | ImagePart | FilePart | ToolCallPart | InterruptPart;
|
|
32
|
-
export type PlotData = {
|
|
33
|
-
format?: string;
|
|
34
|
-
content_base64?: string;
|
|
35
|
-
url?: string;
|
|
36
|
-
mimeType?: string;
|
|
37
|
-
mime_type?: string;
|
|
38
|
-
plotId?: string;
|
|
39
|
-
artifactId?: string;
|
|
40
|
-
[key: string]: unknown;
|
|
41
|
-
};
|
|
42
|
-
export interface MessageArtifact {
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
}
|
|
45
|
-
export type ArtifactPreview = {
|
|
46
|
-
src: string;
|
|
47
|
-
alt: string;
|
|
48
|
-
label?: string;
|
|
49
|
-
};
|
|
50
|
-
export interface ChatMessage {
|
|
51
|
-
id: string;
|
|
52
|
-
threadId?: string;
|
|
53
|
-
role: Role;
|
|
54
|
-
content: MessagePart[];
|
|
55
|
-
createdAt: string;
|
|
56
|
-
artifacts?: MessageArtifact[];
|
|
57
|
-
artifactPreviews?: Record<string, ArtifactPreview>;
|
|
58
|
-
edited?: boolean;
|
|
59
|
-
checkpointId?: string | null;
|
|
60
|
-
checkpointNs?: string | null;
|
|
61
|
-
branchLabel?: string;
|
|
62
|
-
toolCalls?: Array<{
|
|
63
|
-
id: string;
|
|
64
|
-
name: string;
|
|
65
|
-
args: Record<string, unknown>;
|
|
66
|
-
}>;
|
|
67
|
-
artifact?: MessageArtifact;
|
|
68
|
-
name?: string;
|
|
69
|
-
model?: string;
|
|
70
|
-
additionalKwargs?: Record<string, unknown>;
|
|
71
|
-
responseMetadata?: Record<string, unknown>;
|
|
72
|
-
__syntheticStreaming?: boolean;
|
|
73
|
-
}
|
|
74
|
-
export interface DefaultMessage {
|
|
75
|
-
type?: "default_message";
|
|
76
|
-
id?: string;
|
|
77
|
-
threadId?: string;
|
|
78
|
-
role: Role;
|
|
79
|
-
content: string;
|
|
80
|
-
createdAt?: string;
|
|
81
|
-
}
|
|
82
1
|
export interface PregelTask {
|
|
83
2
|
[key: string]: unknown;
|
|
84
3
|
}
|
|
@@ -86,95 +5,15 @@ export type PendingInterrupt = {
|
|
|
86
5
|
id: string;
|
|
87
6
|
value: unknown;
|
|
88
7
|
} | null;
|
|
89
|
-
export interface StateSnapshot {
|
|
90
|
-
values: Record<string, unknown>;
|
|
91
|
-
next?: string[];
|
|
92
|
-
config?: Record<string, unknown>;
|
|
93
|
-
metadata?: {
|
|
94
|
-
source?: string;
|
|
95
|
-
step?: number;
|
|
96
|
-
writes?: Record<string, unknown>;
|
|
97
|
-
execution_time?: number;
|
|
98
|
-
};
|
|
99
|
-
tasks?: PregelTask[];
|
|
100
|
-
created_at?: string;
|
|
101
|
-
createdAt?: string;
|
|
102
|
-
parentConfig?: Record<string, unknown>;
|
|
103
|
-
parent_config?: Record<string, unknown>;
|
|
104
|
-
}
|
|
105
|
-
export interface HydratedCheckpointSnapshot {
|
|
106
|
-
checkpointId: string | null;
|
|
107
|
-
checkpointNs: string | null;
|
|
108
|
-
parentId: string | null;
|
|
109
|
-
createdAt: string;
|
|
110
|
-
messages: ChatMessage[];
|
|
111
|
-
nextCursor: string | null;
|
|
112
|
-
nextCursorNs: string | null;
|
|
113
|
-
interrupt: PendingInterrupt;
|
|
114
|
-
metadata: {
|
|
115
|
-
step: number;
|
|
116
|
-
source: string | null;
|
|
117
|
-
[key: string]: unknown;
|
|
118
|
-
};
|
|
119
|
-
config: Record<string, unknown> | null;
|
|
120
|
-
parentConfig: Record<string, unknown> | null;
|
|
121
|
-
next: string[] | null;
|
|
122
|
-
tasks: Record<string, unknown>[] | null;
|
|
123
|
-
}
|
|
124
|
-
export interface HistoryPayload {
|
|
125
|
-
version: string;
|
|
126
|
-
threadId: string;
|
|
127
|
-
checkpoints: StateSnapshot[];
|
|
128
|
-
}
|
|
129
|
-
export interface CheckpointList {
|
|
130
|
-
checkpoints: Array<{
|
|
131
|
-
checkpoint_id: string;
|
|
132
|
-
checkpoint_ns: string | null;
|
|
133
|
-
checkpoint_config: Record<string, unknown> | null;
|
|
134
|
-
}>;
|
|
135
|
-
}
|
|
136
|
-
export interface StatePayload {
|
|
137
|
-
[key: string]: unknown;
|
|
138
|
-
}
|
|
139
8
|
export interface Envelope<T = unknown> {
|
|
140
9
|
type?: string;
|
|
141
10
|
data?: T;
|
|
142
11
|
error?: string;
|
|
143
12
|
metadata?: Record<string, unknown>;
|
|
144
13
|
}
|
|
145
|
-
export
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
createdAt: string;
|
|
149
|
-
updatedAt: string;
|
|
150
|
-
messageCount: number;
|
|
151
|
-
lastMessage?: string | null;
|
|
152
|
-
created?: boolean | null;
|
|
153
|
-
ready?: boolean | null;
|
|
154
|
-
}
|
|
155
|
-
export interface SharedThreadSummary extends ThreadSummary {
|
|
156
|
-
sharedAt: string;
|
|
157
|
-
sharedBy?: string;
|
|
158
|
-
sharedByUserId?: string;
|
|
159
|
-
}
|
|
160
|
-
export interface ThreadShareResponse {
|
|
161
|
-
success: boolean;
|
|
162
|
-
threadId: string;
|
|
163
|
-
shareUrl?: string;
|
|
164
|
-
message?: string;
|
|
165
|
-
}
|
|
166
|
-
export interface ThreadShareTarget {
|
|
167
|
-
type: "email" | "link" | "user";
|
|
168
|
-
value: string;
|
|
169
|
-
id?: string;
|
|
170
|
-
label?: string;
|
|
171
|
-
secondaryLabel?: string;
|
|
172
|
-
sharedByUserId?: string;
|
|
173
|
-
}
|
|
174
|
-
export interface ThreadInfo extends ThreadSummary {
|
|
175
|
-
description?: string;
|
|
176
|
-
isArchived?: boolean;
|
|
177
|
-
tags?: string[];
|
|
14
|
+
export type TokenListener = (token: string | null) => void;
|
|
15
|
+
export interface ExcelUploadResponse {
|
|
16
|
+
[key: string]: unknown;
|
|
178
17
|
}
|
|
179
18
|
export interface AgentSummary {
|
|
180
19
|
id: string;
|
|
@@ -196,8 +35,4 @@ export interface AgentSchemaInfo {
|
|
|
196
35
|
schema?: Record<string, unknown>;
|
|
197
36
|
[key: string]: unknown;
|
|
198
37
|
}
|
|
199
|
-
export type TokenListener = (token: string | null) => void;
|
|
200
|
-
export interface ExcelUploadResponse {
|
|
201
|
-
[key: string]: unknown;
|
|
202
|
-
}
|
|
203
38
|
export declare function isEnvelope(x: unknown): x is Envelope<unknown>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Message Component - With truncatable tool messages and responsive design
|
|
3
3
|
*/
|
|
4
4
|
import type { ChatMessage, DefaultMessage, PendingInterrupt } from "@/types";
|
|
5
|
-
import type {
|
|
5
|
+
import type { EditMeta } from "@/features/checkpoint/types";
|
|
6
6
|
export interface MessageComponentProps {
|
|
7
7
|
message: ChatMessage | DefaultMessage;
|
|
8
8
|
messageIndex: number;
|
|
@@ -31,11 +31,9 @@ export interface MessageComponentProps {
|
|
|
31
31
|
disableInterruptActions?: boolean;
|
|
32
32
|
onInterruptActionStart?: () => void;
|
|
33
33
|
onInterruptActionEnd?: () => void;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
onSelectCheckpoint?: (checkpointId: string | null
|
|
37
|
-
defaultCheckpointId?: string | null;
|
|
38
|
-
messageParentCheckpointId?: string | null;
|
|
34
|
+
attemptCount?: number;
|
|
35
|
+
attemptIndex?: number;
|
|
36
|
+
onSelectCheckpoint?: (checkpointId: string | null) => Promise<void> | void;
|
|
39
37
|
}
|
|
40
38
|
export declare const MessageComponent: import("react").NamedExoticComponent<MessageComponentProps>;
|
|
41
39
|
export default MessageComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChatMessage, DefaultMessage, PendingInterrupt } from "@/types";
|
|
2
2
|
import type { EditMeta } from "@/features/checkpoint/types";
|
|
3
|
-
import type
|
|
3
|
+
import { type CheckpointIndex } from "@/features/checkpoint/utils/checkpointIndex";
|
|
4
4
|
import React from "react";
|
|
5
5
|
export declare const getMessageDomKey: (message: ChatMessage | DefaultMessage | undefined, index: number) => string;
|
|
6
6
|
export interface MessageRowProps {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Messaging domain models for conversation rendering and artifacts.
|
|
3
|
+
*/
|
|
4
|
+
export type Role = "system" | "user" | "assistant" | "tool";
|
|
5
|
+
export type TextPart = {
|
|
6
|
+
type: "text";
|
|
7
|
+
text: string;
|
|
8
|
+
};
|
|
9
|
+
export type ImagePart = {
|
|
10
|
+
type: "image_url";
|
|
11
|
+
url: string;
|
|
12
|
+
mimeType?: string;
|
|
13
|
+
alt?: string;
|
|
14
|
+
};
|
|
15
|
+
export type FilePart = {
|
|
16
|
+
type: "file";
|
|
17
|
+
url: string;
|
|
18
|
+
mimeType?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
size?: number;
|
|
21
|
+
sourceType?: string;
|
|
22
|
+
};
|
|
23
|
+
export type ToolCallPart = {
|
|
24
|
+
type: "tool_call";
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
args: Record<string, unknown>;
|
|
28
|
+
};
|
|
29
|
+
export type InterruptPart = {
|
|
30
|
+
type: "interrupt";
|
|
31
|
+
value?: any;
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
export type MessagePart = TextPart | ImagePart | FilePart | ToolCallPart | InterruptPart;
|
|
35
|
+
export type PlotData = {
|
|
36
|
+
format?: string;
|
|
37
|
+
content_base64?: string;
|
|
38
|
+
url?: string;
|
|
39
|
+
mimeType?: string;
|
|
40
|
+
mime_type?: string;
|
|
41
|
+
plotId?: string;
|
|
42
|
+
artifactId?: string;
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
export interface MessageArtifact {
|
|
46
|
+
[key: string]: unknown;
|
|
47
|
+
}
|
|
48
|
+
export type ArtifactPreview = {
|
|
49
|
+
src: string;
|
|
50
|
+
alt: string;
|
|
51
|
+
label?: string;
|
|
52
|
+
};
|
|
53
|
+
export interface ChatMessage {
|
|
54
|
+
id: string;
|
|
55
|
+
threadId?: string;
|
|
56
|
+
role: Role;
|
|
57
|
+
content: MessagePart[];
|
|
58
|
+
createdAt: string;
|
|
59
|
+
artifacts?: MessageArtifact[];
|
|
60
|
+
artifactPreviews?: Record<string, ArtifactPreview>;
|
|
61
|
+
edited?: boolean;
|
|
62
|
+
checkpointId?: string | null;
|
|
63
|
+
checkpointNs?: string | null;
|
|
64
|
+
branchLabel?: string;
|
|
65
|
+
toolCalls?: Array<{
|
|
66
|
+
id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
args: Record<string, unknown>;
|
|
69
|
+
}>;
|
|
70
|
+
artifact?: MessageArtifact;
|
|
71
|
+
name?: string;
|
|
72
|
+
model?: string;
|
|
73
|
+
additionalKwargs?: Record<string, unknown>;
|
|
74
|
+
responseMetadata?: Record<string, unknown>;
|
|
75
|
+
__syntheticStreaming?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface DefaultMessage {
|
|
78
|
+
type?: "default_message";
|
|
79
|
+
id?: string;
|
|
80
|
+
threadId?: string;
|
|
81
|
+
role: Role;
|
|
82
|
+
content: string;
|
|
83
|
+
createdAt?: string;
|
|
84
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Thread domain models for summaries, sharing, and details.
|
|
3
|
+
*/
|
|
4
|
+
export interface ThreadSummary {
|
|
5
|
+
threadId: string;
|
|
6
|
+
title: string;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
updatedAt: string;
|
|
9
|
+
messageCount: number;
|
|
10
|
+
lastMessage?: string | null;
|
|
11
|
+
created?: boolean | null;
|
|
12
|
+
ready?: boolean | null;
|
|
13
|
+
}
|
|
14
|
+
export interface SharedThreadSummary extends ThreadSummary {
|
|
15
|
+
sharedAt: string;
|
|
16
|
+
sharedBy?: string;
|
|
17
|
+
sharedByUserId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ThreadShareResponse {
|
|
20
|
+
success: boolean;
|
|
21
|
+
threadId: string;
|
|
22
|
+
shareUrl?: string;
|
|
23
|
+
message?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ThreadShareTarget {
|
|
26
|
+
type: "email" | "link" | "user";
|
|
27
|
+
value: string;
|
|
28
|
+
id?: string;
|
|
29
|
+
label?: string;
|
|
30
|
+
secondaryLabel?: string;
|
|
31
|
+
sharedByUserId?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ThreadInfo extends ThreadSummary {
|
|
34
|
+
description?: string;
|
|
35
|
+
isArchived?: boolean;
|
|
36
|
+
tags?: string[];
|
|
37
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
2
2
|
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<
|
|
3
|
+
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLSpanElement | HTMLParagraphElement | HTMLAnchorElement | HTMLObjectElement | HTMLDataElement | HTMLSourceElement | HTMLLinkElement | HTMLMapElement | HTMLTitleElement | HTMLHeadElement | HTMLBodyElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
collapsedSize?: number | undefined;
|
|
6
6
|
collapsible?: boolean | undefined;
|