@bitwarden/sdk-internal 0.2.0-main.300 → 0.2.0-main.301
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 +4 -1
- package/bitwarden_wasm_internal_bg.js +66 -59
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +4 -4
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +4 -1
- package/node/bitwarden_wasm_internal.js +66 -59
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +4 -4
- package/package.json +1 -1
|
@@ -2118,8 +2118,11 @@ export class StateClient {
|
|
|
2118
2118
|
private constructor();
|
|
2119
2119
|
free(): void;
|
|
2120
2120
|
register_cipher_repository(cipher_repository: Repository<Cipher>): void;
|
|
2121
|
-
initialize_state(configuration: IndexedDbConfiguration): Promise<void>;
|
|
2122
2121
|
register_folder_repository(store: Repository<Folder>): void;
|
|
2122
|
+
/**
|
|
2123
|
+
* Initialize the database for SDK managed repositories.
|
|
2124
|
+
*/
|
|
2125
|
+
initialize_state(configuration: IndexedDbConfiguration): Promise<void>;
|
|
2123
2126
|
}
|
|
2124
2127
|
export class TotpClient {
|
|
2125
2128
|
private constructor();
|
|
@@ -828,17 +828,9 @@ module.exports.isEncryptFileError = function (error) {
|
|
|
828
828
|
};
|
|
829
829
|
|
|
830
830
|
function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
831
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
|
|
832
|
-
arg0,
|
|
833
|
-
arg1,
|
|
834
|
-
addHeapObject(arg2),
|
|
835
|
-
);
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
839
831
|
try {
|
|
840
832
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
841
|
-
wasm.
|
|
833
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he48cd26e2b093151(
|
|
842
834
|
retptr,
|
|
843
835
|
arg0,
|
|
844
836
|
arg1,
|
|
@@ -854,6 +846,14 @@ function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
|
854
846
|
}
|
|
855
847
|
}
|
|
856
848
|
|
|
849
|
+
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
850
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8707eb16eb8d903b(
|
|
851
|
+
arg0,
|
|
852
|
+
arg1,
|
|
853
|
+
addHeapObject(arg2),
|
|
854
|
+
);
|
|
855
|
+
}
|
|
856
|
+
|
|
857
857
|
function __wbg_adapter_60(arg0, arg1) {
|
|
858
858
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
|
|
859
859
|
arg0,
|
|
@@ -3796,6 +3796,13 @@ class StateClient {
|
|
|
3796
3796
|
wasm.stateclient_register_cipher_repository(this.__wbg_ptr, addHeapObject(cipher_repository));
|
|
3797
3797
|
}
|
|
3798
3798
|
/**
|
|
3799
|
+
* @param {Repository<Folder>} store
|
|
3800
|
+
*/
|
|
3801
|
+
register_folder_repository(store) {
|
|
3802
|
+
wasm.stateclient_register_folder_repository(this.__wbg_ptr, addHeapObject(store));
|
|
3803
|
+
}
|
|
3804
|
+
/**
|
|
3805
|
+
* Initialize the database for SDK managed repositories.
|
|
3799
3806
|
* @param {IndexedDbConfiguration} configuration
|
|
3800
3807
|
* @returns {Promise<void>}
|
|
3801
3808
|
*/
|
|
@@ -3803,12 +3810,6 @@ class StateClient {
|
|
|
3803
3810
|
const ret = wasm.stateclient_initialize_state(this.__wbg_ptr, addHeapObject(configuration));
|
|
3804
3811
|
return takeObject(ret);
|
|
3805
3812
|
}
|
|
3806
|
-
/**
|
|
3807
|
-
* @param {Repository<Folder>} store
|
|
3808
|
-
*/
|
|
3809
|
-
register_folder_repository(store) {
|
|
3810
|
-
wasm.stateclient_register_folder_repository(this.__wbg_ptr, addHeapObject(store));
|
|
3811
|
-
}
|
|
3812
3813
|
}
|
|
3813
3814
|
module.exports.StateClient = StateClient;
|
|
3814
3815
|
|
|
@@ -4051,6 +4052,12 @@ module.exports.__wbg_debug_e17b51583ca6a632 = function (arg0, arg1, arg2, arg3)
|
|
|
4051
4052
|
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
4052
4053
|
};
|
|
4053
4054
|
|
|
4055
|
+
module.exports.__wbg_deleteObjectStore_3f08ae00cd288224 = function () {
|
|
4056
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
4057
|
+
getObject(arg0).deleteObjectStore(getStringFromWasm0(arg1, arg2));
|
|
4058
|
+
}, arguments);
|
|
4059
|
+
};
|
|
4060
|
+
|
|
4054
4061
|
module.exports.__wbg_done_769e5ede4b31c67b = function (arg0) {
|
|
4055
4062
|
const ret = getObject(arg0).done;
|
|
4056
4063
|
return ret;
|
|
@@ -4111,7 +4118,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
|
4111
4118
|
return ret;
|
|
4112
4119
|
};
|
|
4113
4120
|
|
|
4114
|
-
module.exports.
|
|
4121
|
+
module.exports.__wbg_get_04c461aefd3185cb = function () {
|
|
4115
4122
|
return handleError(function (arg0, arg1, arg2) {
|
|
4116
4123
|
let deferred0_0;
|
|
4117
4124
|
let deferred0_1;
|
|
@@ -4126,7 +4133,19 @@ module.exports.__wbg_get_02a66b05c72560fd = function () {
|
|
|
4126
4133
|
}, arguments);
|
|
4127
4134
|
};
|
|
4128
4135
|
|
|
4129
|
-
module.exports.
|
|
4136
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
4137
|
+
return handleError(function (arg0, arg1) {
|
|
4138
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4139
|
+
return addHeapObject(ret);
|
|
4140
|
+
}, arguments);
|
|
4141
|
+
};
|
|
4142
|
+
|
|
4143
|
+
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
4144
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4145
|
+
return addHeapObject(ret);
|
|
4146
|
+
};
|
|
4147
|
+
|
|
4148
|
+
module.exports.__wbg_get_fdbe0a502101c324 = function () {
|
|
4130
4149
|
return handleError(function (arg0, arg1, arg2) {
|
|
4131
4150
|
let deferred0_0;
|
|
4132
4151
|
let deferred0_1;
|
|
@@ -4141,19 +4160,7 @@ module.exports.__wbg_get_1786bb4469ca7bd2 = function () {
|
|
|
4141
4160
|
}, arguments);
|
|
4142
4161
|
};
|
|
4143
4162
|
|
|
4144
|
-
module.exports.
|
|
4145
|
-
return handleError(function (arg0, arg1) {
|
|
4146
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4147
|
-
return addHeapObject(ret);
|
|
4148
|
-
}, arguments);
|
|
4149
|
-
};
|
|
4150
|
-
|
|
4151
|
-
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
4152
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4153
|
-
return addHeapObject(ret);
|
|
4154
|
-
};
|
|
4155
|
-
|
|
4156
|
-
module.exports.__wbg_getaccesstoken_d664dba9898bd6dc = function (arg0) {
|
|
4163
|
+
module.exports.__wbg_getaccesstoken_c36e81ad9aa6b398 = function (arg0) {
|
|
4157
4164
|
const ret = getObject(arg0).get_access_token();
|
|
4158
4165
|
return addHeapObject(ret);
|
|
4159
4166
|
};
|
|
@@ -4338,14 +4345,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
|
|
|
4338
4345
|
return ret;
|
|
4339
4346
|
};
|
|
4340
4347
|
|
|
4341
|
-
module.exports.
|
|
4348
|
+
module.exports.__wbg_list_124748d25092d74b = function () {
|
|
4342
4349
|
return handleError(function (arg0) {
|
|
4343
4350
|
const ret = getObject(arg0).list();
|
|
4344
4351
|
return addHeapObject(ret);
|
|
4345
4352
|
}, arguments);
|
|
4346
4353
|
};
|
|
4347
4354
|
|
|
4348
|
-
module.exports.
|
|
4355
|
+
module.exports.__wbg_list_298b91fe0fbd16b7 = function () {
|
|
4349
4356
|
return handleError(function (arg0) {
|
|
4350
4357
|
const ret = getObject(arg0).list();
|
|
4351
4358
|
return addHeapObject(ret);
|
|
@@ -4546,7 +4553,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
4546
4553
|
}, arguments);
|
|
4547
4554
|
};
|
|
4548
4555
|
|
|
4549
|
-
module.exports.
|
|
4556
|
+
module.exports.__wbg_remove_8bde9efecea16ed8 = function () {
|
|
4550
4557
|
return handleError(function (arg0, arg1, arg2) {
|
|
4551
4558
|
let deferred0_0;
|
|
4552
4559
|
let deferred0_1;
|
|
@@ -4561,7 +4568,7 @@ module.exports.__wbg_remove_c8033042b8033b78 = function () {
|
|
|
4561
4568
|
}, arguments);
|
|
4562
4569
|
};
|
|
4563
4570
|
|
|
4564
|
-
module.exports.
|
|
4571
|
+
module.exports.__wbg_remove_dbe5609492a6cf8b = function () {
|
|
4565
4572
|
return handleError(function (arg0, arg1, arg2) {
|
|
4566
4573
|
let deferred0_0;
|
|
4567
4574
|
let deferred0_1;
|
|
@@ -4607,7 +4614,24 @@ module.exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
|
|
|
4607
4614
|
return addHeapObject(ret);
|
|
4608
4615
|
};
|
|
4609
4616
|
|
|
4610
|
-
module.exports.
|
|
4617
|
+
module.exports.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
|
|
4618
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
4619
|
+
};
|
|
4620
|
+
|
|
4621
|
+
module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
4622
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4623
|
+
};
|
|
4624
|
+
|
|
4625
|
+
module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
4626
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4627
|
+
};
|
|
4628
|
+
|
|
4629
|
+
module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
4630
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4631
|
+
return addHeapObject(ret);
|
|
4632
|
+
};
|
|
4633
|
+
|
|
4634
|
+
module.exports.__wbg_set_9125524e522343a3 = function () {
|
|
4611
4635
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4612
4636
|
let deferred0_0;
|
|
4613
4637
|
let deferred0_1;
|
|
@@ -4622,7 +4646,7 @@ module.exports.__wbg_set_1014aa43f8a4840b = function () {
|
|
|
4622
4646
|
}, arguments);
|
|
4623
4647
|
};
|
|
4624
4648
|
|
|
4625
|
-
module.exports.
|
|
4649
|
+
module.exports.__wbg_set_952427b395a91227 = function () {
|
|
4626
4650
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4627
4651
|
let deferred0_0;
|
|
4628
4652
|
let deferred0_1;
|
|
@@ -4637,23 +4661,6 @@ module.exports.__wbg_set_33a3225318e500b8 = function () {
|
|
|
4637
4661
|
}, arguments);
|
|
4638
4662
|
};
|
|
4639
4663
|
|
|
4640
|
-
module.exports.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
|
|
4641
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
4642
|
-
};
|
|
4643
|
-
|
|
4644
|
-
module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
4645
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4646
|
-
};
|
|
4647
|
-
|
|
4648
|
-
module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
4649
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4650
|
-
};
|
|
4651
|
-
|
|
4652
|
-
module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
4653
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4654
|
-
return addHeapObject(ret);
|
|
4655
|
-
};
|
|
4656
|
-
|
|
4657
4664
|
module.exports.__wbg_setbody_5923b78a95eedf29 = function (arg0, arg1) {
|
|
4658
4665
|
getObject(arg0).body = getObject(arg1);
|
|
4659
4666
|
};
|
|
@@ -4864,28 +4871,28 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
|
|
|
4864
4871
|
return ret;
|
|
4865
4872
|
};
|
|
4866
4873
|
|
|
4867
|
-
module.exports.
|
|
4874
|
+
module.exports.__wbindgen_closure_wrapper191 = function (arg0, arg1, arg2) {
|
|
4868
4875
|
const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_54);
|
|
4869
4876
|
return addHeapObject(ret);
|
|
4870
4877
|
};
|
|
4871
4878
|
|
|
4872
|
-
module.exports.
|
|
4879
|
+
module.exports.__wbindgen_closure_wrapper193 = function (arg0, arg1, arg2) {
|
|
4873
4880
|
const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_57);
|
|
4874
4881
|
return addHeapObject(ret);
|
|
4875
4882
|
};
|
|
4876
4883
|
|
|
4877
|
-
module.exports.
|
|
4884
|
+
module.exports.__wbindgen_closure_wrapper3783 = function (arg0, arg1, arg2) {
|
|
4878
4885
|
const ret = makeMutClosure(arg0, arg1, 294, __wbg_adapter_60);
|
|
4879
4886
|
return addHeapObject(ret);
|
|
4880
4887
|
};
|
|
4881
4888
|
|
|
4882
|
-
module.exports.
|
|
4889
|
+
module.exports.__wbindgen_closure_wrapper6135 = function (arg0, arg1, arg2) {
|
|
4883
4890
|
const ret = makeMutClosure(arg0, arg1, 319, __wbg_adapter_60);
|
|
4884
4891
|
return addHeapObject(ret);
|
|
4885
4892
|
};
|
|
4886
4893
|
|
|
4887
|
-
module.exports.
|
|
4888
|
-
const ret = makeMutClosure(arg0, arg1, 342,
|
|
4894
|
+
module.exports.__wbindgen_closure_wrapper6516 = function (arg0, arg1, arg2) {
|
|
4895
|
+
const ret = makeMutClosure(arg0, arg1, 342, __wbg_adapter_57);
|
|
4889
4896
|
return addHeapObject(ret);
|
|
4890
4897
|
};
|
|
4891
4898
|
|
|
Binary file
|
|
@@ -17,8 +17,8 @@ export const set_log_level: (a: number) => void;
|
|
|
17
17
|
export const init_sdk: (a: number) => void;
|
|
18
18
|
export const platformclient_load_flags: (a: number, b: number, c: number) => void;
|
|
19
19
|
export const stateclient_register_cipher_repository: (a: number, b: number) => void;
|
|
20
|
-
export const stateclient_initialize_state: (a: number, b: number) => number;
|
|
21
20
|
export const stateclient_register_folder_repository: (a: number, b: number) => void;
|
|
21
|
+
export const stateclient_initialize_state: (a: number, b: number) => number;
|
|
22
22
|
export const __wbg_purecrypto_free: (a: number, b: number) => void;
|
|
23
23
|
export const purecrypto_symmetric_decrypt: (
|
|
24
24
|
a: number,
|
|
@@ -401,16 +401,16 @@ export const __wbindgen_exn_store: (a: number) => void;
|
|
|
401
401
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
402
402
|
export const __wbindgen_export_4: WebAssembly.Table;
|
|
403
403
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
404
|
-
export const
|
|
404
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he48cd26e2b093151: (
|
|
405
405
|
a: number,
|
|
406
406
|
b: number,
|
|
407
407
|
c: number,
|
|
408
|
+
d: number,
|
|
408
409
|
) => void;
|
|
409
|
-
export const
|
|
410
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8707eb16eb8d903b: (
|
|
410
411
|
a: number,
|
|
411
412
|
b: number,
|
|
412
413
|
c: number,
|
|
413
|
-
d: number,
|
|
414
414
|
) => void;
|
|
415
415
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e: (
|
|
416
416
|
a: number,
|