@filen/sdk-rs 0.3.5 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,54 +1,31 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export function fromStringified(serialized: StringifiedClient): Client;
4
- export function login(email: string, password: string, twoFactorCode?: string | null): Promise<Client>;
5
4
  export function main_js(): void;
5
+ export function login(email: string, password: string, twoFactorCode?: string | null): Promise<Client>;
6
6
  /**
7
7
  * The `ReadableStreamType` enum.
8
8
  *
9
9
  * *This API requires the following crate features to be activated: `ReadableStreamType`*
10
10
  */
11
11
  type ReadableStreamType = "bytes";
12
- export interface StringifiedClient {
13
- email: string;
14
- rootUuid: string;
15
- authInfo: string;
16
- privateKey: string;
17
- apiKey: string;
18
- authVersion: number;
19
- }
20
-
21
- export interface File {
22
- uuid: UuidStr;
23
- meta?: DecryptedFileMeta;
24
- parent: ParentUuid;
25
- size: bigint;
26
- favorited: boolean;
27
- region: string;
28
- bucket: string;
29
- chunks: bigint;
30
- }
31
-
32
- export interface DecryptedFileMeta {
33
- name: string;
34
- mime: string;
35
- created?: bigint;
36
- modified: bigint;
37
- hash?: Uint8Array;
38
- size: bigint;
39
- key: string;
40
- version: FileEncryptionVersion;
41
- }
12
+ export type Item = File | Dir | Root;
42
13
 
43
14
  export interface DownloadFileToZipParams {
44
15
  items: Item[];
45
16
  writer: WritableStream<Uint8Array>;
46
- progress?: (bytes: bigint) => void;
47
- abort_signal?: AbortSignal;
17
+ progress?: (bytesWritten: bigint, totalBytes: bigint, itemsProcessed: bigint, totalItems: bigint) => void;
18
+ abortSignal?: AbortSignal;
48
19
  }
49
20
 
50
21
  export type AbortSignal = AbortSignal;
51
22
 
23
+ export interface UploadFileStreamParams extends UploadFileParams {
24
+ reader: ReadableStream<Uint8Array>;
25
+ knownSize: bigint | undefined;
26
+ progress?: (bytes: bigint) => void;
27
+ }
28
+
52
29
  export interface UploadFileParams {
53
30
  parent: DirEnum;
54
31
  name: string;
@@ -58,25 +35,26 @@ export interface UploadFileParams {
58
35
  abortSignal?: AbortSignal;
59
36
  }
60
37
 
61
- export interface UploadFileStreamParams extends UploadFileParams {
62
- reader: ReadableStream<Uint8Array>;
63
- known_size: bigint | undefined;
64
- progress?: (bytes: bigint) => void;
65
- }
66
-
67
38
  export interface DownloadFileStreamParams {
68
39
  file: File;
69
40
  writer: WritableStream<Uint8Array>;
70
41
  progress?: (bytes: bigint) => void;
71
- abort_signal?: AbortSignal;
42
+ abortSignal?: AbortSignal;
43
+ start?: bigint | undefined;
44
+ end?: bigint | undefined;
72
45
  }
73
46
 
74
- export type DirEnum = Dir | Root;
47
+ export interface DecryptedDirMeta {
48
+ name: string;
49
+ created?: bigint;
50
+ }
75
51
 
76
52
  export interface Root {
77
53
  uuid: UuidStr;
78
54
  }
79
55
 
56
+ export type DirEnum = Dir | Root;
57
+
80
58
  export interface Dir {
81
59
  uuid: UuidStr;
82
60
  parent: ParentUuid;
@@ -85,14 +63,46 @@ export interface Dir {
85
63
  meta?: DecryptedDirMeta;
86
64
  }
87
65
 
88
- export interface DecryptedDirMeta {
66
+ export interface File {
67
+ uuid: UuidStr;
68
+ meta?: DecryptedFileMeta;
69
+ parent: ParentUuid;
70
+ size: bigint;
71
+ favorited: boolean;
72
+ region: string;
73
+ bucket: string;
74
+ chunks: bigint;
75
+ }
76
+
77
+ export interface DecryptedFileMeta {
89
78
  name: string;
79
+ mime: string;
90
80
  created?: bigint;
81
+ modified: bigint;
82
+ hash?: Uint8Array;
83
+ size: bigint;
84
+ key: string;
85
+ version: FileEncryptionVersion;
91
86
  }
92
87
 
93
- export type NonRootObject = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
88
+ export interface StringifiedClient {
89
+ email: string;
90
+ rootUuid: string;
91
+ authInfo: string;
92
+ privateKey: string;
93
+ apiKey: string;
94
+ authVersion: number;
95
+ maxParallelRequests?: number | undefined;
96
+ maxIoMemoryUsage?: number | undefined;
97
+ }
94
98
 
95
- export type Item = File | Dir | Root;
99
+ export interface DirSizeResponse {
100
+ size: bigint;
101
+ files: bigint;
102
+ dirs: bigint;
103
+ }
104
+
105
+ export type NonRootObject = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
96
106
 
97
107
  export type ParentUuid = UuidStr | "trash" | "recents" | "favorites" | "links";
98
108
 
@@ -103,21 +113,25 @@ export type UuidStr = string;
103
113
  export class Client {
104
114
  private constructor();
105
115
  free(): void;
106
- toStringified(): StringifiedClient;
107
116
  downloadItemsToZip(params: DownloadFileToZipParams): Promise<void>;
108
- trashFile(file: File): Promise<File>;
117
+ toStringified(): StringifiedClient;
118
+ deleteFilePermanently(file: File): Promise<void>;
109
119
  uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
110
120
  downloadFile(file: File): Promise<Uint8Array>;
111
- deleteFilePermanently(file: File): Promise<void>;
112
- uploadFile(data: Uint8Array, params: UploadFileParams): Promise<File>;
121
+ trashFile(file: File): Promise<File>;
113
122
  downloadFileToWriter(params: DownloadFileStreamParams): Promise<void>;
114
- findItemInDir(dir: DirEnum, nameOrUuid: string): Promise<NonRootObject | undefined>;
115
- deleteDirPermanently(dir: Dir): Promise<void>;
123
+ uploadFile(data: Uint8Array, params: UploadFileParams): Promise<File>;
124
+ getDirSize(dir: Dir): Promise<DirSizeResponse>;
116
125
  root(): Root;
117
- listDir(dir: DirEnum): Promise<[Dir[], File[]]>;
118
126
  createDir(parent: DirEnum, name: string): Promise<Dir>;
119
- trashDir(dir: Dir): Promise<Dir>;
127
+ deleteDirPermanently(dir: Dir): Promise<void>;
120
128
  dirExists(parent: DirEnum, name: string): Promise<void>;
129
+ trashDir(dir: Dir): Promise<Dir>;
130
+ listRecents(): Promise<[Dir[], File[]]>;
131
+ findItemInDir(dir: DirEnum, nameOrUuid: string): Promise<NonRootObject | undefined>;
132
+ listDir(dir: DirEnum): Promise<[Dir[], File[]]>;
133
+ listFavorites(): Promise<[Dir[], File[]]>;
134
+ listDirRecursive(dir: DirEnum): Promise<[Dir[], File[]]>;
121
135
  }
122
136
  export class IntoUnderlyingByteSource {
123
137
  private constructor();
@@ -146,25 +160,29 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
146
160
 
147
161
  export interface InitOutput {
148
162
  readonly memory: WebAssembly.Memory;
149
- readonly client_toStringified: (a: number) => any;
150
- readonly __wbg_client_free: (a: number, b: number) => void;
163
+ readonly login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
164
+ readonly fromStringified: (a: any) => [number, number, number];
165
+ readonly main_js: () => void;
151
166
  readonly client_downloadItemsToZip: (a: number, b: any) => any;
152
- readonly client_uploadFile: (a: number, b: number, c: number, d: any) => any;
153
- readonly client_deleteFilePermanently: (a: number, b: any) => any;
167
+ readonly __wbg_client_free: (a: number, b: number) => void;
168
+ readonly client_toStringified: (a: number) => any;
154
169
  readonly client_downloadFile: (a: number, b: any) => any;
155
- readonly client_downloadFileToWriter: (a: number, b: any) => any;
156
170
  readonly client_uploadFileFromReader: (a: number, b: any) => any;
171
+ readonly client_downloadFileToWriter: (a: number, b: any) => any;
172
+ readonly client_uploadFile: (a: number, b: number, c: number, d: any) => any;
173
+ readonly client_deleteFilePermanently: (a: number, b: any) => any;
157
174
  readonly client_trashFile: (a: number, b: any) => any;
158
- readonly main_js: () => void;
159
- readonly login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
160
- readonly fromStringified: (a: any) => [number, number, number];
161
- readonly client_trashDir: (a: number, b: any) => any;
162
175
  readonly client_findItemInDir: (a: number, b: any, c: number, d: number) => any;
163
- readonly client_root: (a: number) => any;
164
- readonly client_deleteDirPermanently: (a: number, b: any) => any;
165
- readonly client_createDir: (a: number, b: any, c: number, d: number) => any;
166
176
  readonly client_listDir: (a: number, b: any) => any;
177
+ readonly client_deleteDirPermanently: (a: number, b: any) => any;
178
+ readonly client_trashDir: (a: number, b: any) => any;
167
179
  readonly client_dirExists: (a: number, b: any, c: number, d: number) => any;
180
+ readonly client_root: (a: number) => any;
181
+ readonly client_createDir: (a: number, b: any, c: number, d: number) => any;
182
+ readonly client_listFavorites: (a: number) => any;
183
+ readonly client_listRecents: (a: number) => any;
184
+ readonly client_listDirRecursive: (a: number, b: any) => any;
185
+ readonly client_getDirSize: (a: number, b: any) => any;
168
186
  readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
169
187
  readonly intounderlyingsource_cancel: (a: number) => void;
170
188
  readonly intounderlyingsource_pull: (a: number, b: any) => any;
@@ -188,8 +206,8 @@ export interface InitOutput {
188
206
  readonly __externref_table_dealloc: (a: number) => void;
189
207
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad07d0627257b45: (a: number, b: number) => void;
190
208
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h96ccbfe273ba439a: (a: number, b: number) => void;
191
- readonly closure837_externref_shim: (a: number, b: number, c: any) => void;
192
- readonly closure996_externref_shim: (a: number, b: number, c: any, d: any) => void;
209
+ readonly closure799_externref_shim: (a: number, b: number, c: any) => void;
210
+ readonly closure957_externref_shim: (a: number, b: number, c: any, d: any) => void;
193
211
  readonly __wbindgen_start: () => void;
194
212
  }
195
213
 
package/browser/sdk-rs.js CHANGED
@@ -203,13 +203,6 @@ function debugString(val) {
203
203
  return className;
204
204
  }
205
205
 
206
- function passArray8ToWasm0(arg, malloc) {
207
- const ptr = malloc(arg.length * 1, 1) >>> 0;
208
- getUint8ArrayMemory0().set(arg, ptr / 1);
209
- WASM_VECTOR_LEN = arg.length;
210
- return ptr;
211
- }
212
-
213
206
  function takeFromExternrefTable0(idx) {
214
207
  const value = wasm.__wbindgen_export_4.get(idx);
215
208
  wasm.__externref_table_dealloc(idx);
@@ -227,6 +220,10 @@ export function fromStringified(serialized) {
227
220
  return Client.__wrap(ret[0]);
228
221
  }
229
222
 
223
+ export function main_js() {
224
+ wasm.main_js();
225
+ }
226
+
230
227
  /**
231
228
  * @param {string} email
232
229
  * @param {string} password
@@ -244,10 +241,12 @@ export function login(email, password, twoFactorCode) {
244
241
  return ret;
245
242
  }
246
243
 
247
- export function main_js() {
248
- wasm.main_js();
244
+ function passArray8ToWasm0(arg, malloc) {
245
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
246
+ getUint8ArrayMemory0().set(arg, ptr / 1);
247
+ WASM_VECTOR_LEN = arg.length;
248
+ return ptr;
249
249
  }
250
-
251
250
  function __wbg_adapter_60(arg0, arg1) {
252
251
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad07d0627257b45(arg0, arg1);
253
252
  }
@@ -257,11 +256,11 @@ function __wbg_adapter_63(arg0, arg1) {
257
256
  }
258
257
 
259
258
  function __wbg_adapter_66(arg0, arg1, arg2) {
260
- wasm.closure837_externref_shim(arg0, arg1, arg2);
259
+ wasm.closure799_externref_shim(arg0, arg1, arg2);
261
260
  }
262
261
 
263
- function __wbg_adapter_303(arg0, arg1, arg2, arg3) {
264
- wasm.closure996_externref_shim(arg0, arg1, arg2, arg3);
262
+ function __wbg_adapter_309(arg0, arg1, arg2, arg3) {
263
+ wasm.closure957_externref_shim(arg0, arg1, arg2, arg3);
265
264
  }
266
265
 
267
266
  const __wbindgen_enum_ReadableStreamReaderMode = ["byob"];
@@ -297,13 +296,6 @@ export class Client {
297
296
  const ptr = this.__destroy_into_raw();
298
297
  wasm.__wbg_client_free(ptr, 0);
299
298
  }
300
- /**
301
- * @returns {StringifiedClient}
302
- */
303
- toStringified() {
304
- const ret = wasm.client_toStringified(this.__wbg_ptr);
305
- return ret;
306
- }
307
299
  /**
308
300
  * @param {DownloadFileToZipParams} params
309
301
  * @returns {Promise<void>}
@@ -312,12 +304,19 @@ export class Client {
312
304
  const ret = wasm.client_downloadItemsToZip(this.__wbg_ptr, params);
313
305
  return ret;
314
306
  }
307
+ /**
308
+ * @returns {StringifiedClient}
309
+ */
310
+ toStringified() {
311
+ const ret = wasm.client_toStringified(this.__wbg_ptr);
312
+ return ret;
313
+ }
315
314
  /**
316
315
  * @param {File} file
317
- * @returns {Promise<File>}
316
+ * @returns {Promise<void>}
318
317
  */
319
- trashFile(file) {
320
- const ret = wasm.client_trashFile(this.__wbg_ptr, file);
318
+ deleteFilePermanently(file) {
319
+ const ret = wasm.client_deleteFilePermanently(this.__wbg_ptr, file);
321
320
  return ret;
322
321
  }
323
322
  /**
@@ -338,21 +337,10 @@ export class Client {
338
337
  }
339
338
  /**
340
339
  * @param {File} file
341
- * @returns {Promise<void>}
342
- */
343
- deleteFilePermanently(file) {
344
- const ret = wasm.client_deleteFilePermanently(this.__wbg_ptr, file);
345
- return ret;
346
- }
347
- /**
348
- * @param {Uint8Array} data
349
- * @param {UploadFileParams} params
350
340
  * @returns {Promise<File>}
351
341
  */
352
- uploadFile(data, params) {
353
- const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
354
- const len0 = WASM_VECTOR_LEN;
355
- const ret = wasm.client_uploadFile(this.__wbg_ptr, ptr0, len0, params);
342
+ trashFile(file) {
343
+ const ret = wasm.client_trashFile(this.__wbg_ptr, file);
356
344
  return ret;
357
345
  }
358
346
  /**
@@ -364,22 +352,22 @@ export class Client {
364
352
  return ret;
365
353
  }
366
354
  /**
367
- * @param {DirEnum} dir
368
- * @param {string} nameOrUuid
369
- * @returns {Promise<NonRootObject | undefined>}
355
+ * @param {Uint8Array} data
356
+ * @param {UploadFileParams} params
357
+ * @returns {Promise<File>}
370
358
  */
371
- findItemInDir(dir, nameOrUuid) {
372
- const ptr0 = passStringToWasm0(nameOrUuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
359
+ uploadFile(data, params) {
360
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
373
361
  const len0 = WASM_VECTOR_LEN;
374
- const ret = wasm.client_findItemInDir(this.__wbg_ptr, dir, ptr0, len0);
362
+ const ret = wasm.client_uploadFile(this.__wbg_ptr, ptr0, len0, params);
375
363
  return ret;
376
364
  }
377
365
  /**
378
366
  * @param {Dir} dir
379
- * @returns {Promise<void>}
367
+ * @returns {Promise<DirSizeResponse>}
380
368
  */
381
- deleteDirPermanently(dir) {
382
- const ret = wasm.client_deleteDirPermanently(this.__wbg_ptr, dir);
369
+ getDirSize(dir) {
370
+ const ret = wasm.client_getDirSize(this.__wbg_ptr, dir);
383
371
  return ret;
384
372
  }
385
373
  /**
@@ -389,14 +377,6 @@ export class Client {
389
377
  const ret = wasm.client_root(this.__wbg_ptr);
390
378
  return ret;
391
379
  }
392
- /**
393
- * @param {DirEnum} dir
394
- * @returns {[Dir[], File[]]}
395
- */
396
- listDir(dir) {
397
- const ret = wasm.client_listDir(this.__wbg_ptr, dir);
398
- return ret;
399
- }
400
380
  /**
401
381
  * @param {DirEnum} parent
402
382
  * @param {string} name
@@ -410,10 +390,10 @@ export class Client {
410
390
  }
411
391
  /**
412
392
  * @param {Dir} dir
413
- * @returns {Promise<Dir>}
393
+ * @returns {Promise<void>}
414
394
  */
415
- trashDir(dir) {
416
- const ret = wasm.client_trashDir(this.__wbg_ptr, dir);
395
+ deleteDirPermanently(dir) {
396
+ const ret = wasm.client_deleteDirPermanently(this.__wbg_ptr, dir);
417
397
  return ret;
418
398
  }
419
399
  /**
@@ -427,6 +407,55 @@ export class Client {
427
407
  const ret = wasm.client_dirExists(this.__wbg_ptr, parent, ptr0, len0);
428
408
  return ret;
429
409
  }
410
+ /**
411
+ * @param {Dir} dir
412
+ * @returns {Promise<Dir>}
413
+ */
414
+ trashDir(dir) {
415
+ const ret = wasm.client_trashDir(this.__wbg_ptr, dir);
416
+ return ret;
417
+ }
418
+ /**
419
+ * @returns {[Dir[], File[]]}
420
+ */
421
+ listRecents() {
422
+ const ret = wasm.client_listRecents(this.__wbg_ptr);
423
+ return ret;
424
+ }
425
+ /**
426
+ * @param {DirEnum} dir
427
+ * @param {string} nameOrUuid
428
+ * @returns {Promise<NonRootObject | undefined>}
429
+ */
430
+ findItemInDir(dir, nameOrUuid) {
431
+ const ptr0 = passStringToWasm0(nameOrUuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
432
+ const len0 = WASM_VECTOR_LEN;
433
+ const ret = wasm.client_findItemInDir(this.__wbg_ptr, dir, ptr0, len0);
434
+ return ret;
435
+ }
436
+ /**
437
+ * @param {DirEnum} dir
438
+ * @returns {[Dir[], File[]]}
439
+ */
440
+ listDir(dir) {
441
+ const ret = wasm.client_listDir(this.__wbg_ptr, dir);
442
+ return ret;
443
+ }
444
+ /**
445
+ * @returns {[Dir[], File[]]}
446
+ */
447
+ listFavorites() {
448
+ const ret = wasm.client_listFavorites(this.__wbg_ptr);
449
+ return ret;
450
+ }
451
+ /**
452
+ * @param {DirEnum} dir
453
+ * @returns {[Dir[], File[]]}
454
+ */
455
+ listDirRecursive(dir) {
456
+ const ret = wasm.client_listDirRecursive(this.__wbg_ptr, dir);
457
+ return ret;
458
+ }
430
459
  }
431
460
 
432
461
  const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -645,6 +674,10 @@ function __wbg_get_imports() {
645
674
  const ret = arg0.call(arg1, arg2);
646
675
  return ret;
647
676
  }, arguments) };
677
+ imports.wbg.__wbg_call_a7beb83688026483 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
678
+ const ret = arg0.call(arg1, arg2, arg3, arg4, arg5);
679
+ return ret;
680
+ }, arguments) };
648
681
  imports.wbg.__wbg_cancel_81ebaa65c2a54d20 = function(arg0) {
649
682
  const ret = arg0.cancel();
650
683
  return ret;
@@ -883,7 +916,7 @@ function __wbg_get_imports() {
883
916
  const a = state0.a;
884
917
  state0.a = 0;
885
918
  try {
886
- return __wbg_adapter_303(a, state0.b, arg0, arg1);
919
+ return __wbg_adapter_309(a, state0.b, arg0, arg1);
887
920
  } finally {
888
921
  state0.a = a;
889
922
  }
@@ -1161,16 +1194,16 @@ function __wbg_get_imports() {
1161
1194
  const ret = false;
1162
1195
  return ret;
1163
1196
  };
1164
- imports.wbg.__wbindgen_closure_wrapper1759 = function(arg0, arg1, arg2) {
1165
- const ret = makeMutClosure(arg0, arg1, 733, __wbg_adapter_60);
1197
+ imports.wbg.__wbindgen_closure_wrapper1754 = function(arg0, arg1, arg2) {
1198
+ const ret = makeMutClosure(arg0, arg1, 695, __wbg_adapter_60);
1166
1199
  return ret;
1167
1200
  };
1168
- imports.wbg.__wbindgen_closure_wrapper2007 = function(arg0, arg1, arg2) {
1169
- const ret = makeMutClosure(arg0, arg1, 798, __wbg_adapter_63);
1201
+ imports.wbg.__wbindgen_closure_wrapper2002 = function(arg0, arg1, arg2) {
1202
+ const ret = makeMutClosure(arg0, arg1, 760, __wbg_adapter_63);
1170
1203
  return ret;
1171
1204
  };
1172
- imports.wbg.__wbindgen_closure_wrapper2123 = function(arg0, arg1, arg2) {
1173
- const ret = makeMutClosure(arg0, arg1, 838, __wbg_adapter_66);
1205
+ imports.wbg.__wbindgen_closure_wrapper2118 = function(arg0, arg1, arg2) {
1206
+ const ret = makeMutClosure(arg0, arg1, 800, __wbg_adapter_66);
1174
1207
  return ret;
1175
1208
  };
1176
1209
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -1,25 +1,29 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const client_toStringified: (a: number) => any;
5
- export const __wbg_client_free: (a: number, b: number) => void;
4
+ export const login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
5
+ export const fromStringified: (a: any) => [number, number, number];
6
+ export const main_js: () => void;
6
7
  export const client_downloadItemsToZip: (a: number, b: any) => any;
7
- export const client_uploadFile: (a: number, b: number, c: number, d: any) => any;
8
- export const client_deleteFilePermanently: (a: number, b: any) => any;
8
+ export const __wbg_client_free: (a: number, b: number) => void;
9
+ export const client_toStringified: (a: number) => any;
9
10
  export const client_downloadFile: (a: number, b: any) => any;
10
- export const client_downloadFileToWriter: (a: number, b: any) => any;
11
11
  export const client_uploadFileFromReader: (a: number, b: any) => any;
12
+ export const client_downloadFileToWriter: (a: number, b: any) => any;
13
+ export const client_uploadFile: (a: number, b: number, c: number, d: any) => any;
14
+ export const client_deleteFilePermanently: (a: number, b: any) => any;
12
15
  export const client_trashFile: (a: number, b: any) => any;
13
- export const main_js: () => void;
14
- export const login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
15
- export const fromStringified: (a: any) => [number, number, number];
16
- export const client_trashDir: (a: number, b: any) => any;
17
16
  export const client_findItemInDir: (a: number, b: any, c: number, d: number) => any;
18
- export const client_root: (a: number) => any;
19
- export const client_deleteDirPermanently: (a: number, b: any) => any;
20
- export const client_createDir: (a: number, b: any, c: number, d: number) => any;
21
17
  export const client_listDir: (a: number, b: any) => any;
18
+ export const client_deleteDirPermanently: (a: number, b: any) => any;
19
+ export const client_trashDir: (a: number, b: any) => any;
22
20
  export const client_dirExists: (a: number, b: any, c: number, d: number) => any;
21
+ export const client_root: (a: number) => any;
22
+ export const client_createDir: (a: number, b: any, c: number, d: number) => any;
23
+ export const client_listFavorites: (a: number) => any;
24
+ export const client_listRecents: (a: number) => any;
25
+ export const client_listDirRecursive: (a: number, b: any) => any;
26
+ export const client_getDirSize: (a: number, b: any) => any;
23
27
  export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
24
28
  export const intounderlyingsource_cancel: (a: number) => void;
25
29
  export const intounderlyingsource_pull: (a: number, b: any) => any;
@@ -43,6 +47,6 @@ export const __wbindgen_export_6: WebAssembly.Table;
43
47
  export const __externref_table_dealloc: (a: number) => void;
44
48
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad07d0627257b45: (a: number, b: number) => void;
45
49
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h96ccbfe273ba439a: (a: number, b: number) => void;
46
- export const closure837_externref_shim: (a: number, b: number, c: any) => void;
47
- export const closure996_externref_shim: (a: number, b: number, c: any, d: any) => void;
50
+ export const closure799_externref_shim: (a: number, b: number, c: any) => void;
51
+ export const closure957_externref_shim: (a: number, b: number, c: any, d: any) => void;
48
52
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@filen/sdk-rs",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "Filen WASM SDK using filen-sdk-rs",
5
5
  "type": "module",
6
6
  "scripts": {