@bitwarden/sdk-internal 0.2.0-main.300 → 0.2.0-main.302

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 CHANGED
@@ -1 +1 @@
1
- 745287fddc715b9e578ec02d4f2b4bf53bbf8ee7
1
+ 0eba924af2dc8e46114ad5bc14e885820c6cae28
@@ -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();
@@ -834,17 +834,9 @@ export function isEncryptFileError(error) {
834
834
  }
835
835
 
836
836
  function __wbg_adapter_54(arg0, arg1, arg2) {
837
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
838
- arg0,
839
- arg1,
840
- addHeapObject(arg2),
841
- );
842
- }
843
-
844
- function __wbg_adapter_57(arg0, arg1, arg2) {
845
837
  try {
846
838
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
847
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0165cee9349ff8be(
839
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he48cd26e2b093151(
848
840
  retptr,
849
841
  arg0,
850
842
  arg1,
@@ -860,6 +852,14 @@ function __wbg_adapter_57(arg0, arg1, arg2) {
860
852
  }
861
853
  }
862
854
 
855
+ function __wbg_adapter_57(arg0, arg1, arg2) {
856
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8707eb16eb8d903b(
857
+ arg0,
858
+ arg1,
859
+ addHeapObject(arg2),
860
+ );
861
+ }
862
+
863
863
  function __wbg_adapter_60(arg0, arg1) {
864
864
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
865
865
  arg0,
@@ -3783,6 +3783,13 @@ export class StateClient {
3783
3783
  wasm.stateclient_register_cipher_repository(this.__wbg_ptr, addHeapObject(cipher_repository));
3784
3784
  }
3785
3785
  /**
3786
+ * @param {Repository<Folder>} store
3787
+ */
3788
+ register_folder_repository(store) {
3789
+ wasm.stateclient_register_folder_repository(this.__wbg_ptr, addHeapObject(store));
3790
+ }
3791
+ /**
3792
+ * Initialize the database for SDK managed repositories.
3786
3793
  * @param {IndexedDbConfiguration} configuration
3787
3794
  * @returns {Promise<void>}
3788
3795
  */
@@ -3790,12 +3797,6 @@ export class StateClient {
3790
3797
  const ret = wasm.stateclient_initialize_state(this.__wbg_ptr, addHeapObject(configuration));
3791
3798
  return takeObject(ret);
3792
3799
  }
3793
- /**
3794
- * @param {Repository<Folder>} store
3795
- */
3796
- register_folder_repository(store) {
3797
- wasm.stateclient_register_folder_repository(this.__wbg_ptr, addHeapObject(store));
3798
- }
3799
3800
  }
3800
3801
 
3801
3802
  const TotpClientFinalization =
@@ -4035,6 +4036,12 @@ export function __wbg_debug_e17b51583ca6a632(arg0, arg1, arg2, arg3) {
4035
4036
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
4036
4037
  }
4037
4038
 
4039
+ export function __wbg_deleteObjectStore_3f08ae00cd288224() {
4040
+ return handleError(function (arg0, arg1, arg2) {
4041
+ getObject(arg0).deleteObjectStore(getStringFromWasm0(arg1, arg2));
4042
+ }, arguments);
4043
+ }
4044
+
4038
4045
  export function __wbg_done_769e5ede4b31c67b(arg0) {
4039
4046
  const ret = getObject(arg0).done;
4040
4047
  return ret;
@@ -4095,7 +4102,14 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
4095
4102
  return ret;
4096
4103
  }
4097
4104
 
4098
- export function __wbg_get_02a66b05c72560fd() {
4105
+ export function __wbg_get_67b2ba62fc30de12() {
4106
+ return handleError(function (arg0, arg1) {
4107
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
4108
+ return addHeapObject(ret);
4109
+ }, arguments);
4110
+ }
4111
+
4112
+ export function __wbg_get_a1d64d48c55d7239() {
4099
4113
  return handleError(function (arg0, arg1, arg2) {
4100
4114
  let deferred0_0;
4101
4115
  let deferred0_1;
@@ -4110,7 +4124,12 @@ export function __wbg_get_02a66b05c72560fd() {
4110
4124
  }, arguments);
4111
4125
  }
4112
4126
 
4113
- export function __wbg_get_1786bb4469ca7bd2() {
4127
+ export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
4128
+ const ret = getObject(arg0)[arg1 >>> 0];
4129
+ return addHeapObject(ret);
4130
+ }
4131
+
4132
+ export function __wbg_get_bbfabb3fe49a37af() {
4114
4133
  return handleError(function (arg0, arg1, arg2) {
4115
4134
  let deferred0_0;
4116
4135
  let deferred0_1;
@@ -4125,19 +4144,7 @@ export function __wbg_get_1786bb4469ca7bd2() {
4125
4144
  }, arguments);
4126
4145
  }
4127
4146
 
4128
- export function __wbg_get_67b2ba62fc30de12() {
4129
- return handleError(function (arg0, arg1) {
4130
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
4131
- return addHeapObject(ret);
4132
- }, arguments);
4133
- }
4134
-
4135
- export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
4136
- const ret = getObject(arg0)[arg1 >>> 0];
4137
- return addHeapObject(ret);
4138
- }
4139
-
4140
- export function __wbg_getaccesstoken_d664dba9898bd6dc(arg0) {
4147
+ export function __wbg_getaccesstoken_9d29f8c6e40ffc4e(arg0) {
4141
4148
  const ret = getObject(arg0).get_access_token();
4142
4149
  return addHeapObject(ret);
4143
4150
  }
@@ -4322,14 +4329,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
4322
4329
  return ret;
4323
4330
  }
4324
4331
 
4325
- export function __wbg_list_11f50e6ca9e42904() {
4332
+ export function __wbg_list_0df36fcf44aa2aef() {
4326
4333
  return handleError(function (arg0) {
4327
4334
  const ret = getObject(arg0).list();
4328
4335
  return addHeapObject(ret);
4329
4336
  }, arguments);
4330
4337
  }
4331
4338
 
4332
- export function __wbg_list_b9dae06f9f4cf56e() {
4339
+ export function __wbg_list_420aa8dfa0f1b885() {
4333
4340
  return handleError(function (arg0) {
4334
4341
  const ret = getObject(arg0).list();
4335
4342
  return addHeapObject(ret);
@@ -4530,7 +4537,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
4530
4537
  }, arguments);
4531
4538
  }
4532
4539
 
4533
- export function __wbg_remove_c8033042b8033b78() {
4540
+ export function __wbg_remove_76178a23f539dff8() {
4534
4541
  return handleError(function (arg0, arg1, arg2) {
4535
4542
  let deferred0_0;
4536
4543
  let deferred0_1;
@@ -4545,7 +4552,7 @@ export function __wbg_remove_c8033042b8033b78() {
4545
4552
  }, arguments);
4546
4553
  }
4547
4554
 
4548
- export function __wbg_remove_da0ee7505acb113e() {
4555
+ export function __wbg_remove_f669ccf9d348c2cb() {
4549
4556
  return handleError(function (arg0, arg1, arg2) {
4550
4557
  let deferred0_0;
4551
4558
  let deferred0_1;
@@ -4591,7 +4598,24 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
4591
4598
  return addHeapObject(ret);
4592
4599
  }
4593
4600
 
4594
- export function __wbg_set_1014aa43f8a4840b() {
4601
+ export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
4602
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
4603
+ }
4604
+
4605
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
4606
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4607
+ }
4608
+
4609
+ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
4610
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4611
+ }
4612
+
4613
+ export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
4614
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4615
+ return addHeapObject(ret);
4616
+ }
4617
+
4618
+ export function __wbg_set_a483ff2d4262e23b() {
4595
4619
  return handleError(function (arg0, arg1, arg2, arg3) {
4596
4620
  let deferred0_0;
4597
4621
  let deferred0_1;
@@ -4606,7 +4630,7 @@ export function __wbg_set_1014aa43f8a4840b() {
4606
4630
  }, arguments);
4607
4631
  }
4608
4632
 
4609
- export function __wbg_set_33a3225318e500b8() {
4633
+ export function __wbg_set_e1862c620aef4b65() {
4610
4634
  return handleError(function (arg0, arg1, arg2, arg3) {
4611
4635
  let deferred0_0;
4612
4636
  let deferred0_1;
@@ -4621,23 +4645,6 @@ export function __wbg_set_33a3225318e500b8() {
4621
4645
  }, arguments);
4622
4646
  }
4623
4647
 
4624
- export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
4625
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
4626
- }
4627
-
4628
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
4629
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4630
- }
4631
-
4632
- export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
4633
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4634
- }
4635
-
4636
- export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
4637
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4638
- return addHeapObject(ret);
4639
- }
4640
-
4641
4648
  export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
4642
4649
  getObject(arg0).body = getObject(arg1);
4643
4650
  }
@@ -4848,28 +4855,28 @@ export function __wbindgen_cb_drop(arg0) {
4848
4855
  return ret;
4849
4856
  }
4850
4857
 
4851
- export function __wbindgen_closure_wrapper188(arg0, arg1, arg2) {
4858
+ export function __wbindgen_closure_wrapper191(arg0, arg1, arg2) {
4852
4859
  const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_54);
4853
4860
  return addHeapObject(ret);
4854
4861
  }
4855
4862
 
4856
- export function __wbindgen_closure_wrapper190(arg0, arg1, arg2) {
4863
+ export function __wbindgen_closure_wrapper193(arg0, arg1, arg2) {
4857
4864
  const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_57);
4858
4865
  return addHeapObject(ret);
4859
4866
  }
4860
4867
 
4861
- export function __wbindgen_closure_wrapper3779(arg0, arg1, arg2) {
4868
+ export function __wbindgen_closure_wrapper3783(arg0, arg1, arg2) {
4862
4869
  const ret = makeMutClosure(arg0, arg1, 294, __wbg_adapter_60);
4863
4870
  return addHeapObject(ret);
4864
4871
  }
4865
4872
 
4866
- export function __wbindgen_closure_wrapper6130(arg0, arg1, arg2) {
4873
+ export function __wbindgen_closure_wrapper6135(arg0, arg1, arg2) {
4867
4874
  const ret = makeMutClosure(arg0, arg1, 319, __wbg_adapter_60);
4868
4875
  return addHeapObject(ret);
4869
4876
  }
4870
4877
 
4871
- export function __wbindgen_closure_wrapper6511(arg0, arg1, arg2) {
4872
- const ret = makeMutClosure(arg0, arg1, 342, __wbg_adapter_54);
4878
+ export function __wbindgen_closure_wrapper6516(arg0, arg1, arg2) {
4879
+ const ret = makeMutClosure(arg0, arg1, 342, __wbg_adapter_57);
4873
4880
  return addHeapObject(ret);
4874
4881
  }
4875
4882
 
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 _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02: (
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 _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0165cee9349ff8be: (
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,