@bitwarden/sdk-internal 0.2.0-main.231 → 0.2.0-main.233
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/bitwarden_wasm_internal.d.ts +128 -60
- package/bitwarden_wasm_internal_bg.js +255 -113
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +164 -160
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +128 -60
- package/node/bitwarden_wasm_internal.js +255 -113
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +164 -160
- package/package.json +1 -1
|
@@ -237,6 +237,93 @@ function debugString(val) {
|
|
|
237
237
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
238
238
|
return className;
|
|
239
239
|
}
|
|
240
|
+
/**
|
|
241
|
+
* @param {LogLevel} level
|
|
242
|
+
*/
|
|
243
|
+
module.exports.set_log_level = function (level) {
|
|
244
|
+
wasm.set_log_level(level);
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @param {LogLevel | null} [log_level]
|
|
249
|
+
*/
|
|
250
|
+
module.exports.init_sdk = function (log_level) {
|
|
251
|
+
wasm.init_sdk(isLikeNone(log_level) ? 5 : log_level);
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
255
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
256
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
257
|
+
WASM_VECTOR_LEN = arg.length;
|
|
258
|
+
return ptr;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Generate a new SSH key pair
|
|
262
|
+
*
|
|
263
|
+
* # Arguments
|
|
264
|
+
* - `key_algorithm` - The algorithm to use for the key pair
|
|
265
|
+
*
|
|
266
|
+
* # Returns
|
|
267
|
+
* - `Ok(SshKey)` if the key was successfully generated
|
|
268
|
+
* - `Err(KeyGenerationError)` if the key could not be generated
|
|
269
|
+
* @param {KeyAlgorithm} key_algorithm
|
|
270
|
+
* @returns {SshKeyView}
|
|
271
|
+
*/
|
|
272
|
+
module.exports.generate_ssh_key = function (key_algorithm) {
|
|
273
|
+
try {
|
|
274
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
275
|
+
wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
|
|
276
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
277
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
278
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
279
|
+
if (r2) {
|
|
280
|
+
throw takeObject(r1);
|
|
281
|
+
}
|
|
282
|
+
return takeObject(r0);
|
|
283
|
+
} finally {
|
|
284
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
|
|
290
|
+
* to an OpenSSH private key with public key and fingerprint
|
|
291
|
+
*
|
|
292
|
+
* # Arguments
|
|
293
|
+
* - `imported_key` - The private key to convert
|
|
294
|
+
* - `password` - The password to use for decrypting the key
|
|
295
|
+
*
|
|
296
|
+
* # Returns
|
|
297
|
+
* - `Ok(SshKey)` if the key was successfully coneverted
|
|
298
|
+
* - `Err(PasswordRequired)` if the key is encrypted and no password was provided
|
|
299
|
+
* - `Err(WrongPassword)` if the password provided is incorrect
|
|
300
|
+
* - `Err(ParsingError)` if the key could not be parsed
|
|
301
|
+
* - `Err(UnsupportedKeyType)` if the key type is not supported
|
|
302
|
+
* @param {string} imported_key
|
|
303
|
+
* @param {string | null} [password]
|
|
304
|
+
* @returns {SshKeyView}
|
|
305
|
+
*/
|
|
306
|
+
module.exports.import_ssh_key = function (imported_key, password) {
|
|
307
|
+
try {
|
|
308
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
309
|
+
const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
310
|
+
const len0 = WASM_VECTOR_LEN;
|
|
311
|
+
var ptr1 = isLikeNone(password)
|
|
312
|
+
? 0
|
|
313
|
+
: passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
314
|
+
var len1 = WASM_VECTOR_LEN;
|
|
315
|
+
wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
|
|
316
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
317
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
318
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
319
|
+
if (r2) {
|
|
320
|
+
throw takeObject(r1);
|
|
321
|
+
}
|
|
322
|
+
return takeObject(r0);
|
|
323
|
+
} finally {
|
|
324
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
325
|
+
}
|
|
326
|
+
};
|
|
240
327
|
|
|
241
328
|
let stack_pointer = 128;
|
|
242
329
|
|
|
@@ -245,6 +332,19 @@ function addBorrowedObject(obj) {
|
|
|
245
332
|
heap[--stack_pointer] = obj;
|
|
246
333
|
return stack_pointer;
|
|
247
334
|
}
|
|
335
|
+
/**
|
|
336
|
+
* @param {any} error
|
|
337
|
+
* @returns {boolean}
|
|
338
|
+
*/
|
|
339
|
+
module.exports.isTestError = function (error) {
|
|
340
|
+
try {
|
|
341
|
+
const ret = wasm.isTestError(addBorrowedObject(error));
|
|
342
|
+
return ret !== 0;
|
|
343
|
+
} finally {
|
|
344
|
+
heap[stack_pointer++] = undefined;
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
|
|
248
348
|
/**
|
|
249
349
|
* @param {any} error
|
|
250
350
|
* @returns {boolean}
|
|
@@ -394,13 +494,6 @@ module.exports.isPassphraseError = function (error) {
|
|
|
394
494
|
}
|
|
395
495
|
};
|
|
396
496
|
|
|
397
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
398
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
399
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
400
|
-
WASM_VECTOR_LEN = arg.length;
|
|
401
|
-
return ptr;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
497
|
function _assertClass(instance, klass) {
|
|
405
498
|
if (!(instance instanceof klass)) {
|
|
406
499
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -608,9 +701,9 @@ module.exports.isTotpError = function (error) {
|
|
|
608
701
|
* @param {any} error
|
|
609
702
|
* @returns {boolean}
|
|
610
703
|
*/
|
|
611
|
-
module.exports.
|
|
704
|
+
module.exports.isGetFolderError = function (error) {
|
|
612
705
|
try {
|
|
613
|
-
const ret = wasm.
|
|
706
|
+
const ret = wasm.isGetFolderError(addBorrowedObject(error));
|
|
614
707
|
return ret !== 0;
|
|
615
708
|
} finally {
|
|
616
709
|
heap[stack_pointer++] = undefined;
|
|
@@ -621,9 +714,9 @@ module.exports.isCipherError = function (error) {
|
|
|
621
714
|
* @param {any} error
|
|
622
715
|
* @returns {boolean}
|
|
623
716
|
*/
|
|
624
|
-
module.exports.
|
|
717
|
+
module.exports.isEditFolderError = function (error) {
|
|
625
718
|
try {
|
|
626
|
-
const ret = wasm.
|
|
719
|
+
const ret = wasm.isEditFolderError(addBorrowedObject(error));
|
|
627
720
|
return ret !== 0;
|
|
628
721
|
} finally {
|
|
629
722
|
heap[stack_pointer++] = undefined;
|
|
@@ -634,9 +727,9 @@ module.exports.isDecryptFileError = function (error) {
|
|
|
634
727
|
* @param {any} error
|
|
635
728
|
* @returns {boolean}
|
|
636
729
|
*/
|
|
637
|
-
module.exports.
|
|
730
|
+
module.exports.isCreateFolderError = function (error) {
|
|
638
731
|
try {
|
|
639
|
-
const ret = wasm.
|
|
732
|
+
const ret = wasm.isCreateFolderError(addBorrowedObject(error));
|
|
640
733
|
return ret !== 0;
|
|
641
734
|
} finally {
|
|
642
735
|
heap[stack_pointer++] = undefined;
|
|
@@ -644,84 +737,28 @@ module.exports.isEncryptFileError = function (error) {
|
|
|
644
737
|
};
|
|
645
738
|
|
|
646
739
|
/**
|
|
647
|
-
* @param {
|
|
648
|
-
|
|
649
|
-
module.exports.set_log_level = function (level) {
|
|
650
|
-
wasm.set_log_level(level);
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* @param {LogLevel | null} [log_level]
|
|
655
|
-
*/
|
|
656
|
-
module.exports.init_sdk = function (log_level) {
|
|
657
|
-
wasm.init_sdk(isLikeNone(log_level) ? 5 : log_level);
|
|
658
|
-
};
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
* Generate a new SSH key pair
|
|
662
|
-
*
|
|
663
|
-
* # Arguments
|
|
664
|
-
* - `key_algorithm` - The algorithm to use for the key pair
|
|
665
|
-
*
|
|
666
|
-
* # Returns
|
|
667
|
-
* - `Ok(SshKey)` if the key was successfully generated
|
|
668
|
-
* - `Err(KeyGenerationError)` if the key could not be generated
|
|
669
|
-
* @param {KeyAlgorithm} key_algorithm
|
|
670
|
-
* @returns {SshKeyView}
|
|
740
|
+
* @param {any} error
|
|
741
|
+
* @returns {boolean}
|
|
671
742
|
*/
|
|
672
|
-
module.exports.
|
|
743
|
+
module.exports.isCipherError = function (error) {
|
|
673
744
|
try {
|
|
674
|
-
const
|
|
675
|
-
|
|
676
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
677
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
678
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
679
|
-
if (r2) {
|
|
680
|
-
throw takeObject(r1);
|
|
681
|
-
}
|
|
682
|
-
return takeObject(r0);
|
|
745
|
+
const ret = wasm.isCipherError(addBorrowedObject(error));
|
|
746
|
+
return ret !== 0;
|
|
683
747
|
} finally {
|
|
684
|
-
|
|
748
|
+
heap[stack_pointer++] = undefined;
|
|
685
749
|
}
|
|
686
750
|
};
|
|
687
751
|
|
|
688
752
|
/**
|
|
689
|
-
*
|
|
690
|
-
*
|
|
691
|
-
*
|
|
692
|
-
* # Arguments
|
|
693
|
-
* - `imported_key` - The private key to convert
|
|
694
|
-
* - `password` - The password to use for decrypting the key
|
|
695
|
-
*
|
|
696
|
-
* # Returns
|
|
697
|
-
* - `Ok(SshKey)` if the key was successfully coneverted
|
|
698
|
-
* - `Err(PasswordRequired)` if the key is encrypted and no password was provided
|
|
699
|
-
* - `Err(WrongPassword)` if the password provided is incorrect
|
|
700
|
-
* - `Err(ParsingError)` if the key could not be parsed
|
|
701
|
-
* - `Err(UnsupportedKeyType)` if the key type is not supported
|
|
702
|
-
* @param {string} imported_key
|
|
703
|
-
* @param {string | null} [password]
|
|
704
|
-
* @returns {SshKeyView}
|
|
753
|
+
* @param {any} error
|
|
754
|
+
* @returns {boolean}
|
|
705
755
|
*/
|
|
706
|
-
module.exports.
|
|
756
|
+
module.exports.isDecryptFileError = function (error) {
|
|
707
757
|
try {
|
|
708
|
-
const
|
|
709
|
-
|
|
710
|
-
const len0 = WASM_VECTOR_LEN;
|
|
711
|
-
var ptr1 = isLikeNone(password)
|
|
712
|
-
? 0
|
|
713
|
-
: passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
714
|
-
var len1 = WASM_VECTOR_LEN;
|
|
715
|
-
wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
|
|
716
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
717
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
718
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
719
|
-
if (r2) {
|
|
720
|
-
throw takeObject(r1);
|
|
721
|
-
}
|
|
722
|
-
return takeObject(r0);
|
|
758
|
+
const ret = wasm.isDecryptFileError(addBorrowedObject(error));
|
|
759
|
+
return ret !== 0;
|
|
723
760
|
} finally {
|
|
724
|
-
|
|
761
|
+
heap[stack_pointer++] = undefined;
|
|
725
762
|
}
|
|
726
763
|
};
|
|
727
764
|
|
|
@@ -729,39 +766,32 @@ module.exports.import_ssh_key = function (imported_key, password) {
|
|
|
729
766
|
* @param {any} error
|
|
730
767
|
* @returns {boolean}
|
|
731
768
|
*/
|
|
732
|
-
module.exports.
|
|
769
|
+
module.exports.isEncryptFileError = function (error) {
|
|
733
770
|
try {
|
|
734
|
-
const ret = wasm.
|
|
771
|
+
const ret = wasm.isEncryptFileError(addBorrowedObject(error));
|
|
735
772
|
return ret !== 0;
|
|
736
773
|
} finally {
|
|
737
774
|
heap[stack_pointer++] = undefined;
|
|
738
775
|
}
|
|
739
776
|
};
|
|
740
777
|
|
|
741
|
-
function
|
|
742
|
-
wasm.
|
|
778
|
+
function __wbg_adapter_54(arg0, arg1) {
|
|
779
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
|
|
743
780
|
arg0,
|
|
744
781
|
arg1,
|
|
745
782
|
);
|
|
746
783
|
}
|
|
747
784
|
|
|
748
|
-
function
|
|
749
|
-
wasm.
|
|
750
|
-
arg0,
|
|
751
|
-
arg1,
|
|
752
|
-
);
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
756
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb01d8be1001e4f40(
|
|
785
|
+
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
786
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
|
|
757
787
|
arg0,
|
|
758
788
|
arg1,
|
|
759
789
|
addHeapObject(arg2),
|
|
760
790
|
);
|
|
761
791
|
}
|
|
762
792
|
|
|
763
|
-
function
|
|
764
|
-
wasm.
|
|
793
|
+
function __wbg_adapter_300(arg0, arg1, arg2, arg3) {
|
|
794
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
|
|
765
795
|
arg0,
|
|
766
796
|
arg1,
|
|
767
797
|
addHeapObject(arg2),
|
|
@@ -1092,7 +1122,7 @@ class BitwardenClient {
|
|
|
1092
1122
|
* @returns {VaultClient}
|
|
1093
1123
|
*/
|
|
1094
1124
|
vault() {
|
|
1095
|
-
const ret = wasm.
|
|
1125
|
+
const ret = wasm.bitwardenclient_vault(this.__wbg_ptr);
|
|
1096
1126
|
return VaultClient.__wrap(ret);
|
|
1097
1127
|
}
|
|
1098
1128
|
/**
|
|
@@ -1108,14 +1138,14 @@ class BitwardenClient {
|
|
|
1108
1138
|
* @returns {GeneratorClient}
|
|
1109
1139
|
*/
|
|
1110
1140
|
generator() {
|
|
1111
|
-
const ret = wasm.
|
|
1141
|
+
const ret = wasm.bitwardenclient_generator(this.__wbg_ptr);
|
|
1112
1142
|
return GeneratorClient.__wrap(ret);
|
|
1113
1143
|
}
|
|
1114
1144
|
/**
|
|
1115
1145
|
* @returns {ExporterClient}
|
|
1116
1146
|
*/
|
|
1117
1147
|
exporters() {
|
|
1118
|
-
const ret = wasm.
|
|
1148
|
+
const ret = wasm.bitwardenclient_exporters(this.__wbg_ptr);
|
|
1119
1149
|
return ExporterClient.__wrap(ret);
|
|
1120
1150
|
}
|
|
1121
1151
|
}
|
|
@@ -1659,7 +1689,9 @@ const FoldersClientFinalization =
|
|
|
1659
1689
|
typeof FinalizationRegistry === "undefined"
|
|
1660
1690
|
? { register: () => {}, unregister: () => {} }
|
|
1661
1691
|
: new FinalizationRegistry((ptr) => wasm.__wbg_foldersclient_free(ptr >>> 0, 1));
|
|
1662
|
-
|
|
1692
|
+
/**
|
|
1693
|
+
* Wrapper for folder specific functionality.
|
|
1694
|
+
*/
|
|
1663
1695
|
class FoldersClient {
|
|
1664
1696
|
static __wrap(ptr) {
|
|
1665
1697
|
ptr = ptr >>> 0;
|
|
@@ -1681,6 +1713,7 @@ class FoldersClient {
|
|
|
1681
1713
|
wasm.__wbg_foldersclient_free(ptr, 0);
|
|
1682
1714
|
}
|
|
1683
1715
|
/**
|
|
1716
|
+
* Encrypt a [FolderView] to a [Folder].
|
|
1684
1717
|
* @param {FolderView} folder_view
|
|
1685
1718
|
* @returns {Folder}
|
|
1686
1719
|
*/
|
|
@@ -1700,6 +1733,7 @@ class FoldersClient {
|
|
|
1700
1733
|
}
|
|
1701
1734
|
}
|
|
1702
1735
|
/**
|
|
1736
|
+
* Encrypt a [Folder] to [FolderView].
|
|
1703
1737
|
* @param {Folder} folder
|
|
1704
1738
|
* @returns {FolderView}
|
|
1705
1739
|
*/
|
|
@@ -1719,6 +1753,7 @@ class FoldersClient {
|
|
|
1719
1753
|
}
|
|
1720
1754
|
}
|
|
1721
1755
|
/**
|
|
1756
|
+
* Decrypt a list of [Folder]s to a list of [FolderView]s.
|
|
1722
1757
|
* @param {Folder[]} folders
|
|
1723
1758
|
* @returns {FolderView[]}
|
|
1724
1759
|
*/
|
|
@@ -1742,6 +1777,46 @@ class FoldersClient {
|
|
|
1742
1777
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1743
1778
|
}
|
|
1744
1779
|
}
|
|
1780
|
+
/**
|
|
1781
|
+
* Get all folders from state and decrypt them to a list of [FolderView].
|
|
1782
|
+
* @returns {Promise<FolderView[]>}
|
|
1783
|
+
*/
|
|
1784
|
+
list() {
|
|
1785
|
+
const ret = wasm.foldersclient_list(this.__wbg_ptr);
|
|
1786
|
+
return takeObject(ret);
|
|
1787
|
+
}
|
|
1788
|
+
/**
|
|
1789
|
+
* Get a specific [Folder] by its ID from state and decrypt it to a [FolderView].
|
|
1790
|
+
* @param {string} folder_id
|
|
1791
|
+
* @returns {Promise<FolderView>}
|
|
1792
|
+
*/
|
|
1793
|
+
get(folder_id) {
|
|
1794
|
+
const ptr0 = passStringToWasm0(folder_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1795
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1796
|
+
const ret = wasm.foldersclient_get(this.__wbg_ptr, ptr0, len0);
|
|
1797
|
+
return takeObject(ret);
|
|
1798
|
+
}
|
|
1799
|
+
/**
|
|
1800
|
+
* Create a new [Folder] and save it to the server.
|
|
1801
|
+
* @param {FolderAddEditRequest} request
|
|
1802
|
+
* @returns {Promise<FolderView>}
|
|
1803
|
+
*/
|
|
1804
|
+
create(request) {
|
|
1805
|
+
const ret = wasm.foldersclient_create(this.__wbg_ptr, addHeapObject(request));
|
|
1806
|
+
return takeObject(ret);
|
|
1807
|
+
}
|
|
1808
|
+
/**
|
|
1809
|
+
* Edit the [Folder] and save it to the server.
|
|
1810
|
+
* @param {string} folder_id
|
|
1811
|
+
* @param {FolderAddEditRequest} request
|
|
1812
|
+
* @returns {Promise<FolderView>}
|
|
1813
|
+
*/
|
|
1814
|
+
edit(folder_id, request) {
|
|
1815
|
+
const ptr0 = passStringToWasm0(folder_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1816
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1817
|
+
const ret = wasm.foldersclient_edit(this.__wbg_ptr, ptr0, len0, addHeapObject(request));
|
|
1818
|
+
return takeObject(ret);
|
|
1819
|
+
}
|
|
1745
1820
|
}
|
|
1746
1821
|
module.exports.FoldersClient = FoldersClient;
|
|
1747
1822
|
|
|
@@ -2346,7 +2421,7 @@ class PlatformClient {
|
|
|
2346
2421
|
* @returns {StateClient}
|
|
2347
2422
|
*/
|
|
2348
2423
|
state() {
|
|
2349
|
-
const ret = wasm.
|
|
2424
|
+
const ret = wasm.platformclient_state(this.__wbg_ptr);
|
|
2350
2425
|
return StateClient.__wrap(ret);
|
|
2351
2426
|
}
|
|
2352
2427
|
}
|
|
@@ -3168,6 +3243,12 @@ class StateClient {
|
|
|
3168
3243
|
register_cipher_repository(store) {
|
|
3169
3244
|
wasm.stateclient_register_cipher_repository(this.__wbg_ptr, addHeapObject(store));
|
|
3170
3245
|
}
|
|
3246
|
+
/**
|
|
3247
|
+
* @param {Repository<Folder>} store
|
|
3248
|
+
*/
|
|
3249
|
+
register_folder_repository(store) {
|
|
3250
|
+
wasm.stateclient_register_folder_repository(this.__wbg_ptr, addHeapObject(store));
|
|
3251
|
+
}
|
|
3171
3252
|
}
|
|
3172
3253
|
module.exports.StateClient = StateClient;
|
|
3173
3254
|
|
|
@@ -3430,7 +3511,22 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
|
3430
3511
|
return ret;
|
|
3431
3512
|
};
|
|
3432
3513
|
|
|
3433
|
-
module.exports.
|
|
3514
|
+
module.exports.__wbg_get_1e936e9c132ed56a = function () {
|
|
3515
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
3516
|
+
let deferred0_0;
|
|
3517
|
+
let deferred0_1;
|
|
3518
|
+
try {
|
|
3519
|
+
deferred0_0 = arg1;
|
|
3520
|
+
deferred0_1 = arg2;
|
|
3521
|
+
const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2));
|
|
3522
|
+
return addHeapObject(ret);
|
|
3523
|
+
} finally {
|
|
3524
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3525
|
+
}
|
|
3526
|
+
}, arguments);
|
|
3527
|
+
};
|
|
3528
|
+
|
|
3529
|
+
module.exports.__wbg_get_63d4ac1519cd683d = function () {
|
|
3434
3530
|
return handleError(function (arg0, arg1, arg2) {
|
|
3435
3531
|
let deferred0_0;
|
|
3436
3532
|
let deferred0_1;
|
|
@@ -3457,7 +3553,7 @@ module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
|
3457
3553
|
return addHeapObject(ret);
|
|
3458
3554
|
};
|
|
3459
3555
|
|
|
3460
|
-
module.exports.
|
|
3556
|
+
module.exports.__wbg_getaccesstoken_5c1081642adb54b3 = function (arg0) {
|
|
3461
3557
|
const ret = getObject(arg0).get_access_token();
|
|
3462
3558
|
return addHeapObject(ret);
|
|
3463
3559
|
};
|
|
@@ -3562,7 +3658,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
|
|
|
3562
3658
|
return ret;
|
|
3563
3659
|
};
|
|
3564
3660
|
|
|
3565
|
-
module.exports.
|
|
3661
|
+
module.exports.__wbg_list_d51438674d2a6409 = function () {
|
|
3662
|
+
return handleError(function (arg0) {
|
|
3663
|
+
const ret = getObject(arg0).list();
|
|
3664
|
+
return addHeapObject(ret);
|
|
3665
|
+
}, arguments);
|
|
3666
|
+
};
|
|
3667
|
+
|
|
3668
|
+
module.exports.__wbg_list_ee640fea1b320673 = function () {
|
|
3566
3669
|
return handleError(function (arg0) {
|
|
3567
3670
|
const ret = getObject(arg0).list();
|
|
3568
3671
|
return addHeapObject(ret);
|
|
@@ -3597,7 +3700,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
|
|
|
3597
3700
|
const a = state0.a;
|
|
3598
3701
|
state0.a = 0;
|
|
3599
3702
|
try {
|
|
3600
|
-
return
|
|
3703
|
+
return __wbg_adapter_300(a, state0.b, arg0, arg1);
|
|
3601
3704
|
} finally {
|
|
3602
3705
|
state0.a = a;
|
|
3603
3706
|
}
|
|
@@ -3739,7 +3842,22 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
3739
3842
|
}, arguments);
|
|
3740
3843
|
};
|
|
3741
3844
|
|
|
3742
|
-
module.exports.
|
|
3845
|
+
module.exports.__wbg_remove_1b7f523b274e28d8 = function () {
|
|
3846
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
3847
|
+
let deferred0_0;
|
|
3848
|
+
let deferred0_1;
|
|
3849
|
+
try {
|
|
3850
|
+
deferred0_0 = arg1;
|
|
3851
|
+
deferred0_1 = arg2;
|
|
3852
|
+
const ret = getObject(arg0).remove(getStringFromWasm0(arg1, arg2));
|
|
3853
|
+
return addHeapObject(ret);
|
|
3854
|
+
} finally {
|
|
3855
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3856
|
+
}
|
|
3857
|
+
}, arguments);
|
|
3858
|
+
};
|
|
3859
|
+
|
|
3860
|
+
module.exports.__wbg_remove_b9507a7e3319b5a5 = function () {
|
|
3743
3861
|
return handleError(function (arg0, arg1, arg2) {
|
|
3744
3862
|
let deferred0_0;
|
|
3745
3863
|
let deferred0_1;
|
|
@@ -3782,6 +3900,21 @@ module.exports.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
|
|
|
3782
3900
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
3783
3901
|
};
|
|
3784
3902
|
|
|
3903
|
+
module.exports.__wbg_set_39adcc20133bca63 = function () {
|
|
3904
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3905
|
+
let deferred0_0;
|
|
3906
|
+
let deferred0_1;
|
|
3907
|
+
try {
|
|
3908
|
+
deferred0_0 = arg1;
|
|
3909
|
+
deferred0_1 = arg2;
|
|
3910
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
3911
|
+
return addHeapObject(ret);
|
|
3912
|
+
} finally {
|
|
3913
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3914
|
+
}
|
|
3915
|
+
}, arguments);
|
|
3916
|
+
};
|
|
3917
|
+
|
|
3785
3918
|
module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
3786
3919
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
3787
3920
|
};
|
|
@@ -3790,7 +3923,7 @@ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
|
3790
3923
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3791
3924
|
};
|
|
3792
3925
|
|
|
3793
|
-
module.exports.
|
|
3926
|
+
module.exports.__wbg_set_7a0f45f61f570f10 = function () {
|
|
3794
3927
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3795
3928
|
let deferred0_0;
|
|
3796
3929
|
let deferred0_1;
|
|
@@ -3946,6 +4079,15 @@ module.exports.__wbg_warn_aaf1f4664a035bd6 = function (arg0, arg1, arg2, arg3) {
|
|
|
3946
4079
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
3947
4080
|
};
|
|
3948
4081
|
|
|
4082
|
+
module.exports.__wbindgen_array_new = function () {
|
|
4083
|
+
const ret = [];
|
|
4084
|
+
return addHeapObject(ret);
|
|
4085
|
+
};
|
|
4086
|
+
|
|
4087
|
+
module.exports.__wbindgen_array_push = function (arg0, arg1) {
|
|
4088
|
+
getObject(arg0).push(takeObject(arg1));
|
|
4089
|
+
};
|
|
4090
|
+
|
|
3949
4091
|
module.exports.__wbindgen_as_number = function (arg0) {
|
|
3950
4092
|
const ret = +getObject(arg0);
|
|
3951
4093
|
return ret;
|
|
@@ -3984,18 +4126,18 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
|
|
|
3984
4126
|
return ret;
|
|
3985
4127
|
};
|
|
3986
4128
|
|
|
3987
|
-
module.exports.
|
|
3988
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4129
|
+
module.exports.__wbindgen_closure_wrapper3124 = function (arg0, arg1, arg2) {
|
|
4130
|
+
const ret = makeMutClosure(arg0, arg1, 221, __wbg_adapter_54);
|
|
3989
4131
|
return addHeapObject(ret);
|
|
3990
4132
|
};
|
|
3991
4133
|
|
|
3992
|
-
module.exports.
|
|
3993
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4134
|
+
module.exports.__wbindgen_closure_wrapper5341 = function (arg0, arg1, arg2) {
|
|
4135
|
+
const ret = makeMutClosure(arg0, arg1, 246, __wbg_adapter_54);
|
|
3994
4136
|
return addHeapObject(ret);
|
|
3995
4137
|
};
|
|
3996
4138
|
|
|
3997
|
-
module.exports.
|
|
3998
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4139
|
+
module.exports.__wbindgen_closure_wrapper5698 = function (arg0, arg1, arg2) {
|
|
4140
|
+
const ret = makeMutClosure(arg0, arg1, 272, __wbg_adapter_59);
|
|
3999
4141
|
return addHeapObject(ret);
|
|
4000
4142
|
};
|
|
4001
4143
|
|
|
Binary file
|