@filen/sdk-rs 0.3.13 → 0.3.14

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.
@@ -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
  *
@@ -33,42 +33,42 @@ export interface FileMetaChanges {
33
33
  created?: bigint | null;
34
34
  }
35
35
 
36
+ export interface SharedDir {
37
+ dir: DirWithMetaEnum;
38
+ sharingRole: SharingRole;
39
+ writeAccess: boolean;
40
+ }
41
+
36
42
  export interface DecryptedDirMeta {
37
43
  name: string;
38
44
  created?: bigint;
39
45
  }
40
46
 
41
- export interface Dir {
47
+ export interface RootWithMeta {
42
48
  uuid: UuidStr;
43
- parent: ParentUuid;
44
49
  color: DirColor;
45
50
  timestamp: bigint;
46
- favorited: boolean;
47
51
  meta?: DecryptedDirMeta;
48
52
  }
49
53
 
50
- export type AnyDirEnum = Dir | RootWithMeta | Root;
51
-
52
- export type AnyDirEnumWithShareInfo = Dir | SharedDir | Root;
53
-
54
- export interface SharedDir {
55
- dir: DirWithMetaEnum;
56
- sharingRole: SharingRole;
57
- writeAccess: boolean;
54
+ export interface Root {
55
+ uuid: UuidStr;
58
56
  }
59
57
 
60
- export type DirEnum = Dir | Root;
58
+ export type AnyDirEnumWithShareInfo = Dir | SharedDir | Root;
61
59
 
62
- export interface RootWithMeta {
60
+ export interface Dir {
63
61
  uuid: UuidStr;
62
+ parent: ParentUuid;
64
63
  color: DirColor;
65
64
  timestamp: bigint;
65
+ favorited: boolean;
66
66
  meta?: DecryptedDirMeta;
67
67
  }
68
68
 
69
- export interface Root {
70
- uuid: UuidStr;
71
- }
69
+ export type AnyDirEnum = Dir | RootWithMeta | Root;
70
+
71
+ export type DirEnum = Dir | Root;
72
72
 
73
73
  export type DirColor = "default" | "blue" | "green" | "purple" | "red" | "gray" | string;
74
74
 
@@ -85,13 +85,13 @@ export interface RootFile {
85
85
  canMakeThumbnail: boolean;
86
86
  }
87
87
 
88
- export interface FileMetaChanges {
89
- name: string | undefined;
90
- mime: string | undefined;
91
- lastModified: DateTime<Utc> | undefined;
92
- created: DateTime<Utc> | undefined | undefined;
88
+ export interface SharedFile {
89
+ file: RootFile;
90
+ sharingRole: SharingRole;
93
91
  }
94
92
 
93
+ export type FileEnum = File | RootFile;
94
+
95
95
  export interface DecryptedFileMeta {
96
96
  name: string;
97
97
  mime: string;
@@ -103,11 +103,6 @@ export interface DecryptedFileMeta {
103
103
  version: FileEncryptionVersion;
104
104
  }
105
105
 
106
- export interface SharedFile {
107
- file: RootFile;
108
- sharingRole: SharingRole;
109
- }
110
-
111
106
  export interface File {
112
107
  uuid: UuidStr;
113
108
  meta?: DecryptedFileMeta;
@@ -121,8 +116,6 @@ export interface File {
121
116
  canMakeThumbnail: boolean;
122
117
  }
123
118
 
124
- export type FileEnum = File | RootFile;
125
-
126
119
  export interface FilePublicLink {
127
120
  linkUuid: UuidStr;
128
121
  password?: string | Uint8Array;
@@ -145,26 +138,12 @@ export interface DirectoryMetaChanges {
145
138
  created?: bigint | null;
146
139
  }
147
140
 
148
- export interface UploadFileStreamParams extends UploadFileParams {
149
- reader: ReadableStream<Uint8Array>;
150
- knownSize: bigint | undefined;
151
- progress?: (bytes: bigint) => void;
152
- }
141
+ export type NonRootItem = File | Dir;
153
142
 
154
143
  export interface UploadFileParams extends FileBuilderParams {
155
144
  managedFuture?: ManagedFuture;
156
145
  }
157
146
 
158
- export interface FileBuilderParams {
159
- parent: DirEnum;
160
- name: string;
161
- created?: bigint;
162
- modified?: bigint;
163
- mime?: string;
164
- }
165
-
166
- export type NonRootItem = File | Dir;
167
-
168
147
  export interface DownloadFileStreamParams {
169
148
  file: FileEnum;
170
149
  writer: WritableStream<Uint8Array>;
@@ -181,6 +160,65 @@ export interface DownloadFileToZipParams {
181
160
  managedFuture?: ManagedFuture;
182
161
  }
183
162
 
163
+ export interface FileBuilderParams {
164
+ parent: DirEnum;
165
+ name: string;
166
+ created?: bigint;
167
+ modified?: bigint;
168
+ mime?: string;
169
+ }
170
+
171
+ export interface UploadFileStreamParams extends UploadFileParams {
172
+ reader: ReadableStream<Uint8Array>;
173
+ knownSize: bigint | undefined;
174
+ progress?: (bytes: bigint) => void;
175
+ }
176
+
177
+ export interface NoteParticipant {
178
+ user_id: bigint;
179
+ is_owner: boolean;
180
+ email: string;
181
+ avatar?: string;
182
+ nick_name: string;
183
+ permissions_write: boolean;
184
+ added_timestamp: bigint;
185
+ }
186
+
187
+ export interface Note {
188
+ uuid: UuidStr;
189
+ owner_id: bigint;
190
+ last_editor_id: bigint;
191
+ favorite: boolean;
192
+ pinned: boolean;
193
+ tags: NoteTag[];
194
+ note_type: NoteType;
195
+ encryption_key?: string;
196
+ title?: string;
197
+ preview?: string;
198
+ trash: boolean;
199
+ archive: boolean;
200
+ created_timestamp: bigint;
201
+ edited_timestamp: bigint;
202
+ participants: NoteParticipant[];
203
+ }
204
+
205
+ export interface NoteHistory {
206
+ id: bigint;
207
+ preview?: string;
208
+ content?: string;
209
+ edited_timestamp: bigint;
210
+ editor_id: bigint;
211
+ note_type: NoteType;
212
+ }
213
+
214
+ export interface NoteTag {
215
+ uuid: UuidStr;
216
+ name?: string;
217
+ favorite: boolean;
218
+ edited_timestamp: bigint;
219
+ created_timestamp: bigint;
220
+ }
221
+
184
222
  export interface AcquireLockParams {
185
223
  resource: string;
186
224
  maxSleepTime?: number;
@@ -189,57 +227,62 @@ export interface AcquireLockParams {
189
227
 
190
228
  export type Item = File | RootFile | Dir | RootWithMeta | Root;
191
229
 
230
+ export interface MakeThumbnailInMemoryResult {
231
+ webpData: Uint8Array;
232
+ }
233
+
192
234
  export interface MakeThumbnailInMemoryParams {
193
235
  file: File;
194
236
  maxWidth: number;
195
237
  maxHeight: number;
196
238
  }
197
239
 
198
- export interface MakeThumbnailInMemoryResult {
199
- webpData: Uint8Array;
200
- }
201
-
202
- export interface BlockedContact {
240
+ export interface ContactRequestIn {
203
241
  uuid: UuidStr;
204
242
  userId: bigint;
205
243
  email: string;
206
244
  avatar?: string;
207
245
  nickName: string;
208
- timestamp: bigint;
209
246
  }
210
247
 
211
- export interface ContactRequestIn {
248
+ export interface BlockedContact {
212
249
  uuid: UuidStr;
213
250
  userId: bigint;
214
251
  email: string;
215
252
  avatar?: string;
216
253
  nickName: string;
254
+ timestamp: bigint;
217
255
  }
218
256
 
219
- export interface ContactRequestOut {
257
+ export interface Contact {
220
258
  uuid: UuidStr;
259
+ userId: bigint;
221
260
  email: string;
222
261
  avatar?: string;
223
262
  nickName: string;
263
+ lastActive: bigint;
264
+ timestamp: bigint;
265
+ publicKey: string;
224
266
  }
225
267
 
226
- export interface Contact {
268
+ export interface ContactRequestOut {
227
269
  uuid: UuidStr;
228
- userId: bigint;
229
270
  email: string;
230
271
  avatar?: string;
231
272
  nickName: string;
232
- lastActive: bigint;
233
- timestamp: bigint;
234
- publicKey: string;
235
273
  }
236
274
 
275
+ export type SharingRole = ({ role: "sharer" } & ShareInfo) | ({ role: "receiver" } & ShareInfo);
276
+
237
277
  export interface ShareInfo {
238
278
  email: string;
239
279
  id: number;
240
280
  }
241
281
 
242
- export type SharingRole = ({ role: "sharer" } & ShareInfo) | ({ role: "receiver" } & ShareInfo);
282
+ export interface DuplicateNoteResponse {
283
+ original: Note;
284
+ duplicated: Note;
285
+ }
243
286
 
244
287
  export interface ItemMatch {
245
288
  item: NonRootItemTagged;
@@ -260,63 +303,91 @@ export type ParentUuid = UuidStr | "trash" | "recents" | "favorites" | "links";
260
303
 
261
304
  export type FileEncryptionVersion = 1 | 2 | 3;
262
305
 
306
+ export type NoteType = "text" | "md" | "code" | "rich" | "checklist";
307
+
263
308
  export type PublicLinkExpiration = "never" | "1h" | "6h" | "1d" | "3d" | "7d" | "14d" | "30d";
264
309
 
265
310
  export class Client {
266
311
  private constructor();
267
312
  free(): void;
268
313
  toStringified(): StringifiedClient;
269
- acquireLock(params: AcquireLockParams): Promise<ResourceLock>;
270
314
  lockDrive(): Promise<ResourceLock>;
315
+ acquireLock(params: AcquireLockParams): Promise<ResourceLock>;
271
316
  makeThumbnailInMemory(params: MakeThumbnailInMemoryParams): Promise<MakeThumbnailInMemoryResult | undefined>;
272
- publicLinkDir(dir: Dir): Promise<DirPublicLink>;
273
- shareDir(dir: Dir, contact: Contact): Promise<void>;
274
- blockContact(email: string): Promise<string>;
275
- updateDirLink(dir: Dir, link: DirPublicLink): Promise<void>;
276
- removeDirLink(link: DirPublicLink): Promise<void>;
277
- listIncomingContactRequests(): Promise<ContactRequestIn[]>;
317
+ getFileLinkStatus(file: File): Promise<FilePublicLink | undefined>;
318
+ unblockContact(contact_uuid: string): Promise<void>;
319
+ listInShared(dir?: DirWithMetaEnum | null): Promise<[SharedDirectory[], SharedFile[]]>;
278
320
  listOutgoingContactRequests(): Promise<ContactRequestOut[]>;
321
+ getContacts(): Promise<Contact[]>;
322
+ deleteContact(contact_uuid: string): Promise<void>;
323
+ updateFileLink(file: File, link: FilePublicLink): Promise<void>;
324
+ sendContactRequest(email: string): Promise<string>;
325
+ denyContactRequest(contact_uuid: string): Promise<void>;
326
+ publicLinkFile(file: File): Promise<FilePublicLink>;
327
+ updateDirLink(dir: Dir, link: DirPublicLink): Promise<void>;
279
328
  acceptContactRequest(contact_uuid: string): Promise<string>;
329
+ removeDirLink(link: DirPublicLink): Promise<void>;
330
+ listOutShared(dir?: DirWithMetaEnum | null, contact?: Contact | null): Promise<[SharedDirectory[], SharedFile[]]>;
331
+ listLinkedDir(dir: DirWithMetaEnum, link: DirPublicLink): Promise<[Dir[], File[]]>;
280
332
  cancelContactRequest(contact_uuid: string): Promise<void>;
333
+ getBlockedContacts(): Promise<BlockedContact[]>;
281
334
  shareFile(file: File, contact: Contact): Promise<void>;
282
- getDirLinkStatus(dir: Dir): Promise<DirPublicLink | undefined>;
335
+ publicLinkDir(dir: Dir): Promise<DirPublicLink>;
283
336
  removeSharedLinkOut(link_uuid: string, receiver_id: bigint): Promise<void>;
284
- getBlockedContacts(): Promise<BlockedContact[]>;
285
- unblockContact(contact_uuid: string): Promise<void>;
286
- listOutShared(dir?: DirWithMetaEnum | null, contact?: Contact | null): Promise<[SharedDirectory[], SharedFile[]]>;
287
- updateFileLink(file: File, link: FilePublicLink): Promise<void>;
288
- deleteContact(contact_uuid: string): Promise<void>;
289
- getFileLinkStatus(file: File): Promise<FilePublicLink | undefined>;
337
+ getDirLinkStatus(dir: Dir): Promise<DirPublicLink | undefined>;
338
+ blockContact(email: string): Promise<string>;
339
+ listIncomingContactRequests(): Promise<ContactRequestIn[]>;
290
340
  removeSharedLinkIn(link_uuid: string): Promise<void>;
291
- denyContactRequest(contact_uuid: string): Promise<void>;
292
- listInShared(dir?: DirWithMetaEnum | null): Promise<[SharedDirectory[], SharedFile[]]>;
293
- getContacts(): Promise<Contact[]>;
294
- listLinkedDir(dir: DirWithMetaEnum, link: DirPublicLink): Promise<[Dir[], File[]]>;
295
- sendContactRequest(email: string): Promise<string>;
296
- publicLinkFile(file: File): Promise<FilePublicLink>;
297
- setDirColor(dir: Dir, color: DirColor): Promise<Dir>;
298
- root(): Root;
299
- createDir(parent: DirEnum, name: string): Promise<Dir>;
300
- listFavorites(): Promise<[Dir[], File[]]>;
301
- listRecents(): Promise<[Dir[], File[]]>;
341
+ shareDir(dir: Dir, contact: Contact): Promise<void>;
302
342
  trashDir(dir: Dir): Promise<Dir>;
303
- deleteDirPermanently(dir: Dir): Promise<void>;
304
- getDir(uuid: string): Promise<Dir>;
343
+ listDirRecursive(dir: DirEnum): Promise<[Dir[], File[]]>;
344
+ listFavorites(): Promise<[Dir[], File[]]>;
345
+ setDirColor(dir: Dir, color: DirColor): Promise<Dir>;
346
+ updateDirMetadata(dir: Dir, changes: DirectoryMetaChanges): Promise<Dir>;
305
347
  dirExists(parent: AnyDirEnum, name: string): Promise<void>;
306
348
  findItemInDir(dir: AnyDirEnum, nameOrUuid: string): Promise<NonRootItemTagged | undefined>;
349
+ deleteDirPermanently(dir: Dir): Promise<void>;
350
+ createDir(parent: DirEnum, name: string): Promise<Dir>;
307
351
  listDir(dir: DirEnum): Promise<[Dir[], File[]]>;
308
- updateDirMetadata(dir: Dir, changes: DirectoryMetaChanges): Promise<Dir>;
309
- listDirRecursive(dir: DirEnum): Promise<[Dir[], File[]]>;
352
+ listRecents(): Promise<[Dir[], File[]]>;
353
+ getDir(uuid: string): Promise<Dir>;
354
+ root(): Root;
310
355
  getDirSize(dir: AnyDirEnumWithShareInfo): Promise<DirSizeResponse>;
356
+ createNote(title?: string | null): Promise<Note>;
357
+ trashNote(note: Note): Promise<Note>;
358
+ setNoteTitle(note: Note, new_title: string): Promise<Note>;
359
+ getNoteContent(note: Note): Promise<string | undefined>;
360
+ setNoteType(note: Note, note_type: NoteType, known_content?: string | null): Promise<Note>;
361
+ duplicateNote(note: Note): Promise<DuplicateNoteResponse>;
362
+ setNotePinned(note: Note, pinned: boolean): Promise<Note>;
363
+ addTagToNote(note: Note, tag: NoteTag): Promise<[Note, NoteTag]>;
364
+ getNote(note_uuid: string): Promise<Note | undefined>;
365
+ setNoteParticipantPermission(note: Note, contact: Contact, write: boolean): Promise<Note>;
366
+ removeNoteParticipant(note: Note, contact: Contact): Promise<Note>;
367
+ addNoteParticipant(note: Note, contact: Contact, write: boolean): Promise<Note>;
368
+ setNoteFavorited(note: Note, favorite: boolean): Promise<Note>;
369
+ setNoteContent(note: Note, new_content: string, new_preview: string): Promise<Note>;
370
+ createNoteTag(name: string): Promise<NoteTag>;
371
+ archiveNote(note: Note): Promise<Note>;
372
+ listNoteTags(): Promise<NoteTag[]>;
373
+ setNoteTagFavorited(tag: NoteTag, favorite: boolean): Promise<NoteTag>;
374
+ removeTagFromNote(note: Note, tag: NoteTag): Promise<Note>;
375
+ renameNoteTag(tag: NoteTag, new_name: string): Promise<NoteTag>;
376
+ deleteNoteTag(tag: NoteTag): Promise<void>;
377
+ listNotes(): Promise<Note[]>;
378
+ restoreNoteFromHistory(note: Note, history: NoteHistory): Promise<Note>;
379
+ restoreNote(note: Note): Promise<Note>;
380
+ deleteNote(note: Note): Promise<void>;
381
+ getNoteHistory(note: Note): Promise<NoteHistory[]>;
311
382
  findItemMatchesForName(name: string): Promise<ItemMatch[]>;
312
- downloadFile(file: FileEnum): Promise<Uint8Array>;
383
+ uploadFile(data: Uint8Array, params: UploadFileParams): Promise<File>;
384
+ trashFile(file: File): Promise<File>;
313
385
  deleteFilePermanently(file: File): Promise<void>;
386
+ downloadFileToWriter(params: DownloadFileStreamParams): Promise<void>;
314
387
  updateFileMetadata(file: File, changes: FileMetaChanges): Promise<File>;
388
+ downloadFile(file: FileEnum): Promise<Uint8Array>;
315
389
  getFile(uuid: string): Promise<File>;
316
- downloadFileToWriter(params: DownloadFileStreamParams): Promise<void>;
317
- trashFile(file: File): Promise<File>;
318
390
  uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
319
- uploadFile(data: Uint8Array, params: UploadFileParams): Promise<File>;
320
391
  setFavorite(item: NonRootItem, favorited: boolean): Promise<NonRootItemTagged>;
321
392
  downloadItemsToZip(params: DownloadFileToZipParams): Promise<void>;
322
393
  }
@@ -344,92 +415,118 @@ export class IntoUnderlyingSource {
344
415
  }
345
416
  export class PauseSignal {
346
417
  free(): void;
347
- resume(): void;
348
- constructor();
349
418
  isPaused(): boolean;
350
419
  pause(): void;
420
+ constructor();
421
+ resume(): void;
351
422
  }
352
423
  export class ResourceLock {
353
424
  private constructor();
354
425
  free(): void;
355
- /**
356
- * Utility function to be able to immediately drop the lock from JS
357
- */
358
- drop(): void;
359
426
  /**
360
427
  * The resource this lock is for
361
428
  */
362
429
  resource(): string;
430
+ /**
431
+ * Utility function to be able to immediately drop the lock from JS
432
+ */
433
+ drop(): void;
363
434
  }
364
435
 
365
436
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
366
437
 
367
438
  export interface InitOutput {
368
439
  readonly memory: WebAssembly.Memory;
369
- readonly client_toStringified: (a: number) => any;
370
440
  readonly __wbg_client_free: (a: number, b: number) => void;
371
- readonly pausesignal_new: () => number;
372
- readonly __wbg_pausesignal_free: (a: number, b: number) => void;
373
- readonly pausesignal_pause: (a: number) => void;
441
+ readonly client_toStringified: (a: number) => any;
374
442
  readonly pausesignal_isPaused: (a: number) => number;
443
+ readonly pausesignal_pause: (a: number) => void;
444
+ readonly __wbg_pausesignal_free: (a: number, b: number) => void;
375
445
  readonly pausesignal_resume: (a: number) => void;
376
- readonly client_acquireLock: (a: number, b: any) => any;
446
+ readonly pausesignal_new: () => number;
377
447
  readonly resourcelock_resource: (a: number) => [number, number];
378
- readonly resourcelock_drop: (a: number) => void;
379
448
  readonly __wbg_resourcelock_free: (a: number, b: number) => void;
380
449
  readonly client_lockDrive: (a: number) => any;
450
+ readonly resourcelock_drop: (a: number) => void;
451
+ readonly client_acquireLock: (a: number, b: any) => any;
381
452
  readonly client_makeThumbnailInMemory: (a: number, b: any) => any;
382
- readonly client_updateDirLink: (a: number, b: any, c: any) => any;
383
- readonly client_publicLinkDir: (a: number, b: any) => any;
384
- readonly client_getBlockedContacts: (a: number) => any;
385
- readonly client_publicLinkFile: (a: number, b: any) => any;
386
- readonly client_denyContactRequest: (a: number, b: number, c: number) => any;
387
- readonly client_removeSharedLinkIn: (a: number, b: number, c: number) => any;
388
- readonly client_listInShared: (a: number, b: number) => any;
453
+ readonly client_shareFile: (a: number, b: any, c: any) => any;
389
454
  readonly client_acceptContactRequest: (a: number, b: number, c: number) => any;
390
- readonly client_listOutgoingContactRequests: (a: number) => any;
391
- readonly client_removeSharedLinkOut: (a: number, b: number, c: number, d: bigint) => any;
392
- readonly client_cancelContactRequest: (a: number, b: number, c: number) => any;
393
- readonly client_blockContact: (a: number, b: number, c: number) => any;
394
- readonly client_sendContactRequest: (a: number, b: number, c: number) => any;
395
- readonly client_updateFileLink: (a: number, b: any, c: any) => any;
396
- readonly client_getContacts: (a: number) => any;
397
455
  readonly client_getFileLinkStatus: (a: number, b: any) => any;
398
- readonly client_shareFile: (a: number, b: any, c: any) => any;
399
456
  readonly client_listIncomingContactRequests: (a: number) => any;
400
457
  readonly client_getDirLinkStatus: (a: number, b: any) => any;
401
- readonly client_listOutShared: (a: number, b: number, c: number) => any;
458
+ readonly client_shareDir: (a: number, b: any, c: any) => any;
402
459
  readonly client_removeDirLink: (a: number, b: any) => any;
460
+ readonly client_updateFileLink: (a: number, b: any, c: any) => any;
461
+ readonly client_denyContactRequest: (a: number, b: number, c: number) => any;
462
+ readonly client_publicLinkFile: (a: number, b: any) => any;
463
+ readonly client_getBlockedContacts: (a: number) => any;
464
+ readonly client_removeSharedLinkOut: (a: number, b: number, c: number, d: bigint) => any;
403
465
  readonly client_unblockContact: (a: number, b: number, c: number) => any;
404
- readonly client_shareDir: (a: number, b: any, c: any) => any;
466
+ readonly client_listOutShared: (a: number, b: number, c: number) => any;
467
+ readonly client_getContacts: (a: number) => any;
468
+ readonly client_listOutgoingContactRequests: (a: number) => any;
469
+ readonly client_publicLinkDir: (a: number, b: any) => any;
405
470
  readonly client_listLinkedDir: (a: number, b: any, c: any) => any;
406
471
  readonly client_deleteContact: (a: number, b: number, c: number) => any;
472
+ readonly client_cancelContactRequest: (a: number, b: number, c: number) => any;
473
+ readonly client_sendContactRequest: (a: number, b: number, c: number) => any;
474
+ readonly client_removeSharedLinkIn: (a: number, b: number, c: number) => any;
475
+ readonly client_updateDirLink: (a: number, b: any, c: any) => any;
476
+ readonly client_listInShared: (a: number, b: number) => any;
477
+ readonly client_blockContact: (a: number, b: number, c: number) => any;
478
+ readonly main_js: () => void;
407
479
  readonly login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
408
480
  readonly fromStringified: (a: any) => [number, number, number];
409
- readonly main_js: () => void;
481
+ readonly client_listFavorites: (a: number) => any;
410
482
  readonly client_getDirSize: (a: number, b: any) => any;
483
+ readonly client_dirExists: (a: number, b: any, c: number, d: number) => any;
484
+ readonly client_findItemInDir: (a: number, b: any, c: number, d: number) => any;
485
+ readonly client_updateDirMetadata: (a: number, b: any, c: any) => any;
486
+ readonly client_listDirRecursive: (a: number, b: any) => any;
411
487
  readonly client_root: (a: number) => any;
412
488
  readonly client_trashDir: (a: number, b: any) => any;
489
+ readonly client_listDir: (a: number, b: any) => any;
413
490
  readonly client_createDir: (a: number, b: any, c: number, d: number) => any;
414
- readonly client_dirExists: (a: number, b: any, c: number, d: number) => any;
415
- readonly client_listDirRecursive: (a: number, b: any) => any;
416
- readonly client_setDirColor: (a: number, b: any, c: any) => any;
417
- readonly client_updateDirMetadata: (a: number, b: any, c: any) => any;
418
- readonly client_listFavorites: (a: number) => any;
419
- readonly client_getDir: (a: number, b: number, c: number) => any;
420
- readonly client_findItemInDir: (a: number, b: any, c: number, d: number) => any;
421
491
  readonly client_deleteDirPermanently: (a: number, b: any) => any;
422
- readonly client_listDir: (a: number, b: any) => any;
492
+ readonly client_getDir: (a: number, b: number, c: number) => any;
423
493
  readonly client_listRecents: (a: number) => any;
494
+ readonly client_setDirColor: (a: number, b: any, c: any) => any;
495
+ readonly client_setNoteParticipantPermission: (a: number, b: any, c: any, d: number) => any;
496
+ readonly client_restoreNote: (a: number, b: any) => any;
497
+ readonly client_renameNoteTag: (a: number, b: any, c: number, d: number) => any;
498
+ readonly client_setNotePinned: (a: number, b: any, c: number) => any;
499
+ readonly client_getNote: (a: number, b: number, c: number) => any;
500
+ readonly client_trashNote: (a: number, b: any) => any;
501
+ readonly client_getNoteHistory: (a: number, b: any) => any;
502
+ readonly client_deleteNoteTag: (a: number, b: any) => any;
503
+ readonly client_restoreNoteFromHistory: (a: number, b: any, c: any) => any;
504
+ readonly client_removeTagFromNote: (a: number, b: any, c: any) => any;
505
+ readonly client_removeNoteParticipant: (a: number, b: any, c: any) => any;
506
+ readonly client_setNoteTitle: (a: number, b: any, c: number, d: number) => any;
507
+ readonly client_listNotes: (a: number) => any;
508
+ readonly client_getNoteContent: (a: number, b: any) => any;
509
+ readonly client_createNote: (a: number, b: number, c: number) => any;
510
+ readonly client_setNoteFavorited: (a: number, b: any, c: number) => any;
511
+ readonly client_setNoteContent: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
512
+ readonly client_deleteNote: (a: number, b: any) => any;
513
+ readonly client_listNoteTags: (a: number) => any;
514
+ readonly client_duplicateNote: (a: number, b: any) => any;
515
+ readonly client_setNoteType: (a: number, b: any, c: any, d: number, e: number) => any;
516
+ readonly client_setNoteTagFavorited: (a: number, b: any, c: number) => any;
517
+ readonly client_addNoteParticipant: (a: number, b: any, c: any, d: number) => any;
518
+ readonly client_addTagToNote: (a: number, b: any, c: any) => any;
519
+ readonly client_archiveNote: (a: number, b: any) => any;
520
+ readonly client_createNoteTag: (a: number, b: number, c: number) => any;
424
521
  readonly client_findItemMatchesForName: (a: number, b: number, c: number) => any;
425
- readonly client_downloadFile: (a: number, b: any) => any;
426
- readonly client_downloadFileToWriter: (a: number, b: any) => any;
522
+ readonly client_getFile: (a: number, b: number, c: number) => any;
427
523
  readonly client_uploadFile: (a: number, b: number, c: number, d: any) => any;
524
+ readonly client_downloadFile: (a: number, b: any) => any;
428
525
  readonly client_updateFileMetadata: (a: number, b: any, c: any) => any;
429
- readonly client_getFile: (a: number, b: number, c: number) => any;
430
526
  readonly client_trashFile: (a: number, b: any) => any;
431
- readonly client_uploadFileFromReader: (a: number, b: any) => any;
432
527
  readonly client_deleteFilePermanently: (a: number, b: any) => any;
528
+ readonly client_downloadFileToWriter: (a: number, b: any) => any;
529
+ readonly client_uploadFileFromReader: (a: number, b: any) => any;
433
530
  readonly client_setFavorite: (a: number, b: any, c: number) => any;
434
531
  readonly client_downloadItemsToZip: (a: number, b: any) => any;
435
532
  readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
@@ -455,8 +552,8 @@ export interface InitOutput {
455
552
  readonly __externref_table_dealloc: (a: number) => void;
456
553
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbd803380da322cda: (a: number, b: number) => void;
457
554
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h218a17164c1a612c: (a: number, b: number) => void;
458
- readonly closure1185_externref_shim: (a: number, b: number, c: any) => void;
459
- readonly closure1332_externref_shim: (a: number, b: number, c: any, d: any) => void;
555
+ readonly closure1307_externref_shim: (a: number, b: number, c: any) => void;
556
+ readonly closure1459_externref_shim: (a: number, b: number, c: any, d: any) => void;
460
557
  readonly __wbindgen_start: () => void;
461
558
  }
462
559