@filen/sdk-rs 0.2.3 → 0.2.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,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export function from_serialized(serialized: StringifiedClient): FilenState;
4
- export function main_js(): void;
5
4
  export function login(email: string, password: string, two_factor_code?: string | null): Promise<FilenState>;
5
+ export function main_js(): void;
6
6
  /**
7
7
  * Chroma subsampling format
8
8
  */
@@ -30,8 +30,9 @@ export enum ChromaSampling {
30
30
  * *This API requires the following crate features to be activated: `ReadableStreamType`*
31
31
  */
32
32
  type ReadableStreamType = "bytes";
33
- export interface DownloadFileStreamParams {
34
- writer: WritableStream<Uint8Array>;
33
+ export interface UploadFileStreamParams extends UploadFileParams {
34
+ reader: ReadableStream<Uint8Array>;
35
+ known_size?: bigint;
35
36
  progress?: (bytes: bigint) => void;
36
37
  }
37
38
 
@@ -43,9 +44,8 @@ export interface FileMeta {
43
44
  hash: Uint8Array | undefined;
44
45
  }
45
46
 
46
- export interface UploadFileStreamParams extends UploadFileParams {
47
- reader: ReadableStream<Uint8Array>;
48
- known_size?: bigint;
47
+ export interface DownloadFileStreamParams {
48
+ writer: WritableStream<Uint8Array>;
49
49
  progress?: (bytes: bigint) => void;
50
50
  }
51
51
 
@@ -73,45 +73,45 @@ export interface StringifiedClient {
73
73
  export class Dir {
74
74
  private constructor();
75
75
  free(): void;
76
- readonly color: string;
77
- readonly uuid: string;
78
- readonly favorited: boolean;
79
76
  readonly parent: string;
77
+ readonly favorited: boolean;
78
+ readonly uuid: string;
79
+ readonly color: string;
80
80
  readonly meta: DirMeta | undefined;
81
81
  }
82
82
  export class File {
83
83
  private constructor();
84
84
  free(): void;
85
- readonly uuid: string;
86
- readonly favorited: boolean;
87
- readonly parent: string;
88
85
  readonly meta: FileMeta | undefined;
86
+ readonly parent: string;
87
+ readonly uuid: string;
89
88
  readonly size: bigint;
89
+ readonly favorited: boolean;
90
90
  }
91
91
  export class FilenState {
92
92
  private constructor();
93
93
  free(): void;
94
94
  serialize(): StringifiedClient;
95
- createDir(parent: Dir, name: string): Promise<Dir>;
96
- dirExists(parent: Dir, name: string): Promise<void>;
97
- listDir(dir: Dir): Promise<[Dir[], File[]]>;
98
- root(): Dir;
99
95
  findItemInDir(dir: Dir, name_or_uuid: string): Promise<Dir | File | undefined>;
96
+ dirExists(parent: Dir, name: string): Promise<void>;
100
97
  deleteDirPermanently(dir: Dir): Promise<void>;
101
98
  trashDir(dir: Dir): Promise<void>;
99
+ root(): Dir;
100
+ createDir(parent: Dir, name: string): Promise<Dir>;
101
+ listDir(dir: Dir): Promise<[Dir[], File[]]>;
102
102
  uploadFileStream(parent: Dir, params: UploadFileStreamParams): Promise<File>;
103
- uploadFile(parent: Dir, data: Uint8Array, params: UploadFileParams): Promise<File>;
104
- downloadFile(file: File): Promise<Uint8Array>;
105
103
  trashFile(file: File): Promise<void>;
104
+ downloadFile(file: File): Promise<Uint8Array>;
106
105
  downloadFileToWriter(file: File, params: DownloadFileStreamParams): Promise<void>;
107
106
  deleteFilePermanently(file: File): Promise<void>;
107
+ uploadFile(parent: Dir, data: Uint8Array, params: UploadFileParams): Promise<File>;
108
108
  }
109
109
  export class IntoUnderlyingByteSource {
110
110
  private constructor();
111
111
  free(): void;
112
+ cancel(): void;
112
113
  pull(controller: ReadableByteStreamController): Promise<any>;
113
114
  start(controller: ReadableByteStreamController): void;
114
- cancel(): void;
115
115
  readonly type: ReadableStreamType;
116
116
  readonly autoAllocateChunkSize: number;
117
117
  }
@@ -125,6 +125,6 @@ export class IntoUnderlyingSink {
125
125
  export class IntoUnderlyingSource {
126
126
  private constructor();
127
127
  free(): void;
128
- pull(controller: ReadableStreamDefaultController): Promise<any>;
129
128
  cancel(): void;
129
+ pull(controller: ReadableStreamDefaultController): Promise<any>;
130
130
  }
@@ -238,10 +238,6 @@ export function from_serialized(serialized) {
238
238
  return FilenState.__wrap(ret[0]);
239
239
  }
240
240
 
241
- export function main_js() {
242
- wasm.main_js();
243
- }
244
-
245
241
  /**
246
242
  * @param {string} email
247
243
  * @param {string} password
@@ -259,6 +255,10 @@ export function login(email, password, two_factor_code) {
259
255
  return ret;
260
256
  }
261
257
 
258
+ export function main_js() {
259
+ wasm.main_js();
260
+ }
261
+
262
262
  function _assertClass(instance, klass) {
263
263
  if (!(instance instanceof klass)) {
264
264
  throw new Error(`expected instance of ${klass.name}`);
@@ -272,15 +272,15 @@ function passArray8ToWasm0(arg, malloc) {
272
272
  return ptr;
273
273
  }
274
274
  function __wbg_adapter_58(arg0, arg1, arg2) {
275
- wasm.closure109_externref_shim(arg0, arg1, arg2);
275
+ wasm.closure110_externref_shim(arg0, arg1, arg2);
276
276
  }
277
277
 
278
278
  function __wbg_adapter_61(arg0, arg1) {
279
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h11fe32c58007d6ae(arg0, arg1);
279
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3a28bb1da68602c0(arg0, arg1);
280
280
  }
281
281
 
282
- function __wbg_adapter_165(arg0, arg1, arg2, arg3) {
283
- wasm.closure83_externref_shim(arg0, arg1, arg2, arg3);
282
+ function __wbg_adapter_143(arg0, arg1, arg2, arg3) {
283
+ wasm.closure86_externref_shim(arg0, arg1, arg2, arg3);
284
284
  }
285
285
 
286
286
  /**
@@ -344,12 +344,19 @@ export class Dir {
344
344
  /**
345
345
  * @returns {string}
346
346
  */
347
- get color() {
348
- const ret = wasm.dir_color(this.__wbg_ptr);
347
+ get parent() {
348
+ const ret = wasm.dir_parent(this.__wbg_ptr);
349
349
  var v1 = getCachedStringFromWasm0(ret[0], ret[1]);
350
350
  if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
351
351
  return v1;
352
352
  }
353
+ /**
354
+ * @returns {boolean}
355
+ */
356
+ get favorited() {
357
+ const ret = wasm.dir_favorited(this.__wbg_ptr);
358
+ return ret !== 0;
359
+ }
353
360
  /**
354
361
  * @returns {string}
355
362
  */
@@ -359,18 +366,11 @@ export class Dir {
359
366
  if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
360
367
  return v1;
361
368
  }
362
- /**
363
- * @returns {boolean}
364
- */
365
- get favorited() {
366
- const ret = wasm.dir_favorited(this.__wbg_ptr);
367
- return ret !== 0;
368
- }
369
369
  /**
370
370
  * @returns {string}
371
371
  */
372
- get parent() {
373
- const ret = wasm.dir_parent(this.__wbg_ptr);
372
+ get color() {
373
+ const ret = wasm.dir_color(this.__wbg_ptr);
374
374
  var v1 = getCachedStringFromWasm0(ret[0], ret[1]);
375
375
  if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
376
376
  return v1;
@@ -410,20 +410,11 @@ export class File {
410
410
  wasm.__wbg_file_free(ptr, 0);
411
411
  }
412
412
  /**
413
- * @returns {string}
414
- */
415
- get uuid() {
416
- const ret = wasm.file_uuid(this.__wbg_ptr);
417
- var v1 = getCachedStringFromWasm0(ret[0], ret[1]);
418
- if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
419
- return v1;
420
- }
421
- /**
422
- * @returns {boolean}
413
+ * @returns {FileMeta | undefined}
423
414
  */
424
- get favorited() {
425
- const ret = wasm.file_favorited(this.__wbg_ptr);
426
- return ret !== 0;
415
+ get meta() {
416
+ const ret = wasm.file_meta(this.__wbg_ptr);
417
+ return ret;
427
418
  }
428
419
  /**
429
420
  * @returns {string}
@@ -435,11 +426,13 @@ export class File {
435
426
  return v1;
436
427
  }
437
428
  /**
438
- * @returns {FileMeta | undefined}
429
+ * @returns {string}
439
430
  */
440
- get meta() {
441
- const ret = wasm.file_meta(this.__wbg_ptr);
442
- return ret;
431
+ get uuid() {
432
+ const ret = wasm.file_uuid(this.__wbg_ptr);
433
+ var v1 = getCachedStringFromWasm0(ret[0], ret[1]);
434
+ if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
435
+ return v1;
443
436
  }
444
437
  /**
445
438
  * @returns {bigint}
@@ -448,6 +441,13 @@ export class File {
448
441
  const ret = wasm.file_size(this.__wbg_ptr);
449
442
  return BigInt.asUintN(64, ret);
450
443
  }
444
+ /**
445
+ * @returns {boolean}
446
+ */
447
+ get favorited() {
448
+ const ret = wasm.file_favorited(this.__wbg_ptr);
449
+ return ret !== 0;
450
+ }
451
451
  }
452
452
 
453
453
  const FilenStateFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -483,15 +483,15 @@ export class FilenState {
483
483
  return ret;
484
484
  }
485
485
  /**
486
- * @param {Dir} parent
487
- * @param {string} name
488
- * @returns {Promise<Dir>}
486
+ * @param {Dir} dir
487
+ * @param {string} name_or_uuid
488
+ * @returns {Dir | File | undefined}
489
489
  */
490
- createDir(parent, name) {
491
- _assertClass(parent, Dir);
492
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
490
+ findItemInDir(dir, name_or_uuid) {
491
+ _assertClass(dir, Dir);
492
+ const ptr0 = passStringToWasm0(name_or_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
493
493
  const len0 = WASM_VECTOR_LEN;
494
- const ret = wasm.filenstate_createDir(this.__wbg_ptr, parent.__wbg_ptr, ptr0, len0);
494
+ const ret = wasm.filenstate_findItemInDir(this.__wbg_ptr, dir.__wbg_ptr, ptr0, len0);
495
495
  return ret;
496
496
  }
497
497
  /**
@@ -508,11 +508,21 @@ export class FilenState {
508
508
  }
509
509
  /**
510
510
  * @param {Dir} dir
511
- * @returns {[Dir[], File[]]}
511
+ * @returns {Promise<void>}
512
512
  */
513
- listDir(dir) {
513
+ deleteDirPermanently(dir) {
514
514
  _assertClass(dir, Dir);
515
- const ret = wasm.filenstate_listDir(this.__wbg_ptr, dir.__wbg_ptr);
515
+ var ptr0 = dir.__destroy_into_raw();
516
+ const ret = wasm.filenstate_deleteDirPermanently(this.__wbg_ptr, ptr0);
517
+ return ret;
518
+ }
519
+ /**
520
+ * @param {Dir} dir
521
+ * @returns {Promise<void>}
522
+ */
523
+ trashDir(dir) {
524
+ _assertClass(dir, Dir);
525
+ const ret = wasm.filenstate_trashDir(this.__wbg_ptr, dir.__wbg_ptr);
516
526
  return ret;
517
527
  }
518
528
  /**
@@ -523,34 +533,24 @@ export class FilenState {
523
533
  return Dir.__wrap(ret);
524
534
  }
525
535
  /**
526
- * @param {Dir} dir
527
- * @param {string} name_or_uuid
528
- * @returns {Dir | File | undefined}
536
+ * @param {Dir} parent
537
+ * @param {string} name
538
+ * @returns {Promise<Dir>}
529
539
  */
530
- findItemInDir(dir, name_or_uuid) {
531
- _assertClass(dir, Dir);
532
- const ptr0 = passStringToWasm0(name_or_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
540
+ createDir(parent, name) {
541
+ _assertClass(parent, Dir);
542
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
533
543
  const len0 = WASM_VECTOR_LEN;
534
- const ret = wasm.filenstate_findItemInDir(this.__wbg_ptr, dir.__wbg_ptr, ptr0, len0);
535
- return ret;
536
- }
537
- /**
538
- * @param {Dir} dir
539
- * @returns {Promise<void>}
540
- */
541
- deleteDirPermanently(dir) {
542
- _assertClass(dir, Dir);
543
- var ptr0 = dir.__destroy_into_raw();
544
- const ret = wasm.filenstate_deleteDirPermanently(this.__wbg_ptr, ptr0);
544
+ const ret = wasm.filenstate_createDir(this.__wbg_ptr, parent.__wbg_ptr, ptr0, len0);
545
545
  return ret;
546
546
  }
547
547
  /**
548
548
  * @param {Dir} dir
549
- * @returns {Promise<void>}
549
+ * @returns {[Dir[], File[]]}
550
550
  */
551
- trashDir(dir) {
551
+ listDir(dir) {
552
552
  _assertClass(dir, Dir);
553
- const ret = wasm.filenstate_trashDir(this.__wbg_ptr, dir.__wbg_ptr);
553
+ const ret = wasm.filenstate_listDir(this.__wbg_ptr, dir.__wbg_ptr);
554
554
  return ret;
555
555
  }
556
556
  /**
@@ -564,16 +564,12 @@ export class FilenState {
564
564
  return ret;
565
565
  }
566
566
  /**
567
- * @param {Dir} parent
568
- * @param {Uint8Array} data
569
- * @param {UploadFileParams} params
570
- * @returns {Promise<File>}
567
+ * @param {File} file
568
+ * @returns {Promise<void>}
571
569
  */
572
- uploadFile(parent, data, params) {
573
- _assertClass(parent, Dir);
574
- const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
575
- const len0 = WASM_VECTOR_LEN;
576
- const ret = wasm.filenstate_uploadFile(this.__wbg_ptr, parent.__wbg_ptr, ptr0, len0, params);
570
+ trashFile(file) {
571
+ _assertClass(file, File);
572
+ const ret = wasm.filenstate_trashFile(this.__wbg_ptr, file.__wbg_ptr);
577
573
  return ret;
578
574
  }
579
575
  /**
@@ -585,15 +581,6 @@ export class FilenState {
585
581
  const ret = wasm.filenstate_downloadFile(this.__wbg_ptr, file.__wbg_ptr);
586
582
  return ret;
587
583
  }
588
- /**
589
- * @param {File} file
590
- * @returns {Promise<void>}
591
- */
592
- trashFile(file) {
593
- _assertClass(file, File);
594
- const ret = wasm.filenstate_trashFile(this.__wbg_ptr, file.__wbg_ptr);
595
- return ret;
596
- }
597
584
  /**
598
585
  * @param {File} file
599
586
  * @param {DownloadFileStreamParams} params
@@ -614,6 +601,19 @@ export class FilenState {
614
601
  const ret = wasm.filenstate_deleteFilePermanently(this.__wbg_ptr, ptr0);
615
602
  return ret;
616
603
  }
604
+ /**
605
+ * @param {Dir} parent
606
+ * @param {Uint8Array} data
607
+ * @param {UploadFileParams} params
608
+ * @returns {Promise<File>}
609
+ */
610
+ uploadFile(parent, data, params) {
611
+ _assertClass(parent, Dir);
612
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
613
+ const len0 = WASM_VECTOR_LEN;
614
+ const ret = wasm.filenstate_uploadFile(this.__wbg_ptr, parent.__wbg_ptr, ptr0, len0, params);
615
+ return ret;
616
+ }
617
617
  }
618
618
 
619
619
  const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -633,6 +633,10 @@ export class IntoUnderlyingByteSource {
633
633
  const ptr = this.__destroy_into_raw();
634
634
  wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
635
635
  }
636
+ cancel() {
637
+ const ptr = this.__destroy_into_raw();
638
+ wasm.intounderlyingbytesource_cancel(ptr);
639
+ }
636
640
  /**
637
641
  * @param {ReadableByteStreamController} controller
638
642
  * @returns {Promise<any>}
@@ -654,10 +658,6 @@ export class IntoUnderlyingByteSource {
654
658
  const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
655
659
  return __wbindgen_enum_ReadableStreamType[ret];
656
660
  }
657
- cancel() {
658
- const ptr = this.__destroy_into_raw();
659
- wasm.intounderlyingbytesource_cancel(ptr);
660
- }
661
661
  /**
662
662
  * @returns {number}
663
663
  */
@@ -728,6 +728,10 @@ export class IntoUnderlyingSource {
728
728
  const ptr = this.__destroy_into_raw();
729
729
  wasm.__wbg_intounderlyingsource_free(ptr, 0);
730
730
  }
731
+ cancel() {
732
+ const ptr = this.__destroy_into_raw();
733
+ wasm.intounderlyingsource_cancel(ptr);
734
+ }
731
735
  /**
732
736
  * @param {ReadableStreamDefaultController} controller
733
737
  * @returns {Promise<any>}
@@ -736,10 +740,6 @@ export class IntoUnderlyingSource {
736
740
  const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
737
741
  return ret;
738
742
  }
739
- cancel() {
740
- const ptr = this.__destroy_into_raw();
741
- wasm.intounderlyingsource_cancel(ptr);
742
- }
743
743
  }
744
744
 
745
745
  export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
@@ -1083,7 +1083,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
1083
1083
  const a = state0.a;
1084
1084
  state0.a = 0;
1085
1085
  try {
1086
- return __wbg_adapter_165(a, state0.b, arg0, arg1);
1086
+ return __wbg_adapter_143(a, state0.b, arg0, arg1);
1087
1087
  } finally {
1088
1088
  state0.a = a;
1089
1089
  }
@@ -1434,18 +1434,18 @@ export function __wbindgen_cb_drop(arg0) {
1434
1434
  return ret;
1435
1435
  };
1436
1436
 
1437
- export function __wbindgen_closure_wrapper2348(arg0, arg1, arg2) {
1438
- const ret = makeMutClosure(arg0, arg1, 102, __wbg_adapter_61);
1437
+ export function __wbindgen_closure_wrapper2358(arg0, arg1, arg2) {
1438
+ const ret = makeMutClosure(arg0, arg1, 103, __wbg_adapter_61);
1439
1439
  return ret;
1440
1440
  };
1441
1441
 
1442
- export function __wbindgen_closure_wrapper2653(arg0, arg1, arg2) {
1443
- const ret = makeMutClosure(arg0, arg1, 110, __wbg_adapter_61);
1442
+ export function __wbindgen_closure_wrapper2655(arg0, arg1, arg2) {
1443
+ const ret = makeMutClosure(arg0, arg1, 111, __wbg_adapter_61);
1444
1444
  return ret;
1445
1445
  };
1446
1446
 
1447
- export function __wbindgen_closure_wrapper461(arg0, arg1, arg2) {
1448
- const ret = makeMutClosure(arg0, arg1, 110, __wbg_adapter_58);
1447
+ export function __wbindgen_closure_wrapper490(arg0, arg1, arg2) {
1448
+ const ret = makeMutClosure(arg0, arg1, 111, __wbg_adapter_58);
1449
1449
  return ret;
1450
1450
  };
1451
1451
 
Binary file
@@ -1,48 +1,48 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const file_meta: (a: number) => any;
5
- export const dir_favorited: (a: number) => number;
6
- export const file_uuid: (a: number) => [number, number];
7
- export const __wbg_file_free: (a: number, b: number) => void;
8
4
  export const __wbg_dir_free: (a: number, b: number) => void;
9
- export const file_favorited: (a: number) => number;
5
+ export const dir_parent: (a: number) => [number, number];
6
+ export const dir_favorited: (a: number) => number;
10
7
  export const file_parent: (a: number) => [number, number];
11
- export const file_size: (a: number) => bigint;
12
- export const dir_color: (a: number) => [number, number];
13
8
  export const dir_meta: (a: number) => any;
14
- export const dir_parent: (a: number) => [number, number];
9
+ export const file_meta: (a: number) => any;
10
+ export const __wbg_file_free: (a: number, b: number) => void;
11
+ export const file_uuid: (a: number) => [number, number];
15
12
  export const dir_uuid: (a: number) => [number, number];
16
- export const from_serialized: (a: any) => [number, number, number];
17
- export const main_js: () => void;
13
+ export const dir_color: (a: number) => [number, number];
14
+ export const file_favorited: (a: number) => number;
15
+ export const file_size: (a: number) => bigint;
18
16
  export const login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
19
- export const __wbg_filenstate_free: (a: number, b: number) => void;
17
+ export const main_js: () => void;
18
+ export const from_serialized: (a: any) => [number, number, number];
20
19
  export const filenstate_serialize: (a: number) => any;
21
- export const filenstate_root: (a: number) => number;
22
- export const filenstate_createDir: (a: number, b: number, c: number, d: number) => any;
20
+ export const __wbg_filenstate_free: (a: number, b: number) => void;
23
21
  export const filenstate_listDir: (a: number, b: number) => any;
24
- export const filenstate_dirExists: (a: number, b: number, c: number, d: number) => any;
25
- export const filenstate_findItemInDir: (a: number, b: number, c: number, d: number) => any;
26
- export const filenstate_trashDir: (a: number, b: number) => any;
22
+ export const filenstate_createDir: (a: number, b: number, c: number, d: number) => any;
27
23
  export const filenstate_deleteDirPermanently: (a: number, b: number) => any;
28
- export const filenstate_downloadFile: (a: number, b: number) => any;
29
- export const filenstate_trashFile: (a: number, b: number) => any;
24
+ export const filenstate_trashDir: (a: number, b: number) => any;
25
+ export const filenstate_findItemInDir: (a: number, b: number, c: number, d: number) => any;
26
+ export const filenstate_dirExists: (a: number, b: number, c: number, d: number) => any;
27
+ export const filenstate_root: (a: number) => number;
28
+ export const filenstate_uploadFileStream: (a: number, b: number, c: any) => any;
30
29
  export const filenstate_uploadFile: (a: number, b: number, c: number, d: number, e: any) => any;
31
30
  export const filenstate_downloadFileToWriter: (a: number, b: number, c: any) => any;
32
- export const filenstate_uploadFileStream: (a: number, b: number, c: any) => any;
33
31
  export const filenstate_deleteFilePermanently: (a: number, b: number) => any;
34
- export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
35
- export const intounderlyingbytesource_type: (a: number) => number;
36
- export const intounderlyingbytesource_cancel: (a: number) => void;
32
+ export const filenstate_downloadFile: (a: number, b: number) => any;
33
+ export const filenstate_trashFile: (a: number, b: number) => any;
37
34
  export const intounderlyingbytesource_start: (a: number, b: any) => void;
35
+ export const intounderlyingbytesource_type: (a: number) => number;
38
36
  export const intounderlyingbytesource_pull: (a: number, b: any) => any;
37
+ export const intounderlyingbytesource_cancel: (a: number) => void;
38
+ export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
39
39
  export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
40
- export const intounderlyingsource_pull: (a: number, b: any) => any;
41
40
  export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
41
+ export const intounderlyingsource_pull: (a: number, b: any) => any;
42
42
  export const intounderlyingsource_cancel: (a: number) => void;
43
- export const intounderlyingsink_close: (a: number) => any;
44
43
  export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
45
44
  export const intounderlyingsink_abort: (a: number, b: any) => any;
45
+ export const intounderlyingsink_close: (a: number) => any;
46
46
  export const intounderlyingsink_write: (a: number, b: any) => any;
47
47
  export const __wbindgen_malloc: (a: number, b: number) => number;
48
48
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
@@ -52,7 +52,7 @@ export const __externref_table_alloc: () => number;
52
52
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
53
53
  export const __wbindgen_export_6: WebAssembly.Table;
54
54
  export const __externref_table_dealloc: (a: number) => void;
55
- export const closure109_externref_shim: (a: number, b: number, c: any) => void;
56
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h11fe32c58007d6ae: (a: number, b: number) => void;
57
- export const closure83_externref_shim: (a: number, b: number, c: any, d: any) => void;
55
+ export const closure110_externref_shim: (a: number, b: number, c: any) => void;
56
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3a28bb1da68602c0: (a: number, b: number) => void;
57
+ export const closure86_externref_shim: (a: number, b: number, c: any, d: any) => void;
58
58
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@filen/sdk-rs",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Filen WASM SDK using filen-sdk-rs",
5
5
  "type": "module",
6
6
  "scripts": {