mindupload 1.9.6 → 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 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
- [![npm](https://img.shields.io/npm/v/mindupload?color=ff006e)](https://www.npmjs.com/package/mindupload) [![License: MIT](https://img.shields.io/badge/License-MIT-informational)](LICENSE) ![API](https://img.shields.io/badge/API-v1.9.6-ff6b00) ![Node](https://img.shields.io/badge/node-%3E%3D18-brightgreen) [![Docs](https://img.shields.io/badge/docs-mindupload.app-8b5cf6)](https://docs.mindupload.app)
10
+ [![npm](https://img.shields.io/npm/v/mindupload?color=ff006e)](https://www.npmjs.com/package/mindupload) [![License: MIT](https://img.shields.io/badge/License-MIT-informational)](LICENSE) ![API](https://img.shields.io/badge/API-v1.10.0-ff6b00) ![Node](https://img.shields.io/badge/node-%3E%3D18-brightgreen) [![Docs](https://img.shields.io/badge/docs-mindupload.app-8b5cf6)](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 40 operations, grouped by area:
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.9.6";
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
@@ -173,11 +173,15 @@ interface GetChatroomMembershipParams {
173
173
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
174
174
  preferredLanguage?: string;
175
175
  page?: number;
176
+ /** Maximum records requested for one server-capped page. */
176
177
  pageSize?: number;
177
178
  sortBy?: string;
179
+ /** Sort direction; supported values depend on the operation. */
178
180
  sortOrder?: number;
179
181
  useCursorPagination?: boolean;
182
+ /** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
180
183
  cursorValue?: string;
184
+ /** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
181
185
  cursorId?: string;
182
186
  /** The end-user's username. */
183
187
  username?: string;
@@ -190,11 +194,15 @@ interface GetChatroomMessagesParams {
190
194
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
191
195
  preferredLanguage?: string;
192
196
  page?: number;
197
+ /** Maximum records requested for one server-capped page. */
193
198
  pageSize?: number;
194
199
  sortBy?: string;
200
+ /** Sort direction; supported values depend on the operation. */
195
201
  sortOrder?: number;
196
202
  useCursorPagination?: boolean;
203
+ /** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
197
204
  cursorValue?: string;
205
+ /** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
198
206
  cursorId?: string;
199
207
  /** The end-user's username. */
200
208
  username?: string;
@@ -205,15 +213,35 @@ interface GetChatroomMessagesParams {
205
213
  sinceValue?: number;
206
214
  sinceId?: string;
207
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
+ }
208
232
  interface GetChatroomsParams {
209
233
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
210
234
  preferredLanguage?: string;
211
235
  page?: number;
236
+ /** Maximum records requested for one server-capped page. */
212
237
  pageSize?: number;
213
238
  sortBy?: string;
239
+ /** Sort direction; supported values depend on the operation. */
214
240
  sortOrder?: number;
215
241
  useCursorPagination?: boolean;
242
+ /** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
216
243
  cursorValue?: string;
244
+ /** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
217
245
  cursorId?: string;
218
246
  /** The end-user's username. */
219
247
  username?: string;
@@ -222,6 +250,36 @@ interface GetChatroomsParams {
222
250
  getPublic?: boolean;
223
251
  getPrivate?: boolean;
224
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
+ }
225
283
  interface TranslateChatroomMessageParams {
226
284
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
227
285
  preferredLanguage?: string;
@@ -238,11 +296,15 @@ interface GetChatParams {
238
296
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
239
297
  preferredLanguage?: string;
240
298
  page?: number;
299
+ /** Maximum records requested for one server-capped page. */
241
300
  pageSize?: number;
242
301
  sortBy?: string;
302
+ /** Sort direction; supported values depend on the operation. */
243
303
  sortOrder?: number;
244
304
  useCursorPagination?: boolean;
305
+ /** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
245
306
  cursorValue?: string;
307
+ /** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
246
308
  cursorId?: string;
247
309
  /** The end-user's username. */
248
310
  username?: string;
@@ -250,6 +312,22 @@ interface GetChatParams {
250
312
  password?: string;
251
313
  codename?: string;
252
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
+ }
253
331
  interface RagParams {
254
332
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
255
333
  preferredLanguage?: string;
@@ -262,6 +340,34 @@ interface RagParams {
262
340
  /** Chatroom id as returned by chatroom operations. */
263
341
  chatroomId?: string;
264
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
+ }
265
371
  interface TriggerSocialParams {
266
372
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
267
373
  preferredLanguage?: string;
@@ -310,6 +416,7 @@ interface InvokeExternalCloneParams {
310
416
  installationId: string;
311
417
  /** Your stable opaque identifier for the person authorizing this installation. */
312
418
  externalSubject: string;
419
+ /** AI consciousness id as returned by clone operations. */
313
420
  cloneId: string;
314
421
  text: string;
315
422
  /** A stable opaque event key that makes exact retries return the same outcome. */
@@ -344,6 +451,7 @@ interface UploadExternalMindDataParams {
344
451
  installationId: string;
345
452
  /** Your stable opaque identifier for the person authorizing this installation. */
346
453
  externalSubject: string;
454
+ /** AI consciousness id as returned by clone operations. */
347
455
  cloneId: string;
348
456
  text: string;
349
457
  textType?: string;
@@ -486,6 +594,7 @@ interface CreateTextParams {
486
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. */
487
595
  password?: string;
488
596
  codename?: string;
597
+ /** AI consciousness id as returned by clone operations. */
489
598
  cloneId?: string;
490
599
  text?: string;
491
600
  type?: string;
@@ -494,11 +603,15 @@ interface GetTextsParams {
494
603
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
495
604
  preferredLanguage?: string;
496
605
  page?: number;
606
+ /** Maximum records requested for one server-capped page. */
497
607
  pageSize?: number;
498
608
  sortBy?: string;
609
+ /** Sort direction; supported values depend on the operation. */
499
610
  sortOrder?: number;
500
611
  useCursorPagination?: boolean;
612
+ /** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
501
613
  cursorValue?: string;
614
+ /** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
502
615
  cursorId?: string;
503
616
  /** The end-user's username. */
504
617
  username?: string;
@@ -511,11 +624,15 @@ interface GetTransactionHistoryParams {
511
624
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
512
625
  preferredLanguage?: string;
513
626
  page?: number;
627
+ /** Maximum records requested for one server-capped page. */
514
628
  pageSize?: number;
515
629
  sortBy?: string;
630
+ /** Sort direction; supported values depend on the operation. */
516
631
  sortOrder?: number;
517
632
  useCursorPagination?: boolean;
633
+ /** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
518
634
  cursorValue?: string;
635
+ /** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
519
636
  cursorId?: string;
520
637
  /** The end-user's username. */
521
638
  username?: string;
@@ -635,16 +752,28 @@ declare class MindUpload extends MindUploadBase {
635
752
  getChatroomMembership(params?: GetChatroomMembershipParams): Promise<Result>;
636
753
  /** Fetch messages from a chatroom the user belongs to.
637
754
  *
638
- * 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.
639
756
  * @see https://docs.mindupload.app
640
757
  */
641
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>;
642
765
  /** List the chatrooms the user belongs to.
643
766
  *
644
767
  * Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chatrooms.
645
768
  * @see https://docs.mindupload.app
646
769
  */
647
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>;
648
777
  /** Translate a text chatroom message into the viewer language.
649
778
  *
650
779
  * Response fields: success, error_message, translated_text, target_language, cached.
@@ -653,16 +782,28 @@ declare class MindUpload extends MindUploadBase {
653
782
  translateChatroomMessage(params?: TranslateChatroomMessageParams): Promise<Result>;
654
783
  /** Fetch the one-on-one conversation history with an AI consciousness.
655
784
  *
656
- * 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.
657
786
  * @see https://docs.mindupload.app
658
787
  */
659
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>;
660
795
  /** Send a message to an AI consciousness and receive its reply.
661
796
  *
662
797
  * Response fields: success, error_message, response_text, clone_nickname, consolidation_summary, consolidation_count, consolidation_dispatched.
663
798
  * @see https://docs.mindupload.app
664
799
  */
665
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>;
666
807
  /** Have an AI consciousness proactively join the conversation in a chatroom.
667
808
  *
668
809
  * Response fields: success, error_message, response_text, chatroom_digests_count, chatroom_digests_summary, consolidation_summary, consolidation_count, consolidation_dispatched.
@@ -845,6 +986,6 @@ declare class MindUploadConnectionError extends MindUploadError {
845
986
  constructor(message: string, options?: ErrorOptions);
846
987
  }
847
988
 
848
- declare const VERSION = "1.9.6";
989
+ declare const VERSION = "1.10.0";
849
990
 
850
- 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
@@ -173,11 +173,15 @@ interface GetChatroomMembershipParams {
173
173
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
174
174
  preferredLanguage?: string;
175
175
  page?: number;
176
+ /** Maximum records requested for one server-capped page. */
176
177
  pageSize?: number;
177
178
  sortBy?: string;
179
+ /** Sort direction; supported values depend on the operation. */
178
180
  sortOrder?: number;
179
181
  useCursorPagination?: boolean;
182
+ /** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
180
183
  cursorValue?: string;
184
+ /** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
181
185
  cursorId?: string;
182
186
  /** The end-user's username. */
183
187
  username?: string;
@@ -190,11 +194,15 @@ interface GetChatroomMessagesParams {
190
194
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
191
195
  preferredLanguage?: string;
192
196
  page?: number;
197
+ /** Maximum records requested for one server-capped page. */
193
198
  pageSize?: number;
194
199
  sortBy?: string;
200
+ /** Sort direction; supported values depend on the operation. */
195
201
  sortOrder?: number;
196
202
  useCursorPagination?: boolean;
203
+ /** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
197
204
  cursorValue?: string;
205
+ /** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
198
206
  cursorId?: string;
199
207
  /** The end-user's username. */
200
208
  username?: string;
@@ -205,15 +213,35 @@ interface GetChatroomMessagesParams {
205
213
  sinceValue?: number;
206
214
  sinceId?: string;
207
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
+ }
208
232
  interface GetChatroomsParams {
209
233
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
210
234
  preferredLanguage?: string;
211
235
  page?: number;
236
+ /** Maximum records requested for one server-capped page. */
212
237
  pageSize?: number;
213
238
  sortBy?: string;
239
+ /** Sort direction; supported values depend on the operation. */
214
240
  sortOrder?: number;
215
241
  useCursorPagination?: boolean;
242
+ /** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
216
243
  cursorValue?: string;
244
+ /** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
217
245
  cursorId?: string;
218
246
  /** The end-user's username. */
219
247
  username?: string;
@@ -222,6 +250,36 @@ interface GetChatroomsParams {
222
250
  getPublic?: boolean;
223
251
  getPrivate?: boolean;
224
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
+ }
225
283
  interface TranslateChatroomMessageParams {
226
284
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
227
285
  preferredLanguage?: string;
@@ -238,11 +296,15 @@ interface GetChatParams {
238
296
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
239
297
  preferredLanguage?: string;
240
298
  page?: number;
299
+ /** Maximum records requested for one server-capped page. */
241
300
  pageSize?: number;
242
301
  sortBy?: string;
302
+ /** Sort direction; supported values depend on the operation. */
243
303
  sortOrder?: number;
244
304
  useCursorPagination?: boolean;
305
+ /** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
245
306
  cursorValue?: string;
307
+ /** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
246
308
  cursorId?: string;
247
309
  /** The end-user's username. */
248
310
  username?: string;
@@ -250,6 +312,22 @@ interface GetChatParams {
250
312
  password?: string;
251
313
  codename?: string;
252
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
+ }
253
331
  interface RagParams {
254
332
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
255
333
  preferredLanguage?: string;
@@ -262,6 +340,34 @@ interface RagParams {
262
340
  /** Chatroom id as returned by chatroom operations. */
263
341
  chatroomId?: string;
264
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
+ }
265
371
  interface TriggerSocialParams {
266
372
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
267
373
  preferredLanguage?: string;
@@ -310,6 +416,7 @@ interface InvokeExternalCloneParams {
310
416
  installationId: string;
311
417
  /** Your stable opaque identifier for the person authorizing this installation. */
312
418
  externalSubject: string;
419
+ /** AI consciousness id as returned by clone operations. */
313
420
  cloneId: string;
314
421
  text: string;
315
422
  /** A stable opaque event key that makes exact retries return the same outcome. */
@@ -344,6 +451,7 @@ interface UploadExternalMindDataParams {
344
451
  installationId: string;
345
452
  /** Your stable opaque identifier for the person authorizing this installation. */
346
453
  externalSubject: string;
454
+ /** AI consciousness id as returned by clone operations. */
347
455
  cloneId: string;
348
456
  text: string;
349
457
  textType?: string;
@@ -486,6 +594,7 @@ interface CreateTextParams {
486
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. */
487
595
  password?: string;
488
596
  codename?: string;
597
+ /** AI consciousness id as returned by clone operations. */
489
598
  cloneId?: string;
490
599
  text?: string;
491
600
  type?: string;
@@ -494,11 +603,15 @@ interface GetTextsParams {
494
603
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
495
604
  preferredLanguage?: string;
496
605
  page?: number;
606
+ /** Maximum records requested for one server-capped page. */
497
607
  pageSize?: number;
498
608
  sortBy?: string;
609
+ /** Sort direction; supported values depend on the operation. */
499
610
  sortOrder?: number;
500
611
  useCursorPagination?: boolean;
612
+ /** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
501
613
  cursorValue?: string;
614
+ /** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
502
615
  cursorId?: string;
503
616
  /** The end-user's username. */
504
617
  username?: string;
@@ -511,11 +624,15 @@ interface GetTransactionHistoryParams {
511
624
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
512
625
  preferredLanguage?: string;
513
626
  page?: number;
627
+ /** Maximum records requested for one server-capped page. */
514
628
  pageSize?: number;
515
629
  sortBy?: string;
630
+ /** Sort direction; supported values depend on the operation. */
516
631
  sortOrder?: number;
517
632
  useCursorPagination?: boolean;
633
+ /** Opaque pagination cursor value from the previous page (`next_cursor_value`). */
518
634
  cursorValue?: string;
635
+ /** Opaque pagination cursor id from the previous page (`next_cursor_id`). */
519
636
  cursorId?: string;
520
637
  /** The end-user's username. */
521
638
  username?: string;
@@ -635,16 +752,28 @@ declare class MindUpload extends MindUploadBase {
635
752
  getChatroomMembership(params?: GetChatroomMembershipParams): Promise<Result>;
636
753
  /** Fetch messages from a chatroom the user belongs to.
637
754
  *
638
- * 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.
639
756
  * @see https://docs.mindupload.app
640
757
  */
641
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>;
642
765
  /** List the chatrooms the user belongs to.
643
766
  *
644
767
  * Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, chatrooms.
645
768
  * @see https://docs.mindupload.app
646
769
  */
647
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>;
648
777
  /** Translate a text chatroom message into the viewer language.
649
778
  *
650
779
  * Response fields: success, error_message, translated_text, target_language, cached.
@@ -653,16 +782,28 @@ declare class MindUpload extends MindUploadBase {
653
782
  translateChatroomMessage(params?: TranslateChatroomMessageParams): Promise<Result>;
654
783
  /** Fetch the one-on-one conversation history with an AI consciousness.
655
784
  *
656
- * 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.
657
786
  * @see https://docs.mindupload.app
658
787
  */
659
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>;
660
795
  /** Send a message to an AI consciousness and receive its reply.
661
796
  *
662
797
  * Response fields: success, error_message, response_text, clone_nickname, consolidation_summary, consolidation_count, consolidation_dispatched.
663
798
  * @see https://docs.mindupload.app
664
799
  */
665
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>;
666
807
  /** Have an AI consciousness proactively join the conversation in a chatroom.
667
808
  *
668
809
  * Response fields: success, error_message, response_text, chatroom_digests_count, chatroom_digests_summary, consolidation_summary, consolidation_count, consolidation_dispatched.
@@ -845,6 +986,6 @@ declare class MindUploadConnectionError extends MindUploadError {
845
986
  constructor(message: string, options?: ErrorOptions);
846
987
  }
847
988
 
848
- declare const VERSION = "1.9.6";
989
+ declare const VERSION = "1.10.0";
849
990
 
850
- 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.9.6";
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.9.6",
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",