@filen/sdk-rs 0.3.26 → 0.3.30
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/FilenSdkRsFramework.xcframework/ios-arm64/libfilen_sdk_rs.a +0 -0
- package/FilenSdkRsFramework.xcframework/ios-arm64-simulator/libfilen_sdk_rs.a +0 -0
- package/android/src/main/jniLibs/arm64-v8a/libfilen_sdk_rs.so +0 -0
- package/android/src/main/jniLibs/x86_64/libfilen_sdk_rs.so +0 -0
- package/cpp/generated/filen_sdk_rs.cpp +35 -0
- package/cpp/generated/filen_sdk_rs.hpp +2 -0
- package/package.json +29 -4
- package/sdk-rs.d.ts +292 -290
- package/sdk-rs.js +504 -496
- package/sdk-rs_bg.wasm +0 -0
- package/sdk-rs_bg.wasm.d.ts +91 -90
- package/service-worker/sdk-rs.d.ts +272 -0
- package/service-worker/sdk-rs.js +1207 -0
- package/service-worker/sdk-rs_bg.wasm +0 -0
- package/service-worker/sdk-rs_bg.wasm.d.ts +42 -0
- package/src/generated/filen_sdk_rs-ffi.ts +2 -0
- package/src/generated/filen_sdk_rs.ts +33 -1
package/sdk-rs.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function fromStringified(serialized: StringifiedClient): Client;
|
|
3
4
|
export function worker_entry_point(ptr: number): void;
|
|
4
|
-
export function startPasswordReset(email: string): Promise<void>;
|
|
5
5
|
export function register(params: RegisterParams): Promise<void>;
|
|
6
|
+
export function startPasswordReset(email: string): Promise<void>;
|
|
6
7
|
export function completePasswordReset(params: CompletePasswordResetParams): Promise<Client>;
|
|
7
|
-
export function fromStringified(serialized: StringifiedClient): Client;
|
|
8
8
|
export function login(params: LoginParams): Promise<Client>;
|
|
9
|
-
export function main_js(): void;
|
|
10
9
|
/**
|
|
11
10
|
* Decrypts note data using the provided chat key.
|
|
12
11
|
* Meant to be used in socket event handlers where this cannot currently be done automatically.
|
|
@@ -14,6 +13,7 @@ export function main_js(): void;
|
|
|
14
13
|
* Should not be used outside of that context.
|
|
15
14
|
*/
|
|
16
15
|
export function decryptMetaWithNoteKey(note: Note, encrypted: EncryptedString): Promise<string>;
|
|
16
|
+
export function main_js(): void;
|
|
17
17
|
/**
|
|
18
18
|
* Decrypts chat metadata (like chat name or message content) using the provided chat key.
|
|
19
19
|
* Meant to be used in socket event handlers where this cannot currently be done automatically.
|
|
@@ -56,12 +56,20 @@ export interface WorkerInitEvent {
|
|
|
56
56
|
*/
|
|
57
57
|
export type ErrorKind = "Server" | "Unauthenticated" | "Reqwest" | "Response" | "RetryFailed" | "Conversion" | "IO" | "ChunkTooLarge" | "InvalidState" | "InvalidType" | "InvalidName" | "ImageError" | "MetadataWasNotDecrypted" | "Cancelled" | "BadRecoveryKey";
|
|
58
58
|
|
|
59
|
-
export interface
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
export interface DownloadFileStreamParams {
|
|
60
|
+
file: FileEnum;
|
|
61
|
+
writer: WritableStream<Uint8Array>;
|
|
62
|
+
progress?: (bytes: bigint) => void;
|
|
63
|
+
start?: bigint;
|
|
64
|
+
end?: bigint;
|
|
65
|
+
managedFuture?: ManagedFuture;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface DownloadFileToZipParams {
|
|
69
|
+
items: Item[];
|
|
70
|
+
writer: WritableStream<Uint8Array>;
|
|
71
|
+
progress?: (bytesWritten: bigint, totalBytes: bigint, itemsProcessed: bigint, totalItems: bigint) => void;
|
|
72
|
+
managedFuture?: ManagedFuture;
|
|
65
73
|
}
|
|
66
74
|
|
|
67
75
|
export interface DirPublicLink {
|
|
@@ -73,6 +81,14 @@ export interface DirPublicLink {
|
|
|
73
81
|
salt?: Uint8Array;
|
|
74
82
|
}
|
|
75
83
|
|
|
84
|
+
export interface FilePublicLink {
|
|
85
|
+
linkUuid: UuidStr;
|
|
86
|
+
password?: string | Uint8Array;
|
|
87
|
+
expiration: PublicLinkExpiration;
|
|
88
|
+
downloadable: boolean;
|
|
89
|
+
salt: Uint8Array;
|
|
90
|
+
}
|
|
91
|
+
|
|
76
92
|
export interface FileMetaChanges {
|
|
77
93
|
name?: string;
|
|
78
94
|
mime?: string;
|
|
@@ -91,12 +107,7 @@ export interface UploadFileStreamParams extends UploadFileParams {
|
|
|
91
107
|
progress?: (bytes: bigint) => void;
|
|
92
108
|
}
|
|
93
109
|
|
|
94
|
-
export interface
|
|
95
|
-
file: FileEnum;
|
|
96
|
-
writer: WritableStream<Uint8Array>;
|
|
97
|
-
progress?: (bytes: bigint) => void;
|
|
98
|
-
start?: bigint;
|
|
99
|
-
end?: bigint;
|
|
110
|
+
export interface UploadFileParams extends FileBuilderParams {
|
|
100
111
|
managedFuture?: ManagedFuture;
|
|
101
112
|
}
|
|
102
113
|
|
|
@@ -108,20 +119,19 @@ export interface FileBuilderParams {
|
|
|
108
119
|
mime?: string;
|
|
109
120
|
}
|
|
110
121
|
|
|
122
|
+
export interface LoginParams {
|
|
123
|
+
email: string;
|
|
124
|
+
password: string;
|
|
125
|
+
twoFactorCode?: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
111
128
|
export type NonRootItem = File | Dir;
|
|
112
129
|
|
|
113
|
-
export
|
|
114
|
-
items: Item[];
|
|
115
|
-
writer: WritableStream<Uint8Array>;
|
|
116
|
-
progress?: (bytesWritten: bigint, totalBytes: bigint, itemsProcessed: bigint, totalItems: bigint) => void;
|
|
117
|
-
managedFuture?: ManagedFuture;
|
|
118
|
-
}
|
|
130
|
+
export type AnyDirEnumWithShareInfo = Dir | SharedDir | Root;
|
|
119
131
|
|
|
120
|
-
export
|
|
121
|
-
managedFuture?: ManagedFuture;
|
|
122
|
-
}
|
|
132
|
+
export type DirWithMetaEnum = Dir | RootWithMeta;
|
|
123
133
|
|
|
124
|
-
export type
|
|
134
|
+
export type AnyDirEnum = Dir | RootWithMeta | Root;
|
|
125
135
|
|
|
126
136
|
export interface Dir {
|
|
127
137
|
uuid: UuidStr;
|
|
@@ -132,49 +142,32 @@ export interface Dir {
|
|
|
132
142
|
meta?: DecryptedDirMeta;
|
|
133
143
|
}
|
|
134
144
|
|
|
135
|
-
export interface
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
timestamp: bigint;
|
|
139
|
-
meta?: DecryptedDirMeta;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface SharedDir {
|
|
143
|
-
dir: DirWithMetaEnum;
|
|
144
|
-
sharingRole: SharingRole;
|
|
145
|
-
writeAccess: boolean;
|
|
145
|
+
export interface DecryptedDirMeta {
|
|
146
|
+
name: string;
|
|
147
|
+
created?: bigint;
|
|
146
148
|
}
|
|
147
149
|
|
|
148
|
-
export type AnyDirEnum = Dir | RootWithMeta | Root;
|
|
149
|
-
|
|
150
150
|
export type DirEnum = Dir | Root;
|
|
151
151
|
|
|
152
|
-
export type
|
|
152
|
+
export type DirColor = "default" | "blue" | "green" | "purple" | "red" | "gray" | string;
|
|
153
153
|
|
|
154
154
|
export interface Root {
|
|
155
155
|
uuid: UuidStr;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
export interface
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
export interface RootWithMeta {
|
|
159
|
+
uuid: UuidStr;
|
|
160
|
+
color: DirColor;
|
|
161
|
+
timestamp: bigint;
|
|
162
|
+
meta?: DecryptedDirMeta;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
|
-
export
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
mime: string;
|
|
168
|
-
created?: bigint;
|
|
169
|
-
modified: bigint;
|
|
170
|
-
hash?: Uint8Array;
|
|
171
|
-
size: bigint;
|
|
172
|
-
key: string;
|
|
173
|
-
version: FileEncryptionVersion;
|
|
165
|
+
export interface SharedDir {
|
|
166
|
+
dir: DirWithMetaEnum;
|
|
167
|
+
sharingRole: SharingRole;
|
|
168
|
+
writeAccess: boolean;
|
|
174
169
|
}
|
|
175
170
|
|
|
176
|
-
export type FileEnum = File | RootFile;
|
|
177
|
-
|
|
178
171
|
export interface File {
|
|
179
172
|
uuid: UuidStr;
|
|
180
173
|
meta?: DecryptedFileMeta;
|
|
@@ -193,6 +186,8 @@ export interface SharedFile {
|
|
|
193
186
|
sharingRole: SharingRole;
|
|
194
187
|
}
|
|
195
188
|
|
|
189
|
+
export type FileEnum = File | RootFile;
|
|
190
|
+
|
|
196
191
|
export interface RootFile {
|
|
197
192
|
uuid: UuidStr;
|
|
198
193
|
size: bigint;
|
|
@@ -204,24 +199,15 @@ export interface RootFile {
|
|
|
204
199
|
canMakeThumbnail: boolean;
|
|
205
200
|
}
|
|
206
201
|
|
|
207
|
-
export interface
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export interface ChatMessage extends ChatMessagePartial {
|
|
219
|
-
chat: UuidStr;
|
|
220
|
-
replyTo?: ChatMessagePartial;
|
|
221
|
-
embedDisabled: boolean;
|
|
222
|
-
edited: boolean;
|
|
223
|
-
editedTimestamp: bigint;
|
|
224
|
-
sentTimestamp: bigint;
|
|
202
|
+
export interface DecryptedFileMeta {
|
|
203
|
+
name: string;
|
|
204
|
+
mime: string;
|
|
205
|
+
created?: bigint;
|
|
206
|
+
modified: bigint;
|
|
207
|
+
hash?: Uint8Array;
|
|
208
|
+
size: bigint;
|
|
209
|
+
key: string;
|
|
210
|
+
version: FileEncryptionVersion;
|
|
225
211
|
}
|
|
226
212
|
|
|
227
213
|
export interface ChatMessagePartial {
|
|
@@ -245,6 +231,26 @@ export interface Chat {
|
|
|
245
231
|
lastFocus: bigint;
|
|
246
232
|
}
|
|
247
233
|
|
|
234
|
+
export interface ChatParticipant {
|
|
235
|
+
userId: bigint;
|
|
236
|
+
email: string;
|
|
237
|
+
avatar?: string;
|
|
238
|
+
nickName: string;
|
|
239
|
+
permissionsAdd: boolean;
|
|
240
|
+
added: bigint;
|
|
241
|
+
appearOffline: boolean;
|
|
242
|
+
lastActive: bigint;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface ChatMessage extends ChatMessagePartial {
|
|
246
|
+
chat: UuidStr;
|
|
247
|
+
replyTo?: ChatMessagePartial;
|
|
248
|
+
embedDisabled: boolean;
|
|
249
|
+
edited: boolean;
|
|
250
|
+
editedTimestamp: bigint;
|
|
251
|
+
sentTimestamp: bigint;
|
|
252
|
+
}
|
|
253
|
+
|
|
248
254
|
export interface NoteTag {
|
|
249
255
|
uuid: UuidStr;
|
|
250
256
|
name?: string;
|
|
@@ -253,22 +259,13 @@ export interface NoteTag {
|
|
|
253
259
|
createdTimestamp: bigint;
|
|
254
260
|
}
|
|
255
261
|
|
|
256
|
-
export interface
|
|
257
|
-
|
|
258
|
-
ownerId: bigint;
|
|
259
|
-
lastEditorId: bigint;
|
|
260
|
-
favorite: boolean;
|
|
261
|
-
pinned: boolean;
|
|
262
|
-
tags: NoteTag[];
|
|
263
|
-
noteType: NoteType;
|
|
264
|
-
encryptionKey?: string;
|
|
265
|
-
title?: string;
|
|
262
|
+
export interface NoteHistory {
|
|
263
|
+
id: bigint;
|
|
266
264
|
preview?: string;
|
|
267
|
-
|
|
268
|
-
archive: boolean;
|
|
269
|
-
createdTimestamp: bigint;
|
|
265
|
+
content?: string;
|
|
270
266
|
editedTimestamp: bigint;
|
|
271
|
-
|
|
267
|
+
editorId: bigint;
|
|
268
|
+
noteType: NoteType;
|
|
272
269
|
}
|
|
273
270
|
|
|
274
271
|
export interface NoteParticipant {
|
|
@@ -281,13 +278,22 @@ export interface NoteParticipant {
|
|
|
281
278
|
addedTimestamp: bigint;
|
|
282
279
|
}
|
|
283
280
|
|
|
284
|
-
export interface
|
|
285
|
-
|
|
281
|
+
export interface Note {
|
|
282
|
+
uuid: UuidStr;
|
|
283
|
+
ownerId: bigint;
|
|
284
|
+
lastEditorId: bigint;
|
|
285
|
+
favorite: boolean;
|
|
286
|
+
pinned: boolean;
|
|
287
|
+
tags: NoteTag[];
|
|
288
|
+
noteType: NoteType;
|
|
289
|
+
encryptionKey?: string;
|
|
290
|
+
title?: string;
|
|
286
291
|
preview?: string;
|
|
287
|
-
|
|
292
|
+
trash: boolean;
|
|
293
|
+
archive: boolean;
|
|
294
|
+
createdTimestamp: bigint;
|
|
288
295
|
editedTimestamp: bigint;
|
|
289
|
-
|
|
290
|
-
noteType: NoteType;
|
|
296
|
+
participants: NoteParticipant[];
|
|
291
297
|
}
|
|
292
298
|
|
|
293
299
|
export interface RegisterParams {
|
|
@@ -297,22 +303,16 @@ export interface RegisterParams {
|
|
|
297
303
|
affId?: string;
|
|
298
304
|
}
|
|
299
305
|
|
|
300
|
-
export interface CompletePasswordResetParams {
|
|
301
|
-
token: string;
|
|
302
|
-
email: string;
|
|
303
|
-
newPassword: string;
|
|
304
|
-
recoverKey?: string;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
306
|
export interface ChangePasswordParams {
|
|
308
307
|
currentPassword: string;
|
|
309
308
|
newPassword: string;
|
|
310
309
|
}
|
|
311
310
|
|
|
312
|
-
export interface
|
|
311
|
+
export interface CompletePasswordResetParams {
|
|
312
|
+
token: string;
|
|
313
313
|
email: string;
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
newPassword: string;
|
|
315
|
+
recoverKey?: string;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
export interface AcquireLockParams {
|
|
@@ -323,11 +323,15 @@ export interface AcquireLockParams {
|
|
|
323
323
|
|
|
324
324
|
export type Item = File | RootFile | Dir | RootWithMeta | Root;
|
|
325
325
|
|
|
326
|
-
export interface
|
|
326
|
+
export interface Contact {
|
|
327
327
|
uuid: UuidStr;
|
|
328
|
+
userId: bigint;
|
|
328
329
|
email: string;
|
|
329
330
|
avatar?: string;
|
|
330
331
|
nickName: string;
|
|
332
|
+
lastActive: bigint;
|
|
333
|
+
timestamp: bigint;
|
|
334
|
+
publicKey: string;
|
|
331
335
|
}
|
|
332
336
|
|
|
333
337
|
export interface SharedDirsAndFiles {
|
|
@@ -343,24 +347,24 @@ export interface ContactRequestIn {
|
|
|
343
347
|
nickName: string;
|
|
344
348
|
}
|
|
345
349
|
|
|
346
|
-
export interface
|
|
350
|
+
export interface BlockedContact {
|
|
347
351
|
uuid: UuidStr;
|
|
348
352
|
userId: bigint;
|
|
349
353
|
email: string;
|
|
350
354
|
avatar?: string;
|
|
351
355
|
nickName: string;
|
|
352
|
-
lastActive: bigint;
|
|
353
356
|
timestamp: bigint;
|
|
354
|
-
publicKey: string;
|
|
355
357
|
}
|
|
356
358
|
|
|
357
|
-
export interface
|
|
359
|
+
export interface ContactRequestOut {
|
|
358
360
|
uuid: UuidStr;
|
|
359
|
-
userId: bigint;
|
|
360
361
|
email: string;
|
|
361
362
|
avatar?: string;
|
|
362
363
|
nickName: string;
|
|
363
|
-
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export interface MakeThumbnailInMemoryResult {
|
|
367
|
+
webpData: Uint8Array<ArrayBuffer>;
|
|
364
368
|
}
|
|
365
369
|
|
|
366
370
|
export interface MakeThumbnailInMemoryParams {
|
|
@@ -369,36 +373,34 @@ export interface MakeThumbnailInMemoryParams {
|
|
|
369
373
|
maxHeight: number;
|
|
370
374
|
}
|
|
371
375
|
|
|
372
|
-
export interface MakeThumbnailInMemoryResult {
|
|
373
|
-
webpData: Uint8Array<ArrayBuffer>;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
376
|
export interface ManagedFuture {
|
|
377
377
|
abortSignal?: AbortSignal;
|
|
378
378
|
pauseSignal?: PauseSignal;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
export interface AddTagToNoteResponse {
|
|
382
|
-
note: Note;
|
|
383
|
-
tag: NoteTag;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
381
|
export interface DuplicateNoteResponse {
|
|
387
382
|
original: Note;
|
|
388
383
|
duplicated: Note;
|
|
389
384
|
}
|
|
390
385
|
|
|
386
|
+
export interface AddTagToNoteResponse {
|
|
387
|
+
note: Note;
|
|
388
|
+
tag: NoteTag;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
391
|
export interface ItemMatch {
|
|
392
392
|
item: NonRootItemTagged;
|
|
393
393
|
path: string;
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
+
export type SharingRole = ({ role: "sharer" } & ShareInfo) | ({ role: "receiver" } & ShareInfo);
|
|
397
|
+
|
|
396
398
|
export interface ShareInfo {
|
|
397
399
|
email: string;
|
|
398
400
|
id: number;
|
|
399
401
|
}
|
|
400
402
|
|
|
401
|
-
export type
|
|
403
|
+
export type NonRootItemTagged = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
|
|
402
404
|
|
|
403
405
|
export interface DirSizeResponse {
|
|
404
406
|
size: bigint;
|
|
@@ -411,8 +413,6 @@ export interface DirsAndFiles {
|
|
|
411
413
|
files: File[];
|
|
412
414
|
}
|
|
413
415
|
|
|
414
|
-
export type NonRootItemTagged = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
|
|
415
|
-
|
|
416
416
|
export interface FolderRestore {
|
|
417
417
|
name: EncryptedString;
|
|
418
418
|
uuid: UuidStr;
|
|
@@ -697,113 +697,114 @@ export class Client {
|
|
|
697
697
|
private constructor();
|
|
698
698
|
free(): void;
|
|
699
699
|
[Symbol.dispose](): void;
|
|
700
|
+
disable2FA(two_factor_code: string): Promise<void>;
|
|
701
|
+
enable2FAGetRecoveryKey(two_factor_code: string): Promise<string>;
|
|
702
|
+
exportMasterKeys(): Promise<string>;
|
|
703
|
+
generate2FASecret(): Promise<TwoFASecret>;
|
|
704
|
+
deleteAccount(two_factor_code?: string | null): Promise<void>;
|
|
705
|
+
toStringified(): Promise<StringifiedClient>;
|
|
706
|
+
changePassword(params: ChangePasswordParams): Promise<void>;
|
|
707
|
+
getFile(uuid: string): Promise<File>;
|
|
700
708
|
downloadFile(file: FileEnum): Promise<Uint8Array>;
|
|
701
|
-
uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
|
|
702
|
-
deleteFilePermanently(file: File): Promise<void>;
|
|
703
709
|
updateFileMetadata(file: File, changes: FileMetaChanges): Promise<File>;
|
|
704
|
-
getFile(uuid: string): Promise<File>;
|
|
705
|
-
downloadFileToWriter(params: DownloadFileStreamParams): Promise<void>;
|
|
706
710
|
trashFile(file: File): Promise<File>;
|
|
707
711
|
uploadFile(data: Uint8Array, params: UploadFileParams): Promise<File>;
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
712
|
+
uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
|
|
713
|
+
deleteFilePermanently(file: File): Promise<void>;
|
|
714
|
+
downloadFileToWriter(params: DownloadFileStreamParams): Promise<void>;
|
|
715
|
+
blockContact(email: string): Promise<string>;
|
|
716
|
+
updateFileLink(file: File, link: FilePublicLink): Promise<void>;
|
|
717
|
+
shareDir(dir: Dir, contact: Contact): Promise<void>;
|
|
718
|
+
publicLinkDir(dir: Dir): Promise<DirPublicLink>;
|
|
719
|
+
sendContactRequest(email: string): Promise<string>;
|
|
720
|
+
denyContactRequest(contact_uuid: string): Promise<void>;
|
|
716
721
|
removeSharedLinkOut(linkUuid: string, receiverId: bigint): Promise<void>;
|
|
717
|
-
|
|
722
|
+
listLinkedDir(dir: DirWithMetaEnum, link: DirPublicLink): Promise<DirsAndFiles>;
|
|
723
|
+
listIncomingContactRequests(): Promise<ContactRequestIn[]>;
|
|
718
724
|
updateDirLink(dir: Dir, link: DirPublicLink): Promise<void>;
|
|
725
|
+
publicLinkFile(file: File): Promise<FilePublicLink>;
|
|
719
726
|
acceptContactRequest(contact_uuid: string): Promise<string>;
|
|
720
|
-
|
|
727
|
+
deleteContact(contact_uuid: string): Promise<void>;
|
|
721
728
|
listInShared(dir?: DirWithMetaEnum | null): Promise<SharedDirsAndFiles>;
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
729
|
+
unblockContact(contact_uuid: string): Promise<void>;
|
|
730
|
+
getContacts(): Promise<Contact[]>;
|
|
731
|
+
getBlockedContacts(): Promise<BlockedContact[]>;
|
|
732
|
+
getFileLinkStatus(file: File): Promise<FilePublicLink | undefined>;
|
|
726
733
|
shareFile(file: File, contact: Contact): Promise<void>;
|
|
727
|
-
deleteContact(contact_uuid: string): Promise<void>;
|
|
728
734
|
listOutgoingContactRequests(): Promise<ContactRequestOut[]>;
|
|
729
|
-
denyContactRequest(contact_uuid: string): Promise<void>;
|
|
730
|
-
getBlockedContacts(): Promise<BlockedContact[]>;
|
|
731
|
-
publicLinkDir(dir: Dir): Promise<DirPublicLink>;
|
|
732
735
|
cancelContactRequest(contact_uuid: string): Promise<void>;
|
|
733
|
-
|
|
734
|
-
blockContact(email: string): Promise<string>;
|
|
735
|
-
unblockContact(contact_uuid: string): Promise<void>;
|
|
736
|
-
listOutShared(dir?: DirWithMetaEnum | null, contact?: Contact | null): Promise<SharedDirsAndFiles>;
|
|
737
|
-
getFileLinkStatus(file: File): Promise<FilePublicLink | undefined>;
|
|
738
|
-
listLinkedDir(dir: DirWithMetaEnum, link: DirPublicLink): Promise<DirsAndFiles>;
|
|
736
|
+
getDirLinkStatus(dir: Dir): Promise<DirPublicLink | undefined>;
|
|
739
737
|
removeDirLink(link: DirPublicLink): Promise<void>;
|
|
738
|
+
listOutShared(dir?: DirWithMetaEnum | null, contact?: Contact | null): Promise<SharedDirsAndFiles>;
|
|
739
|
+
removeSharedLinkIn(link_uuid: string): Promise<void>;
|
|
740
740
|
makeThumbnailInMemory(params: MakeThumbnailInMemoryParams): Promise<MakeThumbnailInMemoryResult | undefined>;
|
|
741
|
-
getNote(note_uuid: string): Promise<Note | undefined>;
|
|
742
|
-
setNoteParticipantPermission(note_uuid: string, participant: NoteParticipant, write: boolean): Promise<NoteParticipant>;
|
|
743
|
-
removeNoteParticipant(note: Note, participant_id: bigint): Promise<Note>;
|
|
744
|
-
restoreNoteFromHistory(note: Note, history: NoteHistory): Promise<Note>;
|
|
745
741
|
renameNoteTag(tag: NoteTag, new_name: string): Promise<NoteTag>;
|
|
742
|
+
addTagToNote(note: Note, tag: NoteTag): Promise<AddTagToNoteResponse>;
|
|
743
|
+
setNotePinned(note: Note, pinned: boolean): Promise<Note>;
|
|
746
744
|
getNoteContent(note: Note): Promise<string | undefined>;
|
|
747
|
-
archiveNote(note: Note): Promise<Note>;
|
|
748
|
-
setNoteFavorited(note: Note, favorite: boolean): Promise<Note>;
|
|
749
|
-
trashNote(note: Note): Promise<Note>;
|
|
750
|
-
restoreNote(note: Note): Promise<Note>;
|
|
751
|
-
getNoteHistory(note: Note): Promise<NoteHistory[]>;
|
|
752
745
|
createNoteTag(name: string): Promise<NoteTag>;
|
|
746
|
+
createNote(title?: string | null): Promise<Note>;
|
|
747
|
+
restoreNoteFromHistory(note: Note, history: NoteHistory): Promise<Note>;
|
|
748
|
+
setNoteParticipantPermission(note_uuid: string, participant: NoteParticipant, write: boolean): Promise<NoteParticipant>;
|
|
749
|
+
setNoteContent(note: Note, new_content: string, new_preview: string): Promise<Note>;
|
|
750
|
+
removeNoteParticipant(note: Note, participant_id: bigint): Promise<Note>;
|
|
751
|
+
deleteNote(note: Note): Promise<void>;
|
|
752
|
+
listNotes(): Promise<Note[]>;
|
|
753
|
+
setNoteFavorited(note: Note, favorite: boolean): Promise<Note>;
|
|
753
754
|
listNoteTags(): Promise<NoteTag[]>;
|
|
755
|
+
duplicateNote(note: Note): Promise<DuplicateNoteResponse>;
|
|
754
756
|
setNoteTitle(note: Note, new_title: string): Promise<Note>;
|
|
755
|
-
addNoteParticipant(note: Note, contact: Contact, write: boolean): Promise<Note>;
|
|
756
|
-
deleteNoteTag(tag: NoteTag): Promise<void>;
|
|
757
757
|
removeTagFromNote(note: Note, tag: NoteTag): Promise<Note>;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
duplicateNote(note: Note): Promise<DuplicateNoteResponse>;
|
|
761
|
-
setNotePinned(note: Note, pinned: boolean): Promise<Note>;
|
|
758
|
+
getNote(note_uuid: string): Promise<Note | undefined>;
|
|
759
|
+
archiveNote(note: Note): Promise<Note>;
|
|
762
760
|
setNoteType(note: Note, note_type: NoteType, known_content?: string | null): Promise<Note>;
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
761
|
+
setNoteTagFavorited(tag: NoteTag, favorite: boolean): Promise<NoteTag>;
|
|
762
|
+
restoreNote(note: Note): Promise<Note>;
|
|
763
|
+
trashNote(note: Note): Promise<Note>;
|
|
764
|
+
deleteNoteTag(tag: NoteTag): Promise<void>;
|
|
765
|
+
addNoteParticipant(note: Note, contact: Contact, write: boolean): Promise<Note>;
|
|
766
|
+
getNoteHistory(note: Note): Promise<NoteHistory[]>;
|
|
767
767
|
findItemMatchesForName(name: string): Promise<ItemMatch[]>;
|
|
768
|
-
|
|
769
|
-
getDirSize(dir: AnyDirEnumWithShareInfo): Promise<DirSizeResponse>;
|
|
770
|
-
listDirRecursive(dir: DirEnum): Promise<DirsAndFiles>;
|
|
771
|
-
dirExists(parent: AnyDirEnum, name: string): Promise<void>;
|
|
772
|
-
createDir(parent: DirEnum, name: string): Promise<Dir>;
|
|
773
|
-
listDir(dir: DirEnum): Promise<DirsAndFiles>;
|
|
768
|
+
root(): Root;
|
|
774
769
|
listRecents(): Promise<DirsAndFiles>;
|
|
775
|
-
set_dir_color(dir: Dir, color: string): Promise<Dir>;
|
|
776
|
-
setDirColor(dir: Dir, color: DirColor): Promise<Dir>;
|
|
777
770
|
trashDir(dir: Dir): Promise<Dir>;
|
|
778
|
-
getDir(uuid: string): Promise<Dir>;
|
|
779
771
|
updateDirMetadata(dir: Dir, changes: DirectoryMetaChanges): Promise<Dir>;
|
|
780
|
-
|
|
772
|
+
listTrash(): Promise<DirsAndFiles>;
|
|
773
|
+
createDir(parent: DirEnum, name: string): Promise<Dir>;
|
|
774
|
+
setDirColor(dir: Dir, color: DirColor): Promise<Dir>;
|
|
775
|
+
listDirRecursive(dir: DirEnum): Promise<DirsAndFiles>;
|
|
776
|
+
set_dir_color(dir: Dir, color: string): Promise<Dir>;
|
|
777
|
+
listDir(dir: DirEnum): Promise<DirsAndFiles>;
|
|
778
|
+
listFavorites(): Promise<DirsAndFiles>;
|
|
779
|
+
getDir(uuid: string): Promise<Dir>;
|
|
780
|
+
getDirSize(dir: AnyDirEnumWithShareInfo): Promise<DirSizeResponse>;
|
|
781
781
|
deleteDirPermanently(dir: Dir): Promise<void>;
|
|
782
|
-
|
|
782
|
+
dirExists(parent: AnyDirEnum, name: string): Promise<void>;
|
|
783
|
+
findItemInDir(dir: AnyDirEnum, name_or_uuid: string): Promise<NonRootItemTagged | undefined>;
|
|
784
|
+
editMessage(chat: Chat, message: ChatMessage, new_message: string): Promise<ChatMessage>;
|
|
785
|
+
listMessagesBefore(chat: Chat, before: bigint): Promise<ChatMessage[]>;
|
|
786
|
+
createChat(contacts: Contact[]): Promise<Chat>;
|
|
783
787
|
sendChatMessage(chat: Chat, message: string, reply_to?: ChatMessagePartial | null): Promise<Chat>;
|
|
784
|
-
getAllChatsUnreadCount(): Promise<bigint>;
|
|
785
|
-
deleteChat(chat: Chat): Promise<void>;
|
|
786
|
-
updateChatOnlineStatus(chat: Chat): Promise<Chat>;
|
|
787
788
|
getChat(uuid: string): Promise<Chat | undefined>;
|
|
789
|
+
muteChat(chat: Chat, mute: boolean): Promise<Chat>;
|
|
790
|
+
sendTypingSignal(chat: Chat, signal_type: ChatTypingType): Promise<void>;
|
|
791
|
+
listMessages(chat: Chat): Promise<ChatMessage[]>;
|
|
792
|
+
deleteMessage(chat: Chat, message: ChatMessage): Promise<Chat>;
|
|
793
|
+
renameChat(chat: Chat, new_name: string): Promise<Chat>;
|
|
794
|
+
removeChatParticipant(chat: Chat, contact: Contact): Promise<Chat>;
|
|
795
|
+
getAllChatsUnreadCount(): Promise<bigint>;
|
|
788
796
|
disableMessageEmbed(message: ChatMessage): Promise<ChatMessage>;
|
|
797
|
+
deleteChat(chat: Chat): Promise<void>;
|
|
789
798
|
updateLastChatFocusTimesNow(chats: Chat[]): Promise<Chat[]>;
|
|
790
|
-
createChat(contacts: Contact[]): Promise<Chat>;
|
|
791
799
|
markChatRead(chat: Chat): Promise<void>;
|
|
792
|
-
|
|
793
|
-
removeChatParticipant(chat: Chat, contact: Contact): Promise<Chat>;
|
|
794
|
-
renameChat(chat: Chat, new_name: string): Promise<Chat>;
|
|
795
|
-
addChatParticipant(chat: Chat, contact: Contact): Promise<Chat>;
|
|
796
|
-
listMessages(chat: Chat): Promise<ChatMessage[]>;
|
|
797
|
-
muteChat(chat: Chat, mute: boolean): Promise<Chat>;
|
|
798
|
-
sendTypingSignal(chat: Chat, signal_type: ChatTypingType): Promise<void>;
|
|
799
|
-
editMessage(chat: Chat, message: ChatMessage, new_message: string): Promise<ChatMessage>;
|
|
800
|
+
updateChatOnlineStatus(chat: Chat): Promise<Chat>;
|
|
800
801
|
leaveChat(chat: Chat): Promise<void>;
|
|
801
802
|
getChatUnreadCount(chat: Chat): Promise<bigint>;
|
|
802
|
-
|
|
803
|
+
addChatParticipant(chat: Chat, contact: Contact): Promise<Chat>;
|
|
803
804
|
listChats(): Promise<Chat[]>;
|
|
804
805
|
addSocketListener(event_types: SocketEventType[] | null, listener: (event: SocketEvent) => void): Promise<EventListenerHandle>;
|
|
805
|
-
decryptMeta(encrypted: EncryptedString): Promise<string>;
|
|
806
806
|
isSocketConnected(): Promise<boolean>;
|
|
807
|
+
decryptMeta(encrypted: EncryptedString): Promise<string>;
|
|
807
808
|
downloadItemsToZip(params: DownloadFileToZipParams): Promise<void>;
|
|
808
809
|
setFavorite(item: NonRootItem, favorited: boolean): Promise<NonRootItemTagged>;
|
|
809
810
|
}
|
|
@@ -819,8 +820,8 @@ export class FilenSDKError {
|
|
|
819
820
|
private constructor();
|
|
820
821
|
free(): void;
|
|
821
822
|
[Symbol.dispose](): void;
|
|
822
|
-
toString(): string;
|
|
823
823
|
message(): string;
|
|
824
|
+
toString(): string;
|
|
824
825
|
readonly kind: ErrorKind;
|
|
825
826
|
}
|
|
826
827
|
export class IntoUnderlyingByteSource {
|
|
@@ -851,23 +852,23 @@ export class IntoUnderlyingSource {
|
|
|
851
852
|
export class PauseSignal {
|
|
852
853
|
free(): void;
|
|
853
854
|
[Symbol.dispose](): void;
|
|
854
|
-
|
|
855
|
+
constructor();
|
|
855
856
|
resume(): void;
|
|
856
857
|
pause(): void;
|
|
857
|
-
|
|
858
|
+
isPaused(): boolean;
|
|
858
859
|
}
|
|
859
860
|
export class ResourceLock {
|
|
860
861
|
private constructor();
|
|
861
862
|
free(): void;
|
|
862
863
|
[Symbol.dispose](): void;
|
|
863
|
-
/**
|
|
864
|
-
* The resource this lock is for
|
|
865
|
-
*/
|
|
866
|
-
resource(): string;
|
|
867
864
|
/**
|
|
868
865
|
* Utility function to be able to immediately drop the lock from JS
|
|
869
866
|
*/
|
|
870
867
|
drop(): void;
|
|
868
|
+
/**
|
|
869
|
+
* The resource this lock is for
|
|
870
|
+
*/
|
|
871
|
+
resource(): string;
|
|
871
872
|
}
|
|
872
873
|
export class wbg_rayon_PoolBuilder {
|
|
873
874
|
private constructor();
|
|
@@ -881,137 +882,138 @@ export class wbg_rayon_PoolBuilder {
|
|
|
881
882
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
882
883
|
|
|
883
884
|
export interface InitOutput {
|
|
885
|
+
readonly fromStringified: (a: any) => [number, number, number];
|
|
884
886
|
readonly worker_entry_point: (a: number) => void;
|
|
885
887
|
readonly __wbg_eventlistenerhandle_free: (a: number, b: number) => void;
|
|
886
888
|
readonly filensdkerror_message: (a: number) => [number, number];
|
|
887
|
-
readonly filensdkerror_kind: (a: number) => any;
|
|
888
889
|
readonly __wbg_filensdkerror_free: (a: number, b: number) => void;
|
|
889
|
-
readonly
|
|
890
|
-
readonly
|
|
891
|
-
readonly client_uploadFileFromReader: (a: number, b: any) => any;
|
|
892
|
-
readonly client_getFile: (a: number, b: number, c: number) => any;
|
|
893
|
-
readonly client_deleteFilePermanently: (a: number, b: any) => any;
|
|
894
|
-
readonly client_uploadFile: (a: number, b: number, c: number, d: any) => any;
|
|
895
|
-
readonly client_downloadFile: (a: number, b: any) => any;
|
|
896
|
-
readonly client_updateFileMetadata: (a: number, b: any, c: any) => any;
|
|
897
|
-
readonly client_generate2FASecret: (a: number) => any;
|
|
890
|
+
readonly filensdkerror_kind: (a: number) => any;
|
|
891
|
+
readonly client_exportMasterKeys: (a: number) => any;
|
|
898
892
|
readonly client_changePassword: (a: number, b: any) => any;
|
|
899
|
-
readonly
|
|
893
|
+
readonly client_disable2FA: (a: number, b: number, c: number) => any;
|
|
900
894
|
readonly register: (a: any) => any;
|
|
901
|
-
readonly client_enable2FAGetRecoveryKey: (a: number, b: number, c: number) => any;
|
|
902
895
|
readonly completePasswordReset: (a: any) => any;
|
|
903
|
-
readonly
|
|
904
|
-
readonly
|
|
905
|
-
readonly
|
|
896
|
+
readonly client_enable2FAGetRecoveryKey: (a: number, b: number, c: number) => any;
|
|
897
|
+
readonly client_generate2FASecret: (a: number) => any;
|
|
898
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
906
899
|
readonly client_deleteAccount: (a: number, b: number, c: number) => any;
|
|
907
|
-
readonly
|
|
908
|
-
readonly main_js: () => void;
|
|
909
|
-
readonly fromStringified: (a: any) => [number, number, number];
|
|
900
|
+
readonly client_toStringified: (a: number) => any;
|
|
910
901
|
readonly login: (a: any) => any;
|
|
911
|
-
readonly
|
|
912
|
-
readonly __wbg_pausesignal_free: (a: number, b: number) => void;
|
|
902
|
+
readonly startPasswordReset: (a: number, b: number) => any;
|
|
913
903
|
readonly pausesignal_isPaused: (a: number) => number;
|
|
904
|
+
readonly __wbg_pausesignal_free: (a: number, b: number) => void;
|
|
905
|
+
readonly pausesignal_new: () => number;
|
|
914
906
|
readonly pausesignal_resume: (a: number) => void;
|
|
915
907
|
readonly pausesignal_pause: (a: number) => void;
|
|
916
|
-
readonly jsclient_acquireLock: (a: number, b: any) => any;
|
|
917
908
|
readonly resourcelock_resource: (a: number) => [number, number];
|
|
918
|
-
readonly
|
|
909
|
+
readonly jsclient_acquireLock: (a: number, b: any) => any;
|
|
919
910
|
readonly __wbg_resourcelock_free: (a: number, b: number) => void;
|
|
911
|
+
readonly jsclient_lockDrive: (a: number) => any;
|
|
920
912
|
readonly resourcelock_drop: (a: number) => void;
|
|
921
|
-
readonly
|
|
913
|
+
readonly client_getFile: (a: number, b: number, c: number) => any;
|
|
914
|
+
readonly client_downloadFile: (a: number, b: any) => any;
|
|
915
|
+
readonly client_updateFileMetadata: (a: number, b: any, c: any) => any;
|
|
916
|
+
readonly client_uploadFile: (a: number, b: number, c: number, d: any) => any;
|
|
917
|
+
readonly client_downloadFileToWriter: (a: number, b: any) => any;
|
|
918
|
+
readonly client_trashFile: (a: number, b: any) => any;
|
|
919
|
+
readonly client_deleteFilePermanently: (a: number, b: any) => any;
|
|
920
|
+
readonly client_uploadFileFromReader: (a: number, b: any) => any;
|
|
921
|
+
readonly client_getBlockedContacts: (a: number) => any;
|
|
922
|
+
readonly client_listLinkedDir: (a: number, b: any, c: any) => any;
|
|
923
|
+
readonly client_getDirLinkStatus: (a: number, b: any) => any;
|
|
924
|
+
readonly client_shareFile: (a: number, b: any, c: any) => any;
|
|
925
|
+
readonly client_acceptContactRequest: (a: number, b: number, c: number) => any;
|
|
922
926
|
readonly client_updateFileLink: (a: number, b: any, c: any) => any;
|
|
923
927
|
readonly client_removeSharedLinkOut: (a: number, b: number, c: number, d: bigint) => any;
|
|
928
|
+
readonly client_removeSharedLinkIn: (a: number, b: number, c: number) => any;
|
|
929
|
+
readonly client_publicLinkFile: (a: number, b: any) => any;
|
|
924
930
|
readonly client_publicLinkDir: (a: number, b: any) => any;
|
|
925
931
|
readonly client_getContacts: (a: number) => any;
|
|
926
|
-
readonly
|
|
927
|
-
readonly client_updateDirLink: (a: number, b: any, c: any) => any;
|
|
928
|
-
readonly client_listOutgoingContactRequests: (a: number) => any;
|
|
929
|
-
readonly client_getDirLinkStatus: (a: number, b: any) => any;
|
|
930
|
-
readonly client_listIncomingContactRequests: (a: number) => any;
|
|
931
|
-
readonly client_acceptContactRequest: (a: number, b: number, c: number) => any;
|
|
932
|
+
readonly client_denyContactRequest: (a: number, b: number, c: number) => any;
|
|
932
933
|
readonly client_cancelContactRequest: (a: number, b: number, c: number) => any;
|
|
933
|
-
readonly
|
|
934
|
-
readonly
|
|
935
|
-
readonly client_removeDirLink: (a: number, b: any) => any;
|
|
936
|
-
readonly client_listLinkedDir: (a: number, b: any, c: any) => any;
|
|
937
|
-
readonly client_publicLinkFile: (a: number, b: any) => any;
|
|
938
|
-
readonly client_unblockContact: (a: number, b: number, c: number) => any;
|
|
939
|
-
readonly client_shareDir: (a: number, b: any, c: any) => any;
|
|
934
|
+
readonly client_listIncomingContactRequests: (a: number) => any;
|
|
935
|
+
readonly client_getFileLinkStatus: (a: number, b: any) => any;
|
|
940
936
|
readonly client_listOutShared: (a: number, b: number, c: number) => any;
|
|
941
|
-
readonly
|
|
937
|
+
readonly client_listOutgoingContactRequests: (a: number) => any;
|
|
942
938
|
readonly client_listInShared: (a: number, b: number) => any;
|
|
943
|
-
readonly
|
|
944
|
-
readonly
|
|
945
|
-
readonly
|
|
939
|
+
readonly client_sendContactRequest: (a: number, b: number, c: number) => any;
|
|
940
|
+
readonly client_shareDir: (a: number, b: any, c: any) => any;
|
|
941
|
+
readonly client_unblockContact: (a: number, b: number, c: number) => any;
|
|
942
|
+
readonly client_blockContact: (a: number, b: number, c: number) => any;
|
|
943
|
+
readonly client_updateDirLink: (a: number, b: any, c: any) => any;
|
|
944
|
+
readonly client_removeDirLink: (a: number, b: any) => any;
|
|
945
|
+
readonly client_deleteContact: (a: number, b: number, c: number) => any;
|
|
946
946
|
readonly client_makeThumbnailInMemory: (a: number, b: any) => any;
|
|
947
|
-
readonly
|
|
947
|
+
readonly client_addTagToNote: (a: number, b: any, c: any) => any;
|
|
948
|
+
readonly client_trashNote: (a: number, b: any) => any;
|
|
948
949
|
readonly client_deleteNote: (a: number, b: any) => any;
|
|
949
|
-
readonly
|
|
950
|
-
readonly client_removeNoteParticipant: (a: number, b: any, c: bigint) => any;
|
|
951
|
-
readonly client_restoreNoteFromHistory: (a: number, b: any, c: any) => any;
|
|
952
|
-
readonly client_listNotes: (a: number) => any;
|
|
950
|
+
readonly decryptMetaWithNoteKey: (a: any, b: number, c: number) => any;
|
|
953
951
|
readonly client_setNoteTitle: (a: number, b: any, c: number, d: number) => any;
|
|
954
|
-
readonly
|
|
955
|
-
readonly
|
|
956
|
-
readonly
|
|
952
|
+
readonly client_restoreNote: (a: number, b: any) => any;
|
|
953
|
+
readonly client_createNoteTag: (a: number, b: number, c: number) => any;
|
|
954
|
+
readonly client_setNoteParticipantPermission: (a: number, b: number, c: number, d: any, e: number) => any;
|
|
955
|
+
readonly client_archiveNote: (a: number, b: any) => any;
|
|
956
|
+
readonly client_setNotePinned: (a: number, b: any, c: number) => any;
|
|
957
|
+
readonly client_setNoteType: (a: number, b: any, c: any, d: number, e: number) => any;
|
|
958
|
+
readonly client_duplicateNote: (a: number, b: any) => any;
|
|
957
959
|
readonly client_setNoteFavorited: (a: number, b: any, c: number) => any;
|
|
958
960
|
readonly client_setNoteContent: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
959
|
-
readonly
|
|
960
|
-
readonly
|
|
961
|
-
readonly client_createNoteTag: (a: number, b: number, c: number) => any;
|
|
962
|
-
readonly client_restoreNote: (a: number, b: any) => any;
|
|
961
|
+
readonly client_listNoteTags: (a: number) => any;
|
|
962
|
+
readonly client_deleteNoteTag: (a: number, b: any) => any;
|
|
963
963
|
readonly client_renameNoteTag: (a: number, b: any, c: number, d: number) => any;
|
|
964
|
+
readonly client_listNotes: (a: number) => any;
|
|
965
|
+
readonly client_getNoteContent: (a: number, b: any) => any;
|
|
966
|
+
readonly client_getNoteHistory: (a: number, b: any) => any;
|
|
964
967
|
readonly client_addNoteParticipant: (a: number, b: any, c: any, d: number) => any;
|
|
965
968
|
readonly client_createNote: (a: number, b: number, c: number) => any;
|
|
966
|
-
readonly
|
|
967
|
-
readonly client_duplicateNote: (a: number, b: any) => any;
|
|
968
|
-
readonly client_setNotePinned: (a: number, b: any, c: number) => any;
|
|
969
|
-
readonly client_archiveNote: (a: number, b: any) => any;
|
|
970
|
-
readonly client_listNoteTags: (a: number) => any;
|
|
971
|
-
readonly client_getNoteHistory: (a: number, b: any) => any;
|
|
972
|
-
readonly client_setNoteType: (a: number, b: any, c: any, d: number, e: number) => any;
|
|
969
|
+
readonly client_restoreNoteFromHistory: (a: number, b: any, c: any) => any;
|
|
973
970
|
readonly client_getNote: (a: number, b: number, c: number) => any;
|
|
971
|
+
readonly client_removeTagFromNote: (a: number, b: any, c: any) => any;
|
|
972
|
+
readonly client_removeNoteParticipant: (a: number, b: any, c: bigint) => any;
|
|
973
|
+
readonly client_setNoteTagFavorited: (a: number, b: any, c: number) => any;
|
|
974
974
|
readonly client_findItemMatchesForName: (a: number, b: number, c: number) => any;
|
|
975
|
-
readonly
|
|
976
|
-
readonly
|
|
977
|
-
readonly client_set_dir_color: (a: number, b: any, c: number, d: number) => any;
|
|
978
|
-
readonly client_listFavorites: (a: number) => any;
|
|
979
|
-
readonly client_getDir: (a: number, b: number, c: number) => any;
|
|
980
|
-
readonly client_dirExists: (a: number, b: any, c: number, d: number) => any;
|
|
975
|
+
readonly main_js: () => void;
|
|
976
|
+
readonly client_listRecents: (a: number) => any;
|
|
981
977
|
readonly client_trashDir: (a: number, b: any) => any;
|
|
982
|
-
readonly client_setDirColor: (a: number, b: any, c: number, d: number) => any;
|
|
983
|
-
readonly client_listDirRecursive: (a: number, b: any) => any;
|
|
984
978
|
readonly client_getDirSize: (a: number, b: any) => any;
|
|
985
|
-
readonly
|
|
986
|
-
readonly
|
|
979
|
+
readonly client_listDir: (a: number, b: any) => any;
|
|
980
|
+
readonly client_dirExists: (a: number, b: any, c: number, d: number) => any;
|
|
981
|
+
readonly client_listFavorites: (a: number) => any;
|
|
982
|
+
readonly client_listDirRecursive: (a: number, b: any) => any;
|
|
983
|
+
readonly client_deleteDirPermanently: (a: number, b: any) => any;
|
|
987
984
|
readonly client_createDir: (a: number, b: any, c: number, d: number) => any;
|
|
985
|
+
readonly client_findItemInDir: (a: number, b: any, c: number, d: number) => any;
|
|
986
|
+
readonly client_updateDirMetadata: (a: number, b: any, c: any) => any;
|
|
987
|
+
readonly client_setDirColor: (a: number, b: any, c: number, d: number) => any;
|
|
988
|
+
readonly client_set_dir_color: (a: number, b: any, c: number, d: number) => any;
|
|
988
989
|
readonly client_root: (a: number) => any;
|
|
989
|
-
readonly
|
|
990
|
-
readonly
|
|
991
|
-
readonly client_addChatParticipant: (a: number, b: any, c: any) => any;
|
|
990
|
+
readonly client_listTrash: (a: number) => any;
|
|
991
|
+
readonly client_getDir: (a: number, b: number, c: number) => any;
|
|
992
992
|
readonly client_disableMessageEmbed: (a: number, b: any) => any;
|
|
993
|
-
readonly client_leaveChat: (a: number, b: any) => any;
|
|
994
|
-
readonly client_sendChatMessage: (a: number, b: any, c: number, d: number, e: number) => any;
|
|
995
|
-
readonly client_deleteMessage: (a: number, b: any, c: any) => any;
|
|
996
|
-
readonly client_getChatUnreadCount: (a: number, b: any) => any;
|
|
997
|
-
readonly client_muteChat: (a: number, b: any, c: number) => any;
|
|
998
|
-
readonly client_getAllChatsUnreadCount: (a: number) => any;
|
|
999
|
-
readonly client_updateChatOnlineStatus: (a: number, b: any) => any;
|
|
1000
|
-
readonly client_listMessages: (a: number, b: any) => any;
|
|
1001
|
-
readonly client_editMessage: (a: number, b: any, c: any, d: number, e: number) => any;
|
|
1002
|
-
readonly client_listMessagesBefore: (a: number, b: any, c: bigint) => any;
|
|
1003
|
-
readonly client_deleteChat: (a: number, b: any) => any;
|
|
1004
|
-
readonly client_renameChat: (a: number, b: any, c: number, d: number) => any;
|
|
1005
993
|
readonly client_listChats: (a: number) => any;
|
|
1006
|
-
readonly client_removeChatParticipant: (a: number, b: any, c: any) => any;
|
|
1007
994
|
readonly client_sendTypingSignal: (a: number, b: any, c: any) => any;
|
|
995
|
+
readonly client_listMessagesBefore: (a: number, b: any, c: bigint) => any;
|
|
996
|
+
readonly client_muteChat: (a: number, b: any, c: number) => any;
|
|
997
|
+
readonly client_listMessages: (a: number, b: any) => any;
|
|
1008
998
|
readonly client_getChat: (a: number, b: number, c: number) => any;
|
|
999
|
+
readonly client_getAllChatsUnreadCount: (a: number) => any;
|
|
1000
|
+
readonly client_deleteMessage: (a: number, b: any, c: any) => any;
|
|
1001
|
+
readonly decryptMetaWithChatKey: (a: any, b: number, c: number) => any;
|
|
1002
|
+
readonly client_removeChatParticipant: (a: number, b: any, c: any) => any;
|
|
1003
|
+
readonly client_sendChatMessage: (a: number, b: any, c: number, d: number, e: number) => any;
|
|
1004
|
+
readonly client_updateChatOnlineStatus: (a: number, b: any) => any;
|
|
1009
1005
|
readonly client_createChat: (a: number, b: number, c: number) => any;
|
|
1006
|
+
readonly client_markChatRead: (a: number, b: any) => any;
|
|
1007
|
+
readonly client_addChatParticipant: (a: number, b: any, c: any) => any;
|
|
1008
|
+
readonly client_renameChat: (a: number, b: any, c: number, d: number) => any;
|
|
1009
|
+
readonly client_getChatUnreadCount: (a: number, b: any) => any;
|
|
1010
|
+
readonly client_editMessage: (a: number, b: any, c: any, d: number, e: number) => any;
|
|
1010
1011
|
readonly client_updateLastChatFocusTimesNow: (a: number, b: number, c: number) => any;
|
|
1011
|
-
readonly
|
|
1012
|
-
readonly
|
|
1012
|
+
readonly client_leaveChat: (a: number, b: any) => any;
|
|
1013
|
+
readonly client_deleteChat: (a: number, b: any) => any;
|
|
1013
1014
|
readonly client_isSocketConnected: (a: number) => any;
|
|
1014
1015
|
readonly client_addSocketListener: (a: number, b: number, c: number, d: any) => any;
|
|
1016
|
+
readonly client_decryptMeta: (a: number, b: number, c: number) => any;
|
|
1015
1017
|
readonly client_downloadItemsToZip: (a: number, b: any) => any;
|
|
1016
1018
|
readonly client_setFavorite: (a: number, b: any, c: number) => any;
|
|
1017
1019
|
readonly filensdkerror_toString: (a: number) => [number, number];
|
|
@@ -1044,11 +1046,11 @@ export interface InitOutput {
|
|
|
1044
1046
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
1045
1047
|
readonly __wbindgen_export_8: WebAssembly.Table;
|
|
1046
1048
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
1047
|
-
readonly
|
|
1048
|
-
readonly closure200_externref_shim: (a: number, b: number, c: any) => void;
|
|
1049
|
+
readonly closure199_externref_shim: (a: number, b: number, c: any) => void;
|
|
1049
1050
|
readonly wasm_bindgen__convert__closures_____invoke__hae677310d2767440: (a: number, b: number) => void;
|
|
1051
|
+
readonly closure2832_externref_shim: (a: number, b: number, c: any) => void;
|
|
1050
1052
|
readonly wasm_bindgen__convert__closures_____invoke__h2628cf2e1cb63982: (a: number, b: number) => void;
|
|
1051
|
-
readonly
|
|
1053
|
+
readonly closure3003_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
1052
1054
|
readonly __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
|
|
1053
1055
|
readonly __wbindgen_start: (a: number) => void;
|
|
1054
1056
|
}
|