mindupload 1.7.0 → 1.9.0
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 +3 -2
- package/dist/index.cjs +9 -1
- package/dist/index.d.cts +27 -3
- package/dist/index.d.ts +27 -3
- package/dist/index.js +9 -1
- 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 39 operations, grouped by area:
|
|
128
128
|
|
|
129
129
|
### AI Consciousnesses
|
|
130
130
|
|
|
@@ -179,6 +179,7 @@ All 38 operations, grouped by area:
|
|
|
179
179
|
| `inspectExternalAuthorization(...)` | Inspect the scopes, clone resources, expiry, and revocation state of a grant token. |
|
|
180
180
|
| `invokeExternalClone(...)` | Send one idempotent text event to an owner-approved AI consciousness. |
|
|
181
181
|
| `refreshExternalAuthorization(...)` | Refresh a short-lived clone-invocation access token. |
|
|
182
|
+
| `uploadExternalMindData(...)` | Upload mind data (text and media) into the owner's own AI consciousness. |
|
|
182
183
|
|
|
183
184
|
### Insights
|
|
184
185
|
|
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.9.0";
|
|
79
79
|
|
|
80
80
|
// src/client.ts
|
|
81
81
|
var DEFAULT_BASE_URL = "https://partner.mindupload.app";
|
|
@@ -405,6 +405,14 @@ var MindUpload = class extends MindUploadBase {
|
|
|
405
405
|
refreshExternalAuthorization(params) {
|
|
406
406
|
return this.request("refresh_external_authorization", params);
|
|
407
407
|
}
|
|
408
|
+
/** Upload mind data (text and media) into the owner's own AI consciousness.
|
|
409
|
+
*
|
|
410
|
+
* Response fields: success, error_message, clone_id, text_type, pending_owner_review.
|
|
411
|
+
* @see https://docs.mindupload.app
|
|
412
|
+
*/
|
|
413
|
+
uploadExternalMindData(params) {
|
|
414
|
+
return this.request("upload_external_mind_data", params);
|
|
415
|
+
}
|
|
408
416
|
// --- Insights ---
|
|
409
417
|
/** Fetch the mind-graph visualization data of an AI consciousness.
|
|
410
418
|
*
|
package/dist/index.d.cts
CHANGED
|
@@ -73,6 +73,7 @@ interface UpdateCloneParams {
|
|
|
73
73
|
gender?: string;
|
|
74
74
|
avatarId?: string;
|
|
75
75
|
acceptChatroomInvitationByOthers?: boolean;
|
|
76
|
+
autoKeepExternalMemories?: boolean;
|
|
76
77
|
}
|
|
77
78
|
interface GetQuotaParams {
|
|
78
79
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
@@ -284,7 +285,7 @@ interface CreateExternalAuthorizationRequestParams {
|
|
|
284
285
|
/** Optional user-readable external identity shown during consent. */
|
|
285
286
|
externalIdentityLabel?: string;
|
|
286
287
|
/** Capabilities the owner is being asked to delegate. */
|
|
287
|
-
requestedScopes: Array<"clone:invoke" | "clone:learn">;
|
|
288
|
+
requestedScopes: Array<"clone:invoke" | "clone:learn" | "clone:invoke_shared" | "clone:upload">;
|
|
288
289
|
}
|
|
289
290
|
interface ExchangeExternalAuthorizationParams {
|
|
290
291
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
@@ -320,6 +321,7 @@ interface InvokeExternalCloneParams {
|
|
|
320
321
|
/** Recent surrounding conversation for group mode (issue #172): an ordered, bounded list of prior turns the AI consciousness reads as quoted context. Each entry has a `display_name` and `text`, plus optional `is_ai`, `timestamp` (seconds), and `gender`. It carries no platform identifiers and is never treated as instructions. */
|
|
321
322
|
contextMessages?: Array<Record<string, unknown>>;
|
|
322
323
|
learn?: boolean;
|
|
324
|
+
sourceLabel?: string;
|
|
323
325
|
}
|
|
324
326
|
interface RefreshExternalAuthorizationParams {
|
|
325
327
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
@@ -331,6 +333,22 @@ interface RefreshExternalAuthorizationParams {
|
|
|
331
333
|
/** Your stable opaque identifier for the person authorizing this installation. */
|
|
332
334
|
externalSubject: string;
|
|
333
335
|
}
|
|
336
|
+
interface UploadExternalMindDataParams {
|
|
337
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
338
|
+
preferredLanguage?: string;
|
|
339
|
+
/** Opaque grant token accepted only by grant inspection and external clone invocation; store it as a secret and never expose it to users. */
|
|
340
|
+
accessToken: string;
|
|
341
|
+
/** Your stable opaque identifier for this app installation. */
|
|
342
|
+
installationId: string;
|
|
343
|
+
/** Your stable opaque identifier for the person authorizing this installation. */
|
|
344
|
+
externalSubject: string;
|
|
345
|
+
cloneId: string;
|
|
346
|
+
text: string;
|
|
347
|
+
textType?: string;
|
|
348
|
+
/** A stable opaque event key that makes exact retries return the same outcome. */
|
|
349
|
+
idempotencyKey?: string;
|
|
350
|
+
sourceLabel?: string;
|
|
351
|
+
}
|
|
334
352
|
interface GetMindClusterParams {
|
|
335
353
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
336
354
|
preferredLanguage?: string;
|
|
@@ -663,6 +681,12 @@ declare class MindUpload extends MindUploadBase {
|
|
|
663
681
|
* @see https://docs.mindupload.app
|
|
664
682
|
*/
|
|
665
683
|
refreshExternalAuthorization(params: RefreshExternalAuthorizationParams): Promise<Result>;
|
|
684
|
+
/** Upload mind data (text and media) into the owner's own AI consciousness.
|
|
685
|
+
*
|
|
686
|
+
* Response fields: success, error_message, clone_id, text_type, pending_owner_review.
|
|
687
|
+
* @see https://docs.mindupload.app
|
|
688
|
+
*/
|
|
689
|
+
uploadExternalMindData(params: UploadExternalMindDataParams): Promise<Result>;
|
|
666
690
|
/** Fetch the mind-graph visualization data of an AI consciousness.
|
|
667
691
|
*
|
|
668
692
|
* Response fields: success, error_message, root_node_id, node, children, texts, total_texts, texts_offset, has_more_texts, is_building.
|
|
@@ -797,6 +821,6 @@ declare class MindUploadConnectionError extends MindUploadError {
|
|
|
797
821
|
constructor(message: string, options?: ErrorOptions);
|
|
798
822
|
}
|
|
799
823
|
|
|
800
|
-
declare const VERSION = "1.
|
|
824
|
+
declare const VERSION = "1.9.0";
|
|
801
825
|
|
|
802
|
-
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, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ interface UpdateCloneParams {
|
|
|
73
73
|
gender?: string;
|
|
74
74
|
avatarId?: string;
|
|
75
75
|
acceptChatroomInvitationByOthers?: boolean;
|
|
76
|
+
autoKeepExternalMemories?: boolean;
|
|
76
77
|
}
|
|
77
78
|
interface GetQuotaParams {
|
|
78
79
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
@@ -284,7 +285,7 @@ interface CreateExternalAuthorizationRequestParams {
|
|
|
284
285
|
/** Optional user-readable external identity shown during consent. */
|
|
285
286
|
externalIdentityLabel?: string;
|
|
286
287
|
/** Capabilities the owner is being asked to delegate. */
|
|
287
|
-
requestedScopes: Array<"clone:invoke" | "clone:learn">;
|
|
288
|
+
requestedScopes: Array<"clone:invoke" | "clone:learn" | "clone:invoke_shared" | "clone:upload">;
|
|
288
289
|
}
|
|
289
290
|
interface ExchangeExternalAuthorizationParams {
|
|
290
291
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
@@ -320,6 +321,7 @@ interface InvokeExternalCloneParams {
|
|
|
320
321
|
/** Recent surrounding conversation for group mode (issue #172): an ordered, bounded list of prior turns the AI consciousness reads as quoted context. Each entry has a `display_name` and `text`, plus optional `is_ai`, `timestamp` (seconds), and `gender`. It carries no platform identifiers and is never treated as instructions. */
|
|
321
322
|
contextMessages?: Array<Record<string, unknown>>;
|
|
322
323
|
learn?: boolean;
|
|
324
|
+
sourceLabel?: string;
|
|
323
325
|
}
|
|
324
326
|
interface RefreshExternalAuthorizationParams {
|
|
325
327
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
@@ -331,6 +333,22 @@ interface RefreshExternalAuthorizationParams {
|
|
|
331
333
|
/** Your stable opaque identifier for the person authorizing this installation. */
|
|
332
334
|
externalSubject: string;
|
|
333
335
|
}
|
|
336
|
+
interface UploadExternalMindDataParams {
|
|
337
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
338
|
+
preferredLanguage?: string;
|
|
339
|
+
/** Opaque grant token accepted only by grant inspection and external clone invocation; store it as a secret and never expose it to users. */
|
|
340
|
+
accessToken: string;
|
|
341
|
+
/** Your stable opaque identifier for this app installation. */
|
|
342
|
+
installationId: string;
|
|
343
|
+
/** Your stable opaque identifier for the person authorizing this installation. */
|
|
344
|
+
externalSubject: string;
|
|
345
|
+
cloneId: string;
|
|
346
|
+
text: string;
|
|
347
|
+
textType?: string;
|
|
348
|
+
/** A stable opaque event key that makes exact retries return the same outcome. */
|
|
349
|
+
idempotencyKey?: string;
|
|
350
|
+
sourceLabel?: string;
|
|
351
|
+
}
|
|
334
352
|
interface GetMindClusterParams {
|
|
335
353
|
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
336
354
|
preferredLanguage?: string;
|
|
@@ -663,6 +681,12 @@ declare class MindUpload extends MindUploadBase {
|
|
|
663
681
|
* @see https://docs.mindupload.app
|
|
664
682
|
*/
|
|
665
683
|
refreshExternalAuthorization(params: RefreshExternalAuthorizationParams): Promise<Result>;
|
|
684
|
+
/** Upload mind data (text and media) into the owner's own AI consciousness.
|
|
685
|
+
*
|
|
686
|
+
* Response fields: success, error_message, clone_id, text_type, pending_owner_review.
|
|
687
|
+
* @see https://docs.mindupload.app
|
|
688
|
+
*/
|
|
689
|
+
uploadExternalMindData(params: UploadExternalMindDataParams): Promise<Result>;
|
|
666
690
|
/** Fetch the mind-graph visualization data of an AI consciousness.
|
|
667
691
|
*
|
|
668
692
|
* Response fields: success, error_message, root_node_id, node, children, texts, total_texts, texts_offset, has_more_texts, is_building.
|
|
@@ -797,6 +821,6 @@ declare class MindUploadConnectionError extends MindUploadError {
|
|
|
797
821
|
constructor(message: string, options?: ErrorOptions);
|
|
798
822
|
}
|
|
799
823
|
|
|
800
|
-
declare const VERSION = "1.
|
|
824
|
+
declare const VERSION = "1.9.0";
|
|
801
825
|
|
|
802
|
-
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, VERSION, type WaitForExternalAuthorizationParams, type WaitForExternalCloneInvocationParams };
|
|
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 };
|
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.9.0";
|
|
45
45
|
|
|
46
46
|
// src/client.ts
|
|
47
47
|
var DEFAULT_BASE_URL = "https://partner.mindupload.app";
|
|
@@ -371,6 +371,14 @@ var MindUpload = class extends MindUploadBase {
|
|
|
371
371
|
refreshExternalAuthorization(params) {
|
|
372
372
|
return this.request("refresh_external_authorization", params);
|
|
373
373
|
}
|
|
374
|
+
/** Upload mind data (text and media) into the owner's own AI consciousness.
|
|
375
|
+
*
|
|
376
|
+
* Response fields: success, error_message, clone_id, text_type, pending_owner_review.
|
|
377
|
+
* @see https://docs.mindupload.app
|
|
378
|
+
*/
|
|
379
|
+
uploadExternalMindData(params) {
|
|
380
|
+
return this.request("upload_external_mind_data", params);
|
|
381
|
+
}
|
|
374
382
|
// --- Insights ---
|
|
375
383
|
/** Fetch the mind-graph visualization data of an AI consciousness.
|
|
376
384
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mindupload",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
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",
|