mindupload 1.14.0 → 1.15.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.14.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.15.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
 
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.14.0";
78
+ var VERSION = "1.15.1";
79
79
 
80
80
  // src/client.ts
81
81
  var DEFAULT_BASE_URL = "https://partner.mindupload.app";
package/dist/index.d.cts CHANGED
@@ -98,6 +98,8 @@ interface LoginParams {
98
98
  username?: string;
99
99
  /** 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. */
100
100
  password?: string;
101
+ /** Optional. A stable identifier for the device or app install signing in. Send the same value every time from one install: a new sign-in then replaces only the earlier session of that install and leaves the other devices of the user signed in. */
102
+ visitorId?: string;
101
103
  }
102
104
  interface LogoutParams {
103
105
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
@@ -124,6 +126,8 @@ interface RegisterParams {
124
126
  phoneNumber?: string;
125
127
  avatarId?: string;
126
128
  acceptChatroomInvitationByOthers?: boolean;
129
+ /** Optional. The same device or app install identifier as for login; the first session of the new account is kept under it. */
130
+ visitorId?: string;
127
131
  }
128
132
  interface CheckChatroomUpdatesParams {
129
133
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
@@ -626,6 +630,7 @@ interface RequestMultipartUploadParams {
626
630
  /** The kind of media: `image`, `video`, or `audio`. */
627
631
  mediaType?: string;
628
632
  hasThumbnail?: boolean;
633
+ thumbnailFileSizeBytes?: number;
629
634
  }
630
635
  interface RequestUploadUrlParams {
631
636
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
@@ -640,6 +645,7 @@ interface RequestUploadUrlParams {
640
645
  /** The kind of media: `image`, `video`, or `audio`. */
641
646
  mediaType?: string;
642
647
  hasThumbnail?: boolean;
648
+ thumbnailFileSizeBytes?: number;
643
649
  }
644
650
  interface SignUploadPartParams {
645
651
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
@@ -755,7 +761,9 @@ interface UpdateUserParams {
755
761
  username?: string;
756
762
  /** 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. */
757
763
  password?: string;
764
+ /** A new email address for the account. Over the Partner API it is saved unverified, and the Partner API never uses it to reset the password. */
758
765
  email?: string;
766
+ /** Only a code the MindUpload app emailed to the new address for this account is accepted. The Partner API cannot send one, so leave this out; a wrong code fails the whole update. */
759
767
  emailVerificationCode?: string;
760
768
  firstName?: string;
761
769
  lastName?: string;
@@ -1218,6 +1226,6 @@ declare class MindUploadConnectionError extends MindUploadError {
1218
1226
  constructor(message: string, options?: ErrorOptions);
1219
1227
  }
1220
1228
 
1221
- declare const VERSION = "1.14.0";
1229
+ declare const VERSION = "1.15.1";
1222
1230
 
1223
1231
  export { type AbortMultipartUploadParams, type AdvanceVoiceInterviewParams, 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 GenerateVoiceInterviewReportParams, type GetActiveCallSessionParams, type GetChatAroundParams, type GetChatParams, type GetChatroomMembershipParams, type GetChatroomMessagesAroundParams, type GetChatroomMessagesParams, type GetChatroomsParams, type GetClonesParams, type GetMindClusterParams, type GetQuotaParams, type GetSoulmateReportParams, type GetTextsParams, type GetTransactionHistoryParams, type GetUserParams, type InspectExternalAuthorizationParams, type InvokeExternalCloneParams, type JoinCallSessionParams, type LeaveCallSessionParams, type ListUploadPartsParams, type LoginParams, type LogoutParams, MindUpload, MindUploadBase, MindUploadConnectionError, MindUploadError, type RagParams, RateLimitError, type RateLimitOptions, type RefreshCallTokenParams, type RefreshExternalAuthorizationParams, type RegisterParams, type RequestMultipartUploadParams, type RequestUploadUrlParams, type Result, type SearchChatroomMessagesParams, type SearchChatsParams, type SetCallHostParams, type SignUploadPartParams, type SignUploadPartsBatchParams, type StartMediaAnalysisParams, type StartVoiceInterviewParams, type TranscribeVoiceInterviewAnswerParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, type UploadExternalMindDataParams, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
package/dist/index.d.ts CHANGED
@@ -98,6 +98,8 @@ interface LoginParams {
98
98
  username?: string;
99
99
  /** 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. */
100
100
  password?: string;
101
+ /** Optional. A stable identifier for the device or app install signing in. Send the same value every time from one install: a new sign-in then replaces only the earlier session of that install and leaves the other devices of the user signed in. */
102
+ visitorId?: string;
101
103
  }
102
104
  interface LogoutParams {
103
105
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
@@ -124,6 +126,8 @@ interface RegisterParams {
124
126
  phoneNumber?: string;
125
127
  avatarId?: string;
126
128
  acceptChatroomInvitationByOthers?: boolean;
129
+ /** Optional. The same device or app install identifier as for login; the first session of the new account is kept under it. */
130
+ visitorId?: string;
127
131
  }
128
132
  interface CheckChatroomUpdatesParams {
129
133
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
@@ -626,6 +630,7 @@ interface RequestMultipartUploadParams {
626
630
  /** The kind of media: `image`, `video`, or `audio`. */
627
631
  mediaType?: string;
628
632
  hasThumbnail?: boolean;
633
+ thumbnailFileSizeBytes?: number;
629
634
  }
630
635
  interface RequestUploadUrlParams {
631
636
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
@@ -640,6 +645,7 @@ interface RequestUploadUrlParams {
640
645
  /** The kind of media: `image`, `video`, or `audio`. */
641
646
  mediaType?: string;
642
647
  hasThumbnail?: boolean;
648
+ thumbnailFileSizeBytes?: number;
643
649
  }
644
650
  interface SignUploadPartParams {
645
651
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
@@ -755,7 +761,9 @@ interface UpdateUserParams {
755
761
  username?: string;
756
762
  /** 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. */
757
763
  password?: string;
764
+ /** A new email address for the account. Over the Partner API it is saved unverified, and the Partner API never uses it to reset the password. */
758
765
  email?: string;
766
+ /** Only a code the MindUpload app emailed to the new address for this account is accepted. The Partner API cannot send one, so leave this out; a wrong code fails the whole update. */
759
767
  emailVerificationCode?: string;
760
768
  firstName?: string;
761
769
  lastName?: string;
@@ -1218,6 +1226,6 @@ declare class MindUploadConnectionError extends MindUploadError {
1218
1226
  constructor(message: string, options?: ErrorOptions);
1219
1227
  }
1220
1228
 
1221
- declare const VERSION = "1.14.0";
1229
+ declare const VERSION = "1.15.1";
1222
1230
 
1223
1231
  export { type AbortMultipartUploadParams, type AdvanceVoiceInterviewParams, 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 GenerateVoiceInterviewReportParams, type GetActiveCallSessionParams, type GetChatAroundParams, type GetChatParams, type GetChatroomMembershipParams, type GetChatroomMessagesAroundParams, type GetChatroomMessagesParams, type GetChatroomsParams, type GetClonesParams, type GetMindClusterParams, type GetQuotaParams, type GetSoulmateReportParams, type GetTextsParams, type GetTransactionHistoryParams, type GetUserParams, type InspectExternalAuthorizationParams, type InvokeExternalCloneParams, type JoinCallSessionParams, type LeaveCallSessionParams, type ListUploadPartsParams, type LoginParams, type LogoutParams, MindUpload, MindUploadBase, MindUploadConnectionError, MindUploadError, type RagParams, RateLimitError, type RateLimitOptions, type RefreshCallTokenParams, type RefreshExternalAuthorizationParams, type RegisterParams, type RequestMultipartUploadParams, type RequestUploadUrlParams, type Result, type SearchChatroomMessagesParams, type SearchChatsParams, type SetCallHostParams, type SignUploadPartParams, type SignUploadPartsBatchParams, type StartMediaAnalysisParams, type StartVoiceInterviewParams, type TranscribeVoiceInterviewAnswerParams, 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.14.0";
44
+ var VERSION = "1.15.1";
45
45
 
46
46
  // src/client.ts
47
47
  var DEFAULT_BASE_URL = "https://partner.mindupload.app";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindupload",
3
- "version": "1.14.0",
3
+ "version": "1.15.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",