mindupload 1.9.2 → 1.9.4

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.9.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)
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.9.4-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 39 operations, grouped by area:
127
+ All 40 operations, grouped by area:
128
128
 
129
129
  ### AI Consciousnesses
130
130
 
@@ -212,6 +212,7 @@ All 39 operations, grouped by area:
212
212
 
213
213
  | Method | Description |
214
214
  | --- | --- |
215
+ | `getTransactionHistory(...)` | List the user's Rabbit balance history (top-ups, spending, earnings, withdrawals, tax), newest first, filterable by category and paged with a cursor. |
215
216
  | `getUser(...)` | Fetch the signed-in user's profile. |
216
217
  | `updateUser(...)` | Update the signed-in user's profile. |
217
218
 
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.9.2";
78
+ var VERSION = "1.9.4";
79
79
 
80
80
  // src/client.ts
81
81
  var DEFAULT_BASE_URL = "https://partner.mindupload.app";
@@ -375,7 +375,7 @@ var MindUpload = class extends MindUploadBase {
375
375
  }
376
376
  /** Poll owner consent and exchange an approval for a clone-scoped grant token.
377
377
  *
378
- * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, access_token_expires_at, expires_at, poll_interval.
378
+ * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, clone_nicknames, access_token_expires_at, expires_at, poll_interval.
379
379
  * @see https://docs.mindupload.app
380
380
  */
381
381
  exchangeExternalAuthorization(params) {
@@ -399,7 +399,7 @@ var MindUpload = class extends MindUploadBase {
399
399
  }
400
400
  /** Refresh a short-lived clone-invocation access token.
401
401
  *
402
- * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, access_token_expires_at, expires_at.
402
+ * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, clone_nicknames, access_token_expires_at, expires_at.
403
403
  * @see https://docs.mindupload.app
404
404
  */
405
405
  refreshExternalAuthorization(params) {
@@ -513,6 +513,14 @@ var MindUpload = class extends MindUploadBase {
513
513
  return this.request("get_texts", params);
514
514
  }
515
515
  // --- Users ---
516
+ /** List the user's Rabbit balance history (top-ups, spending, earnings, withdrawals, tax), newest first, filterable by category and paged with a cursor.
517
+ *
518
+ * Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, transactions, operation_duration_ms.
519
+ * @see https://docs.mindupload.app
520
+ */
521
+ getTransactionHistory(params = {}) {
522
+ return this.request("get_transaction_history", params);
523
+ }
516
524
  /** Fetch the signed-in user's profile.
517
525
  *
518
526
  * Response fields: success, error_message, jwt, decrypted_user.
package/dist/index.d.cts CHANGED
@@ -345,7 +345,7 @@ interface UploadExternalMindDataParams {
345
345
  cloneId: string;
346
346
  text: string;
347
347
  textType?: string;
348
- /** A stable opaque event key that makes exact retries return the same outcome. */
348
+ /** Optional. Accepted for forward compatibility but ignored for deduplication today — retries may create another quarantine item. Not a safe replay key. */
349
349
  idempotencyKey?: string;
350
350
  sourceLabel?: string;
351
351
  }
@@ -505,6 +505,22 @@ interface GetTextsParams {
505
505
  codename?: string;
506
506
  type?: string;
507
507
  }
508
+ interface GetTransactionHistoryParams {
509
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
510
+ preferredLanguage?: string;
511
+ page?: number;
512
+ pageSize?: number;
513
+ sortBy?: string;
514
+ sortOrder?: number;
515
+ useCursorPagination?: boolean;
516
+ cursorValue?: string;
517
+ cursorId?: string;
518
+ /** The end-user's username. */
519
+ username?: string;
520
+ /** 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. */
521
+ password?: string;
522
+ typeFilter?: string;
523
+ }
508
524
  interface GetUserParams {
509
525
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
510
526
  preferredLanguage?: string;
@@ -659,7 +675,7 @@ declare class MindUpload extends MindUploadBase {
659
675
  createExternalAuthorizationRequest(params: CreateExternalAuthorizationRequestParams): Promise<Result>;
660
676
  /** Poll owner consent and exchange an approval for a clone-scoped grant token.
661
677
  *
662
- * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, access_token_expires_at, expires_at, poll_interval.
678
+ * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, clone_nicknames, access_token_expires_at, expires_at, poll_interval.
663
679
  * @see https://docs.mindupload.app
664
680
  */
665
681
  exchangeExternalAuthorization(params: ExchangeExternalAuthorizationParams): Promise<Result>;
@@ -677,7 +693,7 @@ declare class MindUpload extends MindUploadBase {
677
693
  invokeExternalClone(params: InvokeExternalCloneParams): Promise<Result>;
678
694
  /** Refresh a short-lived clone-invocation access token.
679
695
  *
680
- * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, access_token_expires_at, expires_at.
696
+ * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, clone_nicknames, access_token_expires_at, expires_at.
681
697
  * @see https://docs.mindupload.app
682
698
  */
683
699
  refreshExternalAuthorization(params: RefreshExternalAuthorizationParams): Promise<Result>;
@@ -759,6 +775,12 @@ declare class MindUpload extends MindUploadBase {
759
775
  * @see https://docs.mindupload.app
760
776
  */
761
777
  getTexts(params?: GetTextsParams): Promise<Result>;
778
+ /** List the user's Rabbit balance history (top-ups, spending, earnings, withdrawals, tax), newest first, filterable by category and paged with a cursor.
779
+ *
780
+ * Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, transactions, operation_duration_ms.
781
+ * @see https://docs.mindupload.app
782
+ */
783
+ getTransactionHistory(params?: GetTransactionHistoryParams): Promise<Result>;
762
784
  /** Fetch the signed-in user's profile.
763
785
  *
764
786
  * Response fields: success, error_message, jwt, decrypted_user.
@@ -821,6 +843,6 @@ declare class MindUploadConnectionError extends MindUploadError {
821
843
  constructor(message: string, options?: ErrorOptions);
822
844
  }
823
845
 
824
- declare const VERSION = "1.9.2";
846
+ declare const VERSION = "1.9.4";
825
847
 
826
- 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 GetChatParams, type GetChatroomMembershipParams, type GetChatroomMessagesParams, type GetChatroomsParams, type GetClonesParams, type GetMindClusterParams, type GetQuotaParams, type GetSoulmateReportParams, type GetTextsParams, 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 SignUploadPartParams, type SignUploadPartsBatchParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, type UploadExternalMindDataParams, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
848
+ 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 GetChatParams, type GetChatroomMembershipParams, 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 SignUploadPartParams, type SignUploadPartsBatchParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, type UploadExternalMindDataParams, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
package/dist/index.d.ts CHANGED
@@ -345,7 +345,7 @@ interface UploadExternalMindDataParams {
345
345
  cloneId: string;
346
346
  text: string;
347
347
  textType?: string;
348
- /** A stable opaque event key that makes exact retries return the same outcome. */
348
+ /** Optional. Accepted for forward compatibility but ignored for deduplication today — retries may create another quarantine item. Not a safe replay key. */
349
349
  idempotencyKey?: string;
350
350
  sourceLabel?: string;
351
351
  }
@@ -505,6 +505,22 @@ interface GetTextsParams {
505
505
  codename?: string;
506
506
  type?: string;
507
507
  }
508
+ interface GetTransactionHistoryParams {
509
+ /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
510
+ preferredLanguage?: string;
511
+ page?: number;
512
+ pageSize?: number;
513
+ sortBy?: string;
514
+ sortOrder?: number;
515
+ useCursorPagination?: boolean;
516
+ cursorValue?: string;
517
+ cursorId?: string;
518
+ /** The end-user's username. */
519
+ username?: string;
520
+ /** 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. */
521
+ password?: string;
522
+ typeFilter?: string;
523
+ }
508
524
  interface GetUserParams {
509
525
  /** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
510
526
  preferredLanguage?: string;
@@ -659,7 +675,7 @@ declare class MindUpload extends MindUploadBase {
659
675
  createExternalAuthorizationRequest(params: CreateExternalAuthorizationRequestParams): Promise<Result>;
660
676
  /** Poll owner consent and exchange an approval for a clone-scoped grant token.
661
677
  *
662
- * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, access_token_expires_at, expires_at, poll_interval.
678
+ * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, clone_nicknames, access_token_expires_at, expires_at, poll_interval.
663
679
  * @see https://docs.mindupload.app
664
680
  */
665
681
  exchangeExternalAuthorization(params: ExchangeExternalAuthorizationParams): Promise<Result>;
@@ -677,7 +693,7 @@ declare class MindUpload extends MindUploadBase {
677
693
  invokeExternalClone(params: InvokeExternalCloneParams): Promise<Result>;
678
694
  /** Refresh a short-lived clone-invocation access token.
679
695
  *
680
- * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, access_token_expires_at, expires_at.
696
+ * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, clone_nicknames, access_token_expires_at, expires_at.
681
697
  * @see https://docs.mindupload.app
682
698
  */
683
699
  refreshExternalAuthorization(params: RefreshExternalAuthorizationParams): Promise<Result>;
@@ -759,6 +775,12 @@ declare class MindUpload extends MindUploadBase {
759
775
  * @see https://docs.mindupload.app
760
776
  */
761
777
  getTexts(params?: GetTextsParams): Promise<Result>;
778
+ /** List the user's Rabbit balance history (top-ups, spending, earnings, withdrawals, tax), newest first, filterable by category and paged with a cursor.
779
+ *
780
+ * Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, transactions, operation_duration_ms.
781
+ * @see https://docs.mindupload.app
782
+ */
783
+ getTransactionHistory(params?: GetTransactionHistoryParams): Promise<Result>;
762
784
  /** Fetch the signed-in user's profile.
763
785
  *
764
786
  * Response fields: success, error_message, jwt, decrypted_user.
@@ -821,6 +843,6 @@ declare class MindUploadConnectionError extends MindUploadError {
821
843
  constructor(message: string, options?: ErrorOptions);
822
844
  }
823
845
 
824
- declare const VERSION = "1.9.2";
846
+ declare const VERSION = "1.9.4";
825
847
 
826
- 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 GetChatParams, type GetChatroomMembershipParams, type GetChatroomMessagesParams, type GetChatroomsParams, type GetClonesParams, type GetMindClusterParams, type GetQuotaParams, type GetSoulmateReportParams, type GetTextsParams, 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 SignUploadPartParams, type SignUploadPartsBatchParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, type UploadExternalMindDataParams, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
848
+ 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 GetChatParams, type GetChatroomMembershipParams, 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 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.9.2";
44
+ var VERSION = "1.9.4";
45
45
 
46
46
  // src/client.ts
47
47
  var DEFAULT_BASE_URL = "https://partner.mindupload.app";
@@ -341,7 +341,7 @@ var MindUpload = class extends MindUploadBase {
341
341
  }
342
342
  /** Poll owner consent and exchange an approval for a clone-scoped grant token.
343
343
  *
344
- * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, access_token_expires_at, expires_at, poll_interval.
344
+ * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, clone_nicknames, access_token_expires_at, expires_at, poll_interval.
345
345
  * @see https://docs.mindupload.app
346
346
  */
347
347
  exchangeExternalAuthorization(params) {
@@ -365,7 +365,7 @@ var MindUpload = class extends MindUploadBase {
365
365
  }
366
366
  /** Refresh a short-lived clone-invocation access token.
367
367
  *
368
- * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, access_token_expires_at, expires_at.
368
+ * Response fields: success, error_message, status, access_token, refresh_token, token_type, grant_id, scopes, clone_ids, clone_nicknames, access_token_expires_at, expires_at.
369
369
  * @see https://docs.mindupload.app
370
370
  */
371
371
  refreshExternalAuthorization(params) {
@@ -479,6 +479,14 @@ var MindUpload = class extends MindUploadBase {
479
479
  return this.request("get_texts", params);
480
480
  }
481
481
  // --- Users ---
482
+ /** List the user's Rabbit balance history (top-ups, spending, earnings, withdrawals, tax), newest first, filterable by category and paged with a cursor.
483
+ *
484
+ * Response fields: success, error_message, total_count, page, page_size, total_pages, has_next, has_prev, next_cursor_value, next_cursor_id, transactions, operation_duration_ms.
485
+ * @see https://docs.mindupload.app
486
+ */
487
+ getTransactionHistory(params = {}) {
488
+ return this.request("get_transaction_history", params);
489
+ }
482
490
  /** Fetch the signed-in user's profile.
483
491
  *
484
492
  * Response fields: success, error_message, jwt, decrypted_user.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindupload",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
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",