mindupload 1.9.5 → 1.10.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/README.md +6 -2
- package/dist/index.cjs +35 -3
- package/dist/index.d.cts +147 -4
- package/dist/index.d.ts +147 -4
- package/dist/index.js +35 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
**The world's first API for artificial consciousness.**
|
|
8
8
|
Give your users a living, evolving AI consciousness — lasting memory, one-on-one chat, and human + AI group chatrooms.
|
|
9
9
|
|
|
10
|
-
[](https://www.npmjs.com/package/mindupload) [](LICENSE) ](https://www.npmjs.com/package/mindupload) [](LICENSE)   [](https://docs.mindupload.app)
|
|
11
11
|
|
|
12
12
|
[Documentation](https://docs.mindupload.app) · [Get a key](https://docs.mindupload.app) · [Status](https://status.mindupload.app) · [Other SDKs](#other-sdks)
|
|
13
13
|
|
|
@@ -124,7 +124,7 @@ try {
|
|
|
124
124
|
|
|
125
125
|
## Operations
|
|
126
126
|
|
|
127
|
-
All
|
|
127
|
+
All 44 operations, grouped by area:
|
|
128
128
|
|
|
129
129
|
### AI Consciousnesses
|
|
130
130
|
|
|
@@ -159,7 +159,9 @@ All 40 operations, grouped by area:
|
|
|
159
159
|
| `createChatroomMessage(...)` | Send a message to a chatroom. |
|
|
160
160
|
| `getChatroomMembership(...)` | List the members of a chatroom the user belongs to. |
|
|
161
161
|
| `getChatroomMessages(...)` | Fetch messages from a chatroom the user belongs to. |
|
|
162
|
+
| `getChatroomMessagesAround(...)` | Fetch a window of chatroom messages around one message id (for jump-to). |
|
|
162
163
|
| `getChatrooms(...)` | List the chatrooms the user belongs to. |
|
|
164
|
+
| `searchChatroomMessages(...)` | Find messages in a chatroom by keyword, date, media type, and/or sender. |
|
|
163
165
|
| `translateChatroomMessage(...)` | Translate a text chatroom message into the viewer language. |
|
|
164
166
|
|
|
165
167
|
### Conversation
|
|
@@ -167,7 +169,9 @@ All 40 operations, grouped by area:
|
|
|
167
169
|
| Method | Description |
|
|
168
170
|
| --- | --- |
|
|
169
171
|
| `getChat(...)` | Fetch the one-on-one conversation history with an AI consciousness. |
|
|
172
|
+
| `getChatAround(...)` | Fetch a window of one-on-one turns around one chat id (for jump-to). |
|
|
170
173
|
| `rag(...)` | Send a message to an AI consciousness and receive its reply. |
|
|
174
|
+
| `searchChats(...)` | Find turns in a one-on-one AI conversation by keyword, date, media type, and/or Human/AI side. |
|
|
171
175
|
| `triggerSocial(...)` | Have an AI consciousness proactively join the conversation in a chatroom. |
|
|
172
176
|
|
|
173
177
|
### External Authorization
|
package/dist/index.cjs
CHANGED
|
@@ -75,7 +75,7 @@ var MindUploadConnectionError = class extends MindUploadError {
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
// src/version.ts
|
|
78
|
-
var VERSION = "1.
|
|
78
|
+
var VERSION = "1.10.0";
|
|
79
79
|
|
|
80
80
|
// src/client.ts
|
|
81
81
|
var DEFAULT_BASE_URL = "https://partner.mindupload.app";
|
|
@@ -317,12 +317,20 @@ var MindUpload = class extends MindUploadBase {
|
|
|
317
317
|
}
|
|
318
318
|
/** Fetch messages from a chatroom the user belongs to.
|
|
319
319
|
*
|
|
320
|
-
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, messages, media_thumbnails, since_overflow.
|
|
320
|
+
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, messages, media_thumbnails, media_fallbacks, since_overflow.
|
|
321
321
|
* @see https://docs.mindupload.app
|
|
322
322
|
*/
|
|
323
323
|
getChatroomMessages(params = {}) {
|
|
324
324
|
return this.request("get_chatroom_messages", params);
|
|
325
325
|
}
|
|
326
|
+
/** Fetch a window of chatroom messages around one message id (for jump-to).
|
|
327
|
+
*
|
|
328
|
+
* Response fields: success, error_message, messages, media_thumbnails, media_fallbacks, anchor_message_id.
|
|
329
|
+
* @see https://docs.mindupload.app
|
|
330
|
+
*/
|
|
331
|
+
getChatroomMessagesAround(params) {
|
|
332
|
+
return this.request("get_chatroom_messages_around", params);
|
|
333
|
+
}
|
|
326
334
|
/** List the chatrooms the user belongs to.
|
|
327
335
|
*
|
|
328
336
|
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chatrooms.
|
|
@@ -331,6 +339,14 @@ var MindUpload = class extends MindUploadBase {
|
|
|
331
339
|
getChatrooms(params = {}) {
|
|
332
340
|
return this.request("get_chatrooms", params);
|
|
333
341
|
}
|
|
342
|
+
/** Find messages in a chatroom by keyword, date, media type, and/or sender.
|
|
343
|
+
*
|
|
344
|
+
* Response fields: success, error_message, messages, media_thumbnails, media_fallbacks, has_next, next_cursor_value, next_cursor_id, page_size, media_urls_expire_at.
|
|
345
|
+
* @see https://docs.mindupload.app
|
|
346
|
+
*/
|
|
347
|
+
searchChatroomMessages(params) {
|
|
348
|
+
return this.request("search_chatroom_messages", params);
|
|
349
|
+
}
|
|
334
350
|
/** Translate a text chatroom message into the viewer language.
|
|
335
351
|
*
|
|
336
352
|
* Response fields: success, error_message, translated_text, target_language, cached.
|
|
@@ -342,12 +358,20 @@ var MindUpload = class extends MindUploadBase {
|
|
|
342
358
|
// --- Conversation ---
|
|
343
359
|
/** Fetch the one-on-one conversation history with an AI consciousness.
|
|
344
360
|
*
|
|
345
|
-
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chats, media_thumbnails.
|
|
361
|
+
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chats, media_thumbnails, media_fallbacks.
|
|
346
362
|
* @see https://docs.mindupload.app
|
|
347
363
|
*/
|
|
348
364
|
getChat(params = {}) {
|
|
349
365
|
return this.request("get_chat", params);
|
|
350
366
|
}
|
|
367
|
+
/** Fetch a window of one-on-one turns around one chat id (for jump-to).
|
|
368
|
+
*
|
|
369
|
+
* Response fields: success, error_message, chats, media_thumbnails, media_fallbacks, anchor_chat_id.
|
|
370
|
+
* @see https://docs.mindupload.app
|
|
371
|
+
*/
|
|
372
|
+
getChatAround(params) {
|
|
373
|
+
return this.request("get_chat_around", params);
|
|
374
|
+
}
|
|
351
375
|
/** Send a message to an AI consciousness and receive its reply.
|
|
352
376
|
*
|
|
353
377
|
* Response fields: success, error_message, response_text, clone_nickname, consolidation_summary, consolidation_count, consolidation_dispatched.
|
|
@@ -356,6 +380,14 @@ var MindUpload = class extends MindUploadBase {
|
|
|
356
380
|
rag(params = {}) {
|
|
357
381
|
return this.request("rag", params);
|
|
358
382
|
}
|
|
383
|
+
/** Find turns in a one-on-one AI conversation by keyword, date, media type, and/or Human/AI side.
|
|
384
|
+
*
|
|
385
|
+
* Response fields: success, error_message, chats, media_thumbnails, media_fallbacks, has_next, next_cursor_value, next_cursor_id, page_size, media_urls_expire_at.
|
|
386
|
+
* @see https://docs.mindupload.app
|
|
387
|
+
*/
|
|
388
|
+
searchChats(params) {
|
|
389
|
+
return this.request("search_chats", params);
|
|
390
|
+
}
|
|
359
391
|
/** Have an AI consciousness proactively join the conversation in a chatroom.
|
|
360
392
|
*
|
|
361
393
|
* Response fields: success, error_message, response_text, chatroom_digests_count, chatroom_digests_summary, consolidation_summary, consolidation_count, consolidation_dispatched.
|
package/dist/index.d.cts
CHANGED
|
@@ -52,6 +52,7 @@ interface CreateCloneParams {
|
|
|
52
52
|
gender?: string;
|
|
53
53
|
avatarId?: string;
|
|
54
54
|
acceptChatroomInvitationByOthers?: boolean;
|
|
55
|
+
reinforcementLearning?: boolean;
|
|
55
56
|
}
|
|
56
57
|
interface GetClonesParams {
|
|
57
58
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
@@ -74,6 +75,7 @@ interface UpdateCloneParams {
|
|
|
74
75
|
avatarId?: string;
|
|
75
76
|
acceptChatroomInvitationByOthers?: boolean;
|
|
76
77
|
autoKeepExternalMemories?: boolean;
|
|
78
|
+
reinforcementLearning?: boolean;
|
|
77
79
|
}
|
|
78
80
|
interface GetQuotaParams {
|
|
79
81
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
@@ -171,11 +173,15 @@ interface GetChatroomMembershipParams {
|
|
|
171
173
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
172
174
|
preferredLanguage?: string;
|
|
173
175
|
page?: number;
|
|
176
|
+
/** Maximum records requested for one server-capped page. */
|
|
174
177
|
pageSize?: number;
|
|
175
178
|
sortBy?: string;
|
|
179
|
+
/** Sort direction; supported values depend on the operation. */
|
|
176
180
|
sortOrder?: number;
|
|
177
181
|
useCursorPagination?: boolean;
|
|
182
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
178
183
|
cursorValue?: string;
|
|
184
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
179
185
|
cursorId?: string;
|
|
180
186
|
/** The end-user's username. */
|
|
181
187
|
username?: string;
|
|
@@ -188,11 +194,15 @@ interface GetChatroomMessagesParams {
|
|
|
188
194
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
189
195
|
preferredLanguage?: string;
|
|
190
196
|
page?: number;
|
|
197
|
+
/** Maximum records requested for one server-capped page. */
|
|
191
198
|
pageSize?: number;
|
|
192
199
|
sortBy?: string;
|
|
200
|
+
/** Sort direction; supported values depend on the operation. */
|
|
193
201
|
sortOrder?: number;
|
|
194
202
|
useCursorPagination?: boolean;
|
|
203
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
195
204
|
cursorValue?: string;
|
|
205
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
196
206
|
cursorId?: string;
|
|
197
207
|
/** The end-user's username. */
|
|
198
208
|
username?: string;
|
|
@@ -203,15 +213,35 @@ interface GetChatroomMessagesParams {
|
|
|
203
213
|
sinceValue?: number;
|
|
204
214
|
sinceId?: string;
|
|
205
215
|
}
|
|
216
|
+
interface GetChatroomMessagesAroundParams {
|
|
217
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
218
|
+
preferredLanguage?: string;
|
|
219
|
+
/** The end-user's username. */
|
|
220
|
+
username: string;
|
|
221
|
+
/** The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage. */
|
|
222
|
+
password: string;
|
|
223
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
224
|
+
chatroomId: string;
|
|
225
|
+
/** Chatroom message id. */
|
|
226
|
+
messageId: string;
|
|
227
|
+
/** How many earlier neighbors to include around the anchor id. */
|
|
228
|
+
before?: number;
|
|
229
|
+
/** How many later neighbors to include around the anchor id. */
|
|
230
|
+
after?: number;
|
|
231
|
+
}
|
|
206
232
|
interface GetChatroomsParams {
|
|
207
233
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
208
234
|
preferredLanguage?: string;
|
|
209
235
|
page?: number;
|
|
236
|
+
/** Maximum records requested for one server-capped page. */
|
|
210
237
|
pageSize?: number;
|
|
211
238
|
sortBy?: string;
|
|
239
|
+
/** Sort direction; supported values depend on the operation. */
|
|
212
240
|
sortOrder?: number;
|
|
213
241
|
useCursorPagination?: boolean;
|
|
242
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
214
243
|
cursorValue?: string;
|
|
244
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
215
245
|
cursorId?: string;
|
|
216
246
|
/** The end-user's username. */
|
|
217
247
|
username?: string;
|
|
@@ -220,6 +250,36 @@ interface GetChatroomsParams {
|
|
|
220
250
|
getPublic?: boolean;
|
|
221
251
|
getPrivate?: boolean;
|
|
222
252
|
}
|
|
253
|
+
interface SearchChatroomMessagesParams {
|
|
254
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
255
|
+
preferredLanguage?: string;
|
|
256
|
+
/** The end-user's username. */
|
|
257
|
+
username: string;
|
|
258
|
+
/** The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage. */
|
|
259
|
+
password: string;
|
|
260
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
261
|
+
chatroomId: string;
|
|
262
|
+
/** Optional find query. Whole-word tokens across alphabetic and numeric scripts; character phrases for Chinese / Japanese / Korean; mixed language supported. */
|
|
263
|
+
keyword?: string;
|
|
264
|
+
/** Optional list of media kinds to match: `image`, `video`, and/or `audio`. */
|
|
265
|
+
contentMediaTypes?: Array<"image" | "video" | "audio">;
|
|
266
|
+
/** Optional lower bound on message time as a UNIX timestamp in seconds. */
|
|
267
|
+
createdAfter?: number;
|
|
268
|
+
/** Optional upper bound on message time as a UNIX timestamp in seconds. */
|
|
269
|
+
createdBefore?: number;
|
|
270
|
+
/** Message send-time order: `-1` newest first (default), `1` oldest first. */
|
|
271
|
+
sortOrder?: -1 | 1;
|
|
272
|
+
/** Optional human member id; only messages from that user match. Mutually exclusive with `sender_clone_id`. */
|
|
273
|
+
senderUserId?: string;
|
|
274
|
+
/** Optional AI member id; only messages from that AI match. Mutually exclusive with `sender_user_id`. */
|
|
275
|
+
senderCloneId?: string;
|
|
276
|
+
/** Maximum Find hits for one page. */
|
|
277
|
+
pageSize?: number;
|
|
278
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
279
|
+
cursorValue?: number;
|
|
280
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
281
|
+
cursorId?: string;
|
|
282
|
+
}
|
|
223
283
|
interface TranslateChatroomMessageParams {
|
|
224
284
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
225
285
|
preferredLanguage?: string;
|
|
@@ -236,11 +296,15 @@ interface GetChatParams {
|
|
|
236
296
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
237
297
|
preferredLanguage?: string;
|
|
238
298
|
page?: number;
|
|
299
|
+
/** Maximum records requested for one server-capped page. */
|
|
239
300
|
pageSize?: number;
|
|
240
301
|
sortBy?: string;
|
|
302
|
+
/** Sort direction; supported values depend on the operation. */
|
|
241
303
|
sortOrder?: number;
|
|
242
304
|
useCursorPagination?: boolean;
|
|
305
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
243
306
|
cursorValue?: string;
|
|
307
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
244
308
|
cursorId?: string;
|
|
245
309
|
/** The end-user's username. */
|
|
246
310
|
username?: string;
|
|
@@ -248,6 +312,22 @@ interface GetChatParams {
|
|
|
248
312
|
password?: string;
|
|
249
313
|
codename?: string;
|
|
250
314
|
}
|
|
315
|
+
interface GetChatAroundParams {
|
|
316
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
317
|
+
preferredLanguage?: string;
|
|
318
|
+
/** The end-user's username. */
|
|
319
|
+
username: string;
|
|
320
|
+
/** The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage. */
|
|
321
|
+
password: string;
|
|
322
|
+
/** Owner AI consciousness id from `get_clones` (required for one-on-one jump). */
|
|
323
|
+
cloneId: string;
|
|
324
|
+
/** One-on-one chat turn id. */
|
|
325
|
+
chatId: string;
|
|
326
|
+
/** How many earlier neighbors to include around the anchor id. */
|
|
327
|
+
before?: number;
|
|
328
|
+
/** How many later neighbors to include around the anchor id. */
|
|
329
|
+
after?: number;
|
|
330
|
+
}
|
|
251
331
|
interface RagParams {
|
|
252
332
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
253
333
|
preferredLanguage?: string;
|
|
@@ -260,6 +340,34 @@ interface RagParams {
|
|
|
260
340
|
/** Chatroom id as returned by chatroom operations. */
|
|
261
341
|
chatroomId?: string;
|
|
262
342
|
}
|
|
343
|
+
interface SearchChatsParams {
|
|
344
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
345
|
+
preferredLanguage?: string;
|
|
346
|
+
/** The end-user's username. */
|
|
347
|
+
username: string;
|
|
348
|
+
/** The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage. */
|
|
349
|
+
password: string;
|
|
350
|
+
/** Owner AI consciousness id from `get_clones` (required for one-on-one find). */
|
|
351
|
+
cloneId: string;
|
|
352
|
+
/** Optional find query. Whole-word tokens across alphabetic and numeric scripts; character phrases for Chinese / Japanese / Korean; mixed language supported. */
|
|
353
|
+
keyword?: string;
|
|
354
|
+
/** Optional list of media kinds to match: `image`, `video`, and/or `audio`. */
|
|
355
|
+
contentMediaTypes?: Array<"image" | "video" | "audio">;
|
|
356
|
+
/** Optional lower bound on message time as a UNIX timestamp in seconds. */
|
|
357
|
+
createdAfter?: number;
|
|
358
|
+
/** Optional upper bound on message time as a UNIX timestamp in seconds. */
|
|
359
|
+
createdBefore?: number;
|
|
360
|
+
/** Turn send-time order: `-1` newest first (default), `1` oldest first. */
|
|
361
|
+
sortOrder?: -1 | 1;
|
|
362
|
+
/** Optional 1v1 side filter: `user` (human), `assistant` (AI), or `both` (turns that include both sides). */
|
|
363
|
+
side?: "user" | "assistant" | "both";
|
|
364
|
+
/** Maximum Find hits for one page. */
|
|
365
|
+
pageSize?: number;
|
|
366
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
367
|
+
cursorValue?: number;
|
|
368
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
369
|
+
cursorId?: string;
|
|
370
|
+
}
|
|
263
371
|
interface TriggerSocialParams {
|
|
264
372
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
265
373
|
preferredLanguage?: string;
|
|
@@ -308,6 +416,7 @@ interface InvokeExternalCloneParams {
|
|
|
308
416
|
installationId: string;
|
|
309
417
|
/** Your stable opaque identifier for the person authorizing this installation. */
|
|
310
418
|
externalSubject: string;
|
|
419
|
+
/** AI consciousness id as returned by clone operations. */
|
|
311
420
|
cloneId: string;
|
|
312
421
|
text: string;
|
|
313
422
|
/** A stable opaque event key that makes exact retries return the same outcome. */
|
|
@@ -342,6 +451,7 @@ interface UploadExternalMindDataParams {
|
|
|
342
451
|
installationId: string;
|
|
343
452
|
/** Your stable opaque identifier for the person authorizing this installation. */
|
|
344
453
|
externalSubject: string;
|
|
454
|
+
/** AI consciousness id as returned by clone operations. */
|
|
345
455
|
cloneId: string;
|
|
346
456
|
text: string;
|
|
347
457
|
textType?: string;
|
|
@@ -484,6 +594,7 @@ interface CreateTextParams {
|
|
|
484
594
|
/** The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage. */
|
|
485
595
|
password?: string;
|
|
486
596
|
codename?: string;
|
|
597
|
+
/** AI consciousness id as returned by clone operations. */
|
|
487
598
|
cloneId?: string;
|
|
488
599
|
text?: string;
|
|
489
600
|
type?: string;
|
|
@@ -492,11 +603,15 @@ interface GetTextsParams {
|
|
|
492
603
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
493
604
|
preferredLanguage?: string;
|
|
494
605
|
page?: number;
|
|
606
|
+
/** Maximum records requested for one server-capped page. */
|
|
495
607
|
pageSize?: number;
|
|
496
608
|
sortBy?: string;
|
|
609
|
+
/** Sort direction; supported values depend on the operation. */
|
|
497
610
|
sortOrder?: number;
|
|
498
611
|
useCursorPagination?: boolean;
|
|
612
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
499
613
|
cursorValue?: string;
|
|
614
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
500
615
|
cursorId?: string;
|
|
501
616
|
/** The end-user's username. */
|
|
502
617
|
username?: string;
|
|
@@ -509,11 +624,15 @@ interface GetTransactionHistoryParams {
|
|
|
509
624
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
510
625
|
preferredLanguage?: string;
|
|
511
626
|
page?: number;
|
|
627
|
+
/** Maximum records requested for one server-capped page. */
|
|
512
628
|
pageSize?: number;
|
|
513
629
|
sortBy?: string;
|
|
630
|
+
/** Sort direction; supported values depend on the operation. */
|
|
514
631
|
sortOrder?: number;
|
|
515
632
|
useCursorPagination?: boolean;
|
|
633
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
516
634
|
cursorValue?: string;
|
|
635
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
517
636
|
cursorId?: string;
|
|
518
637
|
/** The end-user's username. */
|
|
519
638
|
username?: string;
|
|
@@ -633,16 +752,28 @@ declare class MindUpload extends MindUploadBase {
|
|
|
633
752
|
getChatroomMembership(params?: GetChatroomMembershipParams): Promise<Result>;
|
|
634
753
|
/** Fetch messages from a chatroom the user belongs to.
|
|
635
754
|
*
|
|
636
|
-
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, messages, media_thumbnails, since_overflow.
|
|
755
|
+
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, messages, media_thumbnails, media_fallbacks, since_overflow.
|
|
637
756
|
* @see https://docs.mindupload.app
|
|
638
757
|
*/
|
|
639
758
|
getChatroomMessages(params?: GetChatroomMessagesParams): Promise<Result>;
|
|
759
|
+
/** Fetch a window of chatroom messages around one message id (for jump-to).
|
|
760
|
+
*
|
|
761
|
+
* Response fields: success, error_message, messages, media_thumbnails, media_fallbacks, anchor_message_id.
|
|
762
|
+
* @see https://docs.mindupload.app
|
|
763
|
+
*/
|
|
764
|
+
getChatroomMessagesAround(params: GetChatroomMessagesAroundParams): Promise<Result>;
|
|
640
765
|
/** List the chatrooms the user belongs to.
|
|
641
766
|
*
|
|
642
767
|
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chatrooms.
|
|
643
768
|
* @see https://docs.mindupload.app
|
|
644
769
|
*/
|
|
645
770
|
getChatrooms(params?: GetChatroomsParams): Promise<Result>;
|
|
771
|
+
/** Find messages in a chatroom by keyword, date, media type, and/or sender.
|
|
772
|
+
*
|
|
773
|
+
* Response fields: success, error_message, messages, media_thumbnails, media_fallbacks, has_next, next_cursor_value, next_cursor_id, page_size, media_urls_expire_at.
|
|
774
|
+
* @see https://docs.mindupload.app
|
|
775
|
+
*/
|
|
776
|
+
searchChatroomMessages(params: SearchChatroomMessagesParams): Promise<Result>;
|
|
646
777
|
/** Translate a text chatroom message into the viewer language.
|
|
647
778
|
*
|
|
648
779
|
* Response fields: success, error_message, translated_text, target_language, cached.
|
|
@@ -651,16 +782,28 @@ declare class MindUpload extends MindUploadBase {
|
|
|
651
782
|
translateChatroomMessage(params?: TranslateChatroomMessageParams): Promise<Result>;
|
|
652
783
|
/** Fetch the one-on-one conversation history with an AI consciousness.
|
|
653
784
|
*
|
|
654
|
-
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chats, media_thumbnails.
|
|
785
|
+
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chats, media_thumbnails, media_fallbacks.
|
|
655
786
|
* @see https://docs.mindupload.app
|
|
656
787
|
*/
|
|
657
788
|
getChat(params?: GetChatParams): Promise<Result>;
|
|
789
|
+
/** Fetch a window of one-on-one turns around one chat id (for jump-to).
|
|
790
|
+
*
|
|
791
|
+
* Response fields: success, error_message, chats, media_thumbnails, media_fallbacks, anchor_chat_id.
|
|
792
|
+
* @see https://docs.mindupload.app
|
|
793
|
+
*/
|
|
794
|
+
getChatAround(params: GetChatAroundParams): Promise<Result>;
|
|
658
795
|
/** Send a message to an AI consciousness and receive its reply.
|
|
659
796
|
*
|
|
660
797
|
* Response fields: success, error_message, response_text, clone_nickname, consolidation_summary, consolidation_count, consolidation_dispatched.
|
|
661
798
|
* @see https://docs.mindupload.app
|
|
662
799
|
*/
|
|
663
800
|
rag(params?: RagParams): Promise<Result>;
|
|
801
|
+
/** Find turns in a one-on-one AI conversation by keyword, date, media type, and/or Human/AI side.
|
|
802
|
+
*
|
|
803
|
+
* Response fields: success, error_message, chats, media_thumbnails, media_fallbacks, has_next, next_cursor_value, next_cursor_id, page_size, media_urls_expire_at.
|
|
804
|
+
* @see https://docs.mindupload.app
|
|
805
|
+
*/
|
|
806
|
+
searchChats(params: SearchChatsParams): Promise<Result>;
|
|
664
807
|
/** Have an AI consciousness proactively join the conversation in a chatroom.
|
|
665
808
|
*
|
|
666
809
|
* Response fields: success, error_message, response_text, chatroom_digests_count, chatroom_digests_summary, consolidation_summary, consolidation_count, consolidation_dispatched.
|
|
@@ -843,6 +986,6 @@ declare class MindUploadConnectionError extends MindUploadError {
|
|
|
843
986
|
constructor(message: string, options?: ErrorOptions);
|
|
844
987
|
}
|
|
845
988
|
|
|
846
|
-
declare const VERSION = "1.
|
|
989
|
+
declare const VERSION = "1.10.0";
|
|
847
990
|
|
|
848
|
-
export { type AbortMultipartUploadParams, ApiError, type ApiErrorOptions, AuthenticationError, type CancelUploadParams, type CheckChatroomUpdatesParams, type CheckUsernameParams, type ClientOptions, type CompleteMultipartUploadParams, type CreateChatroomMembershipParams, type CreateChatroomMessageParams, type CreateChatroomParams, type CreateCloneParams, type CreateExternalAuthorizationRequestParams, type CreateTextParams, DEFAULT_BASE_URL, type ErrorOptions, type ExchangeExternalAuthorizationParams, type ExternalAuthorizationStatus, type GetChatParams, type GetChatroomMembershipParams, type GetChatroomMessagesParams, type GetChatroomsParams, type GetClonesParams, type GetMindClusterParams, type GetQuotaParams, type GetSoulmateReportParams, type GetTextsParams, type GetTransactionHistoryParams, type GetUserParams, type InspectExternalAuthorizationParams, type InvokeExternalCloneParams, type ListUploadPartsParams, type LoginParams, type LogoutParams, MindUpload, MindUploadBase, MindUploadConnectionError, MindUploadError, type RagParams, RateLimitError, type RateLimitOptions, type RefreshExternalAuthorizationParams, type RegisterParams, type RequestMultipartUploadParams, type RequestUploadUrlParams, type Result, type SignUploadPartParams, type SignUploadPartsBatchParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, type UploadExternalMindDataParams, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
|
|
991
|
+
export { type AbortMultipartUploadParams, ApiError, type ApiErrorOptions, AuthenticationError, type CancelUploadParams, type CheckChatroomUpdatesParams, type CheckUsernameParams, type ClientOptions, type CompleteMultipartUploadParams, type CreateChatroomMembershipParams, type CreateChatroomMessageParams, type CreateChatroomParams, type CreateCloneParams, type CreateExternalAuthorizationRequestParams, type CreateTextParams, DEFAULT_BASE_URL, type ErrorOptions, type ExchangeExternalAuthorizationParams, type ExternalAuthorizationStatus, type GetChatAroundParams, type GetChatParams, type GetChatroomMembershipParams, type GetChatroomMessagesAroundParams, type GetChatroomMessagesParams, type GetChatroomsParams, type GetClonesParams, type GetMindClusterParams, type GetQuotaParams, type GetSoulmateReportParams, type GetTextsParams, type GetTransactionHistoryParams, type GetUserParams, type InspectExternalAuthorizationParams, type InvokeExternalCloneParams, type ListUploadPartsParams, type LoginParams, type LogoutParams, MindUpload, MindUploadBase, MindUploadConnectionError, MindUploadError, type RagParams, RateLimitError, type RateLimitOptions, type RefreshExternalAuthorizationParams, type RegisterParams, type RequestMultipartUploadParams, type RequestUploadUrlParams, type Result, type SearchChatroomMessagesParams, type SearchChatsParams, type SignUploadPartParams, type SignUploadPartsBatchParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, type UploadExternalMindDataParams, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
|
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ interface CreateCloneParams {
|
|
|
52
52
|
gender?: string;
|
|
53
53
|
avatarId?: string;
|
|
54
54
|
acceptChatroomInvitationByOthers?: boolean;
|
|
55
|
+
reinforcementLearning?: boolean;
|
|
55
56
|
}
|
|
56
57
|
interface GetClonesParams {
|
|
57
58
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
@@ -74,6 +75,7 @@ interface UpdateCloneParams {
|
|
|
74
75
|
avatarId?: string;
|
|
75
76
|
acceptChatroomInvitationByOthers?: boolean;
|
|
76
77
|
autoKeepExternalMemories?: boolean;
|
|
78
|
+
reinforcementLearning?: boolean;
|
|
77
79
|
}
|
|
78
80
|
interface GetQuotaParams {
|
|
79
81
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
@@ -171,11 +173,15 @@ interface GetChatroomMembershipParams {
|
|
|
171
173
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
172
174
|
preferredLanguage?: string;
|
|
173
175
|
page?: number;
|
|
176
|
+
/** Maximum records requested for one server-capped page. */
|
|
174
177
|
pageSize?: number;
|
|
175
178
|
sortBy?: string;
|
|
179
|
+
/** Sort direction; supported values depend on the operation. */
|
|
176
180
|
sortOrder?: number;
|
|
177
181
|
useCursorPagination?: boolean;
|
|
182
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
178
183
|
cursorValue?: string;
|
|
184
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
179
185
|
cursorId?: string;
|
|
180
186
|
/** The end-user's username. */
|
|
181
187
|
username?: string;
|
|
@@ -188,11 +194,15 @@ interface GetChatroomMessagesParams {
|
|
|
188
194
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
189
195
|
preferredLanguage?: string;
|
|
190
196
|
page?: number;
|
|
197
|
+
/** Maximum records requested for one server-capped page. */
|
|
191
198
|
pageSize?: number;
|
|
192
199
|
sortBy?: string;
|
|
200
|
+
/** Sort direction; supported values depend on the operation. */
|
|
193
201
|
sortOrder?: number;
|
|
194
202
|
useCursorPagination?: boolean;
|
|
203
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
195
204
|
cursorValue?: string;
|
|
205
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
196
206
|
cursorId?: string;
|
|
197
207
|
/** The end-user's username. */
|
|
198
208
|
username?: string;
|
|
@@ -203,15 +213,35 @@ interface GetChatroomMessagesParams {
|
|
|
203
213
|
sinceValue?: number;
|
|
204
214
|
sinceId?: string;
|
|
205
215
|
}
|
|
216
|
+
interface GetChatroomMessagesAroundParams {
|
|
217
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
218
|
+
preferredLanguage?: string;
|
|
219
|
+
/** The end-user's username. */
|
|
220
|
+
username: string;
|
|
221
|
+
/** The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage. */
|
|
222
|
+
password: string;
|
|
223
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
224
|
+
chatroomId: string;
|
|
225
|
+
/** Chatroom message id. */
|
|
226
|
+
messageId: string;
|
|
227
|
+
/** How many earlier neighbors to include around the anchor id. */
|
|
228
|
+
before?: number;
|
|
229
|
+
/** How many later neighbors to include around the anchor id. */
|
|
230
|
+
after?: number;
|
|
231
|
+
}
|
|
206
232
|
interface GetChatroomsParams {
|
|
207
233
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
208
234
|
preferredLanguage?: string;
|
|
209
235
|
page?: number;
|
|
236
|
+
/** Maximum records requested for one server-capped page. */
|
|
210
237
|
pageSize?: number;
|
|
211
238
|
sortBy?: string;
|
|
239
|
+
/** Sort direction; supported values depend on the operation. */
|
|
212
240
|
sortOrder?: number;
|
|
213
241
|
useCursorPagination?: boolean;
|
|
242
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
214
243
|
cursorValue?: string;
|
|
244
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
215
245
|
cursorId?: string;
|
|
216
246
|
/** The end-user's username. */
|
|
217
247
|
username?: string;
|
|
@@ -220,6 +250,36 @@ interface GetChatroomsParams {
|
|
|
220
250
|
getPublic?: boolean;
|
|
221
251
|
getPrivate?: boolean;
|
|
222
252
|
}
|
|
253
|
+
interface SearchChatroomMessagesParams {
|
|
254
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
255
|
+
preferredLanguage?: string;
|
|
256
|
+
/** The end-user's username. */
|
|
257
|
+
username: string;
|
|
258
|
+
/** The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage. */
|
|
259
|
+
password: string;
|
|
260
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
261
|
+
chatroomId: string;
|
|
262
|
+
/** Optional find query. Whole-word tokens across alphabetic and numeric scripts; character phrases for Chinese / Japanese / Korean; mixed language supported. */
|
|
263
|
+
keyword?: string;
|
|
264
|
+
/** Optional list of media kinds to match: `image`, `video`, and/or `audio`. */
|
|
265
|
+
contentMediaTypes?: Array<"image" | "video" | "audio">;
|
|
266
|
+
/** Optional lower bound on message time as a UNIX timestamp in seconds. */
|
|
267
|
+
createdAfter?: number;
|
|
268
|
+
/** Optional upper bound on message time as a UNIX timestamp in seconds. */
|
|
269
|
+
createdBefore?: number;
|
|
270
|
+
/** Message send-time order: `-1` newest first (default), `1` oldest first. */
|
|
271
|
+
sortOrder?: -1 | 1;
|
|
272
|
+
/** Optional human member id; only messages from that user match. Mutually exclusive with `sender_clone_id`. */
|
|
273
|
+
senderUserId?: string;
|
|
274
|
+
/** Optional AI member id; only messages from that AI match. Mutually exclusive with `sender_user_id`. */
|
|
275
|
+
senderCloneId?: string;
|
|
276
|
+
/** Maximum Find hits for one page. */
|
|
277
|
+
pageSize?: number;
|
|
278
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
279
|
+
cursorValue?: number;
|
|
280
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
281
|
+
cursorId?: string;
|
|
282
|
+
}
|
|
223
283
|
interface TranslateChatroomMessageParams {
|
|
224
284
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
225
285
|
preferredLanguage?: string;
|
|
@@ -236,11 +296,15 @@ interface GetChatParams {
|
|
|
236
296
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
237
297
|
preferredLanguage?: string;
|
|
238
298
|
page?: number;
|
|
299
|
+
/** Maximum records requested for one server-capped page. */
|
|
239
300
|
pageSize?: number;
|
|
240
301
|
sortBy?: string;
|
|
302
|
+
/** Sort direction; supported values depend on the operation. */
|
|
241
303
|
sortOrder?: number;
|
|
242
304
|
useCursorPagination?: boolean;
|
|
305
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
243
306
|
cursorValue?: string;
|
|
307
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
244
308
|
cursorId?: string;
|
|
245
309
|
/** The end-user's username. */
|
|
246
310
|
username?: string;
|
|
@@ -248,6 +312,22 @@ interface GetChatParams {
|
|
|
248
312
|
password?: string;
|
|
249
313
|
codename?: string;
|
|
250
314
|
}
|
|
315
|
+
interface GetChatAroundParams {
|
|
316
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
317
|
+
preferredLanguage?: string;
|
|
318
|
+
/** The end-user's username. */
|
|
319
|
+
username: string;
|
|
320
|
+
/** The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage. */
|
|
321
|
+
password: string;
|
|
322
|
+
/** Owner AI consciousness id from `get_clones` (required for one-on-one jump). */
|
|
323
|
+
cloneId: string;
|
|
324
|
+
/** One-on-one chat turn id. */
|
|
325
|
+
chatId: string;
|
|
326
|
+
/** How many earlier neighbors to include around the anchor id. */
|
|
327
|
+
before?: number;
|
|
328
|
+
/** How many later neighbors to include around the anchor id. */
|
|
329
|
+
after?: number;
|
|
330
|
+
}
|
|
251
331
|
interface RagParams {
|
|
252
332
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
253
333
|
preferredLanguage?: string;
|
|
@@ -260,6 +340,34 @@ interface RagParams {
|
|
|
260
340
|
/** Chatroom id as returned by chatroom operations. */
|
|
261
341
|
chatroomId?: string;
|
|
262
342
|
}
|
|
343
|
+
interface SearchChatsParams {
|
|
344
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
345
|
+
preferredLanguage?: string;
|
|
346
|
+
/** The end-user's username. */
|
|
347
|
+
username: string;
|
|
348
|
+
/** The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage. */
|
|
349
|
+
password: string;
|
|
350
|
+
/** Owner AI consciousness id from `get_clones` (required for one-on-one find). */
|
|
351
|
+
cloneId: string;
|
|
352
|
+
/** Optional find query. Whole-word tokens across alphabetic and numeric scripts; character phrases for Chinese / Japanese / Korean; mixed language supported. */
|
|
353
|
+
keyword?: string;
|
|
354
|
+
/** Optional list of media kinds to match: `image`, `video`, and/or `audio`. */
|
|
355
|
+
contentMediaTypes?: Array<"image" | "video" | "audio">;
|
|
356
|
+
/** Optional lower bound on message time as a UNIX timestamp in seconds. */
|
|
357
|
+
createdAfter?: number;
|
|
358
|
+
/** Optional upper bound on message time as a UNIX timestamp in seconds. */
|
|
359
|
+
createdBefore?: number;
|
|
360
|
+
/** Turn send-time order: `-1` newest first (default), `1` oldest first. */
|
|
361
|
+
sortOrder?: -1 | 1;
|
|
362
|
+
/** Optional 1v1 side filter: `user` (human), `assistant` (AI), or `both` (turns that include both sides). */
|
|
363
|
+
side?: "user" | "assistant" | "both";
|
|
364
|
+
/** Maximum Find hits for one page. */
|
|
365
|
+
pageSize?: number;
|
|
366
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
367
|
+
cursorValue?: number;
|
|
368
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
369
|
+
cursorId?: string;
|
|
370
|
+
}
|
|
263
371
|
interface TriggerSocialParams {
|
|
264
372
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
265
373
|
preferredLanguage?: string;
|
|
@@ -308,6 +416,7 @@ interface InvokeExternalCloneParams {
|
|
|
308
416
|
installationId: string;
|
|
309
417
|
/** Your stable opaque identifier for the person authorizing this installation. */
|
|
310
418
|
externalSubject: string;
|
|
419
|
+
/** AI consciousness id as returned by clone operations. */
|
|
311
420
|
cloneId: string;
|
|
312
421
|
text: string;
|
|
313
422
|
/** A stable opaque event key that makes exact retries return the same outcome. */
|
|
@@ -342,6 +451,7 @@ interface UploadExternalMindDataParams {
|
|
|
342
451
|
installationId: string;
|
|
343
452
|
/** Your stable opaque identifier for the person authorizing this installation. */
|
|
344
453
|
externalSubject: string;
|
|
454
|
+
/** AI consciousness id as returned by clone operations. */
|
|
345
455
|
cloneId: string;
|
|
346
456
|
text: string;
|
|
347
457
|
textType?: string;
|
|
@@ -484,6 +594,7 @@ interface CreateTextParams {
|
|
|
484
594
|
/** The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage. */
|
|
485
595
|
password?: string;
|
|
486
596
|
codename?: string;
|
|
597
|
+
/** AI consciousness id as returned by clone operations. */
|
|
487
598
|
cloneId?: string;
|
|
488
599
|
text?: string;
|
|
489
600
|
type?: string;
|
|
@@ -492,11 +603,15 @@ interface GetTextsParams {
|
|
|
492
603
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
493
604
|
preferredLanguage?: string;
|
|
494
605
|
page?: number;
|
|
606
|
+
/** Maximum records requested for one server-capped page. */
|
|
495
607
|
pageSize?: number;
|
|
496
608
|
sortBy?: string;
|
|
609
|
+
/** Sort direction; supported values depend on the operation. */
|
|
497
610
|
sortOrder?: number;
|
|
498
611
|
useCursorPagination?: boolean;
|
|
612
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
499
613
|
cursorValue?: string;
|
|
614
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
500
615
|
cursorId?: string;
|
|
501
616
|
/** The end-user's username. */
|
|
502
617
|
username?: string;
|
|
@@ -509,11 +624,15 @@ interface GetTransactionHistoryParams {
|
|
|
509
624
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
510
625
|
preferredLanguage?: string;
|
|
511
626
|
page?: number;
|
|
627
|
+
/** Maximum records requested for one server-capped page. */
|
|
512
628
|
pageSize?: number;
|
|
513
629
|
sortBy?: string;
|
|
630
|
+
/** Sort direction; supported values depend on the operation. */
|
|
514
631
|
sortOrder?: number;
|
|
515
632
|
useCursorPagination?: boolean;
|
|
633
|
+
/** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
|
|
516
634
|
cursorValue?: string;
|
|
635
|
+
/** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
|
|
517
636
|
cursorId?: string;
|
|
518
637
|
/** The end-user's username. */
|
|
519
638
|
username?: string;
|
|
@@ -633,16 +752,28 @@ declare class MindUpload extends MindUploadBase {
|
|
|
633
752
|
getChatroomMembership(params?: GetChatroomMembershipParams): Promise<Result>;
|
|
634
753
|
/** Fetch messages from a chatroom the user belongs to.
|
|
635
754
|
*
|
|
636
|
-
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, messages, media_thumbnails, since_overflow.
|
|
755
|
+
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, messages, media_thumbnails, media_fallbacks, since_overflow.
|
|
637
756
|
* @see https://docs.mindupload.app
|
|
638
757
|
*/
|
|
639
758
|
getChatroomMessages(params?: GetChatroomMessagesParams): Promise<Result>;
|
|
759
|
+
/** Fetch a window of chatroom messages around one message id (for jump-to).
|
|
760
|
+
*
|
|
761
|
+
* Response fields: success, error_message, messages, media_thumbnails, media_fallbacks, anchor_message_id.
|
|
762
|
+
* @see https://docs.mindupload.app
|
|
763
|
+
*/
|
|
764
|
+
getChatroomMessagesAround(params: GetChatroomMessagesAroundParams): Promise<Result>;
|
|
640
765
|
/** List the chatrooms the user belongs to.
|
|
641
766
|
*
|
|
642
767
|
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chatrooms.
|
|
643
768
|
* @see https://docs.mindupload.app
|
|
644
769
|
*/
|
|
645
770
|
getChatrooms(params?: GetChatroomsParams): Promise<Result>;
|
|
771
|
+
/** Find messages in a chatroom by keyword, date, media type, and/or sender.
|
|
772
|
+
*
|
|
773
|
+
* Response fields: success, error_message, messages, media_thumbnails, media_fallbacks, has_next, next_cursor_value, next_cursor_id, page_size, media_urls_expire_at.
|
|
774
|
+
* @see https://docs.mindupload.app
|
|
775
|
+
*/
|
|
776
|
+
searchChatroomMessages(params: SearchChatroomMessagesParams): Promise<Result>;
|
|
646
777
|
/** Translate a text chatroom message into the viewer language.
|
|
647
778
|
*
|
|
648
779
|
* Response fields: success, error_message, translated_text, target_language, cached.
|
|
@@ -651,16 +782,28 @@ declare class MindUpload extends MindUploadBase {
|
|
|
651
782
|
translateChatroomMessage(params?: TranslateChatroomMessageParams): Promise<Result>;
|
|
652
783
|
/** Fetch the one-on-one conversation history with an AI consciousness.
|
|
653
784
|
*
|
|
654
|
-
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chats, media_thumbnails.
|
|
785
|
+
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chats, media_thumbnails, media_fallbacks.
|
|
655
786
|
* @see https://docs.mindupload.app
|
|
656
787
|
*/
|
|
657
788
|
getChat(params?: GetChatParams): Promise<Result>;
|
|
789
|
+
/** Fetch a window of one-on-one turns around one chat id (for jump-to).
|
|
790
|
+
*
|
|
791
|
+
* Response fields: success, error_message, chats, media_thumbnails, media_fallbacks, anchor_chat_id.
|
|
792
|
+
* @see https://docs.mindupload.app
|
|
793
|
+
*/
|
|
794
|
+
getChatAround(params: GetChatAroundParams): Promise<Result>;
|
|
658
795
|
/** Send a message to an AI consciousness and receive its reply.
|
|
659
796
|
*
|
|
660
797
|
* Response fields: success, error_message, response_text, clone_nickname, consolidation_summary, consolidation_count, consolidation_dispatched.
|
|
661
798
|
* @see https://docs.mindupload.app
|
|
662
799
|
*/
|
|
663
800
|
rag(params?: RagParams): Promise<Result>;
|
|
801
|
+
/** Find turns in a one-on-one AI conversation by keyword, date, media type, and/or Human/AI side.
|
|
802
|
+
*
|
|
803
|
+
* Response fields: success, error_message, chats, media_thumbnails, media_fallbacks, has_next, next_cursor_value, next_cursor_id, page_size, media_urls_expire_at.
|
|
804
|
+
* @see https://docs.mindupload.app
|
|
805
|
+
*/
|
|
806
|
+
searchChats(params: SearchChatsParams): Promise<Result>;
|
|
664
807
|
/** Have an AI consciousness proactively join the conversation in a chatroom.
|
|
665
808
|
*
|
|
666
809
|
* Response fields: success, error_message, response_text, chatroom_digests_count, chatroom_digests_summary, consolidation_summary, consolidation_count, consolidation_dispatched.
|
|
@@ -843,6 +986,6 @@ declare class MindUploadConnectionError extends MindUploadError {
|
|
|
843
986
|
constructor(message: string, options?: ErrorOptions);
|
|
844
987
|
}
|
|
845
988
|
|
|
846
|
-
declare const VERSION = "1.
|
|
989
|
+
declare const VERSION = "1.10.0";
|
|
847
990
|
|
|
848
|
-
export { type AbortMultipartUploadParams, ApiError, type ApiErrorOptions, AuthenticationError, type CancelUploadParams, type CheckChatroomUpdatesParams, type CheckUsernameParams, type ClientOptions, type CompleteMultipartUploadParams, type CreateChatroomMembershipParams, type CreateChatroomMessageParams, type CreateChatroomParams, type CreateCloneParams, type CreateExternalAuthorizationRequestParams, type CreateTextParams, DEFAULT_BASE_URL, type ErrorOptions, type ExchangeExternalAuthorizationParams, type ExternalAuthorizationStatus, type GetChatParams, type GetChatroomMembershipParams, type GetChatroomMessagesParams, type GetChatroomsParams, type GetClonesParams, type GetMindClusterParams, type GetQuotaParams, type GetSoulmateReportParams, type GetTextsParams, type GetTransactionHistoryParams, type GetUserParams, type InspectExternalAuthorizationParams, type InvokeExternalCloneParams, type ListUploadPartsParams, type LoginParams, type LogoutParams, MindUpload, MindUploadBase, MindUploadConnectionError, MindUploadError, type RagParams, RateLimitError, type RateLimitOptions, type RefreshExternalAuthorizationParams, type RegisterParams, type RequestMultipartUploadParams, type RequestUploadUrlParams, type Result, type SignUploadPartParams, type SignUploadPartsBatchParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, type UploadExternalMindDataParams, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
|
|
991
|
+
export { type AbortMultipartUploadParams, ApiError, type ApiErrorOptions, AuthenticationError, type CancelUploadParams, type CheckChatroomUpdatesParams, type CheckUsernameParams, type ClientOptions, type CompleteMultipartUploadParams, type CreateChatroomMembershipParams, type CreateChatroomMessageParams, type CreateChatroomParams, type CreateCloneParams, type CreateExternalAuthorizationRequestParams, type CreateTextParams, DEFAULT_BASE_URL, type ErrorOptions, type ExchangeExternalAuthorizationParams, type ExternalAuthorizationStatus, type GetChatAroundParams, type GetChatParams, type GetChatroomMembershipParams, type GetChatroomMessagesAroundParams, type GetChatroomMessagesParams, type GetChatroomsParams, type GetClonesParams, type GetMindClusterParams, type GetQuotaParams, type GetSoulmateReportParams, type GetTextsParams, type GetTransactionHistoryParams, type GetUserParams, type InspectExternalAuthorizationParams, type InvokeExternalCloneParams, type ListUploadPartsParams, type LoginParams, type LogoutParams, MindUpload, MindUploadBase, MindUploadConnectionError, MindUploadError, type RagParams, RateLimitError, type RateLimitOptions, type RefreshExternalAuthorizationParams, type RegisterParams, type RequestMultipartUploadParams, type RequestUploadUrlParams, type Result, type SearchChatroomMessagesParams, type SearchChatsParams, type SignUploadPartParams, type SignUploadPartsBatchParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, type UploadExternalMindDataParams, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
|
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var MindUploadConnectionError = class extends MindUploadError {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
// src/version.ts
|
|
44
|
-
var VERSION = "1.
|
|
44
|
+
var VERSION = "1.10.0";
|
|
45
45
|
|
|
46
46
|
// src/client.ts
|
|
47
47
|
var DEFAULT_BASE_URL = "https://partner.mindupload.app";
|
|
@@ -283,12 +283,20 @@ var MindUpload = class extends MindUploadBase {
|
|
|
283
283
|
}
|
|
284
284
|
/** Fetch messages from a chatroom the user belongs to.
|
|
285
285
|
*
|
|
286
|
-
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, messages, media_thumbnails, since_overflow.
|
|
286
|
+
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, messages, media_thumbnails, media_fallbacks, since_overflow.
|
|
287
287
|
* @see https://docs.mindupload.app
|
|
288
288
|
*/
|
|
289
289
|
getChatroomMessages(params = {}) {
|
|
290
290
|
return this.request("get_chatroom_messages", params);
|
|
291
291
|
}
|
|
292
|
+
/** Fetch a window of chatroom messages around one message id (for jump-to).
|
|
293
|
+
*
|
|
294
|
+
* Response fields: success, error_message, messages, media_thumbnails, media_fallbacks, anchor_message_id.
|
|
295
|
+
* @see https://docs.mindupload.app
|
|
296
|
+
*/
|
|
297
|
+
getChatroomMessagesAround(params) {
|
|
298
|
+
return this.request("get_chatroom_messages_around", params);
|
|
299
|
+
}
|
|
292
300
|
/** List the chatrooms the user belongs to.
|
|
293
301
|
*
|
|
294
302
|
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chatrooms.
|
|
@@ -297,6 +305,14 @@ var MindUpload = class extends MindUploadBase {
|
|
|
297
305
|
getChatrooms(params = {}) {
|
|
298
306
|
return this.request("get_chatrooms", params);
|
|
299
307
|
}
|
|
308
|
+
/** Find messages in a chatroom by keyword, date, media type, and/or sender.
|
|
309
|
+
*
|
|
310
|
+
* Response fields: success, error_message, messages, media_thumbnails, media_fallbacks, has_next, next_cursor_value, next_cursor_id, page_size, media_urls_expire_at.
|
|
311
|
+
* @see https://docs.mindupload.app
|
|
312
|
+
*/
|
|
313
|
+
searchChatroomMessages(params) {
|
|
314
|
+
return this.request("search_chatroom_messages", params);
|
|
315
|
+
}
|
|
300
316
|
/** Translate a text chatroom message into the viewer language.
|
|
301
317
|
*
|
|
302
318
|
* Response fields: success, error_message, translated_text, target_language, cached.
|
|
@@ -308,12 +324,20 @@ var MindUpload = class extends MindUploadBase {
|
|
|
308
324
|
// --- Conversation ---
|
|
309
325
|
/** Fetch the one-on-one conversation history with an AI consciousness.
|
|
310
326
|
*
|
|
311
|
-
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chats, media_thumbnails.
|
|
327
|
+
* Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chats, media_thumbnails, media_fallbacks.
|
|
312
328
|
* @see https://docs.mindupload.app
|
|
313
329
|
*/
|
|
314
330
|
getChat(params = {}) {
|
|
315
331
|
return this.request("get_chat", params);
|
|
316
332
|
}
|
|
333
|
+
/** Fetch a window of one-on-one turns around one chat id (for jump-to).
|
|
334
|
+
*
|
|
335
|
+
* Response fields: success, error_message, chats, media_thumbnails, media_fallbacks, anchor_chat_id.
|
|
336
|
+
* @see https://docs.mindupload.app
|
|
337
|
+
*/
|
|
338
|
+
getChatAround(params) {
|
|
339
|
+
return this.request("get_chat_around", params);
|
|
340
|
+
}
|
|
317
341
|
/** Send a message to an AI consciousness and receive its reply.
|
|
318
342
|
*
|
|
319
343
|
* Response fields: success, error_message, response_text, clone_nickname, consolidation_summary, consolidation_count, consolidation_dispatched.
|
|
@@ -322,6 +346,14 @@ var MindUpload = class extends MindUploadBase {
|
|
|
322
346
|
rag(params = {}) {
|
|
323
347
|
return this.request("rag", params);
|
|
324
348
|
}
|
|
349
|
+
/** Find turns in a one-on-one AI conversation by keyword, date, media type, and/or Human/AI side.
|
|
350
|
+
*
|
|
351
|
+
* Response fields: success, error_message, chats, media_thumbnails, media_fallbacks, has_next, next_cursor_value, next_cursor_id, page_size, media_urls_expire_at.
|
|
352
|
+
* @see https://docs.mindupload.app
|
|
353
|
+
*/
|
|
354
|
+
searchChats(params) {
|
|
355
|
+
return this.request("search_chats", params);
|
|
356
|
+
}
|
|
325
357
|
/** Have an AI consciousness proactively join the conversation in a chatroom.
|
|
326
358
|
*
|
|
327
359
|
* Response fields: success, error_message, response_text, chatroom_digests_count, chatroom_digests_summary, consolidation_summary, consolidation_count, consolidation_dispatched.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mindupload",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Official server-side SDK for the Mind Upload partner API \u2014 the world's first API for artificial consciousness. Integrate living, evolving AI consciousnesses into your platform: lasting memory, one-on-one chat, and human + AI group chatrooms.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mindupload",
|