mindupload 1.12.0 → 1.12.1

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.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)
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)
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 49 operations, grouped by area:
127
+ All 50 operations, grouped by area:
128
128
 
129
129
  ### AI Consciousnesses
130
130
 
@@ -201,6 +201,7 @@ All 49 operations, grouped by area:
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
203
  | `refreshCallToken(...)` | Get a fresh joining pass for a call, before the current one expires. |
204
+ | `setCallHost(...)` | Make somebody a co-host of a live call, or stand them down again. |
204
205
 
205
206
  ### Media
206
207
 
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.0";
78
+ var VERSION = "1.12.1";
79
79
 
80
80
  // src/client.ts
81
81
  var DEFAULT_BASE_URL = "https://partner.mindupload.app";
@@ -503,6 +503,14 @@ var MindUpload = class extends MindUploadBase {
503
503
  refreshCallToken(params = {}) {
504
504
  return this.request("refresh_call_token", params);
505
505
  }
506
+ /** Make somebody a co-host of a live call, or stand them down again.
507
+ *
508
+ * Response fields: success, error_message.
509
+ * @see https://docs.mindupload.app
510
+ */
511
+ setCallHost(params = {}) {
512
+ return this.request("set_call_host", params);
513
+ }
506
514
  // --- Media ---
507
515
  /** Cancel a multipart upload and discard its parts.
508
516
  *
package/dist/index.d.cts CHANGED
@@ -493,6 +493,10 @@ interface CreateCallSessionParams {
493
493
  password?: string;
494
494
  /** Chatroom id as returned by chatroom operations. */
495
495
  chatroomId?: string;
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
+ mode?: "conversation" | "broadcast";
498
+ /** 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
+ hostInheritance?: boolean;
496
500
  }
497
501
  interface EndCallSessionParams {
498
502
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
@@ -502,6 +506,7 @@ interface EndCallSessionParams {
502
506
  /** 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
507
  password?: string;
504
508
  callSessionId?: string;
509
+ onlyIfEmpty?: boolean;
505
510
  }
506
511
  interface GetActiveCallSessionParams {
507
512
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
@@ -531,6 +536,19 @@ interface RefreshCallTokenParams {
531
536
  password?: string;
532
537
  callSessionId?: string;
533
538
  }
539
+ interface SetCallHostParams {
540
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
541
+ preferredLanguage?: string;
542
+ /** The end-user's username. */
543
+ username?: string;
544
+ /** 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. */
545
+ password?: string;
546
+ callSessionId?: string;
547
+ /** User id of the person whose standing in the call is changing. */
548
+ targetUserId?: string;
549
+ /** True to give that person the call controls for the length of this call; false to take them back. */
550
+ runsTheCall?: boolean;
551
+ }
534
552
  interface AbortMultipartUploadParams {
535
553
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
536
554
  preferredLanguage?: string;
@@ -936,6 +954,12 @@ declare class MindUpload extends MindUploadBase {
936
954
  * @see https://docs.mindupload.app
937
955
  */
938
956
  refreshCallToken(params?: RefreshCallTokenParams): Promise<Result>;
957
+ /** Make somebody a co-host of a live call, or stand them down again.
958
+ *
959
+ * Response fields: success, error_message.
960
+ * @see https://docs.mindupload.app
961
+ */
962
+ setCallHost(params?: SetCallHostParams): Promise<Result>;
939
963
  /** Cancel a multipart upload and discard its parts.
940
964
  *
941
965
  * Response fields: success, error_message.
@@ -1064,6 +1088,6 @@ declare class MindUploadConnectionError extends MindUploadError {
1064
1088
  constructor(message: string, options?: ErrorOptions);
1065
1089
  }
1066
1090
 
1067
- declare const VERSION = "1.12.0";
1091
+ declare const VERSION = "1.12.1";
1068
1092
 
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 };
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 };
package/dist/index.d.ts CHANGED
@@ -493,6 +493,10 @@ interface CreateCallSessionParams {
493
493
  password?: string;
494
494
  /** Chatroom id as returned by chatroom operations. */
495
495
  chatroomId?: string;
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
+ mode?: "conversation" | "broadcast";
498
+ /** 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
+ hostInheritance?: boolean;
496
500
  }
497
501
  interface EndCallSessionParams {
498
502
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
@@ -502,6 +506,7 @@ interface EndCallSessionParams {
502
506
  /** 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
507
  password?: string;
504
508
  callSessionId?: string;
509
+ onlyIfEmpty?: boolean;
505
510
  }
506
511
  interface GetActiveCallSessionParams {
507
512
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
@@ -531,6 +536,19 @@ interface RefreshCallTokenParams {
531
536
  password?: string;
532
537
  callSessionId?: string;
533
538
  }
539
+ interface SetCallHostParams {
540
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
541
+ preferredLanguage?: string;
542
+ /** The end-user's username. */
543
+ username?: string;
544
+ /** 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. */
545
+ password?: string;
546
+ callSessionId?: string;
547
+ /** User id of the person whose standing in the call is changing. */
548
+ targetUserId?: string;
549
+ /** True to give that person the call controls for the length of this call; false to take them back. */
550
+ runsTheCall?: boolean;
551
+ }
534
552
  interface AbortMultipartUploadParams {
535
553
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
536
554
  preferredLanguage?: string;
@@ -936,6 +954,12 @@ declare class MindUpload extends MindUploadBase {
936
954
  * @see https://docs.mindupload.app
937
955
  */
938
956
  refreshCallToken(params?: RefreshCallTokenParams): Promise<Result>;
957
+ /** Make somebody a co-host of a live call, or stand them down again.
958
+ *
959
+ * Response fields: success, error_message.
960
+ * @see https://docs.mindupload.app
961
+ */
962
+ setCallHost(params?: SetCallHostParams): Promise<Result>;
939
963
  /** Cancel a multipart upload and discard its parts.
940
964
  *
941
965
  * Response fields: success, error_message.
@@ -1064,6 +1088,6 @@ declare class MindUploadConnectionError extends MindUploadError {
1064
1088
  constructor(message: string, options?: ErrorOptions);
1065
1089
  }
1066
1090
 
1067
- declare const VERSION = "1.12.0";
1091
+ declare const VERSION = "1.12.1";
1068
1092
 
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 };
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 };
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.0";
44
+ var VERSION = "1.12.1";
45
45
 
46
46
  // src/client.ts
47
47
  var DEFAULT_BASE_URL = "https://partner.mindupload.app";
@@ -469,6 +469,14 @@ var MindUpload = class extends MindUploadBase {
469
469
  refreshCallToken(params = {}) {
470
470
  return this.request("refresh_call_token", params);
471
471
  }
472
+ /** Make somebody a co-host of a live call, or stand them down again.
473
+ *
474
+ * Response fields: success, error_message.
475
+ * @see https://docs.mindupload.app
476
+ */
477
+ setCallHost(params = {}) {
478
+ return this.request("set_call_host", params);
479
+ }
472
480
  // --- Media ---
473
481
  /** Cancel a multipart upload and discard its parts.
474
482
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindupload",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
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",