mindupload 1.12.1 → 1.13.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.12.1-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.13.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 50 operations, grouped by area:
127
+ All 52 operations, grouped by area:
128
128
 
129
129
  ### AI Consciousnesses
130
130
 
@@ -200,6 +200,7 @@ All 50 operations, grouped by area:
200
200
  | `endCallSession(...)` | End a live call for everyone in it. |
201
201
  | `getActiveCallSession(...)` | Check whether a chatroom has a live call, and how many people are in it. |
202
202
  | `joinCallSession(...)` | Join a live call that is already running in a chatroom. |
203
+ | `leaveCallSession(...)` | Say that this person has left a call the others are still in. |
203
204
  | `refreshCallToken(...)` | Get a fresh joining pass for a call, before the current one expires. |
204
205
  | `setCallHost(...)` | Make somebody a co-host of a live call, or stand them down again. |
205
206
 
@@ -215,6 +216,7 @@ All 50 operations, grouped by area:
215
216
  | `requestUploadUrl(...)` | Request an upload slot and a signed viewing link for a media attachment. |
216
217
  | `signUploadPart(...)` | Get the signed link for one part of a multipart upload. |
217
218
  | `signUploadPartsBatch(...)` | Get signed links for several parts of a multipart upload at once. |
219
+ | `startMediaAnalysis(...)` | Begin analysing an uploaded or linked attachment so its description is ready before the message is sent. |
218
220
 
219
221
  ### Memories
220
222
 
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.12.1";
78
+ var VERSION = "1.13.0";
79
79
 
80
80
  // src/client.ts
81
81
  var DEFAULT_BASE_URL = "https://partner.mindupload.app";
@@ -235,7 +235,7 @@ var MindUpload = class extends MindUploadBase {
235
235
  // --- Account ---
236
236
  /** Check your partner API rate limits, credit caps, and current usage.
237
237
  *
238
- * Response fields: success, error_message, per_user_rate_limit_per_min, per_user_daily_credit_cap, partner_rate_limit_per_min, external_authorization_rate_limit_per_min, partner_daily_credit_cap, max_users, registered_users, partner_requests_last_minute, partner_credit_spends_last_day, user, user_requests_last_minute, user_credit_spends_last_day, credit_spending_tasks, calls_enabled, call_minutes_cap_monthly, call_max_concurrent_sessions, call_month_start_timestamp, call_sessions_this_month, call_participant_minutes_this_month, call_data_transferred_bytes_this_month, call_data_transferred_is_complete, call_live_sessions, call_spending_tasks, operation_duration_ms.
238
+ * Response fields: success, error_message, per_user_rate_limit_per_min, per_user_daily_credit_cap, partner_rate_limit_per_min, external_authorization_rate_limit_per_min, partner_daily_credit_cap, max_users, registered_users, partner_requests_last_minute, partner_credit_spends_last_day, user, user_requests_last_minute, user_credit_spends_last_day, credit_spending_tasks, calls_enabled, call_minutes_cap_monthly, call_max_concurrent_sessions, call_voice_minutes_cap_monthly, call_video_minutes_cap_monthly, call_voice_participant_minutes_this_month, call_video_participant_minutes_this_month, call_month_start_timestamp, call_sessions_this_month, call_participant_minutes_this_month, call_live_participant_minutes, call_data_transferred_bytes_this_month, call_data_transferred_is_complete, call_live_sessions, call_spending_tasks, operation_duration_ms.
239
239
  * @see https://docs.mindupload.app
240
240
  */
241
241
  getQuota(params = {}) {
@@ -495,6 +495,14 @@ var MindUpload = class extends MindUploadBase {
495
495
  joinCallSession(params = {}) {
496
496
  return this.request("join_call_session", params);
497
497
  }
498
+ /** Say that this person has left a call the others are still in.
499
+ *
500
+ * Response fields: success, error_message.
501
+ * @see https://docs.mindupload.app
502
+ */
503
+ leaveCallSession(params = {}) {
504
+ return this.request("leave_call_session", params);
505
+ }
498
506
  /** Get a fresh joining pass for a call, before the current one expires.
499
507
  *
500
508
  * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host.
@@ -576,6 +584,14 @@ var MindUpload = class extends MindUploadBase {
576
584
  signUploadPartsBatch(params = {}) {
577
585
  return this.request("sign_upload_parts_batch", params);
578
586
  }
587
+ /** Begin analysing an uploaded or linked attachment so its description is ready before the message is sent.
588
+ *
589
+ * Response fields: success, error_message, analyses.
590
+ * @see https://docs.mindupload.app
591
+ */
592
+ startMediaAnalysis(params) {
593
+ return this.request("start_media_analysis", params);
594
+ }
579
595
  // --- Memories ---
580
596
  /** Upload a memory or persona entry to an AI consciousness.
581
597
  *
package/dist/index.d.cts CHANGED
@@ -495,6 +495,8 @@ interface CreateCallSessionParams {
495
495
  chatroomId?: string;
496
496
  /** What kind of call to start. `conversation` (the default) admits everyone able to speak and show their camera. `broadcast` admits everyone except the chatroom owner and admins able to watch, listen and ask to speak, until somebody running the call lets them. Only the chatroom owner and admins may start a broadcast; anyone else asking for one starts a conversation. */
497
497
  mode?: "conversation" | "broadcast";
498
+ /** Whether this call carries a picture. `video` (the default) is a call with cameras; `voice` is a call with none at all — sound only, which asks far less of a slow or metered connection. It is fixed for the whole call and applies to everybody in it — nobody can turn a camera on in a voice call, and nobody can join one as a video participant — so switching means starting a new call. Two things override it. A call already running in the room wins: the caller joins that one, in the kind it is already in. And `mode: broadcast` wins: a broadcast is always a video call, counted and capped as one. Read `media_tier` back off the call in the response to see which kind you got. */
499
+ mediaTier?: "voice" | "video";
498
500
  /** Whether whoever starts this call runs it. False, and absent, mean the call controls rest only on chatroom standing — so a call whose owner and admins have all left carries on with nobody running it until one of them returns. Only the chatroom owner and admins may turn it on; anyone else asking for it is ignored. Set once, when the call starts. */
499
501
  hostInheritance?: boolean;
500
502
  }
@@ -527,6 +529,15 @@ interface JoinCallSessionParams {
527
529
  password?: string;
528
530
  callSessionId?: string;
529
531
  }
532
+ interface LeaveCallSessionParams {
533
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
534
+ preferredLanguage?: string;
535
+ /** The end-user's username. */
536
+ username?: string;
537
+ /** 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. */
538
+ password?: string;
539
+ callSessionId?: string;
540
+ }
530
541
  interface RefreshCallTokenParams {
531
542
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
532
543
  preferredLanguage?: string;
@@ -607,6 +618,7 @@ interface RequestMultipartUploadParams {
607
618
  filename?: string;
608
619
  contentType?: string;
609
620
  fileSizeBytes?: number;
621
+ /** The kind of media: `image`, `video`, or `audio`. */
610
622
  mediaType?: string;
611
623
  hasThumbnail?: boolean;
612
624
  }
@@ -620,6 +632,7 @@ interface RequestUploadUrlParams {
620
632
  filename?: string;
621
633
  contentType?: string;
622
634
  fileSizeBytes?: number;
635
+ /** The kind of media: `image`, `video`, or `audio`. */
623
636
  mediaType?: string;
624
637
  hasThumbnail?: boolean;
625
638
  }
@@ -651,6 +664,20 @@ interface SignUploadPartsBatchParams {
651
664
  /** One-based multipart part numbers to sign in a single batch. */
652
665
  partNumbers?: Array<number>;
653
666
  }
667
+ interface StartMediaAnalysisParams {
668
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
669
+ preferredLanguage?: string;
670
+ /** The end-user's username. */
671
+ username: string;
672
+ /** 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. */
673
+ password: string;
674
+ /** The attachment to start describing, as its own call. Send each one as soon as it is uploaded or pasted, while the person is still typing, so nothing is left to do at send time. `maxItems` is the cap; a longer array is rejected, not truncated. */
675
+ media: Array<Record<string, unknown>>;
676
+ /** The AI consciousness this attachment is for, named the way `rag` and `get_chat` name it. Send this for a one-on-one conversation, or `chatroom_id` for a room — exactly one of the two, and the person must be able to reach it. */
677
+ codename?: string;
678
+ /** The chatroom this attachment is for, as returned by chatroom operations. Send this for a room, or `codename` for a one-on-one conversation — exactly one of the two, and the person must already be in the room. */
679
+ chatroomId?: string;
680
+ }
654
681
  interface CreateTextParams {
655
682
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
656
683
  preferredLanguage?: string;
@@ -758,7 +785,7 @@ declare class MindUpload extends MindUploadBase {
758
785
  updateClone(params?: UpdateCloneParams): Promise<Result>;
759
786
  /** Check your partner API rate limits, credit caps, and current usage.
760
787
  *
761
- * Response fields: success, error_message, per_user_rate_limit_per_min, per_user_daily_credit_cap, partner_rate_limit_per_min, external_authorization_rate_limit_per_min, partner_daily_credit_cap, max_users, registered_users, partner_requests_last_minute, partner_credit_spends_last_day, user, user_requests_last_minute, user_credit_spends_last_day, credit_spending_tasks, calls_enabled, call_minutes_cap_monthly, call_max_concurrent_sessions, call_month_start_timestamp, call_sessions_this_month, call_participant_minutes_this_month, call_data_transferred_bytes_this_month, call_data_transferred_is_complete, call_live_sessions, call_spending_tasks, operation_duration_ms.
788
+ * Response fields: success, error_message, per_user_rate_limit_per_min, per_user_daily_credit_cap, partner_rate_limit_per_min, external_authorization_rate_limit_per_min, partner_daily_credit_cap, max_users, registered_users, partner_requests_last_minute, partner_credit_spends_last_day, user, user_requests_last_minute, user_credit_spends_last_day, credit_spending_tasks, calls_enabled, call_minutes_cap_monthly, call_max_concurrent_sessions, call_voice_minutes_cap_monthly, call_video_minutes_cap_monthly, call_voice_participant_minutes_this_month, call_video_participant_minutes_this_month, call_month_start_timestamp, call_sessions_this_month, call_participant_minutes_this_month, call_live_participant_minutes, call_data_transferred_bytes_this_month, call_data_transferred_is_complete, call_live_sessions, call_spending_tasks, operation_duration_ms.
762
789
  * @see https://docs.mindupload.app
763
790
  */
764
791
  getQuota(params?: GetQuotaParams): Promise<Result>;
@@ -948,6 +975,12 @@ declare class MindUpload extends MindUploadBase {
948
975
  * @see https://docs.mindupload.app
949
976
  */
950
977
  joinCallSession(params?: JoinCallSessionParams): Promise<Result>;
978
+ /** Say that this person has left a call the others are still in.
979
+ *
980
+ * Response fields: success, error_message.
981
+ * @see https://docs.mindupload.app
982
+ */
983
+ leaveCallSession(params?: LeaveCallSessionParams): Promise<Result>;
951
984
  /** Get a fresh joining pass for a call, before the current one expires.
952
985
  *
953
986
  * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host.
@@ -1008,6 +1041,12 @@ declare class MindUpload extends MindUploadBase {
1008
1041
  * @see https://docs.mindupload.app
1009
1042
  */
1010
1043
  signUploadPartsBatch(params?: SignUploadPartsBatchParams): Promise<Result>;
1044
+ /** Begin analysing an uploaded or linked attachment so its description is ready before the message is sent.
1045
+ *
1046
+ * Response fields: success, error_message, analyses.
1047
+ * @see https://docs.mindupload.app
1048
+ */
1049
+ startMediaAnalysis(params: StartMediaAnalysisParams): Promise<Result>;
1011
1050
  /** Upload a memory or persona entry to an AI consciousness.
1012
1051
  *
1013
1052
  * Response fields: success, error_message, cluster_label, cluster_modified_count.
@@ -1088,6 +1127,6 @@ declare class MindUploadConnectionError extends MindUploadError {
1088
1127
  constructor(message: string, options?: ErrorOptions);
1089
1128
  }
1090
1129
 
1091
- declare const VERSION = "1.12.1";
1130
+ declare const VERSION = "1.13.0";
1092
1131
 
1093
- export { type AbortMultipartUploadParams, ApiError, type ApiErrorOptions, AuthenticationError, type CancelUploadParams, type CheckChatroomUpdatesParams, type CheckUsernameParams, type ClientOptions, type CompleteMultipartUploadParams, type CreateCallSessionParams, type CreateChatroomMembershipParams, type CreateChatroomMessageParams, type CreateChatroomParams, type CreateCloneParams, type CreateExternalAuthorizationRequestParams, type CreateTextParams, DEFAULT_BASE_URL, type EndCallSessionParams, type ErrorOptions, type ExchangeExternalAuthorizationParams, type ExternalAuthorizationStatus, type GetActiveCallSessionParams, 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 JoinCallSessionParams, type ListUploadPartsParams, type LoginParams, type LogoutParams, MindUpload, MindUploadBase, MindUploadConnectionError, MindUploadError, type RagParams, RateLimitError, type RateLimitOptions, type RefreshCallTokenParams, type RefreshExternalAuthorizationParams, type RegisterParams, type RequestMultipartUploadParams, type RequestUploadUrlParams, type Result, type SearchChatroomMessagesParams, type SearchChatsParams, type SetCallHostParams, type SignUploadPartParams, type SignUploadPartsBatchParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, type UploadExternalMindDataParams, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
1132
+ export { type AbortMultipartUploadParams, ApiError, type ApiErrorOptions, AuthenticationError, type CancelUploadParams, type CheckChatroomUpdatesParams, type CheckUsernameParams, type ClientOptions, type CompleteMultipartUploadParams, type CreateCallSessionParams, type CreateChatroomMembershipParams, type CreateChatroomMessageParams, type CreateChatroomParams, type CreateCloneParams, type CreateExternalAuthorizationRequestParams, type CreateTextParams, DEFAULT_BASE_URL, type EndCallSessionParams, type ErrorOptions, type ExchangeExternalAuthorizationParams, type ExternalAuthorizationStatus, type GetActiveCallSessionParams, 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 JoinCallSessionParams, type LeaveCallSessionParams, type ListUploadPartsParams, type LoginParams, type LogoutParams, MindUpload, MindUploadBase, MindUploadConnectionError, MindUploadError, type RagParams, RateLimitError, type RateLimitOptions, type RefreshCallTokenParams, type RefreshExternalAuthorizationParams, type RegisterParams, type RequestMultipartUploadParams, type RequestUploadUrlParams, type Result, type SearchChatroomMessagesParams, type SearchChatsParams, type SetCallHostParams, type SignUploadPartParams, type SignUploadPartsBatchParams, type StartMediaAnalysisParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, type UploadExternalMindDataParams, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
package/dist/index.d.ts CHANGED
@@ -495,6 +495,8 @@ interface CreateCallSessionParams {
495
495
  chatroomId?: string;
496
496
  /** What kind of call to start. `conversation` (the default) admits everyone able to speak and show their camera. `broadcast` admits everyone except the chatroom owner and admins able to watch, listen and ask to speak, until somebody running the call lets them. Only the chatroom owner and admins may start a broadcast; anyone else asking for one starts a conversation. */
497
497
  mode?: "conversation" | "broadcast";
498
+ /** Whether this call carries a picture. `video` (the default) is a call with cameras; `voice` is a call with none at all — sound only, which asks far less of a slow or metered connection. It is fixed for the whole call and applies to everybody in it — nobody can turn a camera on in a voice call, and nobody can join one as a video participant — so switching means starting a new call. Two things override it. A call already running in the room wins: the caller joins that one, in the kind it is already in. And `mode: broadcast` wins: a broadcast is always a video call, counted and capped as one. Read `media_tier` back off the call in the response to see which kind you got. */
499
+ mediaTier?: "voice" | "video";
498
500
  /** Whether whoever starts this call runs it. False, and absent, mean the call controls rest only on chatroom standing — so a call whose owner and admins have all left carries on with nobody running it until one of them returns. Only the chatroom owner and admins may turn it on; anyone else asking for it is ignored. Set once, when the call starts. */
499
501
  hostInheritance?: boolean;
500
502
  }
@@ -527,6 +529,15 @@ interface JoinCallSessionParams {
527
529
  password?: string;
528
530
  callSessionId?: string;
529
531
  }
532
+ interface LeaveCallSessionParams {
533
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
534
+ preferredLanguage?: string;
535
+ /** The end-user's username. */
536
+ username?: string;
537
+ /** 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. */
538
+ password?: string;
539
+ callSessionId?: string;
540
+ }
530
541
  interface RefreshCallTokenParams {
531
542
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
532
543
  preferredLanguage?: string;
@@ -607,6 +618,7 @@ interface RequestMultipartUploadParams {
607
618
  filename?: string;
608
619
  contentType?: string;
609
620
  fileSizeBytes?: number;
621
+ /** The kind of media: `image`, `video`, or `audio`. */
610
622
  mediaType?: string;
611
623
  hasThumbnail?: boolean;
612
624
  }
@@ -620,6 +632,7 @@ interface RequestUploadUrlParams {
620
632
  filename?: string;
621
633
  contentType?: string;
622
634
  fileSizeBytes?: number;
635
+ /** The kind of media: `image`, `video`, or `audio`. */
623
636
  mediaType?: string;
624
637
  hasThumbnail?: boolean;
625
638
  }
@@ -651,6 +664,20 @@ interface SignUploadPartsBatchParams {
651
664
  /** One-based multipart part numbers to sign in a single batch. */
652
665
  partNumbers?: Array<number>;
653
666
  }
667
+ interface StartMediaAnalysisParams {
668
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
669
+ preferredLanguage?: string;
670
+ /** The end-user's username. */
671
+ username: string;
672
+ /** 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. */
673
+ password: string;
674
+ /** The attachment to start describing, as its own call. Send each one as soon as it is uploaded or pasted, while the person is still typing, so nothing is left to do at send time. `maxItems` is the cap; a longer array is rejected, not truncated. */
675
+ media: Array<Record<string, unknown>>;
676
+ /** The AI consciousness this attachment is for, named the way `rag` and `get_chat` name it. Send this for a one-on-one conversation, or `chatroom_id` for a room — exactly one of the two, and the person must be able to reach it. */
677
+ codename?: string;
678
+ /** The chatroom this attachment is for, as returned by chatroom operations. Send this for a room, or `codename` for a one-on-one conversation — exactly one of the two, and the person must already be in the room. */
679
+ chatroomId?: string;
680
+ }
654
681
  interface CreateTextParams {
655
682
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
656
683
  preferredLanguage?: string;
@@ -758,7 +785,7 @@ declare class MindUpload extends MindUploadBase {
758
785
  updateClone(params?: UpdateCloneParams): Promise<Result>;
759
786
  /** Check your partner API rate limits, credit caps, and current usage.
760
787
  *
761
- * Response fields: success, error_message, per_user_rate_limit_per_min, per_user_daily_credit_cap, partner_rate_limit_per_min, external_authorization_rate_limit_per_min, partner_daily_credit_cap, max_users, registered_users, partner_requests_last_minute, partner_credit_spends_last_day, user, user_requests_last_minute, user_credit_spends_last_day, credit_spending_tasks, calls_enabled, call_minutes_cap_monthly, call_max_concurrent_sessions, call_month_start_timestamp, call_sessions_this_month, call_participant_minutes_this_month, call_data_transferred_bytes_this_month, call_data_transferred_is_complete, call_live_sessions, call_spending_tasks, operation_duration_ms.
788
+ * Response fields: success, error_message, per_user_rate_limit_per_min, per_user_daily_credit_cap, partner_rate_limit_per_min, external_authorization_rate_limit_per_min, partner_daily_credit_cap, max_users, registered_users, partner_requests_last_minute, partner_credit_spends_last_day, user, user_requests_last_minute, user_credit_spends_last_day, credit_spending_tasks, calls_enabled, call_minutes_cap_monthly, call_max_concurrent_sessions, call_voice_minutes_cap_monthly, call_video_minutes_cap_monthly, call_voice_participant_minutes_this_month, call_video_participant_minutes_this_month, call_month_start_timestamp, call_sessions_this_month, call_participant_minutes_this_month, call_live_participant_minutes, call_data_transferred_bytes_this_month, call_data_transferred_is_complete, call_live_sessions, call_spending_tasks, operation_duration_ms.
762
789
  * @see https://docs.mindupload.app
763
790
  */
764
791
  getQuota(params?: GetQuotaParams): Promise<Result>;
@@ -948,6 +975,12 @@ declare class MindUpload extends MindUploadBase {
948
975
  * @see https://docs.mindupload.app
949
976
  */
950
977
  joinCallSession(params?: JoinCallSessionParams): Promise<Result>;
978
+ /** Say that this person has left a call the others are still in.
979
+ *
980
+ * Response fields: success, error_message.
981
+ * @see https://docs.mindupload.app
982
+ */
983
+ leaveCallSession(params?: LeaveCallSessionParams): Promise<Result>;
951
984
  /** Get a fresh joining pass for a call, before the current one expires.
952
985
  *
953
986
  * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host.
@@ -1008,6 +1041,12 @@ declare class MindUpload extends MindUploadBase {
1008
1041
  * @see https://docs.mindupload.app
1009
1042
  */
1010
1043
  signUploadPartsBatch(params?: SignUploadPartsBatchParams): Promise<Result>;
1044
+ /** Begin analysing an uploaded or linked attachment so its description is ready before the message is sent.
1045
+ *
1046
+ * Response fields: success, error_message, analyses.
1047
+ * @see https://docs.mindupload.app
1048
+ */
1049
+ startMediaAnalysis(params: StartMediaAnalysisParams): Promise<Result>;
1011
1050
  /** Upload a memory or persona entry to an AI consciousness.
1012
1051
  *
1013
1052
  * Response fields: success, error_message, cluster_label, cluster_modified_count.
@@ -1088,6 +1127,6 @@ declare class MindUploadConnectionError extends MindUploadError {
1088
1127
  constructor(message: string, options?: ErrorOptions);
1089
1128
  }
1090
1129
 
1091
- declare const VERSION = "1.12.1";
1130
+ declare const VERSION = "1.13.0";
1092
1131
 
1093
- export { type AbortMultipartUploadParams, ApiError, type ApiErrorOptions, AuthenticationError, type CancelUploadParams, type CheckChatroomUpdatesParams, type CheckUsernameParams, type ClientOptions, type CompleteMultipartUploadParams, type CreateCallSessionParams, type CreateChatroomMembershipParams, type CreateChatroomMessageParams, type CreateChatroomParams, type CreateCloneParams, type CreateExternalAuthorizationRequestParams, type CreateTextParams, DEFAULT_BASE_URL, type EndCallSessionParams, type ErrorOptions, type ExchangeExternalAuthorizationParams, type ExternalAuthorizationStatus, type GetActiveCallSessionParams, 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 JoinCallSessionParams, type ListUploadPartsParams, type LoginParams, type LogoutParams, MindUpload, MindUploadBase, MindUploadConnectionError, MindUploadError, type RagParams, RateLimitError, type RateLimitOptions, type RefreshCallTokenParams, type RefreshExternalAuthorizationParams, type RegisterParams, type RequestMultipartUploadParams, type RequestUploadUrlParams, type Result, type SearchChatroomMessagesParams, type SearchChatsParams, type SetCallHostParams, type SignUploadPartParams, type SignUploadPartsBatchParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, type UploadExternalMindDataParams, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
1132
+ export { type AbortMultipartUploadParams, ApiError, type ApiErrorOptions, AuthenticationError, type CancelUploadParams, type CheckChatroomUpdatesParams, type CheckUsernameParams, type ClientOptions, type CompleteMultipartUploadParams, type CreateCallSessionParams, type CreateChatroomMembershipParams, type CreateChatroomMessageParams, type CreateChatroomParams, type CreateCloneParams, type CreateExternalAuthorizationRequestParams, type CreateTextParams, DEFAULT_BASE_URL, type EndCallSessionParams, type ErrorOptions, type ExchangeExternalAuthorizationParams, type ExternalAuthorizationStatus, type GetActiveCallSessionParams, 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 JoinCallSessionParams, type LeaveCallSessionParams, type ListUploadPartsParams, type LoginParams, type LogoutParams, MindUpload, MindUploadBase, MindUploadConnectionError, MindUploadError, type RagParams, RateLimitError, type RateLimitOptions, type RefreshCallTokenParams, type RefreshExternalAuthorizationParams, type RegisterParams, type RequestMultipartUploadParams, type RequestUploadUrlParams, type Result, type SearchChatroomMessagesParams, type SearchChatsParams, type SetCallHostParams, type SignUploadPartParams, type SignUploadPartsBatchParams, type StartMediaAnalysisParams, 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.12.1";
44
+ var VERSION = "1.13.0";
45
45
 
46
46
  // src/client.ts
47
47
  var DEFAULT_BASE_URL = "https://partner.mindupload.app";
@@ -201,7 +201,7 @@ var MindUpload = class extends MindUploadBase {
201
201
  // --- Account ---
202
202
  /** Check your partner API rate limits, credit caps, and current usage.
203
203
  *
204
- * Response fields: success, error_message, per_user_rate_limit_per_min, per_user_daily_credit_cap, partner_rate_limit_per_min, external_authorization_rate_limit_per_min, partner_daily_credit_cap, max_users, registered_users, partner_requests_last_minute, partner_credit_spends_last_day, user, user_requests_last_minute, user_credit_spends_last_day, credit_spending_tasks, calls_enabled, call_minutes_cap_monthly, call_max_concurrent_sessions, call_month_start_timestamp, call_sessions_this_month, call_participant_minutes_this_month, call_data_transferred_bytes_this_month, call_data_transferred_is_complete, call_live_sessions, call_spending_tasks, operation_duration_ms.
204
+ * Response fields: success, error_message, per_user_rate_limit_per_min, per_user_daily_credit_cap, partner_rate_limit_per_min, external_authorization_rate_limit_per_min, partner_daily_credit_cap, max_users, registered_users, partner_requests_last_minute, partner_credit_spends_last_day, user, user_requests_last_minute, user_credit_spends_last_day, credit_spending_tasks, calls_enabled, call_minutes_cap_monthly, call_max_concurrent_sessions, call_voice_minutes_cap_monthly, call_video_minutes_cap_monthly, call_voice_participant_minutes_this_month, call_video_participant_minutes_this_month, call_month_start_timestamp, call_sessions_this_month, call_participant_minutes_this_month, call_live_participant_minutes, call_data_transferred_bytes_this_month, call_data_transferred_is_complete, call_live_sessions, call_spending_tasks, operation_duration_ms.
205
205
  * @see https://docs.mindupload.app
206
206
  */
207
207
  getQuota(params = {}) {
@@ -461,6 +461,14 @@ var MindUpload = class extends MindUploadBase {
461
461
  joinCallSession(params = {}) {
462
462
  return this.request("join_call_session", params);
463
463
  }
464
+ /** Say that this person has left a call the others are still in.
465
+ *
466
+ * Response fields: success, error_message.
467
+ * @see https://docs.mindupload.app
468
+ */
469
+ leaveCallSession(params = {}) {
470
+ return this.request("leave_call_session", params);
471
+ }
464
472
  /** Get a fresh joining pass for a call, before the current one expires.
465
473
  *
466
474
  * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host.
@@ -542,6 +550,14 @@ var MindUpload = class extends MindUploadBase {
542
550
  signUploadPartsBatch(params = {}) {
543
551
  return this.request("sign_upload_parts_batch", params);
544
552
  }
553
+ /** Begin analysing an uploaded or linked attachment so its description is ready before the message is sent.
554
+ *
555
+ * Response fields: success, error_message, analyses.
556
+ * @see https://docs.mindupload.app
557
+ */
558
+ startMediaAnalysis(params) {
559
+ return this.request("start_media_analysis", params);
560
+ }
545
561
  // --- Memories ---
546
562
  /** Upload a memory or persona entry to an AI consciousness.
547
563
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindupload",
3
- "version": "1.12.1",
3
+ "version": "1.13.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",