@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
|
@@ -243,6 +243,93 @@ function debugString(val) {
|
|
|
243
243
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
244
244
|
return className;
|
|
245
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* @param {LogLevel} level
|
|
248
|
+
*/
|
|
249
|
+
export function set_log_level(level) {
|
|
250
|
+
wasm.set_log_level(level);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @param {LogLevel | null} [log_level]
|
|
255
|
+
*/
|
|
256
|
+
export function init_sdk(log_level) {
|
|
257
|
+
wasm.init_sdk(isLikeNone(log_level) ? 5 : log_level);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
261
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
262
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
263
|
+
WASM_VECTOR_LEN = arg.length;
|
|
264
|
+
return ptr;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Generate a new SSH key pair
|
|
268
|
+
*
|
|
269
|
+
* # Arguments
|
|
270
|
+
* - `key_algorithm` - The algorithm to use for the key pair
|
|
271
|
+
*
|
|
272
|
+
* # Returns
|
|
273
|
+
* - `Ok(SshKey)` if the key was successfully generated
|
|
274
|
+
* - `Err(KeyGenerationError)` if the key could not be generated
|
|
275
|
+
* @param {KeyAlgorithm} key_algorithm
|
|
276
|
+
* @returns {SshKeyView}
|
|
277
|
+
*/
|
|
278
|
+
export function generate_ssh_key(key_algorithm) {
|
|
279
|
+
try {
|
|
280
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
281
|
+
wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
|
|
282
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
283
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
284
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
285
|
+
if (r2) {
|
|
286
|
+
throw takeObject(r1);
|
|
287
|
+
}
|
|
288
|
+
return takeObject(r0);
|
|
289
|
+
} finally {
|
|
290
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
|
|
296
|
+
* to an OpenSSH private key with public key and fingerprint
|
|
297
|
+
*
|
|
298
|
+
* # Arguments
|
|
299
|
+
* - `imported_key` - The private key to convert
|
|
300
|
+
* - `password` - The password to use for decrypting the key
|
|
301
|
+
*
|
|
302
|
+
* # Returns
|
|
303
|
+
* - `Ok(SshKey)` if the key was successfully coneverted
|
|
304
|
+
* - `Err(PasswordRequired)` if the key is encrypted and no password was provided
|
|
305
|
+
* - `Err(WrongPassword)` if the password provided is incorrect
|
|
306
|
+
* - `Err(ParsingError)` if the key could not be parsed
|
|
307
|
+
* - `Err(UnsupportedKeyType)` if the key type is not supported
|
|
308
|
+
* @param {string} imported_key
|
|
309
|
+
* @param {string | null} [password]
|
|
310
|
+
* @returns {SshKeyView}
|
|
311
|
+
*/
|
|
312
|
+
export function import_ssh_key(imported_key, password) {
|
|
313
|
+
try {
|
|
314
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
315
|
+
const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
316
|
+
const len0 = WASM_VECTOR_LEN;
|
|
317
|
+
var ptr1 = isLikeNone(password)
|
|
318
|
+
? 0
|
|
319
|
+
: passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
320
|
+
var len1 = WASM_VECTOR_LEN;
|
|
321
|
+
wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
|
|
322
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
323
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
324
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
325
|
+
if (r2) {
|
|
326
|
+
throw takeObject(r1);
|
|
327
|
+
}
|
|
328
|
+
return takeObject(r0);
|
|
329
|
+
} finally {
|
|
330
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
246
333
|
|
|
247
334
|
let stack_pointer = 128;
|
|
248
335
|
|
|
@@ -251,6 +338,19 @@ function addBorrowedObject(obj) {
|
|
|
251
338
|
heap[--stack_pointer] = obj;
|
|
252
339
|
return stack_pointer;
|
|
253
340
|
}
|
|
341
|
+
/**
|
|
342
|
+
* @param {any} error
|
|
343
|
+
* @returns {boolean}
|
|
344
|
+
*/
|
|
345
|
+
export function isTestError(error) {
|
|
346
|
+
try {
|
|
347
|
+
const ret = wasm.isTestError(addBorrowedObject(error));
|
|
348
|
+
return ret !== 0;
|
|
349
|
+
} finally {
|
|
350
|
+
heap[stack_pointer++] = undefined;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
254
354
|
/**
|
|
255
355
|
* @param {any} error
|
|
256
356
|
* @returns {boolean}
|
|
@@ -400,13 +500,6 @@ export function isPassphraseError(error) {
|
|
|
400
500
|
}
|
|
401
501
|
}
|
|
402
502
|
|
|
403
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
404
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
405
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
406
|
-
WASM_VECTOR_LEN = arg.length;
|
|
407
|
-
return ptr;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
503
|
function _assertClass(instance, klass) {
|
|
411
504
|
if (!(instance instanceof klass)) {
|
|
412
505
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -614,9 +707,9 @@ export function isTotpError(error) {
|
|
|
614
707
|
* @param {any} error
|
|
615
708
|
* @returns {boolean}
|
|
616
709
|
*/
|
|
617
|
-
export function
|
|
710
|
+
export function isGetFolderError(error) {
|
|
618
711
|
try {
|
|
619
|
-
const ret = wasm.
|
|
712
|
+
const ret = wasm.isGetFolderError(addBorrowedObject(error));
|
|
620
713
|
return ret !== 0;
|
|
621
714
|
} finally {
|
|
622
715
|
heap[stack_pointer++] = undefined;
|
|
@@ -627,9 +720,9 @@ export function isCipherError(error) {
|
|
|
627
720
|
* @param {any} error
|
|
628
721
|
* @returns {boolean}
|
|
629
722
|
*/
|
|
630
|
-
export function
|
|
723
|
+
export function isEditFolderError(error) {
|
|
631
724
|
try {
|
|
632
|
-
const ret = wasm.
|
|
725
|
+
const ret = wasm.isEditFolderError(addBorrowedObject(error));
|
|
633
726
|
return ret !== 0;
|
|
634
727
|
} finally {
|
|
635
728
|
heap[stack_pointer++] = undefined;
|
|
@@ -640,9 +733,9 @@ export function isDecryptFileError(error) {
|
|
|
640
733
|
* @param {any} error
|
|
641
734
|
* @returns {boolean}
|
|
642
735
|
*/
|
|
643
|
-
export function
|
|
736
|
+
export function isCreateFolderError(error) {
|
|
644
737
|
try {
|
|
645
|
-
const ret = wasm.
|
|
738
|
+
const ret = wasm.isCreateFolderError(addBorrowedObject(error));
|
|
646
739
|
return ret !== 0;
|
|
647
740
|
} finally {
|
|
648
741
|
heap[stack_pointer++] = undefined;
|
|
@@ -650,84 +743,28 @@ export function isEncryptFileError(error) {
|
|
|
650
743
|
}
|
|
651
744
|
|
|
652
745
|
/**
|
|
653
|
-
* @param {
|
|
654
|
-
|
|
655
|
-
export function set_log_level(level) {
|
|
656
|
-
wasm.set_log_level(level);
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
/**
|
|
660
|
-
* @param {LogLevel | null} [log_level]
|
|
661
|
-
*/
|
|
662
|
-
export function init_sdk(log_level) {
|
|
663
|
-
wasm.init_sdk(isLikeNone(log_level) ? 5 : log_level);
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
* Generate a new SSH key pair
|
|
668
|
-
*
|
|
669
|
-
* # Arguments
|
|
670
|
-
* - `key_algorithm` - The algorithm to use for the key pair
|
|
671
|
-
*
|
|
672
|
-
* # Returns
|
|
673
|
-
* - `Ok(SshKey)` if the key was successfully generated
|
|
674
|
-
* - `Err(KeyGenerationError)` if the key could not be generated
|
|
675
|
-
* @param {KeyAlgorithm} key_algorithm
|
|
676
|
-
* @returns {SshKeyView}
|
|
746
|
+
* @param {any} error
|
|
747
|
+
* @returns {boolean}
|
|
677
748
|
*/
|
|
678
|
-
export function
|
|
749
|
+
export function isCipherError(error) {
|
|
679
750
|
try {
|
|
680
|
-
const
|
|
681
|
-
|
|
682
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
683
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
684
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
685
|
-
if (r2) {
|
|
686
|
-
throw takeObject(r1);
|
|
687
|
-
}
|
|
688
|
-
return takeObject(r0);
|
|
751
|
+
const ret = wasm.isCipherError(addBorrowedObject(error));
|
|
752
|
+
return ret !== 0;
|
|
689
753
|
} finally {
|
|
690
|
-
|
|
754
|
+
heap[stack_pointer++] = undefined;
|
|
691
755
|
}
|
|
692
756
|
}
|
|
693
757
|
|
|
694
758
|
/**
|
|
695
|
-
*
|
|
696
|
-
*
|
|
697
|
-
*
|
|
698
|
-
* # Arguments
|
|
699
|
-
* - `imported_key` - The private key to convert
|
|
700
|
-
* - `password` - The password to use for decrypting the key
|
|
701
|
-
*
|
|
702
|
-
* # Returns
|
|
703
|
-
* - `Ok(SshKey)` if the key was successfully coneverted
|
|
704
|
-
* - `Err(PasswordRequired)` if the key is encrypted and no password was provided
|
|
705
|
-
* - `Err(WrongPassword)` if the password provided is incorrect
|
|
706
|
-
* - `Err(ParsingError)` if the key could not be parsed
|
|
707
|
-
* - `Err(UnsupportedKeyType)` if the key type is not supported
|
|
708
|
-
* @param {string} imported_key
|
|
709
|
-
* @param {string | null} [password]
|
|
710
|
-
* @returns {SshKeyView}
|
|
759
|
+
* @param {any} error
|
|
760
|
+
* @returns {boolean}
|
|
711
761
|
*/
|
|
712
|
-
export function
|
|
762
|
+
export function isDecryptFileError(error) {
|
|
713
763
|
try {
|
|
714
|
-
const
|
|
715
|
-
|
|
716
|
-
const len0 = WASM_VECTOR_LEN;
|
|
717
|
-
var ptr1 = isLikeNone(password)
|
|
718
|
-
? 0
|
|
719
|
-
: passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
720
|
-
var len1 = WASM_VECTOR_LEN;
|
|
721
|
-
wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
|
|
722
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
723
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
724
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
725
|
-
if (r2) {
|
|
726
|
-
throw takeObject(r1);
|
|
727
|
-
}
|
|
728
|
-
return takeObject(r0);
|
|
764
|
+
const ret = wasm.isDecryptFileError(addBorrowedObject(error));
|
|
765
|
+
return ret !== 0;
|
|
729
766
|
} finally {
|
|
730
|
-
|
|
767
|
+
heap[stack_pointer++] = undefined;
|
|
731
768
|
}
|
|
732
769
|
}
|
|
733
770
|
|
|
@@ -735,39 +772,32 @@ export function import_ssh_key(imported_key, password) {
|
|
|
735
772
|
* @param {any} error
|
|
736
773
|
* @returns {boolean}
|
|
737
774
|
*/
|
|
738
|
-
export function
|
|
775
|
+
export function isEncryptFileError(error) {
|
|
739
776
|
try {
|
|
740
|
-
const ret = wasm.
|
|
777
|
+
const ret = wasm.isEncryptFileError(addBorrowedObject(error));
|
|
741
778
|
return ret !== 0;
|
|
742
779
|
} finally {
|
|
743
780
|
heap[stack_pointer++] = undefined;
|
|
744
781
|
}
|
|
745
782
|
}
|
|
746
783
|
|
|
747
|
-
function
|
|
748
|
-
wasm.
|
|
784
|
+
function __wbg_adapter_54(arg0, arg1) {
|
|
785
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
|
|
749
786
|
arg0,
|
|
750
787
|
arg1,
|
|
751
788
|
);
|
|
752
789
|
}
|
|
753
790
|
|
|
754
|
-
function
|
|
755
|
-
wasm.
|
|
756
|
-
arg0,
|
|
757
|
-
arg1,
|
|
758
|
-
);
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
762
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb01d8be1001e4f40(
|
|
791
|
+
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
792
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
|
|
763
793
|
arg0,
|
|
764
794
|
arg1,
|
|
765
795
|
addHeapObject(arg2),
|
|
766
796
|
);
|
|
767
797
|
}
|
|
768
798
|
|
|
769
|
-
function
|
|
770
|
-
wasm.
|
|
799
|
+
function __wbg_adapter_300(arg0, arg1, arg2, arg3) {
|
|
800
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
|
|
771
801
|
arg0,
|
|
772
802
|
arg1,
|
|
773
803
|
addHeapObject(arg2),
|
|
@@ -1097,7 +1127,7 @@ export class BitwardenClient {
|
|
|
1097
1127
|
* @returns {VaultClient}
|
|
1098
1128
|
*/
|
|
1099
1129
|
vault() {
|
|
1100
|
-
const ret = wasm.
|
|
1130
|
+
const ret = wasm.bitwardenclient_vault(this.__wbg_ptr);
|
|
1101
1131
|
return VaultClient.__wrap(ret);
|
|
1102
1132
|
}
|
|
1103
1133
|
/**
|
|
@@ -1113,14 +1143,14 @@ export class BitwardenClient {
|
|
|
1113
1143
|
* @returns {GeneratorClient}
|
|
1114
1144
|
*/
|
|
1115
1145
|
generator() {
|
|
1116
|
-
const ret = wasm.
|
|
1146
|
+
const ret = wasm.bitwardenclient_generator(this.__wbg_ptr);
|
|
1117
1147
|
return GeneratorClient.__wrap(ret);
|
|
1118
1148
|
}
|
|
1119
1149
|
/**
|
|
1120
1150
|
* @returns {ExporterClient}
|
|
1121
1151
|
*/
|
|
1122
1152
|
exporters() {
|
|
1123
|
-
const ret = wasm.
|
|
1153
|
+
const ret = wasm.bitwardenclient_exporters(this.__wbg_ptr);
|
|
1124
1154
|
return ExporterClient.__wrap(ret);
|
|
1125
1155
|
}
|
|
1126
1156
|
}
|
|
@@ -1660,7 +1690,9 @@ const FoldersClientFinalization =
|
|
|
1660
1690
|
typeof FinalizationRegistry === "undefined"
|
|
1661
1691
|
? { register: () => {}, unregister: () => {} }
|
|
1662
1692
|
: new FinalizationRegistry((ptr) => wasm.__wbg_foldersclient_free(ptr >>> 0, 1));
|
|
1663
|
-
|
|
1693
|
+
/**
|
|
1694
|
+
* Wrapper for folder specific functionality.
|
|
1695
|
+
*/
|
|
1664
1696
|
export class FoldersClient {
|
|
1665
1697
|
static __wrap(ptr) {
|
|
1666
1698
|
ptr = ptr >>> 0;
|
|
@@ -1682,6 +1714,7 @@ export class FoldersClient {
|
|
|
1682
1714
|
wasm.__wbg_foldersclient_free(ptr, 0);
|
|
1683
1715
|
}
|
|
1684
1716
|
/**
|
|
1717
|
+
* Encrypt a [FolderView] to a [Folder].
|
|
1685
1718
|
* @param {FolderView} folder_view
|
|
1686
1719
|
* @returns {Folder}
|
|
1687
1720
|
*/
|
|
@@ -1701,6 +1734,7 @@ export class FoldersClient {
|
|
|
1701
1734
|
}
|
|
1702
1735
|
}
|
|
1703
1736
|
/**
|
|
1737
|
+
* Encrypt a [Folder] to [FolderView].
|
|
1704
1738
|
* @param {Folder} folder
|
|
1705
1739
|
* @returns {FolderView}
|
|
1706
1740
|
*/
|
|
@@ -1720,6 +1754,7 @@ export class FoldersClient {
|
|
|
1720
1754
|
}
|
|
1721
1755
|
}
|
|
1722
1756
|
/**
|
|
1757
|
+
* Decrypt a list of [Folder]s to a list of [FolderView]s.
|
|
1723
1758
|
* @param {Folder[]} folders
|
|
1724
1759
|
* @returns {FolderView[]}
|
|
1725
1760
|
*/
|
|
@@ -1743,6 +1778,46 @@ export class FoldersClient {
|
|
|
1743
1778
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1744
1779
|
}
|
|
1745
1780
|
}
|
|
1781
|
+
/**
|
|
1782
|
+
* Get all folders from state and decrypt them to a list of [FolderView].
|
|
1783
|
+
* @returns {Promise<FolderView[]>}
|
|
1784
|
+
*/
|
|
1785
|
+
list() {
|
|
1786
|
+
const ret = wasm.foldersclient_list(this.__wbg_ptr);
|
|
1787
|
+
return takeObject(ret);
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
* Get a specific [Folder] by its ID from state and decrypt it to a [FolderView].
|
|
1791
|
+
* @param {string} folder_id
|
|
1792
|
+
* @returns {Promise<FolderView>}
|
|
1793
|
+
*/
|
|
1794
|
+
get(folder_id) {
|
|
1795
|
+
const ptr0 = passStringToWasm0(folder_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1796
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1797
|
+
const ret = wasm.foldersclient_get(this.__wbg_ptr, ptr0, len0);
|
|
1798
|
+
return takeObject(ret);
|
|
1799
|
+
}
|
|
1800
|
+
/**
|
|
1801
|
+
* Create a new [Folder] and save it to the server.
|
|
1802
|
+
* @param {FolderAddEditRequest} request
|
|
1803
|
+
* @returns {Promise<FolderView>}
|
|
1804
|
+
*/
|
|
1805
|
+
create(request) {
|
|
1806
|
+
const ret = wasm.foldersclient_create(this.__wbg_ptr, addHeapObject(request));
|
|
1807
|
+
return takeObject(ret);
|
|
1808
|
+
}
|
|
1809
|
+
/**
|
|
1810
|
+
* Edit the [Folder] and save it to the server.
|
|
1811
|
+
* @param {string} folder_id
|
|
1812
|
+
* @param {FolderAddEditRequest} request
|
|
1813
|
+
* @returns {Promise<FolderView>}
|
|
1814
|
+
*/
|
|
1815
|
+
edit(folder_id, request) {
|
|
1816
|
+
const ptr0 = passStringToWasm0(folder_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1817
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1818
|
+
const ret = wasm.foldersclient_edit(this.__wbg_ptr, ptr0, len0, addHeapObject(request));
|
|
1819
|
+
return takeObject(ret);
|
|
1820
|
+
}
|
|
1746
1821
|
}
|
|
1747
1822
|
|
|
1748
1823
|
const GeneratorClientFinalization =
|
|
@@ -2340,7 +2415,7 @@ export class PlatformClient {
|
|
|
2340
2415
|
* @returns {StateClient}
|
|
2341
2416
|
*/
|
|
2342
2417
|
state() {
|
|
2343
|
-
const ret = wasm.
|
|
2418
|
+
const ret = wasm.platformclient_state(this.__wbg_ptr);
|
|
2344
2419
|
return StateClient.__wrap(ret);
|
|
2345
2420
|
}
|
|
2346
2421
|
}
|
|
@@ -3160,6 +3235,12 @@ export class StateClient {
|
|
|
3160
3235
|
register_cipher_repository(store) {
|
|
3161
3236
|
wasm.stateclient_register_cipher_repository(this.__wbg_ptr, addHeapObject(store));
|
|
3162
3237
|
}
|
|
3238
|
+
/**
|
|
3239
|
+
* @param {Repository<Folder>} store
|
|
3240
|
+
*/
|
|
3241
|
+
register_folder_repository(store) {
|
|
3242
|
+
wasm.stateclient_register_folder_repository(this.__wbg_ptr, addHeapObject(store));
|
|
3243
|
+
}
|
|
3163
3244
|
}
|
|
3164
3245
|
|
|
3165
3246
|
const TotpClientFinalization =
|
|
@@ -3419,7 +3500,22 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
|
3419
3500
|
return ret;
|
|
3420
3501
|
}
|
|
3421
3502
|
|
|
3422
|
-
export function
|
|
3503
|
+
export function __wbg_get_1e936e9c132ed56a() {
|
|
3504
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
3505
|
+
let deferred0_0;
|
|
3506
|
+
let deferred0_1;
|
|
3507
|
+
try {
|
|
3508
|
+
deferred0_0 = arg1;
|
|
3509
|
+
deferred0_1 = arg2;
|
|
3510
|
+
const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2));
|
|
3511
|
+
return addHeapObject(ret);
|
|
3512
|
+
} finally {
|
|
3513
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3514
|
+
}
|
|
3515
|
+
}, arguments);
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3518
|
+
export function __wbg_get_63d4ac1519cd683d() {
|
|
3423
3519
|
return handleError(function (arg0, arg1, arg2) {
|
|
3424
3520
|
let deferred0_0;
|
|
3425
3521
|
let deferred0_1;
|
|
@@ -3446,7 +3542,7 @@ export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
|
3446
3542
|
return addHeapObject(ret);
|
|
3447
3543
|
}
|
|
3448
3544
|
|
|
3449
|
-
export function
|
|
3545
|
+
export function __wbg_getaccesstoken_5c1081642adb54b3(arg0) {
|
|
3450
3546
|
const ret = getObject(arg0).get_access_token();
|
|
3451
3547
|
return addHeapObject(ret);
|
|
3452
3548
|
}
|
|
@@ -3551,7 +3647,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
|
3551
3647
|
return ret;
|
|
3552
3648
|
}
|
|
3553
3649
|
|
|
3554
|
-
export function
|
|
3650
|
+
export function __wbg_list_d51438674d2a6409() {
|
|
3651
|
+
return handleError(function (arg0) {
|
|
3652
|
+
const ret = getObject(arg0).list();
|
|
3653
|
+
return addHeapObject(ret);
|
|
3654
|
+
}, arguments);
|
|
3655
|
+
}
|
|
3656
|
+
|
|
3657
|
+
export function __wbg_list_ee640fea1b320673() {
|
|
3555
3658
|
return handleError(function (arg0) {
|
|
3556
3659
|
const ret = getObject(arg0).list();
|
|
3557
3660
|
return addHeapObject(ret);
|
|
@@ -3586,7 +3689,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
3586
3689
|
const a = state0.a;
|
|
3587
3690
|
state0.a = 0;
|
|
3588
3691
|
try {
|
|
3589
|
-
return
|
|
3692
|
+
return __wbg_adapter_300(a, state0.b, arg0, arg1);
|
|
3590
3693
|
} finally {
|
|
3591
3694
|
state0.a = a;
|
|
3592
3695
|
}
|
|
@@ -3728,7 +3831,22 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
3728
3831
|
}, arguments);
|
|
3729
3832
|
}
|
|
3730
3833
|
|
|
3731
|
-
export function
|
|
3834
|
+
export function __wbg_remove_1b7f523b274e28d8() {
|
|
3835
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
3836
|
+
let deferred0_0;
|
|
3837
|
+
let deferred0_1;
|
|
3838
|
+
try {
|
|
3839
|
+
deferred0_0 = arg1;
|
|
3840
|
+
deferred0_1 = arg2;
|
|
3841
|
+
const ret = getObject(arg0).remove(getStringFromWasm0(arg1, arg2));
|
|
3842
|
+
return addHeapObject(ret);
|
|
3843
|
+
} finally {
|
|
3844
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3845
|
+
}
|
|
3846
|
+
}, arguments);
|
|
3847
|
+
}
|
|
3848
|
+
|
|
3849
|
+
export function __wbg_remove_b9507a7e3319b5a5() {
|
|
3732
3850
|
return handleError(function (arg0, arg1, arg2) {
|
|
3733
3851
|
let deferred0_0;
|
|
3734
3852
|
let deferred0_1;
|
|
@@ -3771,6 +3889,21 @@ export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
|
3771
3889
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
3772
3890
|
}
|
|
3773
3891
|
|
|
3892
|
+
export function __wbg_set_39adcc20133bca63() {
|
|
3893
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3894
|
+
let deferred0_0;
|
|
3895
|
+
let deferred0_1;
|
|
3896
|
+
try {
|
|
3897
|
+
deferred0_0 = arg1;
|
|
3898
|
+
deferred0_1 = arg2;
|
|
3899
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
3900
|
+
return addHeapObject(ret);
|
|
3901
|
+
} finally {
|
|
3902
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3903
|
+
}
|
|
3904
|
+
}, arguments);
|
|
3905
|
+
}
|
|
3906
|
+
|
|
3774
3907
|
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
3775
3908
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
3776
3909
|
}
|
|
@@ -3779,7 +3912,7 @@ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
|
3779
3912
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3780
3913
|
}
|
|
3781
3914
|
|
|
3782
|
-
export function
|
|
3915
|
+
export function __wbg_set_7a0f45f61f570f10() {
|
|
3783
3916
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3784
3917
|
let deferred0_0;
|
|
3785
3918
|
let deferred0_1;
|
|
@@ -3935,6 +4068,15 @@ export function __wbg_warn_aaf1f4664a035bd6(arg0, arg1, arg2, arg3) {
|
|
|
3935
4068
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
3936
4069
|
}
|
|
3937
4070
|
|
|
4071
|
+
export function __wbindgen_array_new() {
|
|
4072
|
+
const ret = [];
|
|
4073
|
+
return addHeapObject(ret);
|
|
4074
|
+
}
|
|
4075
|
+
|
|
4076
|
+
export function __wbindgen_array_push(arg0, arg1) {
|
|
4077
|
+
getObject(arg0).push(takeObject(arg1));
|
|
4078
|
+
}
|
|
4079
|
+
|
|
3938
4080
|
export function __wbindgen_as_number(arg0) {
|
|
3939
4081
|
const ret = +getObject(arg0);
|
|
3940
4082
|
return ret;
|
|
@@ -3973,18 +4115,18 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
3973
4115
|
return ret;
|
|
3974
4116
|
}
|
|
3975
4117
|
|
|
3976
|
-
export function
|
|
3977
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4118
|
+
export function __wbindgen_closure_wrapper3124(arg0, arg1, arg2) {
|
|
4119
|
+
const ret = makeMutClosure(arg0, arg1, 221, __wbg_adapter_54);
|
|
3978
4120
|
return addHeapObject(ret);
|
|
3979
4121
|
}
|
|
3980
4122
|
|
|
3981
|
-
export function
|
|
3982
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4123
|
+
export function __wbindgen_closure_wrapper5341(arg0, arg1, arg2) {
|
|
4124
|
+
const ret = makeMutClosure(arg0, arg1, 246, __wbg_adapter_54);
|
|
3983
4125
|
return addHeapObject(ret);
|
|
3984
4126
|
}
|
|
3985
4127
|
|
|
3986
|
-
export function
|
|
3987
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4128
|
+
export function __wbindgen_closure_wrapper5698(arg0, arg1, arg2) {
|
|
4129
|
+
const ret = makeMutClosure(arg0, arg1, 272, __wbg_adapter_59);
|
|
3988
4130
|
return addHeapObject(ret);
|
|
3989
4131
|
}
|
|
3990
4132
|
|
|
Binary file
|