@shadowob/shared 0.4.0 → 1.1.0
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/chunk-6H4LIJZC.js +0 -0
- package/dist/chunk-EMLX23LF.js +59 -0
- package/dist/chunk-PXKHJSTK.js +328 -0
- package/dist/constants/index.cjs +87 -0
- package/dist/constants/index.d.cts +55 -0
- package/dist/constants/index.d.ts +55 -0
- package/dist/constants/index.js +10 -0
- package/dist/index.cjs +424 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +35 -0
- package/dist/types/index.cjs +18 -0
- package/dist/types/index.d.cts +278 -0
- package/dist/types/index.d.ts +278 -0
- package/dist/types/index.js +1 -0
- package/dist/utils/index.cjs +362 -0
- package/dist/utils/index.d.cts +41 -0
- package/dist/utils/index.d.ts +41 -0
- package/dist/utils/index.js +26 -0
- package/package.json +22 -5
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
type AgentStatus = 'running' | 'stopped' | 'error';
|
|
2
|
+
type AgentKernelType = 'claude-code' | 'cursor' | 'mcp-server' | 'custom';
|
|
3
|
+
type AgentCapability = 'chat' | 'code-gen' | 'code-review' | 'research' | 'tools' | 'file-access';
|
|
4
|
+
interface Agent {
|
|
5
|
+
id: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
kernelType: AgentKernelType;
|
|
8
|
+
config: Record<string, unknown>;
|
|
9
|
+
containerId: string | null;
|
|
10
|
+
status: AgentStatus;
|
|
11
|
+
ownerId: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
user?: {
|
|
15
|
+
id: string;
|
|
16
|
+
username: string;
|
|
17
|
+
displayName: string;
|
|
18
|
+
avatarUrl: string | null;
|
|
19
|
+
};
|
|
20
|
+
capabilities?: AgentCapability[];
|
|
21
|
+
}
|
|
22
|
+
interface CreateAgentRequest {
|
|
23
|
+
name: string;
|
|
24
|
+
kernelType: AgentKernelType;
|
|
25
|
+
config?: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
interface AgentInfo {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
kernelType: AgentKernelType;
|
|
31
|
+
status: AgentStatus;
|
|
32
|
+
capabilities: AgentCapability[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
type ChannelType = 'text' | 'voice' | 'announcement';
|
|
36
|
+
interface Channel {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
type: ChannelType;
|
|
40
|
+
serverId: string;
|
|
41
|
+
topic: string | null;
|
|
42
|
+
position: number;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
/** Last message timestamp for sorting by activity */
|
|
46
|
+
lastMessageAt?: string | null;
|
|
47
|
+
}
|
|
48
|
+
interface CreateChannelRequest {
|
|
49
|
+
name: string;
|
|
50
|
+
type?: ChannelType;
|
|
51
|
+
topic?: string;
|
|
52
|
+
}
|
|
53
|
+
interface UpdateChannelRequest {
|
|
54
|
+
name?: string;
|
|
55
|
+
topic?: string;
|
|
56
|
+
position?: number;
|
|
57
|
+
}
|
|
58
|
+
/** Channel sorting options */
|
|
59
|
+
type ChannelSortBy = 'position' | 'createdAt' | 'updatedAt' | 'lastMessageAt' | 'lastAccessedAt';
|
|
60
|
+
type ChannelSortDirection = 'asc' | 'desc';
|
|
61
|
+
interface ChannelSortOptions {
|
|
62
|
+
by: ChannelSortBy;
|
|
63
|
+
direction: ChannelSortDirection;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
type FriendshipStatus = 'pending' | 'accepted' | 'blocked';
|
|
67
|
+
interface Friendship {
|
|
68
|
+
id: string;
|
|
69
|
+
requesterId: string;
|
|
70
|
+
addresseeId: string;
|
|
71
|
+
status: FriendshipStatus;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
updatedAt: string;
|
|
74
|
+
}
|
|
75
|
+
type FriendSource = 'friend' | 'owned_claw' | 'rented_claw';
|
|
76
|
+
interface FriendEntry {
|
|
77
|
+
friendshipId: string;
|
|
78
|
+
/** Where this friend entry comes from */
|
|
79
|
+
source: FriendSource;
|
|
80
|
+
user: {
|
|
81
|
+
id: string;
|
|
82
|
+
username: string;
|
|
83
|
+
displayName: string | null;
|
|
84
|
+
avatarUrl: string | null;
|
|
85
|
+
status: string;
|
|
86
|
+
isBot: boolean;
|
|
87
|
+
};
|
|
88
|
+
createdAt: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
interface Message {
|
|
92
|
+
id: string;
|
|
93
|
+
content: string;
|
|
94
|
+
channelId: string;
|
|
95
|
+
authorId: string;
|
|
96
|
+
threadId: string | null;
|
|
97
|
+
replyToId: string | null;
|
|
98
|
+
isEdited: boolean;
|
|
99
|
+
isPinned: boolean;
|
|
100
|
+
createdAt: string;
|
|
101
|
+
updatedAt: string;
|
|
102
|
+
author?: {
|
|
103
|
+
id: string;
|
|
104
|
+
username: string;
|
|
105
|
+
displayName: string;
|
|
106
|
+
avatarUrl: string | null;
|
|
107
|
+
isBot: boolean;
|
|
108
|
+
};
|
|
109
|
+
attachments?: Attachment[];
|
|
110
|
+
reactions?: ReactionGroup[];
|
|
111
|
+
}
|
|
112
|
+
interface Attachment {
|
|
113
|
+
id: string;
|
|
114
|
+
messageId: string;
|
|
115
|
+
filename: string;
|
|
116
|
+
url: string;
|
|
117
|
+
contentType: string;
|
|
118
|
+
size: number;
|
|
119
|
+
width: number | null;
|
|
120
|
+
height: number | null;
|
|
121
|
+
createdAt: string;
|
|
122
|
+
}
|
|
123
|
+
interface ReactionGroup {
|
|
124
|
+
emoji: string;
|
|
125
|
+
count: number;
|
|
126
|
+
userIds: string[];
|
|
127
|
+
}
|
|
128
|
+
interface Thread {
|
|
129
|
+
id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
channelId: string;
|
|
132
|
+
parentMessageId: string;
|
|
133
|
+
creatorId: string;
|
|
134
|
+
isArchived: boolean;
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
137
|
+
}
|
|
138
|
+
interface SendMessageRequest {
|
|
139
|
+
content: string;
|
|
140
|
+
threadId?: string;
|
|
141
|
+
replyToId?: string;
|
|
142
|
+
}
|
|
143
|
+
interface UpdateMessageRequest {
|
|
144
|
+
content: string;
|
|
145
|
+
}
|
|
146
|
+
type NotificationType = 'mention' | 'reply' | 'dm' | 'system';
|
|
147
|
+
interface Notification {
|
|
148
|
+
id: string;
|
|
149
|
+
userId: string;
|
|
150
|
+
type: NotificationType;
|
|
151
|
+
title: string;
|
|
152
|
+
body: string | null;
|
|
153
|
+
referenceId: string | null;
|
|
154
|
+
referenceType: string | null;
|
|
155
|
+
isRead: boolean;
|
|
156
|
+
createdAt: string;
|
|
157
|
+
}
|
|
158
|
+
interface DmChannel {
|
|
159
|
+
id: string;
|
|
160
|
+
userAId: string;
|
|
161
|
+
userBId: string;
|
|
162
|
+
lastMessageAt: string | null;
|
|
163
|
+
createdAt: string;
|
|
164
|
+
otherUser?: {
|
|
165
|
+
id: string;
|
|
166
|
+
username: string;
|
|
167
|
+
displayName: string;
|
|
168
|
+
avatarUrl: string | null;
|
|
169
|
+
status: string;
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
/** DM message — mirrors channel Message but scoped to DM channels */
|
|
173
|
+
interface DmMessage {
|
|
174
|
+
id: string;
|
|
175
|
+
content: string;
|
|
176
|
+
dmChannelId: string;
|
|
177
|
+
authorId: string;
|
|
178
|
+
replyToId: string | null;
|
|
179
|
+
isEdited: boolean;
|
|
180
|
+
createdAt: string;
|
|
181
|
+
updatedAt: string;
|
|
182
|
+
author?: {
|
|
183
|
+
id: string;
|
|
184
|
+
username: string;
|
|
185
|
+
displayName: string;
|
|
186
|
+
avatarUrl: string | null;
|
|
187
|
+
isBot: boolean;
|
|
188
|
+
};
|
|
189
|
+
attachments?: DmAttachment[];
|
|
190
|
+
reactions?: ReactionGroup[];
|
|
191
|
+
}
|
|
192
|
+
interface DmAttachment {
|
|
193
|
+
id: string;
|
|
194
|
+
dmMessageId: string;
|
|
195
|
+
filename: string;
|
|
196
|
+
url: string;
|
|
197
|
+
contentType: string;
|
|
198
|
+
size: number;
|
|
199
|
+
width: number | null;
|
|
200
|
+
height: number | null;
|
|
201
|
+
createdAt: string;
|
|
202
|
+
}
|
|
203
|
+
interface UpdateDmMessageRequest {
|
|
204
|
+
content: string;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
interface Server {
|
|
208
|
+
id: string;
|
|
209
|
+
name: string;
|
|
210
|
+
iconUrl: string | null;
|
|
211
|
+
ownerId: string;
|
|
212
|
+
inviteCode: string;
|
|
213
|
+
createdAt: string;
|
|
214
|
+
updatedAt: string;
|
|
215
|
+
}
|
|
216
|
+
interface CreateServerRequest {
|
|
217
|
+
name: string;
|
|
218
|
+
iconUrl?: string;
|
|
219
|
+
}
|
|
220
|
+
interface UpdateServerRequest {
|
|
221
|
+
name?: string;
|
|
222
|
+
iconUrl?: string;
|
|
223
|
+
}
|
|
224
|
+
type MemberRole = 'owner' | 'admin' | 'member';
|
|
225
|
+
interface Member {
|
|
226
|
+
id: string;
|
|
227
|
+
userId: string;
|
|
228
|
+
serverId: string;
|
|
229
|
+
role: MemberRole;
|
|
230
|
+
nickname: string | null;
|
|
231
|
+
joinedAt: string;
|
|
232
|
+
user?: {
|
|
233
|
+
id: string;
|
|
234
|
+
username: string;
|
|
235
|
+
displayName: string;
|
|
236
|
+
avatarUrl: string | null;
|
|
237
|
+
status: string;
|
|
238
|
+
isBot: boolean;
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
type UserStatus = 'online' | 'idle' | 'dnd' | 'offline';
|
|
243
|
+
interface User {
|
|
244
|
+
id: string;
|
|
245
|
+
email: string;
|
|
246
|
+
username: string;
|
|
247
|
+
displayName: string;
|
|
248
|
+
avatarUrl: string | null;
|
|
249
|
+
status: UserStatus;
|
|
250
|
+
isBot: boolean;
|
|
251
|
+
createdAt: string;
|
|
252
|
+
updatedAt: string;
|
|
253
|
+
}
|
|
254
|
+
interface UserProfile {
|
|
255
|
+
id: string;
|
|
256
|
+
username: string;
|
|
257
|
+
displayName: string;
|
|
258
|
+
avatarUrl: string | null;
|
|
259
|
+
status: UserStatus;
|
|
260
|
+
isBot: boolean;
|
|
261
|
+
}
|
|
262
|
+
interface LoginRequest {
|
|
263
|
+
email: string;
|
|
264
|
+
password: string;
|
|
265
|
+
}
|
|
266
|
+
interface RegisterRequest {
|
|
267
|
+
email: string;
|
|
268
|
+
username: string;
|
|
269
|
+
displayName: string;
|
|
270
|
+
password: string;
|
|
271
|
+
}
|
|
272
|
+
interface AuthResponse {
|
|
273
|
+
user: User;
|
|
274
|
+
accessToken: string;
|
|
275
|
+
refreshToken: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export type { Agent, AgentCapability, AgentInfo, AgentKernelType, AgentStatus, Attachment, AuthResponse, Channel, ChannelSortBy, ChannelSortDirection, ChannelSortOptions, ChannelType, CreateAgentRequest, CreateChannelRequest, CreateServerRequest, DmAttachment, DmChannel, DmMessage, FriendEntry, FriendSource, Friendship, FriendshipStatus, LoginRequest, Member, MemberRole, Message, Notification, NotificationType, ReactionGroup, RegisterRequest, SendMessageRequest, Server, Thread, UpdateChannelRequest, UpdateDmMessageRequest, UpdateMessageRequest, UpdateServerRequest, User, UserProfile, UserStatus };
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
type AgentStatus = 'running' | 'stopped' | 'error';
|
|
2
|
+
type AgentKernelType = 'claude-code' | 'cursor' | 'mcp-server' | 'custom';
|
|
3
|
+
type AgentCapability = 'chat' | 'code-gen' | 'code-review' | 'research' | 'tools' | 'file-access';
|
|
4
|
+
interface Agent {
|
|
5
|
+
id: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
kernelType: AgentKernelType;
|
|
8
|
+
config: Record<string, unknown>;
|
|
9
|
+
containerId: string | null;
|
|
10
|
+
status: AgentStatus;
|
|
11
|
+
ownerId: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
user?: {
|
|
15
|
+
id: string;
|
|
16
|
+
username: string;
|
|
17
|
+
displayName: string;
|
|
18
|
+
avatarUrl: string | null;
|
|
19
|
+
};
|
|
20
|
+
capabilities?: AgentCapability[];
|
|
21
|
+
}
|
|
22
|
+
interface CreateAgentRequest {
|
|
23
|
+
name: string;
|
|
24
|
+
kernelType: AgentKernelType;
|
|
25
|
+
config?: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
interface AgentInfo {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
kernelType: AgentKernelType;
|
|
31
|
+
status: AgentStatus;
|
|
32
|
+
capabilities: AgentCapability[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
type ChannelType = 'text' | 'voice' | 'announcement';
|
|
36
|
+
interface Channel {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
type: ChannelType;
|
|
40
|
+
serverId: string;
|
|
41
|
+
topic: string | null;
|
|
42
|
+
position: number;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
/** Last message timestamp for sorting by activity */
|
|
46
|
+
lastMessageAt?: string | null;
|
|
47
|
+
}
|
|
48
|
+
interface CreateChannelRequest {
|
|
49
|
+
name: string;
|
|
50
|
+
type?: ChannelType;
|
|
51
|
+
topic?: string;
|
|
52
|
+
}
|
|
53
|
+
interface UpdateChannelRequest {
|
|
54
|
+
name?: string;
|
|
55
|
+
topic?: string;
|
|
56
|
+
position?: number;
|
|
57
|
+
}
|
|
58
|
+
/** Channel sorting options */
|
|
59
|
+
type ChannelSortBy = 'position' | 'createdAt' | 'updatedAt' | 'lastMessageAt' | 'lastAccessedAt';
|
|
60
|
+
type ChannelSortDirection = 'asc' | 'desc';
|
|
61
|
+
interface ChannelSortOptions {
|
|
62
|
+
by: ChannelSortBy;
|
|
63
|
+
direction: ChannelSortDirection;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
type FriendshipStatus = 'pending' | 'accepted' | 'blocked';
|
|
67
|
+
interface Friendship {
|
|
68
|
+
id: string;
|
|
69
|
+
requesterId: string;
|
|
70
|
+
addresseeId: string;
|
|
71
|
+
status: FriendshipStatus;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
updatedAt: string;
|
|
74
|
+
}
|
|
75
|
+
type FriendSource = 'friend' | 'owned_claw' | 'rented_claw';
|
|
76
|
+
interface FriendEntry {
|
|
77
|
+
friendshipId: string;
|
|
78
|
+
/** Where this friend entry comes from */
|
|
79
|
+
source: FriendSource;
|
|
80
|
+
user: {
|
|
81
|
+
id: string;
|
|
82
|
+
username: string;
|
|
83
|
+
displayName: string | null;
|
|
84
|
+
avatarUrl: string | null;
|
|
85
|
+
status: string;
|
|
86
|
+
isBot: boolean;
|
|
87
|
+
};
|
|
88
|
+
createdAt: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
interface Message {
|
|
92
|
+
id: string;
|
|
93
|
+
content: string;
|
|
94
|
+
channelId: string;
|
|
95
|
+
authorId: string;
|
|
96
|
+
threadId: string | null;
|
|
97
|
+
replyToId: string | null;
|
|
98
|
+
isEdited: boolean;
|
|
99
|
+
isPinned: boolean;
|
|
100
|
+
createdAt: string;
|
|
101
|
+
updatedAt: string;
|
|
102
|
+
author?: {
|
|
103
|
+
id: string;
|
|
104
|
+
username: string;
|
|
105
|
+
displayName: string;
|
|
106
|
+
avatarUrl: string | null;
|
|
107
|
+
isBot: boolean;
|
|
108
|
+
};
|
|
109
|
+
attachments?: Attachment[];
|
|
110
|
+
reactions?: ReactionGroup[];
|
|
111
|
+
}
|
|
112
|
+
interface Attachment {
|
|
113
|
+
id: string;
|
|
114
|
+
messageId: string;
|
|
115
|
+
filename: string;
|
|
116
|
+
url: string;
|
|
117
|
+
contentType: string;
|
|
118
|
+
size: number;
|
|
119
|
+
width: number | null;
|
|
120
|
+
height: number | null;
|
|
121
|
+
createdAt: string;
|
|
122
|
+
}
|
|
123
|
+
interface ReactionGroup {
|
|
124
|
+
emoji: string;
|
|
125
|
+
count: number;
|
|
126
|
+
userIds: string[];
|
|
127
|
+
}
|
|
128
|
+
interface Thread {
|
|
129
|
+
id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
channelId: string;
|
|
132
|
+
parentMessageId: string;
|
|
133
|
+
creatorId: string;
|
|
134
|
+
isArchived: boolean;
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
137
|
+
}
|
|
138
|
+
interface SendMessageRequest {
|
|
139
|
+
content: string;
|
|
140
|
+
threadId?: string;
|
|
141
|
+
replyToId?: string;
|
|
142
|
+
}
|
|
143
|
+
interface UpdateMessageRequest {
|
|
144
|
+
content: string;
|
|
145
|
+
}
|
|
146
|
+
type NotificationType = 'mention' | 'reply' | 'dm' | 'system';
|
|
147
|
+
interface Notification {
|
|
148
|
+
id: string;
|
|
149
|
+
userId: string;
|
|
150
|
+
type: NotificationType;
|
|
151
|
+
title: string;
|
|
152
|
+
body: string | null;
|
|
153
|
+
referenceId: string | null;
|
|
154
|
+
referenceType: string | null;
|
|
155
|
+
isRead: boolean;
|
|
156
|
+
createdAt: string;
|
|
157
|
+
}
|
|
158
|
+
interface DmChannel {
|
|
159
|
+
id: string;
|
|
160
|
+
userAId: string;
|
|
161
|
+
userBId: string;
|
|
162
|
+
lastMessageAt: string | null;
|
|
163
|
+
createdAt: string;
|
|
164
|
+
otherUser?: {
|
|
165
|
+
id: string;
|
|
166
|
+
username: string;
|
|
167
|
+
displayName: string;
|
|
168
|
+
avatarUrl: string | null;
|
|
169
|
+
status: string;
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
/** DM message — mirrors channel Message but scoped to DM channels */
|
|
173
|
+
interface DmMessage {
|
|
174
|
+
id: string;
|
|
175
|
+
content: string;
|
|
176
|
+
dmChannelId: string;
|
|
177
|
+
authorId: string;
|
|
178
|
+
replyToId: string | null;
|
|
179
|
+
isEdited: boolean;
|
|
180
|
+
createdAt: string;
|
|
181
|
+
updatedAt: string;
|
|
182
|
+
author?: {
|
|
183
|
+
id: string;
|
|
184
|
+
username: string;
|
|
185
|
+
displayName: string;
|
|
186
|
+
avatarUrl: string | null;
|
|
187
|
+
isBot: boolean;
|
|
188
|
+
};
|
|
189
|
+
attachments?: DmAttachment[];
|
|
190
|
+
reactions?: ReactionGroup[];
|
|
191
|
+
}
|
|
192
|
+
interface DmAttachment {
|
|
193
|
+
id: string;
|
|
194
|
+
dmMessageId: string;
|
|
195
|
+
filename: string;
|
|
196
|
+
url: string;
|
|
197
|
+
contentType: string;
|
|
198
|
+
size: number;
|
|
199
|
+
width: number | null;
|
|
200
|
+
height: number | null;
|
|
201
|
+
createdAt: string;
|
|
202
|
+
}
|
|
203
|
+
interface UpdateDmMessageRequest {
|
|
204
|
+
content: string;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
interface Server {
|
|
208
|
+
id: string;
|
|
209
|
+
name: string;
|
|
210
|
+
iconUrl: string | null;
|
|
211
|
+
ownerId: string;
|
|
212
|
+
inviteCode: string;
|
|
213
|
+
createdAt: string;
|
|
214
|
+
updatedAt: string;
|
|
215
|
+
}
|
|
216
|
+
interface CreateServerRequest {
|
|
217
|
+
name: string;
|
|
218
|
+
iconUrl?: string;
|
|
219
|
+
}
|
|
220
|
+
interface UpdateServerRequest {
|
|
221
|
+
name?: string;
|
|
222
|
+
iconUrl?: string;
|
|
223
|
+
}
|
|
224
|
+
type MemberRole = 'owner' | 'admin' | 'member';
|
|
225
|
+
interface Member {
|
|
226
|
+
id: string;
|
|
227
|
+
userId: string;
|
|
228
|
+
serverId: string;
|
|
229
|
+
role: MemberRole;
|
|
230
|
+
nickname: string | null;
|
|
231
|
+
joinedAt: string;
|
|
232
|
+
user?: {
|
|
233
|
+
id: string;
|
|
234
|
+
username: string;
|
|
235
|
+
displayName: string;
|
|
236
|
+
avatarUrl: string | null;
|
|
237
|
+
status: string;
|
|
238
|
+
isBot: boolean;
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
type UserStatus = 'online' | 'idle' | 'dnd' | 'offline';
|
|
243
|
+
interface User {
|
|
244
|
+
id: string;
|
|
245
|
+
email: string;
|
|
246
|
+
username: string;
|
|
247
|
+
displayName: string;
|
|
248
|
+
avatarUrl: string | null;
|
|
249
|
+
status: UserStatus;
|
|
250
|
+
isBot: boolean;
|
|
251
|
+
createdAt: string;
|
|
252
|
+
updatedAt: string;
|
|
253
|
+
}
|
|
254
|
+
interface UserProfile {
|
|
255
|
+
id: string;
|
|
256
|
+
username: string;
|
|
257
|
+
displayName: string;
|
|
258
|
+
avatarUrl: string | null;
|
|
259
|
+
status: UserStatus;
|
|
260
|
+
isBot: boolean;
|
|
261
|
+
}
|
|
262
|
+
interface LoginRequest {
|
|
263
|
+
email: string;
|
|
264
|
+
password: string;
|
|
265
|
+
}
|
|
266
|
+
interface RegisterRequest {
|
|
267
|
+
email: string;
|
|
268
|
+
username: string;
|
|
269
|
+
displayName: string;
|
|
270
|
+
password: string;
|
|
271
|
+
}
|
|
272
|
+
interface AuthResponse {
|
|
273
|
+
user: User;
|
|
274
|
+
accessToken: string;
|
|
275
|
+
refreshToken: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export type { Agent, AgentCapability, AgentInfo, AgentKernelType, AgentStatus, Attachment, AuthResponse, Channel, ChannelSortBy, ChannelSortDirection, ChannelSortOptions, ChannelType, CreateAgentRequest, CreateChannelRequest, CreateServerRequest, DmAttachment, DmChannel, DmMessage, FriendEntry, FriendSource, Friendship, FriendshipStatus, LoginRequest, Member, MemberRole, Message, Notification, NotificationType, ReactionGroup, RegisterRequest, SendMessageRequest, Server, Thread, UpdateChannelRequest, UpdateDmMessageRequest, UpdateMessageRequest, UpdateServerRequest, User, UserProfile, UserStatus };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../chunk-6H4LIJZC.js";
|