mindupload 1.12.0 → 1.12.2

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.2-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 51 operations, grouped by area:
128
128
 
129
129
  ### AI Consciousnesses
130
130
 
@@ -200,7 +200,9 @@ All 49 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. |
205
+ | `setCallHost(...)` | Make somebody a co-host of a live call, or stand them down again. |
204
206
 
205
207
  ### Media
206
208
 
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.2";
79
79
 
80
80
  // src/client.ts
81
81
  var DEFAULT_BASE_URL = "https://partner.mindupload.app";
@@ -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.
@@ -503,6 +511,14 @@ var MindUpload = class extends MindUploadBase {
503
511
  refreshCallToken(params = {}) {
504
512
  return this.request("refresh_call_token", params);
505
513
  }
514
+ /** Make somebody a co-host of a live call, or stand them down again.
515
+ *
516
+ * Response fields: success, error_message.
517
+ * @see https://docs.mindupload.app
518
+ */
519
+ setCallHost(params = {}) {
520
+ return this.request("set_call_host", params);
521
+ }
506
522
  // --- Media ---
507
523
  /** Cancel a multipart upload and discard its parts.
508
524
  *
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. */
@@ -522,6 +527,15 @@ interface JoinCallSessionParams {
522
527
  password?: string;
523
528
  callSessionId?: string;
524
529
  }
530
+ interface LeaveCallSessionParams {
531
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
532
+ preferredLanguage?: string;
533
+ /** The end-user's username. */
534
+ username?: string;
535
+ /** 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. */
536
+ password?: string;
537
+ callSessionId?: string;
538
+ }
525
539
  interface RefreshCallTokenParams {
526
540
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
527
541
  preferredLanguage?: string;
@@ -531,6 +545,19 @@ interface RefreshCallTokenParams {
531
545
  password?: string;
532
546
  callSessionId?: string;
533
547
  }
548
+ interface SetCallHostParams {
549
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
550
+ preferredLanguage?: string;
551
+ /** The end-user's username. */
552
+ username?: string;
553
+ /** 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. */
554
+ password?: string;
555
+ callSessionId?: string;
556
+ /** User id of the person whose standing in the call is changing. */
557
+ targetUserId?: string;
558
+ /** True to give that person the call controls for the length of this call; false to take them back. */
559
+ runsTheCall?: boolean;
560
+ }
534
561
  interface AbortMultipartUploadParams {
535
562
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
536
563
  preferredLanguage?: string;
@@ -930,12 +957,24 @@ declare class MindUpload extends MindUploadBase {
930
957
  * @see https://docs.mindupload.app
931
958
  */
932
959
  joinCallSession(params?: JoinCallSessionParams): Promise<Result>;
960
+ /** Say that this person has left a call the others are still in.
961
+ *
962
+ * Response fields: success, error_message.
963
+ * @see https://docs.mindupload.app
964
+ */
965
+ leaveCallSession(params?: LeaveCallSessionParams): Promise<Result>;
933
966
  /** Get a fresh joining pass for a call, before the current one expires.
934
967
  *
935
968
  * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host.
936
969
  * @see https://docs.mindupload.app
937
970
  */
938
971
  refreshCallToken(params?: RefreshCallTokenParams): Promise<Result>;
972
+ /** Make somebody a co-host of a live call, or stand them down again.
973
+ *
974
+ * Response fields: success, error_message.
975
+ * @see https://docs.mindupload.app
976
+ */
977
+ setCallHost(params?: SetCallHostParams): Promise<Result>;
939
978
  /** Cancel a multipart upload and discard its parts.
940
979
  *
941
980
  * Response fields: success, error_message.
@@ -1064,6 +1103,6 @@ declare class MindUploadConnectionError extends MindUploadError {
1064
1103
  constructor(message: string, options?: ErrorOptions);
1065
1104
  }
1066
1105
 
1067
- declare const VERSION = "1.12.0";
1106
+ declare const VERSION = "1.12.2";
1068
1107
 
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 };
1108
+ 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 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. */
@@ -522,6 +527,15 @@ interface JoinCallSessionParams {
522
527
  password?: string;
523
528
  callSessionId?: string;
524
529
  }
530
+ interface LeaveCallSessionParams {
531
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
532
+ preferredLanguage?: string;
533
+ /** The end-user's username. */
534
+ username?: string;
535
+ /** 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. */
536
+ password?: string;
537
+ callSessionId?: string;
538
+ }
525
539
  interface RefreshCallTokenParams {
526
540
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
527
541
  preferredLanguage?: string;
@@ -531,6 +545,19 @@ interface RefreshCallTokenParams {
531
545
  password?: string;
532
546
  callSessionId?: string;
533
547
  }
548
+ interface SetCallHostParams {
549
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
550
+ preferredLanguage?: string;
551
+ /** The end-user's username. */
552
+ username?: string;
553
+ /** 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. */
554
+ password?: string;
555
+ callSessionId?: string;
556
+ /** User id of the person whose standing in the call is changing. */
557
+ targetUserId?: string;
558
+ /** True to give that person the call controls for the length of this call; false to take them back. */
559
+ runsTheCall?: boolean;
560
+ }
534
561
  interface AbortMultipartUploadParams {
535
562
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
536
563
  preferredLanguage?: string;
@@ -930,12 +957,24 @@ declare class MindUpload extends MindUploadBase {
930
957
  * @see https://docs.mindupload.app
931
958
  */
932
959
  joinCallSession(params?: JoinCallSessionParams): Promise<Result>;
960
+ /** Say that this person has left a call the others are still in.
961
+ *
962
+ * Response fields: success, error_message.
963
+ * @see https://docs.mindupload.app
964
+ */
965
+ leaveCallSession(params?: LeaveCallSessionParams): Promise<Result>;
933
966
  /** Get a fresh joining pass for a call, before the current one expires.
934
967
  *
935
968
  * Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host.
936
969
  * @see https://docs.mindupload.app
937
970
  */
938
971
  refreshCallToken(params?: RefreshCallTokenParams): Promise<Result>;
972
+ /** Make somebody a co-host of a live call, or stand them down again.
973
+ *
974
+ * Response fields: success, error_message.
975
+ * @see https://docs.mindupload.app
976
+ */
977
+ setCallHost(params?: SetCallHostParams): Promise<Result>;
939
978
  /** Cancel a multipart upload and discard its parts.
940
979
  *
941
980
  * Response fields: success, error_message.
@@ -1064,6 +1103,6 @@ declare class MindUploadConnectionError extends MindUploadError {
1064
1103
  constructor(message: string, options?: ErrorOptions);
1065
1104
  }
1066
1105
 
1067
- declare const VERSION = "1.12.0";
1106
+ declare const VERSION = "1.12.2";
1068
1107
 
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 };
1108
+ 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 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.2";
45
45
 
46
46
  // src/client.ts
47
47
  var DEFAULT_BASE_URL = "https://partner.mindupload.app";
@@ -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.
@@ -469,6 +477,14 @@ var MindUpload = class extends MindUploadBase {
469
477
  refreshCallToken(params = {}) {
470
478
  return this.request("refresh_call_token", params);
471
479
  }
480
+ /** Make somebody a co-host of a live call, or stand them down again.
481
+ *
482
+ * Response fields: success, error_message.
483
+ * @see https://docs.mindupload.app
484
+ */
485
+ setCallHost(params = {}) {
486
+ return this.request("set_call_host", params);
487
+ }
472
488
  // --- Media ---
473
489
  /** Cancel a multipart upload and discard its parts.
474
490
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindupload",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
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",