@filen/sdk-rs 0.3.3 → 0.3.4

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,23 +1,21 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function main_js(): void;
4
- export function login(email: string, password: string, twoFactorCode?: string | null): Promise<Client>;
5
3
  export function fromStringified(serialized: StringifiedClient): Client;
4
+ export function login(email: string, password: string, twoFactorCode?: string | null): Promise<Client>;
5
+ export function main_js(): void;
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 File {
13
- uuid: UuidStr;
14
- meta?: DecryptedFileMeta;
15
- parent: ParentUuid;
16
- size: bigint;
17
- favorited: boolean;
18
- region: string;
19
- bucket: string;
20
- chunks: bigint;
12
+ export interface StringifiedClient {
13
+ email: string;
14
+ rootUuid: string;
15
+ authInfo: string;
16
+ privateKey: string;
17
+ apiKey: string;
18
+ authVersion: number;
21
19
  }
22
20
 
23
21
  export interface DecryptedFileMeta {
@@ -31,64 +29,71 @@ export interface DecryptedFileMeta {
31
29
  version: FileEncryptionVersion;
32
30
  }
33
31
 
34
- export type Item = File | Dir | Root;
35
-
36
- export interface StringifiedClient {
37
- email: string;
38
- rootUuid: string;
39
- authInfo: string;
40
- privateKey: string;
41
- apiKey: string;
42
- authVersion: number;
43
- }
44
-
45
- export interface Root {
46
- uuid: UuidStr;
47
- }
48
-
49
- export type DirEnum = Dir | Root;
50
-
51
- export interface Dir {
32
+ export interface File {
52
33
  uuid: UuidStr;
34
+ meta?: DecryptedFileMeta;
53
35
  parent: ParentUuid;
54
- color?: string;
36
+ size: bigint;
55
37
  favorited: boolean;
56
- meta?: DecryptedDirMeta;
38
+ region: string;
39
+ bucket: string;
40
+ chunks: bigint;
57
41
  }
58
42
 
59
- export interface DecryptedDirMeta {
43
+ export type AbortSignal = AbortSignal;
44
+
45
+ export interface UploadFileParams {
46
+ parent: DirEnum;
60
47
  name: string;
61
48
  created?: bigint;
49
+ modified?: bigint;
50
+ mime?: string | undefined;
51
+ abortSignal?: AbortSignal;
62
52
  }
63
53
 
64
- export type NonRootObject = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
65
-
66
54
  export interface UploadFileStreamParams extends UploadFileParams {
67
55
  reader: ReadableStream<Uint8Array>;
68
56
  known_size: bigint | undefined;
69
57
  progress?: (bytes: bigint) => void;
70
58
  }
71
59
 
72
- export interface DownloadFileToZipParams {
73
- items: Item[];
60
+ export interface DownloadFileStreamParams {
61
+ file: File;
74
62
  writer: WritableStream<Uint8Array>;
75
63
  progress?: (bytes: bigint) => void;
64
+ abort_signal?: AbortSignal;
76
65
  }
77
66
 
78
- export interface DownloadFileStreamParams {
79
- file: File;
67
+ export interface DownloadFileToZipParams {
68
+ items: Item[];
80
69
  writer: WritableStream<Uint8Array>;
81
70
  progress?: (bytes: bigint) => void;
71
+ abort_signal?: AbortSignal;
82
72
  }
83
73
 
84
- export interface UploadFileParams {
85
- parent: DirEnum;
74
+ export interface Root {
75
+ uuid: UuidStr;
76
+ }
77
+
78
+ export type DirEnum = Dir | Root;
79
+
80
+ export interface DecryptedDirMeta {
86
81
  name: string;
87
82
  created?: bigint;
88
- modified?: bigint;
89
- mime?: string;
90
83
  }
91
84
 
85
+ export interface Dir {
86
+ uuid: UuidStr;
87
+ parent: ParentUuid;
88
+ color?: string;
89
+ favorited: boolean;
90
+ meta?: DecryptedDirMeta;
91
+ }
92
+
93
+ export type NonRootObject = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
94
+
95
+ export type Item = File | Dir | Root;
96
+
92
97
  export type ParentUuid = UuidStr | "trash" | "recents" | "favorites" | "links";
93
98
 
94
99
  export type FileEncryptionVersion = 1 | 2 | 3;
@@ -98,21 +103,21 @@ export type UuidStr = string;
98
103
  export class Client {
99
104
  private constructor();
100
105
  free(): void;
101
- createDir(parent: DirEnum, name: string): Promise<Dir>;
102
- findItemInDir(dir: DirEnum, nameOrUuid: string): Promise<NonRootObject | undefined>;
103
- trashDir(dir: Dir): Promise<Dir>;
104
- deleteDirPermanently(dir: Dir): Promise<void>;
105
- dirExists(parent: DirEnum, name: string): Promise<void>;
106
- root(): Root;
107
- listDir(dir: DirEnum): Promise<[Dir[], File[]]>;
108
106
  toStringified(): StringifiedClient;
109
107
  downloadItemsToZip(params: DownloadFileToZipParams): Promise<void>;
108
+ downloadFileToWriter(params: DownloadFileStreamParams): Promise<void>;
110
109
  trashFile(file: File): Promise<File>;
111
- deleteFilePermanently(file: File): Promise<void>;
112
110
  downloadFile(file: File): Promise<Uint8Array>;
113
- downloadFileToWriter(params: DownloadFileStreamParams): Promise<void>;
114
111
  uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
112
+ deleteFilePermanently(file: File): Promise<void>;
115
113
  uploadFile(data: Uint8Array, params: UploadFileParams): Promise<File>;
114
+ listDir(dir: DirEnum): Promise<[Dir[], File[]]>;
115
+ root(): Root;
116
+ findItemInDir(dir: DirEnum, nameOrUuid: string): Promise<NonRootObject | undefined>;
117
+ trashDir(dir: Dir): Promise<Dir>;
118
+ deleteDirPermanently(dir: Dir): Promise<void>;
119
+ dirExists(parent: DirEnum, name: string): Promise<void>;
120
+ createDir(parent: DirEnum, name: string): Promise<Dir>;
116
121
  }
117
122
  export class IntoUnderlyingByteSource {
118
123
  private constructor();
@@ -211,8 +211,28 @@ function debugString(val) {
211
211
  return className;
212
212
  }
213
213
 
214
- export function main_js() {
215
- wasm.main_js();
214
+ function passArray8ToWasm0(arg, malloc) {
215
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
216
+ getUint8ArrayMemory0().set(arg, ptr / 1);
217
+ WASM_VECTOR_LEN = arg.length;
218
+ return ptr;
219
+ }
220
+
221
+ function takeFromExternrefTable0(idx) {
222
+ const value = wasm.__wbindgen_export_4.get(idx);
223
+ wasm.__externref_table_dealloc(idx);
224
+ return value;
225
+ }
226
+ /**
227
+ * @param {StringifiedClient} serialized
228
+ * @returns {Client}
229
+ */
230
+ export function fromStringified(serialized) {
231
+ const ret = wasm.fromStringified(serialized);
232
+ if (ret[2]) {
233
+ throw takeFromExternrefTable0(ret[1]);
234
+ }
235
+ return Client.__wrap(ret[0]);
216
236
  }
217
237
 
218
238
  /**
@@ -232,43 +252,24 @@ export function login(email, password, twoFactorCode) {
232
252
  return ret;
233
253
  }
234
254
 
235
- function takeFromExternrefTable0(idx) {
236
- const value = wasm.__wbindgen_export_4.get(idx);
237
- wasm.__externref_table_dealloc(idx);
238
- return value;
239
- }
240
- /**
241
- * @param {StringifiedClient} serialized
242
- * @returns {Client}
243
- */
244
- export function fromStringified(serialized) {
245
- const ret = wasm.fromStringified(serialized);
246
- if (ret[2]) {
247
- throw takeFromExternrefTable0(ret[1]);
248
- }
249
- return Client.__wrap(ret[0]);
255
+ export function main_js() {
256
+ wasm.main_js();
250
257
  }
251
258
 
252
- function passArray8ToWasm0(arg, malloc) {
253
- const ptr = malloc(arg.length * 1, 1) >>> 0;
254
- getUint8ArrayMemory0().set(arg, ptr / 1);
255
- WASM_VECTOR_LEN = arg.length;
256
- return ptr;
257
- }
258
- function __wbg_adapter_58(arg0, arg1) {
259
+ function __wbg_adapter_60(arg0, arg1) {
259
260
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad07d0627257b45(arg0, arg1);
260
261
  }
261
262
 
262
- function __wbg_adapter_61(arg0, arg1) {
263
+ function __wbg_adapter_63(arg0, arg1) {
263
264
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h96ccbfe273ba439a(arg0, arg1);
264
265
  }
265
266
 
266
- function __wbg_adapter_64(arg0, arg1, arg2) {
267
- wasm.closure843_externref_shim(arg0, arg1, arg2);
267
+ function __wbg_adapter_66(arg0, arg1, arg2) {
268
+ wasm.closure837_externref_shim(arg0, arg1, arg2);
268
269
  }
269
270
 
270
- function __wbg_adapter_295(arg0, arg1, arg2, arg3) {
271
- wasm.closure1002_externref_shim(arg0, arg1, arg2, arg3);
271
+ function __wbg_adapter_303(arg0, arg1, arg2, arg3) {
272
+ wasm.closure996_externref_shim(arg0, arg1, arg2, arg3);
272
273
  }
273
274
 
274
275
  const __wbindgen_enum_ReadableStreamReaderMode = ["byob"];
@@ -305,133 +306,133 @@ export class Client {
305
306
  wasm.__wbg_client_free(ptr, 0);
306
307
  }
307
308
  /**
308
- * @param {DirEnum} parent
309
- * @param {string} name
310
- * @returns {Promise<Dir>}
309
+ * @returns {StringifiedClient}
311
310
  */
312
- createDir(parent, name) {
313
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
314
- const len0 = WASM_VECTOR_LEN;
315
- const ret = wasm.client_createDir(this.__wbg_ptr, parent, ptr0, len0);
311
+ toStringified() {
312
+ const ret = wasm.client_toStringified(this.__wbg_ptr);
316
313
  return ret;
317
314
  }
318
315
  /**
319
- * @param {DirEnum} dir
320
- * @param {string} nameOrUuid
321
- * @returns {Promise<NonRootObject | undefined>}
316
+ * @param {DownloadFileToZipParams} params
317
+ * @returns {Promise<void>}
322
318
  */
323
- findItemInDir(dir, nameOrUuid) {
324
- const ptr0 = passStringToWasm0(nameOrUuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
325
- const len0 = WASM_VECTOR_LEN;
326
- const ret = wasm.client_findItemInDir(this.__wbg_ptr, dir, ptr0, len0);
319
+ downloadItemsToZip(params) {
320
+ const ret = wasm.client_downloadItemsToZip(this.__wbg_ptr, params);
327
321
  return ret;
328
322
  }
329
323
  /**
330
- * @param {Dir} dir
331
- * @returns {Promise<Dir>}
324
+ * @param {DownloadFileStreamParams} params
325
+ * @returns {Promise<void>}
332
326
  */
333
- trashDir(dir) {
334
- const ret = wasm.client_trashDir(this.__wbg_ptr, dir);
327
+ downloadFileToWriter(params) {
328
+ const ret = wasm.client_downloadFileToWriter(this.__wbg_ptr, params);
335
329
  return ret;
336
330
  }
337
331
  /**
338
- * @param {Dir} dir
339
- * @returns {Promise<void>}
332
+ * @param {File} file
333
+ * @returns {Promise<File>}
340
334
  */
341
- deleteDirPermanently(dir) {
342
- const ret = wasm.client_deleteDirPermanently(this.__wbg_ptr, dir);
335
+ trashFile(file) {
336
+ const ret = wasm.client_trashFile(this.__wbg_ptr, file);
343
337
  return ret;
344
338
  }
345
339
  /**
346
- * @param {DirEnum} parent
347
- * @param {string} name
348
- * @returns {Promise<void>}
340
+ * @param {File} file
341
+ * @returns {Promise<Uint8Array>}
349
342
  */
350
- dirExists(parent, name) {
351
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
352
- const len0 = WASM_VECTOR_LEN;
353
- const ret = wasm.client_dirExists(this.__wbg_ptr, parent, ptr0, len0);
343
+ downloadFile(file) {
344
+ const ret = wasm.client_downloadFile(this.__wbg_ptr, file);
354
345
  return ret;
355
346
  }
356
347
  /**
357
- * @returns {Root}
348
+ * @param {UploadFileStreamParams} params
349
+ * @returns {Promise<File>}
358
350
  */
359
- root() {
360
- const ret = wasm.client_root(this.__wbg_ptr);
351
+ uploadFileFromReader(params) {
352
+ const ret = wasm.client_uploadFileFromReader(this.__wbg_ptr, params);
361
353
  return ret;
362
354
  }
363
355
  /**
364
- * @param {DirEnum} dir
365
- * @returns {[Dir[], File[]]}
356
+ * @param {File} file
357
+ * @returns {Promise<void>}
366
358
  */
367
- listDir(dir) {
368
- const ret = wasm.client_listDir(this.__wbg_ptr, dir);
359
+ deleteFilePermanently(file) {
360
+ const ret = wasm.client_deleteFilePermanently(this.__wbg_ptr, file);
369
361
  return ret;
370
362
  }
371
363
  /**
372
- * @returns {StringifiedClient}
364
+ * @param {Uint8Array} data
365
+ * @param {UploadFileParams} params
366
+ * @returns {Promise<File>}
373
367
  */
374
- toStringified() {
375
- const ret = wasm.client_toStringified(this.__wbg_ptr);
368
+ uploadFile(data, params) {
369
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
370
+ const len0 = WASM_VECTOR_LEN;
371
+ const ret = wasm.client_uploadFile(this.__wbg_ptr, ptr0, len0, params);
376
372
  return ret;
377
373
  }
378
374
  /**
379
- * @param {DownloadFileToZipParams} params
380
- * @returns {Promise<void>}
375
+ * @param {DirEnum} dir
376
+ * @returns {[Dir[], File[]]}
381
377
  */
382
- downloadItemsToZip(params) {
383
- const ret = wasm.client_downloadItemsToZip(this.__wbg_ptr, params);
378
+ listDir(dir) {
379
+ const ret = wasm.client_listDir(this.__wbg_ptr, dir);
384
380
  return ret;
385
381
  }
386
382
  /**
387
- * @param {File} file
388
- * @returns {Promise<File>}
383
+ * @returns {Root}
389
384
  */
390
- trashFile(file) {
391
- const ret = wasm.client_trashFile(this.__wbg_ptr, file);
385
+ root() {
386
+ const ret = wasm.client_root(this.__wbg_ptr);
392
387
  return ret;
393
388
  }
394
389
  /**
395
- * @param {File} file
396
- * @returns {Promise<void>}
390
+ * @param {DirEnum} dir
391
+ * @param {string} nameOrUuid
392
+ * @returns {Promise<NonRootObject | undefined>}
397
393
  */
398
- deleteFilePermanently(file) {
399
- const ret = wasm.client_deleteFilePermanently(this.__wbg_ptr, file);
394
+ findItemInDir(dir, nameOrUuid) {
395
+ const ptr0 = passStringToWasm0(nameOrUuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
396
+ const len0 = WASM_VECTOR_LEN;
397
+ const ret = wasm.client_findItemInDir(this.__wbg_ptr, dir, ptr0, len0);
400
398
  return ret;
401
399
  }
402
400
  /**
403
- * @param {File} file
404
- * @returns {Promise<Uint8Array>}
401
+ * @param {Dir} dir
402
+ * @returns {Promise<Dir>}
405
403
  */
406
- downloadFile(file) {
407
- const ret = wasm.client_downloadFile(this.__wbg_ptr, file);
404
+ trashDir(dir) {
405
+ const ret = wasm.client_trashDir(this.__wbg_ptr, dir);
408
406
  return ret;
409
407
  }
410
408
  /**
411
- * @param {DownloadFileStreamParams} params
409
+ * @param {Dir} dir
412
410
  * @returns {Promise<void>}
413
411
  */
414
- downloadFileToWriter(params) {
415
- const ret = wasm.client_downloadFileToWriter(this.__wbg_ptr, params);
412
+ deleteDirPermanently(dir) {
413
+ const ret = wasm.client_deleteDirPermanently(this.__wbg_ptr, dir);
416
414
  return ret;
417
415
  }
418
416
  /**
419
- * @param {UploadFileStreamParams} params
420
- * @returns {Promise<File>}
417
+ * @param {DirEnum} parent
418
+ * @param {string} name
419
+ * @returns {Promise<void>}
421
420
  */
422
- uploadFileFromReader(params) {
423
- const ret = wasm.client_uploadFileFromReader(this.__wbg_ptr, params);
421
+ dirExists(parent, name) {
422
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
423
+ const len0 = WASM_VECTOR_LEN;
424
+ const ret = wasm.client_dirExists(this.__wbg_ptr, parent, ptr0, len0);
424
425
  return ret;
425
426
  }
426
427
  /**
427
- * @param {Uint8Array} data
428
- * @param {UploadFileParams} params
429
- * @returns {Promise<File>}
428
+ * @param {DirEnum} parent
429
+ * @param {string} name
430
+ * @returns {Promise<Dir>}
430
431
  */
431
- uploadFile(data, params) {
432
- const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
432
+ createDir(parent, name) {
433
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
433
434
  const len0 = WASM_VECTOR_LEN;
434
- const ret = wasm.client_uploadFile(this.__wbg_ptr, ptr0, len0, params);
435
+ const ret = wasm.client_createDir(this.__wbg_ptr, parent, ptr0, len0);
435
436
  return ret;
436
437
  }
437
438
  }
@@ -578,6 +579,11 @@ export function __wbg_abort_775ef1d17fc65868(arg0) {
578
579
  arg0.abort();
579
580
  };
580
581
 
582
+ export function __wbg_aborted_c078e36031795a9a(arg0) {
583
+ const ret = arg0.aborted;
584
+ return ret;
585
+ };
586
+
581
587
  export function __wbg_append_8c7dd8d641a5f01b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
582
588
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
583
589
  }, arguments) };
@@ -785,6 +791,17 @@ export function __wbg_info_033d8b8a0838f1d3(arg0, arg1, arg2, arg3) {
785
791
  console.info(arg0, arg1, arg2, arg3);
786
792
  };
787
793
 
794
+ export function __wbg_instanceof_AbortSignal_ec9211148136acd1(arg0) {
795
+ let result;
796
+ try {
797
+ result = arg0 instanceof AbortSignal;
798
+ } catch (_) {
799
+ result = false;
800
+ }
801
+ const ret = result;
802
+ return ret;
803
+ };
804
+
788
805
  export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
789
806
  let result;
790
807
  try {
@@ -902,7 +919,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
902
919
  const a = state0.a;
903
920
  state0.a = 0;
904
921
  try {
905
- return __wbg_adapter_295(a, state0.b, arg0, arg1);
922
+ return __wbg_adapter_303(a, state0.b, arg0, arg1);
906
923
  } finally {
907
924
  state0.a = a;
908
925
  }
@@ -1099,6 +1116,10 @@ export function __wbg_setmode_5dc300b865044b65(arg0, arg1) {
1099
1116
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
1100
1117
  };
1101
1118
 
1119
+ export function __wbg_setonabort_a12865ed9905809a(arg0, arg1) {
1120
+ arg0.onabort = arg1;
1121
+ };
1122
+
1102
1123
  export function __wbg_setsignal_75b21ef3a81de905(arg0, arg1) {
1103
1124
  arg0.signal = arg1;
1104
1125
  };
@@ -1245,18 +1266,18 @@ export function __wbindgen_cb_drop(arg0) {
1245
1266
  return ret;
1246
1267
  };
1247
1268
 
1248
- export function __wbindgen_closure_wrapper1741(arg0, arg1, arg2) {
1249
- const ret = makeMutClosure(arg0, arg1, 739, __wbg_adapter_58);
1269
+ export function __wbindgen_closure_wrapper1759(arg0, arg1, arg2) {
1270
+ const ret = makeMutClosure(arg0, arg1, 733, __wbg_adapter_60);
1250
1271
  return ret;
1251
1272
  };
1252
1273
 
1253
- export function __wbindgen_closure_wrapper1980(arg0, arg1, arg2) {
1254
- const ret = makeMutClosure(arg0, arg1, 804, __wbg_adapter_61);
1274
+ export function __wbindgen_closure_wrapper2007(arg0, arg1, arg2) {
1275
+ const ret = makeMutClosure(arg0, arg1, 798, __wbg_adapter_63);
1255
1276
  return ret;
1256
1277
  };
1257
1278
 
1258
- export function __wbindgen_closure_wrapper2096(arg0, arg1, arg2) {
1259
- const ret = makeMutClosure(arg0, arg1, 844, __wbg_adapter_64);
1279
+ export function __wbindgen_closure_wrapper2123(arg0, arg1, arg2) {
1280
+ const ret = makeMutClosure(arg0, arg1, 838, __wbg_adapter_66);
1260
1281
  return ret;
1261
1282
  };
1262
1283
 
@@ -1360,6 +1381,11 @@ export function __wbindgen_throw(arg0, arg1) {
1360
1381
  throw new Error(getStringFromWasm0(arg0, arg1));
1361
1382
  };
1362
1383
 
1384
+ export function __wbindgen_typeof(arg0) {
1385
+ const ret = typeof arg0;
1386
+ return ret;
1387
+ };
1388
+
1363
1389
  export function __wbindgen_uint8_array_new(arg0, arg1) {
1364
1390
  var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
1365
1391
  wasm.__wbindgen_free(arg0, arg1 * 1, 1);
Binary file
@@ -1,25 +1,25 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const fromStringified: (a: any) => [number, number, number];
4
+ export const client_toStringified: (a: number) => any;
5
+ export const __wbg_client_free: (a: number, b: number) => void;
6
+ export const client_downloadItemsToZip: (a: number, b: any) => any;
7
+ export const client_trashFile: (a: number, b: any) => any;
8
+ export const client_downloadFile: (a: number, b: any) => any;
9
+ export const client_downloadFileToWriter: (a: number, b: any) => any;
10
+ export const client_uploadFileFromReader: (a: number, b: any) => any;
11
+ export const client_uploadFile: (a: number, b: number, c: number, d: any) => any;
12
+ export const client_deleteFilePermanently: (a: number, b: any) => any;
5
13
  export const main_js: () => void;
14
+ export const fromStringified: (a: any) => [number, number, number];
6
15
  export const login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
7
16
  export const client_trashDir: (a: number, b: any) => any;
17
+ export const client_createDir: (a: number, b: any, c: number, d: number) => any;
18
+ export const client_dirExists: (a: number, b: any, c: number, d: number) => any;
8
19
  export const client_listDir: (a: number, b: any) => any;
9
- export const client_root: (a: number) => any;
10
20
  export const client_findItemInDir: (a: number, b: any, c: number, d: number) => any;
11
- export const client_createDir: (a: number, b: any, c: number, d: number) => any;
12
21
  export const client_deleteDirPermanently: (a: number, b: any) => any;
13
- export const client_dirExists: (a: number, b: any, c: number, d: number) => any;
14
- export const __wbg_client_free: (a: number, b: number) => void;
15
- export const client_toStringified: (a: number) => any;
16
- export const client_downloadItemsToZip: (a: number, b: any) => any;
17
- export const client_deleteFilePermanently: (a: number, b: any) => any;
18
- export const client_downloadFileToWriter: (a: number, b: any) => any;
19
- export const client_uploadFileFromReader: (a: number, b: any) => any;
20
- export const client_downloadFile: (a: number, b: any) => any;
21
- export const client_uploadFile: (a: number, b: number, c: number, d: any) => any;
22
- export const client_trashFile: (a: number, b: any) => any;
22
+ export const client_root: (a: number) => any;
23
23
  export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
24
24
  export const intounderlyingsource_cancel: (a: number) => void;
25
25
  export const intounderlyingsource_pull: (a: number, b: any) => any;
@@ -43,6 +43,6 @@ export const __wbindgen_export_6: WebAssembly.Table;
43
43
  export const __externref_table_dealloc: (a: number) => void;
44
44
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad07d0627257b45: (a: number, b: number) => void;
45
45
  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 closure843_externref_shim: (a: number, b: number, c: any) => void;
47
- export const closure1002_externref_shim: (a: number, b: number, c: any, d: any) => 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;
48
48
  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.3",
3
+ "version": "0.3.4",
4
4
  "description": "Filen WASM SDK using filen-sdk-rs",
5
5
  "type": "module",
6
6
  "scripts": {