mindupload 1.5.5 → 1.5.7
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 +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +122 -1
- package/dist/index.d.ts +122 -1
- package/dist/index.js +1 -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
|
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -33,8 +33,11 @@ declare class MindUploadBase {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
interface CreateCloneParams {
|
|
36
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
36
37
|
preferredLanguage?: string;
|
|
38
|
+
/** The end-user's username. */
|
|
37
39
|
username?: string;
|
|
40
|
+
/** 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. */
|
|
38
41
|
password?: string;
|
|
39
42
|
codename?: string;
|
|
40
43
|
nickname?: string;
|
|
@@ -43,13 +46,19 @@ interface CreateCloneParams {
|
|
|
43
46
|
acceptChatroomInvitationByOthers?: boolean;
|
|
44
47
|
}
|
|
45
48
|
interface GetClonesParams {
|
|
49
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
46
50
|
preferredLanguage?: string;
|
|
51
|
+
/** The end-user's username. */
|
|
47
52
|
username?: string;
|
|
53
|
+
/** 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. */
|
|
48
54
|
password?: string;
|
|
49
55
|
}
|
|
50
56
|
interface UpdateCloneParams {
|
|
57
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
51
58
|
preferredLanguage?: string;
|
|
59
|
+
/** The end-user's username. */
|
|
52
60
|
username?: string;
|
|
61
|
+
/** 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. */
|
|
53
62
|
password?: string;
|
|
54
63
|
codename?: string;
|
|
55
64
|
nickname?: string;
|
|
@@ -58,26 +67,39 @@ interface UpdateCloneParams {
|
|
|
58
67
|
acceptChatroomInvitationByOthers?: boolean;
|
|
59
68
|
}
|
|
60
69
|
interface GetQuotaParams {
|
|
70
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
61
71
|
preferredLanguage?: string;
|
|
72
|
+
/** The end-user's username. */
|
|
62
73
|
username?: string;
|
|
63
74
|
}
|
|
64
75
|
interface CheckUsernameParams {
|
|
76
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
65
77
|
preferredLanguage?: string;
|
|
78
|
+
/** The end-user's username. */
|
|
66
79
|
username?: string;
|
|
67
80
|
}
|
|
68
81
|
interface LoginParams {
|
|
82
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
69
83
|
preferredLanguage?: string;
|
|
84
|
+
/** The end-user's username. */
|
|
70
85
|
username?: string;
|
|
86
|
+
/** 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. */
|
|
71
87
|
password?: string;
|
|
72
88
|
}
|
|
73
89
|
interface LogoutParams {
|
|
90
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
74
91
|
preferredLanguage?: string;
|
|
92
|
+
/** The end-user's username. */
|
|
75
93
|
username?: string;
|
|
94
|
+
/** 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. */
|
|
76
95
|
password?: string;
|
|
77
96
|
}
|
|
78
97
|
interface RegisterParams {
|
|
98
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
79
99
|
preferredLanguage?: string;
|
|
100
|
+
/** The end-user's username. */
|
|
80
101
|
username?: string;
|
|
102
|
+
/** 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. */
|
|
81
103
|
password?: string;
|
|
82
104
|
email?: string;
|
|
83
105
|
emailVerificationCode?: string;
|
|
@@ -91,14 +113,21 @@ interface RegisterParams {
|
|
|
91
113
|
acceptChatroomInvitationByOthers?: boolean;
|
|
92
114
|
}
|
|
93
115
|
interface CheckChatroomUpdatesParams {
|
|
116
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
94
117
|
preferredLanguage?: string;
|
|
118
|
+
/** The end-user's username. */
|
|
95
119
|
username?: string;
|
|
120
|
+
/** 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. */
|
|
96
121
|
password?: string;
|
|
122
|
+
/** Rooms to check. Each entry must include `chatroom_id`; include `known_updated_at` from the previous response, or null/omit it on the first poll. */
|
|
97
123
|
chatrooms?: Record<string, unknown>[];
|
|
98
124
|
}
|
|
99
125
|
interface CreateChatroomParams {
|
|
126
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
100
127
|
preferredLanguage?: string;
|
|
128
|
+
/** The end-user's username. */
|
|
101
129
|
username?: string;
|
|
130
|
+
/** 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. */
|
|
102
131
|
password?: string;
|
|
103
132
|
chatroomName?: string;
|
|
104
133
|
isPublic?: boolean;
|
|
@@ -106,22 +135,31 @@ interface CreateChatroomParams {
|
|
|
106
135
|
soulmateCheckEnabled?: boolean;
|
|
107
136
|
}
|
|
108
137
|
interface CreateChatroomMembershipParams {
|
|
138
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
109
139
|
preferredLanguage?: string;
|
|
140
|
+
/** The end-user's username. */
|
|
110
141
|
username?: string;
|
|
142
|
+
/** 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. */
|
|
111
143
|
password?: string;
|
|
144
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
112
145
|
chatroomId?: string;
|
|
113
146
|
inviteeUsername?: string;
|
|
114
147
|
inviteeCodename?: string;
|
|
115
148
|
adminLevel?: string;
|
|
116
149
|
}
|
|
117
150
|
interface CreateChatroomMessageParams {
|
|
151
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
118
152
|
preferredLanguage?: string;
|
|
153
|
+
/** The end-user's username. */
|
|
119
154
|
username?: string;
|
|
155
|
+
/** 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. */
|
|
120
156
|
password?: string;
|
|
157
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
121
158
|
chatroomId?: string;
|
|
122
159
|
text?: string;
|
|
123
160
|
}
|
|
124
161
|
interface GetChatroomMembershipParams {
|
|
162
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
125
163
|
preferredLanguage?: string;
|
|
126
164
|
page?: number;
|
|
127
165
|
pageSize?: number;
|
|
@@ -130,11 +168,15 @@ interface GetChatroomMembershipParams {
|
|
|
130
168
|
useCursorPagination?: boolean;
|
|
131
169
|
cursorValue?: string;
|
|
132
170
|
cursorId?: string;
|
|
171
|
+
/** The end-user's username. */
|
|
133
172
|
username?: string;
|
|
173
|
+
/** 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. */
|
|
134
174
|
password?: string;
|
|
175
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
135
176
|
chatroomId?: string;
|
|
136
177
|
}
|
|
137
178
|
interface GetChatroomMessagesParams {
|
|
179
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
138
180
|
preferredLanguage?: string;
|
|
139
181
|
page?: number;
|
|
140
182
|
pageSize?: number;
|
|
@@ -143,13 +185,17 @@ interface GetChatroomMessagesParams {
|
|
|
143
185
|
useCursorPagination?: boolean;
|
|
144
186
|
cursorValue?: string;
|
|
145
187
|
cursorId?: string;
|
|
188
|
+
/** The end-user's username. */
|
|
146
189
|
username?: string;
|
|
190
|
+
/** 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. */
|
|
147
191
|
password?: string;
|
|
192
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
148
193
|
chatroomId?: string;
|
|
149
194
|
sinceValue?: number;
|
|
150
195
|
sinceId?: string;
|
|
151
196
|
}
|
|
152
197
|
interface GetChatroomsParams {
|
|
198
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
153
199
|
preferredLanguage?: string;
|
|
154
200
|
page?: number;
|
|
155
201
|
pageSize?: number;
|
|
@@ -158,19 +204,27 @@ interface GetChatroomsParams {
|
|
|
158
204
|
useCursorPagination?: boolean;
|
|
159
205
|
cursorValue?: string;
|
|
160
206
|
cursorId?: string;
|
|
207
|
+
/** The end-user's username. */
|
|
161
208
|
username?: string;
|
|
209
|
+
/** 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. */
|
|
162
210
|
password?: string;
|
|
163
211
|
getPublic?: boolean;
|
|
164
212
|
getPrivate?: boolean;
|
|
165
213
|
}
|
|
166
214
|
interface TranslateChatroomMessageParams {
|
|
215
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
167
216
|
preferredLanguage?: string;
|
|
217
|
+
/** The end-user's username. */
|
|
168
218
|
username?: string;
|
|
219
|
+
/** 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. */
|
|
169
220
|
password?: string;
|
|
221
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
170
222
|
chatroomId?: string;
|
|
223
|
+
/** Chatroom message id. */
|
|
171
224
|
messageId?: string;
|
|
172
225
|
}
|
|
173
226
|
interface GetChatParams {
|
|
227
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
174
228
|
preferredLanguage?: string;
|
|
175
229
|
page?: number;
|
|
176
230
|
pageSize?: number;
|
|
@@ -179,28 +233,41 @@ interface GetChatParams {
|
|
|
179
233
|
useCursorPagination?: boolean;
|
|
180
234
|
cursorValue?: string;
|
|
181
235
|
cursorId?: string;
|
|
236
|
+
/** The end-user's username. */
|
|
182
237
|
username?: string;
|
|
238
|
+
/** 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. */
|
|
183
239
|
password?: string;
|
|
184
240
|
codename?: string;
|
|
185
241
|
}
|
|
186
242
|
interface RagParams {
|
|
243
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
187
244
|
preferredLanguage?: string;
|
|
245
|
+
/** The end-user's username. */
|
|
188
246
|
username?: string;
|
|
247
|
+
/** 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. */
|
|
189
248
|
password?: string;
|
|
190
249
|
codename?: string;
|
|
191
250
|
text?: string;
|
|
251
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
192
252
|
chatroomId?: string;
|
|
193
253
|
}
|
|
194
254
|
interface TriggerSocialParams {
|
|
255
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
195
256
|
preferredLanguage?: string;
|
|
257
|
+
/** The end-user's username. */
|
|
196
258
|
username?: string;
|
|
259
|
+
/** 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. */
|
|
197
260
|
password?: string;
|
|
198
261
|
membershipId?: string;
|
|
262
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
199
263
|
chatroomId?: string;
|
|
200
264
|
}
|
|
201
265
|
interface GetMindClusterParams {
|
|
266
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
202
267
|
preferredLanguage?: string;
|
|
268
|
+
/** The end-user's username. */
|
|
203
269
|
username?: string;
|
|
270
|
+
/** 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. */
|
|
204
271
|
password?: string;
|
|
205
272
|
codename?: string;
|
|
206
273
|
nodeId?: string;
|
|
@@ -209,44 +276,71 @@ interface GetMindClusterParams {
|
|
|
209
276
|
forceRebuild?: boolean;
|
|
210
277
|
}
|
|
211
278
|
interface GetSoulmateReportParams {
|
|
279
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
212
280
|
preferredLanguage?: string;
|
|
281
|
+
/** The end-user's username. */
|
|
213
282
|
username?: string;
|
|
283
|
+
/** 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. */
|
|
214
284
|
password?: string;
|
|
215
285
|
myCloneId?: string;
|
|
216
286
|
otherCloneId?: string;
|
|
287
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
217
288
|
chatroomId?: string;
|
|
218
289
|
}
|
|
219
290
|
interface AbortMultipartUploadParams {
|
|
291
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
220
292
|
preferredLanguage?: string;
|
|
293
|
+
/** The end-user's username. */
|
|
221
294
|
username?: string;
|
|
295
|
+
/** 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. */
|
|
222
296
|
password?: string;
|
|
297
|
+
/** Opaque media object key returned by upload-start operations and reused for multipart upload calls. */
|
|
223
298
|
r2Key?: string;
|
|
299
|
+
/** Multipart upload session id returned by `request_multipart_upload`. */
|
|
224
300
|
uploadId?: string;
|
|
225
301
|
}
|
|
226
302
|
interface CancelUploadParams {
|
|
303
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
227
304
|
preferredLanguage?: string;
|
|
305
|
+
/** The end-user's username. */
|
|
228
306
|
username?: string;
|
|
307
|
+
/** 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. */
|
|
229
308
|
password?: string;
|
|
309
|
+
/** Opaque media object key returned by upload-start operations and reused for multipart upload calls. */
|
|
230
310
|
r2Key?: string;
|
|
231
311
|
}
|
|
232
312
|
interface CompleteMultipartUploadParams {
|
|
313
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
233
314
|
preferredLanguage?: string;
|
|
315
|
+
/** The end-user's username. */
|
|
234
316
|
username?: string;
|
|
317
|
+
/** 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. */
|
|
235
318
|
password?: string;
|
|
319
|
+
/** Opaque media object key returned by upload-start operations and reused for multipart upload calls. */
|
|
236
320
|
r2Key?: string;
|
|
321
|
+
/** Multipart upload session id returned by `request_multipart_upload`. */
|
|
237
322
|
uploadId?: string;
|
|
323
|
+
/** The successfully uploaded parts, using the `part_number` and `etag` returned by each part upload. */
|
|
238
324
|
parts?: Record<string, unknown>[];
|
|
239
325
|
}
|
|
240
326
|
interface ListUploadPartsParams {
|
|
327
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
241
328
|
preferredLanguage?: string;
|
|
329
|
+
/** The end-user's username. */
|
|
242
330
|
username?: string;
|
|
331
|
+
/** 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. */
|
|
243
332
|
password?: string;
|
|
333
|
+
/** Opaque media object key returned by upload-start operations and reused for multipart upload calls. */
|
|
244
334
|
r2Key?: string;
|
|
335
|
+
/** Multipart upload session id returned by `request_multipart_upload`. */
|
|
245
336
|
uploadId?: string;
|
|
246
337
|
}
|
|
247
338
|
interface RequestMultipartUploadParams {
|
|
339
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
248
340
|
preferredLanguage?: string;
|
|
341
|
+
/** The end-user's username. */
|
|
249
342
|
username?: string;
|
|
343
|
+
/** 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. */
|
|
250
344
|
password?: string;
|
|
251
345
|
filename?: string;
|
|
252
346
|
contentType?: string;
|
|
@@ -255,8 +349,11 @@ interface RequestMultipartUploadParams {
|
|
|
255
349
|
hasThumbnail?: boolean;
|
|
256
350
|
}
|
|
257
351
|
interface RequestUploadUrlParams {
|
|
352
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
258
353
|
preferredLanguage?: string;
|
|
354
|
+
/** The end-user's username. */
|
|
259
355
|
username?: string;
|
|
356
|
+
/** 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. */
|
|
260
357
|
password?: string;
|
|
261
358
|
filename?: string;
|
|
262
359
|
contentType?: string;
|
|
@@ -265,24 +362,39 @@ interface RequestUploadUrlParams {
|
|
|
265
362
|
hasThumbnail?: boolean;
|
|
266
363
|
}
|
|
267
364
|
interface SignUploadPartParams {
|
|
365
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
268
366
|
preferredLanguage?: string;
|
|
367
|
+
/** The end-user's username. */
|
|
269
368
|
username?: string;
|
|
369
|
+
/** 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. */
|
|
270
370
|
password?: string;
|
|
371
|
+
/** Opaque media object key returned by upload-start operations and reused for multipart upload calls. */
|
|
271
372
|
r2Key?: string;
|
|
373
|
+
/** Multipart upload session id returned by `request_multipart_upload`. */
|
|
272
374
|
uploadId?: string;
|
|
375
|
+
/** One-based multipart part number. */
|
|
273
376
|
partNumber?: number;
|
|
274
377
|
}
|
|
275
378
|
interface SignUploadPartsBatchParams {
|
|
379
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
276
380
|
preferredLanguage?: string;
|
|
381
|
+
/** The end-user's username. */
|
|
277
382
|
username?: string;
|
|
383
|
+
/** 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. */
|
|
278
384
|
password?: string;
|
|
385
|
+
/** Opaque media object key returned by upload-start operations and reused for multipart upload calls. */
|
|
279
386
|
r2Key?: string;
|
|
387
|
+
/** Multipart upload session id returned by `request_multipart_upload`. */
|
|
280
388
|
uploadId?: string;
|
|
389
|
+
/** One-based multipart part numbers to sign in a single batch. */
|
|
281
390
|
partNumbers?: number[];
|
|
282
391
|
}
|
|
283
392
|
interface CreateTextParams {
|
|
393
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
284
394
|
preferredLanguage?: string;
|
|
395
|
+
/** The end-user's username. */
|
|
285
396
|
username?: string;
|
|
397
|
+
/** 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. */
|
|
286
398
|
password?: string;
|
|
287
399
|
codename?: string;
|
|
288
400
|
cloneId?: string;
|
|
@@ -290,6 +402,7 @@ interface CreateTextParams {
|
|
|
290
402
|
type?: string;
|
|
291
403
|
}
|
|
292
404
|
interface GetTextsParams {
|
|
405
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
293
406
|
preferredLanguage?: string;
|
|
294
407
|
page?: number;
|
|
295
408
|
pageSize?: number;
|
|
@@ -298,19 +411,27 @@ interface GetTextsParams {
|
|
|
298
411
|
useCursorPagination?: boolean;
|
|
299
412
|
cursorValue?: string;
|
|
300
413
|
cursorId?: string;
|
|
414
|
+
/** The end-user's username. */
|
|
301
415
|
username?: string;
|
|
416
|
+
/** 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. */
|
|
302
417
|
password?: string;
|
|
303
418
|
codename?: string;
|
|
304
419
|
type?: string;
|
|
305
420
|
}
|
|
306
421
|
interface GetUserParams {
|
|
422
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
307
423
|
preferredLanguage?: string;
|
|
424
|
+
/** The end-user's username. */
|
|
308
425
|
username?: string;
|
|
426
|
+
/** 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. */
|
|
309
427
|
password?: string;
|
|
310
428
|
}
|
|
311
429
|
interface UpdateUserParams {
|
|
430
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
312
431
|
preferredLanguage?: string;
|
|
432
|
+
/** The end-user's username. */
|
|
313
433
|
username?: string;
|
|
434
|
+
/** 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. */
|
|
314
435
|
password?: string;
|
|
315
436
|
email?: string;
|
|
316
437
|
emailVerificationCode?: string;
|
|
@@ -565,6 +686,6 @@ declare class MindUploadConnectionError extends MindUploadError {
|
|
|
565
686
|
constructor(message: string, options?: ErrorOptions);
|
|
566
687
|
}
|
|
567
688
|
|
|
568
|
-
declare const VERSION = "1.5.
|
|
689
|
+
declare const VERSION = "1.5.7";
|
|
569
690
|
|
|
570
691
|
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 CreateTextParams, DEFAULT_BASE_URL, type ErrorOptions, type GetChatParams, type GetChatroomMembershipParams, type GetChatroomMessagesParams, type GetChatroomsParams, type GetClonesParams, type GetMindClusterParams, type GetQuotaParams, type GetSoulmateReportParams, type GetTextsParams, type GetUserParams, type ListUploadPartsParams, type LoginParams, type LogoutParams, MindUpload, MindUploadBase, MindUploadConnectionError, MindUploadError, type RagParams, RateLimitError, type RateLimitOptions, type RegisterParams, type RequestMultipartUploadParams, type RequestUploadUrlParams, type Result, type SignUploadPartParams, type SignUploadPartsBatchParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, VERSION };
|
package/dist/index.d.ts
CHANGED
|
@@ -33,8 +33,11 @@ declare class MindUploadBase {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
interface CreateCloneParams {
|
|
36
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
36
37
|
preferredLanguage?: string;
|
|
38
|
+
/** The end-user's username. */
|
|
37
39
|
username?: string;
|
|
40
|
+
/** 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. */
|
|
38
41
|
password?: string;
|
|
39
42
|
codename?: string;
|
|
40
43
|
nickname?: string;
|
|
@@ -43,13 +46,19 @@ interface CreateCloneParams {
|
|
|
43
46
|
acceptChatroomInvitationByOthers?: boolean;
|
|
44
47
|
}
|
|
45
48
|
interface GetClonesParams {
|
|
49
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
46
50
|
preferredLanguage?: string;
|
|
51
|
+
/** The end-user's username. */
|
|
47
52
|
username?: string;
|
|
53
|
+
/** 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. */
|
|
48
54
|
password?: string;
|
|
49
55
|
}
|
|
50
56
|
interface UpdateCloneParams {
|
|
57
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
51
58
|
preferredLanguage?: string;
|
|
59
|
+
/** The end-user's username. */
|
|
52
60
|
username?: string;
|
|
61
|
+
/** 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. */
|
|
53
62
|
password?: string;
|
|
54
63
|
codename?: string;
|
|
55
64
|
nickname?: string;
|
|
@@ -58,26 +67,39 @@ interface UpdateCloneParams {
|
|
|
58
67
|
acceptChatroomInvitationByOthers?: boolean;
|
|
59
68
|
}
|
|
60
69
|
interface GetQuotaParams {
|
|
70
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
61
71
|
preferredLanguage?: string;
|
|
72
|
+
/** The end-user's username. */
|
|
62
73
|
username?: string;
|
|
63
74
|
}
|
|
64
75
|
interface CheckUsernameParams {
|
|
76
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
65
77
|
preferredLanguage?: string;
|
|
78
|
+
/** The end-user's username. */
|
|
66
79
|
username?: string;
|
|
67
80
|
}
|
|
68
81
|
interface LoginParams {
|
|
82
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
69
83
|
preferredLanguage?: string;
|
|
84
|
+
/** The end-user's username. */
|
|
70
85
|
username?: string;
|
|
86
|
+
/** 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. */
|
|
71
87
|
password?: string;
|
|
72
88
|
}
|
|
73
89
|
interface LogoutParams {
|
|
90
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
74
91
|
preferredLanguage?: string;
|
|
92
|
+
/** The end-user's username. */
|
|
75
93
|
username?: string;
|
|
94
|
+
/** 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. */
|
|
76
95
|
password?: string;
|
|
77
96
|
}
|
|
78
97
|
interface RegisterParams {
|
|
98
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
79
99
|
preferredLanguage?: string;
|
|
100
|
+
/** The end-user's username. */
|
|
80
101
|
username?: string;
|
|
102
|
+
/** 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. */
|
|
81
103
|
password?: string;
|
|
82
104
|
email?: string;
|
|
83
105
|
emailVerificationCode?: string;
|
|
@@ -91,14 +113,21 @@ interface RegisterParams {
|
|
|
91
113
|
acceptChatroomInvitationByOthers?: boolean;
|
|
92
114
|
}
|
|
93
115
|
interface CheckChatroomUpdatesParams {
|
|
116
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
94
117
|
preferredLanguage?: string;
|
|
118
|
+
/** The end-user's username. */
|
|
95
119
|
username?: string;
|
|
120
|
+
/** 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. */
|
|
96
121
|
password?: string;
|
|
122
|
+
/** Rooms to check. Each entry must include `chatroom_id`; include `known_updated_at` from the previous response, or null/omit it on the first poll. */
|
|
97
123
|
chatrooms?: Record<string, unknown>[];
|
|
98
124
|
}
|
|
99
125
|
interface CreateChatroomParams {
|
|
126
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
100
127
|
preferredLanguage?: string;
|
|
128
|
+
/** The end-user's username. */
|
|
101
129
|
username?: string;
|
|
130
|
+
/** 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. */
|
|
102
131
|
password?: string;
|
|
103
132
|
chatroomName?: string;
|
|
104
133
|
isPublic?: boolean;
|
|
@@ -106,22 +135,31 @@ interface CreateChatroomParams {
|
|
|
106
135
|
soulmateCheckEnabled?: boolean;
|
|
107
136
|
}
|
|
108
137
|
interface CreateChatroomMembershipParams {
|
|
138
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
109
139
|
preferredLanguage?: string;
|
|
140
|
+
/** The end-user's username. */
|
|
110
141
|
username?: string;
|
|
142
|
+
/** 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. */
|
|
111
143
|
password?: string;
|
|
144
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
112
145
|
chatroomId?: string;
|
|
113
146
|
inviteeUsername?: string;
|
|
114
147
|
inviteeCodename?: string;
|
|
115
148
|
adminLevel?: string;
|
|
116
149
|
}
|
|
117
150
|
interface CreateChatroomMessageParams {
|
|
151
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
118
152
|
preferredLanguage?: string;
|
|
153
|
+
/** The end-user's username. */
|
|
119
154
|
username?: string;
|
|
155
|
+
/** 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. */
|
|
120
156
|
password?: string;
|
|
157
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
121
158
|
chatroomId?: string;
|
|
122
159
|
text?: string;
|
|
123
160
|
}
|
|
124
161
|
interface GetChatroomMembershipParams {
|
|
162
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
125
163
|
preferredLanguage?: string;
|
|
126
164
|
page?: number;
|
|
127
165
|
pageSize?: number;
|
|
@@ -130,11 +168,15 @@ interface GetChatroomMembershipParams {
|
|
|
130
168
|
useCursorPagination?: boolean;
|
|
131
169
|
cursorValue?: string;
|
|
132
170
|
cursorId?: string;
|
|
171
|
+
/** The end-user's username. */
|
|
133
172
|
username?: string;
|
|
173
|
+
/** 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. */
|
|
134
174
|
password?: string;
|
|
175
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
135
176
|
chatroomId?: string;
|
|
136
177
|
}
|
|
137
178
|
interface GetChatroomMessagesParams {
|
|
179
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
138
180
|
preferredLanguage?: string;
|
|
139
181
|
page?: number;
|
|
140
182
|
pageSize?: number;
|
|
@@ -143,13 +185,17 @@ interface GetChatroomMessagesParams {
|
|
|
143
185
|
useCursorPagination?: boolean;
|
|
144
186
|
cursorValue?: string;
|
|
145
187
|
cursorId?: string;
|
|
188
|
+
/** The end-user's username. */
|
|
146
189
|
username?: string;
|
|
190
|
+
/** 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. */
|
|
147
191
|
password?: string;
|
|
192
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
148
193
|
chatroomId?: string;
|
|
149
194
|
sinceValue?: number;
|
|
150
195
|
sinceId?: string;
|
|
151
196
|
}
|
|
152
197
|
interface GetChatroomsParams {
|
|
198
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
153
199
|
preferredLanguage?: string;
|
|
154
200
|
page?: number;
|
|
155
201
|
pageSize?: number;
|
|
@@ -158,19 +204,27 @@ interface GetChatroomsParams {
|
|
|
158
204
|
useCursorPagination?: boolean;
|
|
159
205
|
cursorValue?: string;
|
|
160
206
|
cursorId?: string;
|
|
207
|
+
/** The end-user's username. */
|
|
161
208
|
username?: string;
|
|
209
|
+
/** 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. */
|
|
162
210
|
password?: string;
|
|
163
211
|
getPublic?: boolean;
|
|
164
212
|
getPrivate?: boolean;
|
|
165
213
|
}
|
|
166
214
|
interface TranslateChatroomMessageParams {
|
|
215
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
167
216
|
preferredLanguage?: string;
|
|
217
|
+
/** The end-user's username. */
|
|
168
218
|
username?: string;
|
|
219
|
+
/** 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. */
|
|
169
220
|
password?: string;
|
|
221
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
170
222
|
chatroomId?: string;
|
|
223
|
+
/** Chatroom message id. */
|
|
171
224
|
messageId?: string;
|
|
172
225
|
}
|
|
173
226
|
interface GetChatParams {
|
|
227
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
174
228
|
preferredLanguage?: string;
|
|
175
229
|
page?: number;
|
|
176
230
|
pageSize?: number;
|
|
@@ -179,28 +233,41 @@ interface GetChatParams {
|
|
|
179
233
|
useCursorPagination?: boolean;
|
|
180
234
|
cursorValue?: string;
|
|
181
235
|
cursorId?: string;
|
|
236
|
+
/** The end-user's username. */
|
|
182
237
|
username?: string;
|
|
238
|
+
/** 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. */
|
|
183
239
|
password?: string;
|
|
184
240
|
codename?: string;
|
|
185
241
|
}
|
|
186
242
|
interface RagParams {
|
|
243
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
187
244
|
preferredLanguage?: string;
|
|
245
|
+
/** The end-user's username. */
|
|
188
246
|
username?: string;
|
|
247
|
+
/** 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. */
|
|
189
248
|
password?: string;
|
|
190
249
|
codename?: string;
|
|
191
250
|
text?: string;
|
|
251
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
192
252
|
chatroomId?: string;
|
|
193
253
|
}
|
|
194
254
|
interface TriggerSocialParams {
|
|
255
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
195
256
|
preferredLanguage?: string;
|
|
257
|
+
/** The end-user's username. */
|
|
196
258
|
username?: string;
|
|
259
|
+
/** 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. */
|
|
197
260
|
password?: string;
|
|
198
261
|
membershipId?: string;
|
|
262
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
199
263
|
chatroomId?: string;
|
|
200
264
|
}
|
|
201
265
|
interface GetMindClusterParams {
|
|
266
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
202
267
|
preferredLanguage?: string;
|
|
268
|
+
/** The end-user's username. */
|
|
203
269
|
username?: string;
|
|
270
|
+
/** 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. */
|
|
204
271
|
password?: string;
|
|
205
272
|
codename?: string;
|
|
206
273
|
nodeId?: string;
|
|
@@ -209,44 +276,71 @@ interface GetMindClusterParams {
|
|
|
209
276
|
forceRebuild?: boolean;
|
|
210
277
|
}
|
|
211
278
|
interface GetSoulmateReportParams {
|
|
279
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
212
280
|
preferredLanguage?: string;
|
|
281
|
+
/** The end-user's username. */
|
|
213
282
|
username?: string;
|
|
283
|
+
/** 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. */
|
|
214
284
|
password?: string;
|
|
215
285
|
myCloneId?: string;
|
|
216
286
|
otherCloneId?: string;
|
|
287
|
+
/** Chatroom id as returned by chatroom operations. */
|
|
217
288
|
chatroomId?: string;
|
|
218
289
|
}
|
|
219
290
|
interface AbortMultipartUploadParams {
|
|
291
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
220
292
|
preferredLanguage?: string;
|
|
293
|
+
/** The end-user's username. */
|
|
221
294
|
username?: string;
|
|
295
|
+
/** 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. */
|
|
222
296
|
password?: string;
|
|
297
|
+
/** Opaque media object key returned by upload-start operations and reused for multipart upload calls. */
|
|
223
298
|
r2Key?: string;
|
|
299
|
+
/** Multipart upload session id returned by `request_multipart_upload`. */
|
|
224
300
|
uploadId?: string;
|
|
225
301
|
}
|
|
226
302
|
interface CancelUploadParams {
|
|
303
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
227
304
|
preferredLanguage?: string;
|
|
305
|
+
/** The end-user's username. */
|
|
228
306
|
username?: string;
|
|
307
|
+
/** 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. */
|
|
229
308
|
password?: string;
|
|
309
|
+
/** Opaque media object key returned by upload-start operations and reused for multipart upload calls. */
|
|
230
310
|
r2Key?: string;
|
|
231
311
|
}
|
|
232
312
|
interface CompleteMultipartUploadParams {
|
|
313
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
233
314
|
preferredLanguage?: string;
|
|
315
|
+
/** The end-user's username. */
|
|
234
316
|
username?: string;
|
|
317
|
+
/** 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. */
|
|
235
318
|
password?: string;
|
|
319
|
+
/** Opaque media object key returned by upload-start operations and reused for multipart upload calls. */
|
|
236
320
|
r2Key?: string;
|
|
321
|
+
/** Multipart upload session id returned by `request_multipart_upload`. */
|
|
237
322
|
uploadId?: string;
|
|
323
|
+
/** The successfully uploaded parts, using the `part_number` and `etag` returned by each part upload. */
|
|
238
324
|
parts?: Record<string, unknown>[];
|
|
239
325
|
}
|
|
240
326
|
interface ListUploadPartsParams {
|
|
327
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
241
328
|
preferredLanguage?: string;
|
|
329
|
+
/** The end-user's username. */
|
|
242
330
|
username?: string;
|
|
331
|
+
/** 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. */
|
|
243
332
|
password?: string;
|
|
333
|
+
/** Opaque media object key returned by upload-start operations and reused for multipart upload calls. */
|
|
244
334
|
r2Key?: string;
|
|
335
|
+
/** Multipart upload session id returned by `request_multipart_upload`. */
|
|
245
336
|
uploadId?: string;
|
|
246
337
|
}
|
|
247
338
|
interface RequestMultipartUploadParams {
|
|
339
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
248
340
|
preferredLanguage?: string;
|
|
341
|
+
/** The end-user's username. */
|
|
249
342
|
username?: string;
|
|
343
|
+
/** 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. */
|
|
250
344
|
password?: string;
|
|
251
345
|
filename?: string;
|
|
252
346
|
contentType?: string;
|
|
@@ -255,8 +349,11 @@ interface RequestMultipartUploadParams {
|
|
|
255
349
|
hasThumbnail?: boolean;
|
|
256
350
|
}
|
|
257
351
|
interface RequestUploadUrlParams {
|
|
352
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
258
353
|
preferredLanguage?: string;
|
|
354
|
+
/** The end-user's username. */
|
|
259
355
|
username?: string;
|
|
356
|
+
/** 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. */
|
|
260
357
|
password?: string;
|
|
261
358
|
filename?: string;
|
|
262
359
|
contentType?: string;
|
|
@@ -265,24 +362,39 @@ interface RequestUploadUrlParams {
|
|
|
265
362
|
hasThumbnail?: boolean;
|
|
266
363
|
}
|
|
267
364
|
interface SignUploadPartParams {
|
|
365
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
268
366
|
preferredLanguage?: string;
|
|
367
|
+
/** The end-user's username. */
|
|
269
368
|
username?: string;
|
|
369
|
+
/** 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. */
|
|
270
370
|
password?: string;
|
|
371
|
+
/** Opaque media object key returned by upload-start operations and reused for multipart upload calls. */
|
|
271
372
|
r2Key?: string;
|
|
373
|
+
/** Multipart upload session id returned by `request_multipart_upload`. */
|
|
272
374
|
uploadId?: string;
|
|
375
|
+
/** One-based multipart part number. */
|
|
273
376
|
partNumber?: number;
|
|
274
377
|
}
|
|
275
378
|
interface SignUploadPartsBatchParams {
|
|
379
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
276
380
|
preferredLanguage?: string;
|
|
381
|
+
/** The end-user's username. */
|
|
277
382
|
username?: string;
|
|
383
|
+
/** 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. */
|
|
278
384
|
password?: string;
|
|
385
|
+
/** Opaque media object key returned by upload-start operations and reused for multipart upload calls. */
|
|
279
386
|
r2Key?: string;
|
|
387
|
+
/** Multipart upload session id returned by `request_multipart_upload`. */
|
|
280
388
|
uploadId?: string;
|
|
389
|
+
/** One-based multipart part numbers to sign in a single batch. */
|
|
281
390
|
partNumbers?: number[];
|
|
282
391
|
}
|
|
283
392
|
interface CreateTextParams {
|
|
393
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
284
394
|
preferredLanguage?: string;
|
|
395
|
+
/** The end-user's username. */
|
|
285
396
|
username?: string;
|
|
397
|
+
/** 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. */
|
|
286
398
|
password?: string;
|
|
287
399
|
codename?: string;
|
|
288
400
|
cloneId?: string;
|
|
@@ -290,6 +402,7 @@ interface CreateTextParams {
|
|
|
290
402
|
type?: string;
|
|
291
403
|
}
|
|
292
404
|
interface GetTextsParams {
|
|
405
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
293
406
|
preferredLanguage?: string;
|
|
294
407
|
page?: number;
|
|
295
408
|
pageSize?: number;
|
|
@@ -298,19 +411,27 @@ interface GetTextsParams {
|
|
|
298
411
|
useCursorPagination?: boolean;
|
|
299
412
|
cursorValue?: string;
|
|
300
413
|
cursorId?: string;
|
|
414
|
+
/** The end-user's username. */
|
|
301
415
|
username?: string;
|
|
416
|
+
/** 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. */
|
|
302
417
|
password?: string;
|
|
303
418
|
codename?: string;
|
|
304
419
|
type?: string;
|
|
305
420
|
}
|
|
306
421
|
interface GetUserParams {
|
|
422
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
307
423
|
preferredLanguage?: string;
|
|
424
|
+
/** The end-user's username. */
|
|
308
425
|
username?: string;
|
|
426
|
+
/** 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. */
|
|
309
427
|
password?: string;
|
|
310
428
|
}
|
|
311
429
|
interface UpdateUserParams {
|
|
430
|
+
/** BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages. */
|
|
312
431
|
preferredLanguage?: string;
|
|
432
|
+
/** The end-user's username. */
|
|
313
433
|
username?: string;
|
|
434
|
+
/** 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. */
|
|
314
435
|
password?: string;
|
|
315
436
|
email?: string;
|
|
316
437
|
emailVerificationCode?: string;
|
|
@@ -565,6 +686,6 @@ declare class MindUploadConnectionError extends MindUploadError {
|
|
|
565
686
|
constructor(message: string, options?: ErrorOptions);
|
|
566
687
|
}
|
|
567
688
|
|
|
568
|
-
declare const VERSION = "1.5.
|
|
689
|
+
declare const VERSION = "1.5.7";
|
|
569
690
|
|
|
570
691
|
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 CreateTextParams, DEFAULT_BASE_URL, type ErrorOptions, type GetChatParams, type GetChatroomMembershipParams, type GetChatroomMessagesParams, type GetChatroomsParams, type GetClonesParams, type GetMindClusterParams, type GetQuotaParams, type GetSoulmateReportParams, type GetTextsParams, type GetUserParams, type ListUploadPartsParams, type LoginParams, type LogoutParams, MindUpload, MindUploadBase, MindUploadConnectionError, MindUploadError, type RagParams, RateLimitError, type RateLimitOptions, type RegisterParams, type RequestMultipartUploadParams, type RequestUploadUrlParams, type Result, type SignUploadPartParams, type SignUploadPartsBatchParams, type TranslateChatroomMessageParams, type TriggerSocialParams, type UpdateCloneParams, type UpdateUserParams, VERSION };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mindupload",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
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",
|