mindupload 1.11.5 → 1.12.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.11.5-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.12.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 44 operations, grouped by area:
127
+ All 49 operations, grouped by area:
128
128
 
129
129
  ### AI Consciousnesses
130
130
 
@@ -192,6 +192,16 @@ All 44 operations, grouped by area:
192
192
  | `getMindCluster(...)` | Fetch the mind-graph visualization data of an AI consciousness. |
193
193
  | `getSoulmateReport(...)` | Generate or fetch the compatibility report between two chatroom members. |
194
194
 
195
+ ### Live calls
196
+
197
+ | Method | Description |
198
+ | --- | --- |
199
+ | `createCallSession(...)` | Start a live voice and video call in a chatroom, or join the one already running. |
200
+ | `endCallSession(...)` | End a live call for everyone in it. |
201
+ | `getActiveCallSession(...)` | Check whether a chatroom has a live call, and how many people are in it. |
202
+ | `joinCallSession(...)` | Join a live call that is already running in a chatroom. |
203
+ | `refreshCallToken(...)` | Get a fresh joining pass for a call, before the current one expires. |
204
+
195
205
  ### Media
196
206
 
197
207
  | Method | Description |
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.11.5";
78
+ var VERSION = "1.12.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, 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_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.
239
239
  * @see https://docs.mindupload.app
240
240
  */
241
241
  getQuota(params = {}) {
@@ -462,6 +462,47 @@ var MindUpload = class extends MindUploadBase {
462
462
  getSoulmateReport(params = {}) {
463
463
  return this.request("get_soulmate_report", params);
464
464
  }
465
+ // --- Live calls ---
466
+ /** Start a live voice and video call in a chatroom, or join the one already running.
467
+ *
468
+ * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host, call_session.
469
+ * @see https://docs.mindupload.app
470
+ */
471
+ createCallSession(params = {}) {
472
+ return this.request("create_call_session", params);
473
+ }
474
+ /** End a live call for everyone in it.
475
+ *
476
+ * Response fields: success, error_message.
477
+ * @see https://docs.mindupload.app
478
+ */
479
+ endCallSession(params = {}) {
480
+ return this.request("end_call_session", params);
481
+ }
482
+ /** Check whether a chatroom has a live call, and how many people are in it.
483
+ *
484
+ * Response fields: success, error_message, call_session.
485
+ * @see https://docs.mindupload.app
486
+ */
487
+ getActiveCallSession(params = {}) {
488
+ return this.request("get_active_call_session", params);
489
+ }
490
+ /** Join a live call that is already running in a chatroom.
491
+ *
492
+ * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host, call_session.
493
+ * @see https://docs.mindupload.app
494
+ */
495
+ joinCallSession(params = {}) {
496
+ return this.request("join_call_session", params);
497
+ }
498
+ /** Get a fresh joining pass for a call, before the current one expires.
499
+ *
500
+ * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host.
501
+ * @see https://docs.mindupload.app
502
+ */
503
+ refreshCallToken(params = {}) {
504
+ return this.request("refresh_call_token", params);
505
+ }
465
506
  // --- Media ---
466
507
  /** Cancel a multipart upload and discard its parts.
467
508
  *
package/dist/index.d.cts CHANGED
@@ -484,6 +484,53 @@ interface GetSoulmateReportParams {
484
484
  /** Chatroom id as returned by chatroom operations. */
485
485
  chatroomId?: string;
486
486
  }
487
+ interface CreateCallSessionParams {
488
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
489
+ preferredLanguage?: string;
490
+ /** The end-user's username. */
491
+ username?: string;
492
+ /** 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. */
493
+ password?: string;
494
+ /** Chatroom id as returned by chatroom operations. */
495
+ chatroomId?: string;
496
+ }
497
+ interface EndCallSessionParams {
498
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
499
+ preferredLanguage?: string;
500
+ /** The end-user's username. */
501
+ username?: string;
502
+ /** 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. */
503
+ password?: string;
504
+ callSessionId?: string;
505
+ }
506
+ interface GetActiveCallSessionParams {
507
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
508
+ preferredLanguage?: string;
509
+ /** The end-user's username. */
510
+ username?: string;
511
+ /** 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. */
512
+ password?: string;
513
+ /** Chatroom id as returned by chatroom operations. */
514
+ chatroomId?: string;
515
+ }
516
+ interface JoinCallSessionParams {
517
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
518
+ preferredLanguage?: string;
519
+ /** The end-user's username. */
520
+ username?: string;
521
+ /** 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. */
522
+ password?: string;
523
+ callSessionId?: string;
524
+ }
525
+ interface RefreshCallTokenParams {
526
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
527
+ preferredLanguage?: string;
528
+ /** The end-user's username. */
529
+ username?: string;
530
+ /** 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. */
531
+ password?: string;
532
+ callSessionId?: string;
533
+ }
487
534
  interface AbortMultipartUploadParams {
488
535
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
489
536
  preferredLanguage?: string;
@@ -693,7 +740,7 @@ declare class MindUpload extends MindUploadBase {
693
740
  updateClone(params?: UpdateCloneParams): Promise<Result>;
694
741
  /** Check your partner API rate limits, credit caps, and current usage.
695
742
  *
696
- * 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, operation_duration_ms.
743
+ * 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.
697
744
  * @see https://docs.mindupload.app
698
745
  */
699
746
  getQuota(params?: GetQuotaParams): Promise<Result>;
@@ -859,6 +906,36 @@ declare class MindUpload extends MindUploadBase {
859
906
  * @see https://docs.mindupload.app
860
907
  */
861
908
  getSoulmateReport(params?: GetSoulmateReportParams): Promise<Result>;
909
+ /** Start a live voice and video call in a chatroom, or join the one already running.
910
+ *
911
+ * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host, call_session.
912
+ * @see https://docs.mindupload.app
913
+ */
914
+ createCallSession(params?: CreateCallSessionParams): Promise<Result>;
915
+ /** End a live call for everyone in it.
916
+ *
917
+ * Response fields: success, error_message.
918
+ * @see https://docs.mindupload.app
919
+ */
920
+ endCallSession(params?: EndCallSessionParams): Promise<Result>;
921
+ /** Check whether a chatroom has a live call, and how many people are in it.
922
+ *
923
+ * Response fields: success, error_message, call_session.
924
+ * @see https://docs.mindupload.app
925
+ */
926
+ getActiveCallSession(params?: GetActiveCallSessionParams): Promise<Result>;
927
+ /** Join a live call that is already running in a chatroom.
928
+ *
929
+ * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host, call_session.
930
+ * @see https://docs.mindupload.app
931
+ */
932
+ joinCallSession(params?: JoinCallSessionParams): Promise<Result>;
933
+ /** Get a fresh joining pass for a call, before the current one expires.
934
+ *
935
+ * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host.
936
+ * @see https://docs.mindupload.app
937
+ */
938
+ refreshCallToken(params?: RefreshCallTokenParams): Promise<Result>;
862
939
  /** Cancel a multipart upload and discard its parts.
863
940
  *
864
941
  * Response fields: success, error_message.
@@ -987,6 +1064,6 @@ declare class MindUploadConnectionError extends MindUploadError {
987
1064
  constructor(message: string, options?: ErrorOptions);
988
1065
  }
989
1066
 
990
- declare const VERSION = "1.11.5";
1067
+ declare const VERSION = "1.12.0";
991
1068
 
992
- 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 };
1069
+ 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 SignUploadPartParams, type SignUploadPartsBatchParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, type UploadExternalMindDataParams, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
package/dist/index.d.ts CHANGED
@@ -484,6 +484,53 @@ interface GetSoulmateReportParams {
484
484
  /** Chatroom id as returned by chatroom operations. */
485
485
  chatroomId?: string;
486
486
  }
487
+ interface CreateCallSessionParams {
488
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
489
+ preferredLanguage?: string;
490
+ /** The end-user's username. */
491
+ username?: string;
492
+ /** 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. */
493
+ password?: string;
494
+ /** Chatroom id as returned by chatroom operations. */
495
+ chatroomId?: string;
496
+ }
497
+ interface EndCallSessionParams {
498
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
499
+ preferredLanguage?: string;
500
+ /** The end-user's username. */
501
+ username?: string;
502
+ /** 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. */
503
+ password?: string;
504
+ callSessionId?: string;
505
+ }
506
+ interface GetActiveCallSessionParams {
507
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
508
+ preferredLanguage?: string;
509
+ /** The end-user's username. */
510
+ username?: string;
511
+ /** 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. */
512
+ password?: string;
513
+ /** Chatroom id as returned by chatroom operations. */
514
+ chatroomId?: string;
515
+ }
516
+ interface JoinCallSessionParams {
517
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
518
+ preferredLanguage?: string;
519
+ /** The end-user's username. */
520
+ username?: string;
521
+ /** 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. */
522
+ password?: string;
523
+ callSessionId?: string;
524
+ }
525
+ interface RefreshCallTokenParams {
526
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
527
+ preferredLanguage?: string;
528
+ /** The end-user's username. */
529
+ username?: string;
530
+ /** 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. */
531
+ password?: string;
532
+ callSessionId?: string;
533
+ }
487
534
  interface AbortMultipartUploadParams {
488
535
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
489
536
  preferredLanguage?: string;
@@ -693,7 +740,7 @@ declare class MindUpload extends MindUploadBase {
693
740
  updateClone(params?: UpdateCloneParams): Promise<Result>;
694
741
  /** Check your partner API rate limits, credit caps, and current usage.
695
742
  *
696
- * 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, operation_duration_ms.
743
+ * 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.
697
744
  * @see https://docs.mindupload.app
698
745
  */
699
746
  getQuota(params?: GetQuotaParams): Promise<Result>;
@@ -859,6 +906,36 @@ declare class MindUpload extends MindUploadBase {
859
906
  * @see https://docs.mindupload.app
860
907
  */
861
908
  getSoulmateReport(params?: GetSoulmateReportParams): Promise<Result>;
909
+ /** Start a live voice and video call in a chatroom, or join the one already running.
910
+ *
911
+ * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host, call_session.
912
+ * @see https://docs.mindupload.app
913
+ */
914
+ createCallSession(params?: CreateCallSessionParams): Promise<Result>;
915
+ /** End a live call for everyone in it.
916
+ *
917
+ * Response fields: success, error_message.
918
+ * @see https://docs.mindupload.app
919
+ */
920
+ endCallSession(params?: EndCallSessionParams): Promise<Result>;
921
+ /** Check whether a chatroom has a live call, and how many people are in it.
922
+ *
923
+ * Response fields: success, error_message, call_session.
924
+ * @see https://docs.mindupload.app
925
+ */
926
+ getActiveCallSession(params?: GetActiveCallSessionParams): Promise<Result>;
927
+ /** Join a live call that is already running in a chatroom.
928
+ *
929
+ * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host, call_session.
930
+ * @see https://docs.mindupload.app
931
+ */
932
+ joinCallSession(params?: JoinCallSessionParams): Promise<Result>;
933
+ /** Get a fresh joining pass for a call, before the current one expires.
934
+ *
935
+ * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host.
936
+ * @see https://docs.mindupload.app
937
+ */
938
+ refreshCallToken(params?: RefreshCallTokenParams): Promise<Result>;
862
939
  /** Cancel a multipart upload and discard its parts.
863
940
  *
864
941
  * Response fields: success, error_message.
@@ -987,6 +1064,6 @@ declare class MindUploadConnectionError extends MindUploadError {
987
1064
  constructor(message: string, options?: ErrorOptions);
988
1065
  }
989
1066
 
990
- declare const VERSION = "1.11.5";
1067
+ declare const VERSION = "1.12.0";
991
1068
 
992
- 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 };
1069
+ 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 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.11.5";
44
+ var VERSION = "1.12.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, 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_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.
205
205
  * @see https://docs.mindupload.app
206
206
  */
207
207
  getQuota(params = {}) {
@@ -428,6 +428,47 @@ var MindUpload = class extends MindUploadBase {
428
428
  getSoulmateReport(params = {}) {
429
429
  return this.request("get_soulmate_report", params);
430
430
  }
431
+ // --- Live calls ---
432
+ /** Start a live voice and video call in a chatroom, or join the one already running.
433
+ *
434
+ * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host, call_session.
435
+ * @see https://docs.mindupload.app
436
+ */
437
+ createCallSession(params = {}) {
438
+ return this.request("create_call_session", params);
439
+ }
440
+ /** End a live call for everyone in it.
441
+ *
442
+ * Response fields: success, error_message.
443
+ * @see https://docs.mindupload.app
444
+ */
445
+ endCallSession(params = {}) {
446
+ return this.request("end_call_session", params);
447
+ }
448
+ /** Check whether a chatroom has a live call, and how many people are in it.
449
+ *
450
+ * Response fields: success, error_message, call_session.
451
+ * @see https://docs.mindupload.app
452
+ */
453
+ getActiveCallSession(params = {}) {
454
+ return this.request("get_active_call_session", params);
455
+ }
456
+ /** Join a live call that is already running in a chatroom.
457
+ *
458
+ * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host, call_session.
459
+ * @see https://docs.mindupload.app
460
+ */
461
+ joinCallSession(params = {}) {
462
+ return this.request("join_call_session", params);
463
+ }
464
+ /** Get a fresh joining pass for a call, before the current one expires.
465
+ *
466
+ * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host.
467
+ * @see https://docs.mindupload.app
468
+ */
469
+ refreshCallToken(params = {}) {
470
+ return this.request("refresh_call_token", params);
471
+ }
431
472
  // --- Media ---
432
473
  /** Cancel a multipart upload and discard its parts.
433
474
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindupload",
3
- "version": "1.11.5",
3
+ "version": "1.12.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",