@filen/sdk-rs 0.3.18 → 0.3.19
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/browser/sdk-rs.d.ts +235 -235
- package/browser/sdk-rs.js +403 -403
- package/browser/sdk-rs_bg.wasm +0 -0
- package/browser/sdk-rs_bg.wasm.d.ts +76 -76
- package/package.json +1 -1
package/browser/sdk-rs.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function fromStringified(serialized: StringifiedClient): Client;
|
|
3
4
|
export function main_js(): void;
|
|
4
5
|
export function login(email: string, password: string, twoFactorCode?: string | null): Promise<Client>;
|
|
5
|
-
export function fromStringified(serialized: StringifiedClient): Client;
|
|
6
6
|
/**
|
|
7
7
|
* The `ReadableStreamType` enum.
|
|
8
8
|
*
|
|
@@ -38,12 +38,13 @@ export interface FileMetaChanges {
|
|
|
38
38
|
created?: bigint | null;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
export type DirEnum = Dir | Root;
|
|
44
|
-
|
|
45
|
-
export interface Root {
|
|
41
|
+
export interface Dir {
|
|
46
42
|
uuid: UuidStr;
|
|
43
|
+
parent: ParentUuid;
|
|
44
|
+
color: DirColor;
|
|
45
|
+
timestamp: bigint;
|
|
46
|
+
favorited: boolean;
|
|
47
|
+
meta?: DecryptedDirMeta;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export interface DecryptedDirMeta {
|
|
@@ -53,44 +54,32 @@ export interface DecryptedDirMeta {
|
|
|
53
54
|
|
|
54
55
|
export type AnyDirEnumWithShareInfo = Dir | SharedDir | Root;
|
|
55
56
|
|
|
56
|
-
export
|
|
57
|
-
dir: DirWithMetaEnum;
|
|
58
|
-
sharingRole: SharingRole;
|
|
59
|
-
writeAccess: boolean;
|
|
60
|
-
}
|
|
57
|
+
export type DirWithMetaEnum = Dir | RootWithMeta;
|
|
61
58
|
|
|
62
|
-
export
|
|
59
|
+
export type DirColor = "default" | "blue" | "green" | "purple" | "red" | "gray" | string;
|
|
60
|
+
|
|
61
|
+
export type DirEnum = Dir | Root;
|
|
62
|
+
|
|
63
|
+
export interface RootWithMeta {
|
|
63
64
|
uuid: UuidStr;
|
|
64
|
-
parent: ParentUuid;
|
|
65
65
|
color: DirColor;
|
|
66
66
|
timestamp: bigint;
|
|
67
|
-
favorited: boolean;
|
|
68
67
|
meta?: DecryptedDirMeta;
|
|
69
68
|
}
|
|
70
69
|
|
|
71
|
-
export interface
|
|
70
|
+
export interface Root {
|
|
72
71
|
uuid: UuidStr;
|
|
73
|
-
color: DirColor;
|
|
74
|
-
timestamp: bigint;
|
|
75
|
-
meta?: DecryptedDirMeta;
|
|
76
72
|
}
|
|
77
73
|
|
|
78
|
-
export
|
|
74
|
+
export interface SharedDir {
|
|
75
|
+
dir: DirWithMetaEnum;
|
|
76
|
+
sharingRole: SharingRole;
|
|
77
|
+
writeAccess: boolean;
|
|
78
|
+
}
|
|
79
79
|
|
|
80
|
-
export type
|
|
80
|
+
export type AnyDirEnum = Dir | RootWithMeta | Root;
|
|
81
81
|
|
|
82
|
-
export
|
|
83
|
-
uuid: UuidStr;
|
|
84
|
-
meta?: DecryptedFileMeta;
|
|
85
|
-
parent: ParentUuid;
|
|
86
|
-
size: bigint;
|
|
87
|
-
favorited: boolean;
|
|
88
|
-
region: string;
|
|
89
|
-
bucket: string;
|
|
90
|
-
timestamp: bigint;
|
|
91
|
-
chunks: bigint;
|
|
92
|
-
canMakeThumbnail: boolean;
|
|
93
|
-
}
|
|
82
|
+
export type FileEnum = File | RootFile;
|
|
94
83
|
|
|
95
84
|
export interface RootFile {
|
|
96
85
|
uuid: UuidStr;
|
|
@@ -108,7 +97,18 @@ export interface SharedFile {
|
|
|
108
97
|
sharingRole: SharingRole;
|
|
109
98
|
}
|
|
110
99
|
|
|
111
|
-
export
|
|
100
|
+
export interface File {
|
|
101
|
+
uuid: UuidStr;
|
|
102
|
+
meta?: DecryptedFileMeta;
|
|
103
|
+
parent: ParentUuid;
|
|
104
|
+
size: bigint;
|
|
105
|
+
favorited: boolean;
|
|
106
|
+
region: string;
|
|
107
|
+
bucket: string;
|
|
108
|
+
timestamp: bigint;
|
|
109
|
+
chunks: bigint;
|
|
110
|
+
canMakeThumbnail: boolean;
|
|
111
|
+
}
|
|
112
112
|
|
|
113
113
|
export interface DecryptedFileMeta {
|
|
114
114
|
name: string;
|
|
@@ -155,15 +155,13 @@ export interface Chat {
|
|
|
155
155
|
lastFocus: bigint;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
export interface
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
appearOffline: boolean;
|
|
166
|
-
lastActive: bigint;
|
|
158
|
+
export interface ChatMessage extends ChatMessagePartial {
|
|
159
|
+
chat: UuidStr;
|
|
160
|
+
replyTo?: ChatMessagePartial;
|
|
161
|
+
embedDisabled: boolean;
|
|
162
|
+
edited: boolean;
|
|
163
|
+
editedTimestamp: bigint;
|
|
164
|
+
sentTimestamp: bigint;
|
|
167
165
|
}
|
|
168
166
|
|
|
169
167
|
export interface ChatMessagePartial {
|
|
@@ -175,21 +173,28 @@ export interface ChatMessagePartial {
|
|
|
175
173
|
message?: string;
|
|
176
174
|
}
|
|
177
175
|
|
|
178
|
-
export interface
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
176
|
+
export interface ChatParticipant {
|
|
177
|
+
userId: bigint;
|
|
178
|
+
email: string;
|
|
179
|
+
avatar?: string;
|
|
180
|
+
nickName: string;
|
|
181
|
+
permissionsAdd: boolean;
|
|
182
|
+
added: bigint;
|
|
183
|
+
appearOffline: boolean;
|
|
184
|
+
lastActive: bigint;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
export
|
|
187
|
+
export interface UploadFileParams extends FileBuilderParams {
|
|
188
|
+
managedFuture?: ManagedFuture;
|
|
189
|
+
}
|
|
188
190
|
|
|
189
|
-
export interface
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
export interface DownloadFileStreamParams {
|
|
192
|
+
file: FileEnum;
|
|
193
|
+
writer: WritableStream<Uint8Array>;
|
|
192
194
|
progress?: (bytes: bigint) => void;
|
|
195
|
+
start?: bigint;
|
|
196
|
+
end?: bigint;
|
|
197
|
+
managedFuture?: ManagedFuture;
|
|
193
198
|
}
|
|
194
199
|
|
|
195
200
|
export interface DownloadFileToZipParams {
|
|
@@ -207,35 +212,21 @@ export interface FileBuilderParams {
|
|
|
207
212
|
mime?: string;
|
|
208
213
|
}
|
|
209
214
|
|
|
210
|
-
export
|
|
211
|
-
file: FileEnum;
|
|
212
|
-
writer: WritableStream<Uint8Array>;
|
|
213
|
-
progress?: (bytes: bigint) => void;
|
|
214
|
-
start?: bigint;
|
|
215
|
-
end?: bigint;
|
|
216
|
-
managedFuture?: ManagedFuture;
|
|
217
|
-
}
|
|
215
|
+
export type NonRootItem = File | Dir;
|
|
218
216
|
|
|
219
|
-
export interface
|
|
220
|
-
|
|
217
|
+
export interface UploadFileStreamParams extends UploadFileParams {
|
|
218
|
+
reader: ReadableStream<Uint8Array>;
|
|
219
|
+
knownSize: bigint | undefined;
|
|
220
|
+
progress?: (bytes: bigint) => void;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
export interface
|
|
224
|
-
|
|
225
|
-
ownerId: bigint;
|
|
226
|
-
lastEditorId: bigint;
|
|
227
|
-
favorite: boolean;
|
|
228
|
-
pinned: boolean;
|
|
229
|
-
tags: NoteTag[];
|
|
230
|
-
noteType: NoteType;
|
|
231
|
-
encryptionKey?: string;
|
|
232
|
-
title?: string;
|
|
223
|
+
export interface NoteHistory {
|
|
224
|
+
id: bigint;
|
|
233
225
|
preview?: string;
|
|
234
|
-
|
|
235
|
-
archive: boolean;
|
|
236
|
-
createdTimestamp: bigint;
|
|
226
|
+
content?: string;
|
|
237
227
|
editedTimestamp: bigint;
|
|
238
|
-
|
|
228
|
+
editorId: bigint;
|
|
229
|
+
noteType: NoteType;
|
|
239
230
|
}
|
|
240
231
|
|
|
241
232
|
export interface NoteTag {
|
|
@@ -256,13 +247,22 @@ export interface NoteParticipant {
|
|
|
256
247
|
addedTimestamp: bigint;
|
|
257
248
|
}
|
|
258
249
|
|
|
259
|
-
export interface
|
|
260
|
-
|
|
250
|
+
export interface Note {
|
|
251
|
+
uuid: UuidStr;
|
|
252
|
+
ownerId: bigint;
|
|
253
|
+
lastEditorId: bigint;
|
|
254
|
+
favorite: boolean;
|
|
255
|
+
pinned: boolean;
|
|
256
|
+
tags: NoteTag[];
|
|
257
|
+
noteType: NoteType;
|
|
258
|
+
encryptionKey?: string;
|
|
259
|
+
title?: string;
|
|
261
260
|
preview?: string;
|
|
262
|
-
|
|
261
|
+
trash: boolean;
|
|
262
|
+
archive: boolean;
|
|
263
|
+
createdTimestamp: bigint;
|
|
263
264
|
editedTimestamp: bigint;
|
|
264
|
-
|
|
265
|
-
noteType: NoteType;
|
|
265
|
+
participants: NoteParticipant[];
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
export interface AcquireLockParams {
|
|
@@ -283,48 +283,48 @@ export interface MakeThumbnailInMemoryParams {
|
|
|
283
283
|
maxHeight: number;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
export interface
|
|
286
|
+
export interface ContactRequestIn {
|
|
287
287
|
uuid: UuidStr;
|
|
288
288
|
userId: bigint;
|
|
289
289
|
email: string;
|
|
290
290
|
avatar?: string;
|
|
291
291
|
nickName: string;
|
|
292
|
-
timestamp: bigint;
|
|
293
292
|
}
|
|
294
293
|
|
|
295
|
-
export interface
|
|
294
|
+
export interface ContactRequestOut {
|
|
296
295
|
uuid: UuidStr;
|
|
297
|
-
userId: bigint;
|
|
298
296
|
email: string;
|
|
299
297
|
avatar?: string;
|
|
300
298
|
nickName: string;
|
|
301
|
-
lastActive: bigint;
|
|
302
|
-
timestamp: bigint;
|
|
303
|
-
publicKey: string;
|
|
304
299
|
}
|
|
305
300
|
|
|
306
|
-
export interface
|
|
301
|
+
export interface BlockedContact {
|
|
307
302
|
uuid: UuidStr;
|
|
303
|
+
userId: bigint;
|
|
308
304
|
email: string;
|
|
309
305
|
avatar?: string;
|
|
310
306
|
nickName: string;
|
|
307
|
+
timestamp: bigint;
|
|
311
308
|
}
|
|
312
309
|
|
|
313
|
-
export interface
|
|
310
|
+
export interface Contact {
|
|
314
311
|
uuid: UuidStr;
|
|
315
312
|
userId: bigint;
|
|
316
313
|
email: string;
|
|
317
314
|
avatar?: string;
|
|
318
315
|
nickName: string;
|
|
316
|
+
lastActive: bigint;
|
|
317
|
+
timestamp: bigint;
|
|
318
|
+
publicKey: string;
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
+
export type SharingRole = ({ role: "sharer" } & ShareInfo) | ({ role: "receiver" } & ShareInfo);
|
|
322
|
+
|
|
321
323
|
export interface ShareInfo {
|
|
322
324
|
email: string;
|
|
323
325
|
id: number;
|
|
324
326
|
}
|
|
325
327
|
|
|
326
|
-
export type SharingRole = ({ role: "sharer" } & ShareInfo) | ({ role: "receiver" } & ShareInfo);
|
|
327
|
-
|
|
328
328
|
export interface DuplicateNoteResponse {
|
|
329
329
|
original: Note;
|
|
330
330
|
duplicated: Note;
|
|
@@ -335,14 +335,14 @@ export interface ItemMatch {
|
|
|
335
335
|
path: string;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
export type NonRootItemTagged = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
|
|
339
|
-
|
|
340
338
|
export interface DirSizeResponse {
|
|
341
339
|
size: bigint;
|
|
342
340
|
files: bigint;
|
|
343
341
|
dirs: bigint;
|
|
344
342
|
}
|
|
345
343
|
|
|
344
|
+
export type NonRootItemTagged = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
|
|
345
|
+
|
|
346
346
|
export type UuidStr = string;
|
|
347
347
|
|
|
348
348
|
export type ParentUuid = UuidStr | "trash" | "recents" | "favorites" | "links";
|
|
@@ -362,101 +362,101 @@ export class Client {
|
|
|
362
362
|
lockDrive(): Promise<ResourceLock>;
|
|
363
363
|
acquireLock(params: AcquireLockParams): Promise<ResourceLock>;
|
|
364
364
|
makeThumbnailInMemory(params: MakeThumbnailInMemoryParams): Promise<MakeThumbnailInMemoryResult | undefined>;
|
|
365
|
-
|
|
366
|
-
updateDirLink(dir: Dir, link: DirPublicLink): Promise<void>;
|
|
367
|
-
removeDirLink(link: DirPublicLink): Promise<void>;
|
|
368
|
-
removeSharedLinkOut(link_uuid: string, receiver_id: bigint): Promise<void>;
|
|
365
|
+
publicLinkDir(dir: Dir): Promise<DirPublicLink>;
|
|
369
366
|
updateFileLink(file: File, link: FilePublicLink): Promise<void>;
|
|
367
|
+
getContacts(): Promise<Contact[]>;
|
|
368
|
+
publicLinkFile(file: File): Promise<FilePublicLink>;
|
|
369
|
+
sendContactRequest(email: string): Promise<string>;
|
|
370
|
+
acceptContactRequest(contact_uuid: string): Promise<string>;
|
|
371
|
+
removeSharedLinkOut(link_uuid: string, receiver_id: bigint): Promise<void>;
|
|
372
|
+
removeSharedLinkIn(link_uuid: string): Promise<void>;
|
|
373
|
+
listOutShared(dir?: DirWithMetaEnum | null, contact?: Contact | null): Promise<[SharedDirectory[], SharedFile[]]>;
|
|
374
|
+
listInShared(dir?: DirWithMetaEnum | null): Promise<[SharedDirectory[], SharedFile[]]>;
|
|
375
|
+
listOutgoingContactRequests(): Promise<ContactRequestOut[]>;
|
|
376
|
+
listLinkedDir(dir: DirWithMetaEnum, link: DirPublicLink): Promise<[Dir[], File[]]>;
|
|
377
|
+
getBlockedContacts(): Promise<BlockedContact[]>;
|
|
370
378
|
shareFile(file: File, contact: Contact): Promise<void>;
|
|
379
|
+
removeDirLink(link: DirPublicLink): Promise<void>;
|
|
380
|
+
shareDir(dir: Dir, contact: Contact): Promise<void>;
|
|
381
|
+
deleteContact(contact_uuid: string): Promise<void>;
|
|
371
382
|
listIncomingContactRequests(): Promise<ContactRequestIn[]>;
|
|
372
383
|
denyContactRequest(contact_uuid: string): Promise<void>;
|
|
373
384
|
getDirLinkStatus(dir: Dir): Promise<DirPublicLink | undefined>;
|
|
374
|
-
|
|
375
|
-
removeSharedLinkIn(link_uuid: string): Promise<void>;
|
|
376
|
-
getBlockedContacts(): Promise<BlockedContact[]>;
|
|
377
|
-
deleteContact(contact_uuid: string): Promise<void>;
|
|
378
|
-
acceptContactRequest(contact_uuid: string): Promise<string>;
|
|
379
|
-
listInShared(dir?: DirWithMetaEnum | null): Promise<[SharedDirectory[], SharedFile[]]>;
|
|
380
|
-
getContacts(): Promise<Contact[]>;
|
|
381
|
-
blockContact(email: string): Promise<string>;
|
|
382
|
-
unblockContact(contact_uuid: string): Promise<void>;
|
|
383
|
-
listOutShared(dir?: DirWithMetaEnum | null, contact?: Contact | null): Promise<[SharedDirectory[], SharedFile[]]>;
|
|
384
|
-
sendContactRequest(email: string): Promise<string>;
|
|
385
|
-
publicLinkDir(dir: Dir): Promise<DirPublicLink>;
|
|
385
|
+
updateDirLink(dir: Dir, link: DirPublicLink): Promise<void>;
|
|
386
386
|
getFileLinkStatus(file: File): Promise<FilePublicLink | undefined>;
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
387
|
+
unblockContact(contact_uuid: string): Promise<void>;
|
|
388
|
+
blockContact(email: string): Promise<string>;
|
|
389
|
+
cancelContactRequest(contact_uuid: string): Promise<void>;
|
|
390
|
+
root(): Root;
|
|
391
|
+
listDirRecursive(dir: DirEnum): Promise<[Dir[], File[]]>;
|
|
392
|
+
getDir(uuid: string): Promise<Dir>;
|
|
393
|
+
setDirColor(dir: Dir, color: DirColor): Promise<Dir>;
|
|
390
394
|
listDir(dir: DirEnum): Promise<[Dir[], File[]]>;
|
|
391
|
-
dirExists(parent: AnyDirEnum, name: string): Promise<void>;
|
|
392
395
|
listFavorites(): Promise<[Dir[], File[]]>;
|
|
393
|
-
trashDir(dir: Dir): Promise<Dir>;
|
|
394
|
-
deleteDirPermanently(dir: Dir): Promise<void>;
|
|
395
|
-
findItemInDir(dir: AnyDirEnum, nameOrUuid: string): Promise<NonRootItemTagged | undefined>;
|
|
396
396
|
createDir(parent: DirEnum, name: string): Promise<Dir>;
|
|
397
|
-
|
|
398
|
-
getDirSize(dir: AnyDirEnumWithShareInfo): Promise<DirSizeResponse>;
|
|
397
|
+
deleteDirPermanently(dir: Dir): Promise<void>;
|
|
399
398
|
updateDirMetadata(dir: Dir, changes: DirectoryMetaChanges): Promise<Dir>;
|
|
400
|
-
root(): Root;
|
|
401
|
-
getDir(uuid: string): Promise<Dir>;
|
|
402
|
-
setDirColor(dir: Dir, color: DirColor): Promise<Dir>;
|
|
403
399
|
listRecents(): Promise<[Dir[], File[]]>;
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
setNoteContent(note: Note, new_content: string, new_preview: string): Promise<Note>;
|
|
400
|
+
trashDir(dir: Dir): Promise<Dir>;
|
|
401
|
+
getDirSize(dir: AnyDirEnumWithShareInfo): Promise<DirSizeResponse>;
|
|
402
|
+
dirExists(parent: AnyDirEnum, name: string): Promise<void>;
|
|
403
|
+
findItemInDir(dir: AnyDirEnum, nameOrUuid: string): Promise<NonRootItemTagged | undefined>;
|
|
409
404
|
setNoteParticipantPermission(noteUuid: string, participant: NoteParticipant, write: boolean): Promise<NoteParticipant>;
|
|
405
|
+
listNoteTags(): Promise<NoteTag[]>;
|
|
410
406
|
setNoteTagFavorited(tag: NoteTag, favorite: boolean): Promise<NoteTag>;
|
|
411
|
-
|
|
407
|
+
addTagToNote(note: Note, tag: NoteTag): Promise<[Note, NoteTag]>;
|
|
408
|
+
createNoteTag(name: string): Promise<NoteTag>;
|
|
409
|
+
restoreNote(note: Note): Promise<Note>;
|
|
410
|
+
getNoteContent(note: Note): Promise<string | undefined>;
|
|
411
|
+
removeTagFromNote(note: Note, tag: NoteTag): Promise<Note>;
|
|
412
412
|
removeNoteParticipant(note: Note, participant_id: bigint): Promise<Note>;
|
|
413
|
+
restoreNoteFromHistory(note: Note, history: NoteHistory): Promise<Note>;
|
|
414
|
+
setNoteType(note: Note, note_type: NoteType, known_content?: string | null): Promise<Note>;
|
|
415
|
+
trashNote(note: Note): Promise<Note>;
|
|
416
|
+
setNoteContent(note: Note, new_content: string, new_preview: string): Promise<Note>;
|
|
417
|
+
deleteNote(note: Note): Promise<void>;
|
|
418
|
+
getNoteHistory(note: Note): Promise<NoteHistory[]>;
|
|
419
|
+
setNotePinned(note: Note, pinned: boolean): Promise<Note>;
|
|
420
|
+
duplicateNote(note: Note): Promise<DuplicateNoteResponse>;
|
|
413
421
|
deleteNoteTag(tag: NoteTag): Promise<void>;
|
|
414
|
-
listNotes(): Promise<Note[]>;
|
|
415
|
-
getNoteContent(note: Note): Promise<string | undefined>;
|
|
416
422
|
setNoteTitle(note: Note, new_title: string): Promise<Note>;
|
|
423
|
+
setNoteFavorited(note: Note, favorite: boolean): Promise<Note>;
|
|
424
|
+
createNote(title?: string | null): Promise<Note>;
|
|
417
425
|
archiveNote(note: Note): Promise<Note>;
|
|
418
|
-
restoreNoteFromHistory(note: Note, history: NoteHistory): Promise<Note>;
|
|
419
426
|
addNoteParticipant(note: Note, contact: Contact, write: boolean): Promise<Note>;
|
|
420
|
-
|
|
421
|
-
listNoteTags(): Promise<NoteTag[]>;
|
|
422
|
-
setNoteFavorited(note: Note, favorite: boolean): Promise<Note>;
|
|
423
|
-
setNoteType(note: Note, note_type: NoteType, known_content?: string | null): Promise<Note>;
|
|
424
|
-
restoreNote(note: Note): Promise<Note>;
|
|
425
|
-
duplicateNote(note: Note): Promise<DuplicateNoteResponse>;
|
|
427
|
+
listNotes(): Promise<Note[]>;
|
|
426
428
|
renameNoteTag(tag: NoteTag, new_name: string): Promise<NoteTag>;
|
|
427
|
-
|
|
428
|
-
setNotePinned(note: Note, pinned: boolean): Promise<Note>;
|
|
429
|
-
addTagToNote(note: Note, tag: NoteTag): Promise<[Note, NoteTag]>;
|
|
429
|
+
getNote(note_uuid: string): Promise<Note | undefined>;
|
|
430
430
|
findItemMatchesForName(name: string): Promise<ItemMatch[]>;
|
|
431
|
-
|
|
432
|
-
listChats(): Promise<Chat[]>;
|
|
433
|
-
leaveChat(chat: Chat): Promise<void>;
|
|
431
|
+
getChat(uuid: string): Promise<Chat | undefined>;
|
|
434
432
|
createChat(contacts: Contact[]): Promise<Chat>;
|
|
435
|
-
|
|
436
|
-
|
|
433
|
+
markChatRead(chat: Chat): Promise<void>;
|
|
434
|
+
listChats(): Promise<Chat[]>;
|
|
437
435
|
deleteMessage(chat: Chat, message: ChatMessage): Promise<Chat>;
|
|
438
|
-
getChat(uuid: string): Promise<Chat | undefined>;
|
|
439
|
-
sendTypingSignal(chat: Chat, signal_type: ChatTypingType): Promise<void>;
|
|
440
436
|
editMessage(chat: Chat, message: ChatMessage, new_message: string): Promise<ChatMessage>;
|
|
441
|
-
|
|
437
|
+
sendTypingSignal(chat: Chat, signal_type: ChatTypingType): Promise<void>;
|
|
442
438
|
getChatUnreadCount(chat: Chat): Promise<bigint>;
|
|
439
|
+
updateChatOnlineStatus(chat: Chat): Promise<Chat>;
|
|
440
|
+
renameChat(chat: Chat, new_name: string): Promise<Chat>;
|
|
441
|
+
leaveChat(chat: Chat): Promise<void>;
|
|
442
|
+
listMessages(chat: Chat): Promise<ChatMessage[]>;
|
|
443
|
+
listMessagesBefore(chat: Chat, before: bigint): Promise<ChatMessage[]>;
|
|
444
|
+
getAllChatsUnreadCount(): Promise<bigint>;
|
|
445
|
+
deleteChat(chat: Chat): Promise<void>;
|
|
443
446
|
disableMessageEmbed(message: ChatMessage): Promise<ChatMessage>;
|
|
447
|
+
sendChatMessage(chat: Chat, message: string, reply_to?: ChatMessagePartial | null): Promise<Chat>;
|
|
448
|
+
updateLastChatFocusTimesNow(chats: Chat[]): Promise<Chat[]>;
|
|
444
449
|
muteChat(chat: Chat, mute: boolean): Promise<Chat>;
|
|
445
450
|
addChatParticipant(chat: Chat, contact: Contact): Promise<Chat>;
|
|
446
|
-
updateLastChatFocusTimesNow(chats: Chat[]): Promise<Chat[]>;
|
|
447
451
|
removeChatParticipant(chat: Chat, contact: Contact): Promise<Chat>;
|
|
448
|
-
|
|
449
|
-
markChatRead(chat: Chat): Promise<void>;
|
|
450
|
-
listMessagesBefore(chat: Chat, before: bigint): Promise<ChatMessage[]>;
|
|
451
|
-
renameChat(chat: Chat, new_name: string): Promise<Chat>;
|
|
452
|
+
uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
|
|
452
453
|
trashFile(file: File): Promise<File>;
|
|
453
|
-
updateFileMetadata(file: File, changes: FileMetaChanges): Promise<File>;
|
|
454
|
-
uploadFile(data: Uint8Array, params: UploadFileParams): Promise<File>;
|
|
455
|
-
getFile(uuid: string): Promise<File>;
|
|
456
454
|
downloadFileToWriter(params: DownloadFileStreamParams): Promise<void>;
|
|
455
|
+
updateFileMetadata(file: File, changes: FileMetaChanges): Promise<File>;
|
|
457
456
|
deleteFilePermanently(file: File): Promise<void>;
|
|
458
|
-
uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
|
|
459
457
|
downloadFile(file: FileEnum): Promise<Uint8Array>;
|
|
458
|
+
getFile(uuid: string): Promise<File>;
|
|
459
|
+
uploadFile(data: Uint8Array, params: UploadFileParams): Promise<File>;
|
|
460
460
|
setFavorite(item: NonRootItem, favorited: boolean): Promise<NonRootItemTagged>;
|
|
461
461
|
downloadItemsToZip(params: DownloadFileToZipParams): Promise<void>;
|
|
462
462
|
}
|
|
@@ -493,8 +493,8 @@ export class IntoUnderlyingSource {
|
|
|
493
493
|
}
|
|
494
494
|
export class PauseSignal {
|
|
495
495
|
free(): void;
|
|
496
|
-
pause(): void;
|
|
497
496
|
isPaused(): boolean;
|
|
497
|
+
pause(): void;
|
|
498
498
|
constructor();
|
|
499
499
|
resume(): void;
|
|
500
500
|
}
|
|
@@ -517,118 +517,118 @@ export interface InitOutput {
|
|
|
517
517
|
readonly memory: WebAssembly.Memory;
|
|
518
518
|
readonly client_toStringified: (a: number) => any;
|
|
519
519
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
520
|
-
readonly pausesignal_pause: (a: number) => void;
|
|
521
|
-
readonly __wbg_pausesignal_free: (a: number, b: number) => void;
|
|
522
|
-
readonly pausesignal_resume: (a: number) => void;
|
|
523
520
|
readonly pausesignal_new: () => number;
|
|
521
|
+
readonly __wbg_pausesignal_free: (a: number, b: number) => void;
|
|
524
522
|
readonly pausesignal_isPaused: (a: number) => number;
|
|
525
|
-
readonly
|
|
523
|
+
readonly pausesignal_resume: (a: number) => void;
|
|
524
|
+
readonly pausesignal_pause: (a: number) => void;
|
|
526
525
|
readonly __wbg_filensdkerror_free: (a: number, b: number) => void;
|
|
526
|
+
readonly filensdkerror_toString: (a: number) => [number, number];
|
|
527
527
|
readonly filensdkerror_kind: (a: number) => any;
|
|
528
|
-
readonly
|
|
529
|
-
readonly client_lockDrive: (a: number) => any;
|
|
528
|
+
readonly client_acquireLock: (a: number, b: any) => any;
|
|
530
529
|
readonly __wbg_resourcelock_free: (a: number, b: number) => void;
|
|
530
|
+
readonly client_lockDrive: (a: number) => any;
|
|
531
531
|
readonly resourcelock_resource: (a: number) => [number, number];
|
|
532
|
-
readonly
|
|
532
|
+
readonly resourcelock_drop: (a: number) => void;
|
|
533
533
|
readonly client_makeThumbnailInMemory: (a: number, b: any) => any;
|
|
534
|
-
readonly client_getFileLinkStatus: (a: number, b: any) => any;
|
|
535
|
-
readonly client_removeSharedLinkOut: (a: number, b: number, c: number, d: bigint) => any;
|
|
536
|
-
readonly client_updateFileLink: (a: number, b: any, c: any) => any;
|
|
537
534
|
readonly client_unblockContact: (a: number, b: number, c: number) => any;
|
|
535
|
+
readonly client_removeSharedLinkIn: (a: number, b: number, c: number) => any;
|
|
536
|
+
readonly client_updateFileLink: (a: number, b: any, c: any) => any;
|
|
537
|
+
readonly client_listOutShared: (a: number, b: number, c: number) => any;
|
|
538
|
+
readonly client_listIncomingContactRequests: (a: number) => any;
|
|
539
|
+
readonly client_removeSharedLinkOut: (a: number, b: number, c: number, d: bigint) => any;
|
|
540
|
+
readonly client_getContacts: (a: number) => any;
|
|
541
|
+
readonly client_acceptContactRequest: (a: number, b: number, c: number) => any;
|
|
542
|
+
readonly client_getFileLinkStatus: (a: number, b: any) => any;
|
|
538
543
|
readonly client_listOutgoingContactRequests: (a: number) => any;
|
|
539
|
-
readonly
|
|
540
|
-
readonly
|
|
544
|
+
readonly client_deleteContact: (a: number, b: number, c: number) => any;
|
|
545
|
+
readonly client_publicLinkFile: (a: number, b: any) => any;
|
|
546
|
+
readonly client_listInShared: (a: number, b: number) => any;
|
|
541
547
|
readonly client_updateDirLink: (a: number, b: any, c: any) => any;
|
|
542
548
|
readonly client_shareDir: (a: number, b: any, c: any) => any;
|
|
543
|
-
readonly
|
|
544
|
-
readonly
|
|
549
|
+
readonly client_cancelContactRequest: (a: number, b: number, c: number) => any;
|
|
550
|
+
readonly client_blockContact: (a: number, b: number, c: number) => any;
|
|
545
551
|
readonly client_denyContactRequest: (a: number, b: number, c: number) => any;
|
|
546
|
-
readonly
|
|
552
|
+
readonly client_sendContactRequest: (a: number, b: number, c: number) => any;
|
|
547
553
|
readonly client_listLinkedDir: (a: number, b: any, c: any) => any;
|
|
548
|
-
readonly
|
|
549
|
-
readonly
|
|
550
|
-
readonly client_listIncomingContactRequests: (a: number) => any;
|
|
551
|
-
readonly client_publicLinkFile: (a: number, b: any) => any;
|
|
552
|
-
readonly client_acceptContactRequest: (a: number, b: number, c: number) => any;
|
|
554
|
+
readonly client_getBlockedContacts: (a: number) => any;
|
|
555
|
+
readonly client_getDirLinkStatus: (a: number, b: any) => any;
|
|
553
556
|
readonly client_removeDirLink: (a: number, b: any) => any;
|
|
554
|
-
readonly client_getContacts: (a: number) => any;
|
|
555
557
|
readonly client_publicLinkDir: (a: number, b: any) => any;
|
|
556
558
|
readonly client_shareFile: (a: number, b: any, c: any) => any;
|
|
557
|
-
readonly client_sendContactRequest: (a: number, b: number, c: number) => any;
|
|
558
|
-
readonly client_cancelContactRequest: (a: number, b: number, c: number) => any;
|
|
559
|
-
readonly login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
560
|
-
readonly fromStringified: (a: any) => [number, number, number];
|
|
561
559
|
readonly main_js: () => void;
|
|
562
|
-
readonly
|
|
563
|
-
readonly
|
|
560
|
+
readonly fromStringified: (a: any) => [number, number, number];
|
|
561
|
+
readonly login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
562
|
+
readonly client_listDirRecursive: (a: number, b: any) => any;
|
|
564
563
|
readonly client_getDir: (a: number, b: number, c: number) => any;
|
|
565
|
-
readonly
|
|
566
|
-
readonly
|
|
564
|
+
readonly client_getDirSize: (a: number, b: any) => any;
|
|
565
|
+
readonly client_deleteDirPermanently: (a: number, b: any) => any;
|
|
566
|
+
readonly client_findItemInDir: (a: number, b: any, c: number, d: number) => any;
|
|
567
|
+
readonly client_listDir: (a: number, b: any) => any;
|
|
567
568
|
readonly client_listFavorites: (a: number) => any;
|
|
569
|
+
readonly client_dirExists: (a: number, b: any, c: number, d: number) => any;
|
|
568
570
|
readonly client_updateDirMetadata: (a: number, b: any, c: any) => any;
|
|
571
|
+
readonly client_listRecents: (a: number) => any;
|
|
569
572
|
readonly client_createDir: (a: number, b: any, c: number, d: number) => any;
|
|
570
|
-
readonly
|
|
571
|
-
readonly client_deleteDirPermanently: (a: number, b: any) => any;
|
|
573
|
+
readonly client_root: (a: number) => any;
|
|
572
574
|
readonly client_trashDir: (a: number, b: any) => any;
|
|
573
|
-
readonly
|
|
574
|
-
readonly
|
|
575
|
-
readonly
|
|
576
|
-
readonly
|
|
575
|
+
readonly client_setDirColor: (a: number, b: any, c: any) => any;
|
|
576
|
+
readonly client_setNoteTagFavorited: (a: number, b: any, c: number) => any;
|
|
577
|
+
readonly client_setNoteFavorited: (a: number, b: any, c: number) => any;
|
|
578
|
+
readonly client_setNoteType: (a: number, b: any, c: any, d: number, e: number) => any;
|
|
579
|
+
readonly client_trashNote: (a: number, b: any) => any;
|
|
577
580
|
readonly client_getNote: (a: number, b: number, c: number) => any;
|
|
578
|
-
readonly
|
|
581
|
+
readonly client_setNoteContent: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
582
|
+
readonly client_setNoteParticipantPermission: (a: number, b: number, c: number, d: any, e: number) => any;
|
|
579
583
|
readonly client_listNoteTags: (a: number) => any;
|
|
584
|
+
readonly client_deleteNote: (a: number, b: any) => any;
|
|
585
|
+
readonly client_removeTagFromNote: (a: number, b: any, c: any) => any;
|
|
586
|
+
readonly client_duplicateNote: (a: number, b: any) => any;
|
|
580
587
|
readonly client_addNoteParticipant: (a: number, b: any, c: any, d: number) => any;
|
|
581
|
-
readonly client_restoreNoteFromHistory: (a: number, b: any, c: any) => any;
|
|
582
|
-
readonly client_trashNote: (a: number, b: any) => any;
|
|
583
|
-
readonly client_setNotePinned: (a: number, b: any, c: number) => any;
|
|
584
|
-
readonly client_setNoteParticipantPermission: (a: number, b: number, c: number, d: any, e: number) => any;
|
|
585
|
-
readonly client_setNoteTitle: (a: number, b: any, c: number, d: number) => any;
|
|
586
|
-
readonly client_getNoteHistory: (a: number, b: any) => any;
|
|
587
|
-
readonly client_createNoteTag: (a: number, b: number, c: number) => any;
|
|
588
|
-
readonly client_renameNoteTag: (a: number, b: any, c: number, d: number) => any;
|
|
589
588
|
readonly client_listNotes: (a: number) => any;
|
|
590
|
-
readonly client_archiveNote: (a: number, b: any) => any;
|
|
591
589
|
readonly client_restoreNote: (a: number, b: any) => any;
|
|
592
|
-
readonly client_setNoteType: (a: number, b: any, c: any, d: number, e: number) => any;
|
|
593
|
-
readonly client_duplicateNote: (a: number, b: any) => any;
|
|
594
|
-
readonly client_setNoteContent: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
595
|
-
readonly client_getNoteContent: (a: number, b: any) => any;
|
|
596
|
-
readonly client_setNoteFavorited: (a: number, b: any, c: number) => any;
|
|
597
590
|
readonly client_deleteNoteTag: (a: number, b: any) => any;
|
|
598
|
-
readonly
|
|
591
|
+
readonly client_setNoteTitle: (a: number, b: any, c: number, d: number) => any;
|
|
592
|
+
readonly client_getNoteHistory: (a: number, b: any) => any;
|
|
599
593
|
readonly client_removeNoteParticipant: (a: number, b: any, c: bigint) => any;
|
|
600
|
-
readonly
|
|
601
|
-
readonly
|
|
594
|
+
readonly client_renameNoteTag: (a: number, b: any, c: number, d: number) => any;
|
|
595
|
+
readonly client_createNoteTag: (a: number, b: number, c: number) => any;
|
|
596
|
+
readonly client_restoreNoteFromHistory: (a: number, b: any, c: any) => any;
|
|
597
|
+
readonly client_getNoteContent: (a: number, b: any) => any;
|
|
598
|
+
readonly client_addTagToNote: (a: number, b: any, c: any) => any;
|
|
599
|
+
readonly client_createNote: (a: number, b: number, c: number) => any;
|
|
600
|
+
readonly client_setNotePinned: (a: number, b: any, c: number) => any;
|
|
601
|
+
readonly client_archiveNote: (a: number, b: any) => any;
|
|
602
602
|
readonly client_findItemMatchesForName: (a: number, b: number, c: number) => any;
|
|
603
|
-
readonly
|
|
604
|
-
readonly
|
|
605
|
-
readonly
|
|
603
|
+
readonly client_muteChat: (a: number, b: any, c: number) => any;
|
|
604
|
+
readonly client_removeChatParticipant: (a: number, b: any, c: any) => any;
|
|
605
|
+
readonly client_deleteMessage: (a: number, b: any, c: any) => any;
|
|
606
|
+
readonly client_getChat: (a: number, b: number, c: number) => any;
|
|
607
|
+
readonly client_sendTypingSignal: (a: number, b: any, c: any) => any;
|
|
608
|
+
readonly client_editMessage: (a: number, b: any, c: any, d: number, e: number) => any;
|
|
609
|
+
readonly client_leaveChat: (a: number, b: any) => any;
|
|
606
610
|
readonly client_updateChatOnlineStatus: (a: number, b: any) => any;
|
|
611
|
+
readonly client_listMessagesBefore: (a: number, b: any, c: bigint) => any;
|
|
612
|
+
readonly client_deleteChat: (a: number, b: any) => any;
|
|
613
|
+
readonly client_renameChat: (a: number, b: any, c: number, d: number) => any;
|
|
614
|
+
readonly client_updateLastChatFocusTimesNow: (a: number, b: number, c: number) => any;
|
|
615
|
+
readonly client_markChatRead: (a: number, b: any) => any;
|
|
616
|
+
readonly client_createChat: (a: number, b: number, c: number) => any;
|
|
617
|
+
readonly client_listChats: (a: number) => any;
|
|
607
618
|
readonly client_getChatUnreadCount: (a: number, b: any) => any;
|
|
608
619
|
readonly client_addChatParticipant: (a: number, b: any, c: any) => any;
|
|
609
|
-
readonly
|
|
620
|
+
readonly client_disableMessageEmbed: (a: number, b: any) => any;
|
|
610
621
|
readonly client_sendChatMessage: (a: number, b: any, c: number, d: number, e: number) => any;
|
|
611
|
-
readonly client_renameChat: (a: number, b: any, c: number, d: number) => any;
|
|
612
|
-
readonly client_getChat: (a: number, b: number, c: number) => any;
|
|
613
|
-
readonly client_updateLastChatFocusTimesNow: (a: number, b: number, c: number) => any;
|
|
614
|
-
readonly client_deleteChat: (a: number, b: any) => any;
|
|
615
|
-
readonly client_editMessage: (a: number, b: any, c: any, d: number, e: number) => any;
|
|
616
|
-
readonly client_listMessagesBefore: (a: number, b: any, c: bigint) => any;
|
|
617
|
-
readonly client_sendTypingSignal: (a: number, b: any, c: any) => any;
|
|
618
|
-
readonly client_deleteMessage: (a: number, b: any, c: any) => any;
|
|
619
622
|
readonly client_listMessages: (a: number, b: any) => any;
|
|
620
|
-
readonly
|
|
621
|
-
readonly client_muteChat: (a: number, b: any, c: number) => any;
|
|
622
|
-
readonly client_markChatRead: (a: number, b: any) => any;
|
|
623
|
-
readonly client_removeChatParticipant: (a: number, b: any, c: any) => any;
|
|
624
|
-
readonly client_uploadFile: (a: number, b: number, c: number, d: any) => any;
|
|
623
|
+
readonly client_getAllChatsUnreadCount: (a: number) => any;
|
|
625
624
|
readonly client_updateFileMetadata: (a: number, b: any, c: any) => any;
|
|
626
|
-
readonly
|
|
625
|
+
readonly client_uploadFile: (a: number, b: number, c: number, d: any) => any;
|
|
627
626
|
readonly client_deleteFilePermanently: (a: number, b: any) => any;
|
|
628
|
-
readonly client_uploadFileFromReader: (a: number, b: any) => any;
|
|
629
|
-
readonly client_downloadFile: (a: number, b: any) => any;
|
|
630
|
-
readonly client_trashFile: (a: number, b: any) => any;
|
|
631
627
|
readonly client_downloadFileToWriter: (a: number, b: any) => any;
|
|
628
|
+
readonly client_trashFile: (a: number, b: any) => any;
|
|
629
|
+
readonly client_downloadFile: (a: number, b: any) => any;
|
|
630
|
+
readonly client_uploadFileFromReader: (a: number, b: any) => any;
|
|
631
|
+
readonly client_getFile: (a: number, b: number, c: number) => any;
|
|
632
632
|
readonly client_setFavorite: (a: number, b: any, c: number) => any;
|
|
633
633
|
readonly client_downloadItemsToZip: (a: number, b: any) => any;
|
|
634
634
|
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
@@ -653,9 +653,9 @@ export interface InitOutput {
|
|
|
653
653
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
654
654
|
readonly __wbindgen_export_7: WebAssembly.Table;
|
|
655
655
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
656
|
-
readonly wasm_bindgen__convert__closures_____invoke__hbe2051c1baa1d7ae: (a: number, b: number) => void;
|
|
657
|
-
readonly closure1428_externref_shim: (a: number, b: number, c: any) => void;
|
|
658
656
|
readonly wasm_bindgen__convert__closures_____invoke__hfc6a9985192cba1d: (a: number, b: number) => void;
|
|
657
|
+
readonly closure1428_externref_shim: (a: number, b: number, c: any) => void;
|
|
658
|
+
readonly wasm_bindgen__convert__closures_____invoke__hbe2051c1baa1d7ae: (a: number, b: number) => void;
|
|
659
659
|
readonly closure1580_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
660
660
|
readonly __wbindgen_start: () => void;
|
|
661
661
|
}
|