mindupload 1.11.6 → 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 +13 -2
- package/dist/index.cjs +51 -2
- package/dist/index.d.cts +104 -3
- package/dist/index.d.ts +104 -3
- package/dist/index.js +51 -2
- package/package.json +1 -1
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
|
-
[](https://www.npmjs.com/package/mindupload) [](LICENSE) ](https://www.npmjs.com/package/mindupload) [](LICENSE)   [](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
|
|
127
|
+
All 50 operations, grouped by area:
|
|
128
128
|
|
|
129
129
|
### AI Consciousnesses
|
|
130
130
|
|
|
@@ -192,6 +192,17 @@ 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
|
+
| `setCallHost(...)` | Make somebody a co-host of a live call, or stand them down again. |
|
|
205
|
+
|
|
195
206
|
### Media
|
|
196
207
|
|
|
197
208
|
| 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.
|
|
78
|
+
var VERSION = "1.12.1";
|
|
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,55 @@ 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
|
+
}
|
|
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
|
+
}
|
|
465
514
|
// --- Media ---
|
|
466
515
|
/** Cancel a multipart upload and discard its parts.
|
|
467
516
|
*
|
package/dist/index.d.cts
CHANGED
|
@@ -484,6 +484,71 @@ 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
|
+
/** 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;
|
|
500
|
+
}
|
|
501
|
+
interface EndCallSessionParams {
|
|
502
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
503
|
+
preferredLanguage?: string;
|
|
504
|
+
/** The end-user's username. */
|
|
505
|
+
username?: string;
|
|
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. */
|
|
507
|
+
password?: string;
|
|
508
|
+
callSessionId?: string;
|
|
509
|
+
onlyIfEmpty?: boolean;
|
|
510
|
+
}
|
|
511
|
+
interface GetActiveCallSessionParams {
|
|
512
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
513
|
+
preferredLanguage?: string;
|
|
514
|
+
/** The end-user's username. */
|
|
515
|
+
username?: string;
|
|
516
|
+
/** 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. */
|
|
517
|
+
password?: string;
|
|
518
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
519
|
+
chatroomId?: string;
|
|
520
|
+
}
|
|
521
|
+
interface JoinCallSessionParams {
|
|
522
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
523
|
+
preferredLanguage?: string;
|
|
524
|
+
/** The end-user's username. */
|
|
525
|
+
username?: string;
|
|
526
|
+
/** 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. */
|
|
527
|
+
password?: string;
|
|
528
|
+
callSessionId?: string;
|
|
529
|
+
}
|
|
530
|
+
interface RefreshCallTokenParams {
|
|
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
|
+
}
|
|
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
|
+
}
|
|
487
552
|
interface AbortMultipartUploadParams {
|
|
488
553
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
489
554
|
preferredLanguage?: string;
|
|
@@ -693,7 +758,7 @@ declare class MindUpload extends MindUploadBase {
|
|
|
693
758
|
updateClone(params?: UpdateCloneParams): Promise<Result>;
|
|
694
759
|
/** Check your partner API rate limits, credit caps, and current usage.
|
|
695
760
|
*
|
|
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.
|
|
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.
|
|
697
762
|
* @see https://docs.mindupload.app
|
|
698
763
|
*/
|
|
699
764
|
getQuota(params?: GetQuotaParams): Promise<Result>;
|
|
@@ -859,6 +924,42 @@ declare class MindUpload extends MindUploadBase {
|
|
|
859
924
|
* @see https://docs.mindupload.app
|
|
860
925
|
*/
|
|
861
926
|
getSoulmateReport(params?: GetSoulmateReportParams): Promise<Result>;
|
|
927
|
+
/** Start a live voice and video call in a chatroom, or join the one already running.
|
|
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
|
+
createCallSession(params?: CreateCallSessionParams): Promise<Result>;
|
|
933
|
+
/** End a live call for everyone in it.
|
|
934
|
+
*
|
|
935
|
+
* Response fields: success, error_message.
|
|
936
|
+
* @see https://docs.mindupload.app
|
|
937
|
+
*/
|
|
938
|
+
endCallSession(params?: EndCallSessionParams): Promise<Result>;
|
|
939
|
+
/** Check whether a chatroom has a live call, and how many people are in it.
|
|
940
|
+
*
|
|
941
|
+
* Response fields: success, error_message, call_session.
|
|
942
|
+
* @see https://docs.mindupload.app
|
|
943
|
+
*/
|
|
944
|
+
getActiveCallSession(params?: GetActiveCallSessionParams): Promise<Result>;
|
|
945
|
+
/** Join a live call that is already running in a chatroom.
|
|
946
|
+
*
|
|
947
|
+
* Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host, call_session.
|
|
948
|
+
* @see https://docs.mindupload.app
|
|
949
|
+
*/
|
|
950
|
+
joinCallSession(params?: JoinCallSessionParams): Promise<Result>;
|
|
951
|
+
/** Get a fresh joining pass for a call, before the current one expires.
|
|
952
|
+
*
|
|
953
|
+
* Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host.
|
|
954
|
+
* @see https://docs.mindupload.app
|
|
955
|
+
*/
|
|
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>;
|
|
862
963
|
/** Cancel a multipart upload and discard its parts.
|
|
863
964
|
*
|
|
864
965
|
* Response fields: success, error_message.
|
|
@@ -987,6 +1088,6 @@ declare class MindUploadConnectionError extends MindUploadError {
|
|
|
987
1088
|
constructor(message: string, options?: ErrorOptions);
|
|
988
1089
|
}
|
|
989
1090
|
|
|
990
|
-
declare const VERSION = "1.
|
|
1091
|
+
declare const VERSION = "1.12.1";
|
|
991
1092
|
|
|
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 };
|
|
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
|
@@ -484,6 +484,71 @@ 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
|
+
/** 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;
|
|
500
|
+
}
|
|
501
|
+
interface EndCallSessionParams {
|
|
502
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
503
|
+
preferredLanguage?: string;
|
|
504
|
+
/** The end-user's username. */
|
|
505
|
+
username?: string;
|
|
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. */
|
|
507
|
+
password?: string;
|
|
508
|
+
callSessionId?: string;
|
|
509
|
+
onlyIfEmpty?: boolean;
|
|
510
|
+
}
|
|
511
|
+
interface GetActiveCallSessionParams {
|
|
512
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
513
|
+
preferredLanguage?: string;
|
|
514
|
+
/** The end-user's username. */
|
|
515
|
+
username?: string;
|
|
516
|
+
/** 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. */
|
|
517
|
+
password?: string;
|
|
518
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
519
|
+
chatroomId?: string;
|
|
520
|
+
}
|
|
521
|
+
interface JoinCallSessionParams {
|
|
522
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
523
|
+
preferredLanguage?: string;
|
|
524
|
+
/** The end-user's username. */
|
|
525
|
+
username?: string;
|
|
526
|
+
/** 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. */
|
|
527
|
+
password?: string;
|
|
528
|
+
callSessionId?: string;
|
|
529
|
+
}
|
|
530
|
+
interface RefreshCallTokenParams {
|
|
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
|
+
}
|
|
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
|
+
}
|
|
487
552
|
interface AbortMultipartUploadParams {
|
|
488
553
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
489
554
|
preferredLanguage?: string;
|
|
@@ -693,7 +758,7 @@ declare class MindUpload extends MindUploadBase {
|
|
|
693
758
|
updateClone(params?: UpdateCloneParams): Promise<Result>;
|
|
694
759
|
/** Check your partner API rate limits, credit caps, and current usage.
|
|
695
760
|
*
|
|
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.
|
|
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.
|
|
697
762
|
* @see https://docs.mindupload.app
|
|
698
763
|
*/
|
|
699
764
|
getQuota(params?: GetQuotaParams): Promise<Result>;
|
|
@@ -859,6 +924,42 @@ declare class MindUpload extends MindUploadBase {
|
|
|
859
924
|
* @see https://docs.mindupload.app
|
|
860
925
|
*/
|
|
861
926
|
getSoulmateReport(params?: GetSoulmateReportParams): Promise<Result>;
|
|
927
|
+
/** Start a live voice and video call in a chatroom, or join the one already running.
|
|
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
|
+
createCallSession(params?: CreateCallSessionParams): Promise<Result>;
|
|
933
|
+
/** End a live call for everyone in it.
|
|
934
|
+
*
|
|
935
|
+
* Response fields: success, error_message.
|
|
936
|
+
* @see https://docs.mindupload.app
|
|
937
|
+
*/
|
|
938
|
+
endCallSession(params?: EndCallSessionParams): Promise<Result>;
|
|
939
|
+
/** Check whether a chatroom has a live call, and how many people are in it.
|
|
940
|
+
*
|
|
941
|
+
* Response fields: success, error_message, call_session.
|
|
942
|
+
* @see https://docs.mindupload.app
|
|
943
|
+
*/
|
|
944
|
+
getActiveCallSession(params?: GetActiveCallSessionParams): Promise<Result>;
|
|
945
|
+
/** Join a live call that is already running in a chatroom.
|
|
946
|
+
*
|
|
947
|
+
* Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host, call_session.
|
|
948
|
+
* @see https://docs.mindupload.app
|
|
949
|
+
*/
|
|
950
|
+
joinCallSession(params?: JoinCallSessionParams): Promise<Result>;
|
|
951
|
+
/** Get a fresh joining pass for a call, before the current one expires.
|
|
952
|
+
*
|
|
953
|
+
* Response fields: success, error_message, call_session_id, auth_token, participant_id, expires_at, is_host.
|
|
954
|
+
* @see https://docs.mindupload.app
|
|
955
|
+
*/
|
|
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>;
|
|
862
963
|
/** Cancel a multipart upload and discard its parts.
|
|
863
964
|
*
|
|
864
965
|
* Response fields: success, error_message.
|
|
@@ -987,6 +1088,6 @@ declare class MindUploadConnectionError extends MindUploadError {
|
|
|
987
1088
|
constructor(message: string, options?: ErrorOptions);
|
|
988
1089
|
}
|
|
989
1090
|
|
|
990
|
-
declare const VERSION = "1.
|
|
1091
|
+
declare const VERSION = "1.12.1";
|
|
991
1092
|
|
|
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 };
|
|
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.
|
|
44
|
+
var VERSION = "1.12.1";
|
|
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,55 @@ 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
|
+
}
|
|
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
|
+
}
|
|
431
480
|
// --- Media ---
|
|
432
481
|
/** Cancel a multipart upload and discard its parts.
|
|
433
482
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mindupload",
|
|
3
|
-
"version": "1.
|
|
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",
|