mindupload 1.9.2 → 1.9.3

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.3-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.3";
79
79
 
80
80
  // src/client.ts
81
81
  var DEFAULT_BASE_URL = "https://partner.mindupload.app";
@@ -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
@@ -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;
@@ -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.3";
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
@@ -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;
@@ -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.3";
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.3";
45
45
 
46
46
  // src/client.ts
47
47
  var DEFAULT_BASE_URL = "https://partner.mindupload.app";
@@ -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.3",
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",