@bitwarden/sdk-internal 0.2.0-main.523 → 0.2.0-main.524

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.
@@ -180,11 +180,6 @@ export interface TokenProvider {
180
180
  get_access_token(): Promise<string | undefined>;
181
181
  }
182
182
 
183
- export interface Repositories {
184
- cipher: Repository<Cipher> | null;
185
- folder: Repository<Folder> | null;
186
- }
187
-
188
183
  /**
189
184
  * Active feature flags for the SDK.
190
185
  */
@@ -194,6 +189,11 @@ export interface IndexedDbConfiguration {
194
189
  db_name: string;
195
190
  }
196
191
 
192
+ export interface Repositories {
193
+ cipher: Repository<Cipher> | null;
194
+ folder: Repository<Folder> | null;
195
+ }
196
+
197
197
  /**
198
198
  * A request structure for requesting a send access token from the API.
199
199
  */
@@ -1002,14 +1002,14 @@ exports.isGetFolderError = function(error) {
1002
1002
  }
1003
1003
  };
1004
1004
 
1005
- function wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130(arg0, arg1, arg2) {
1006
- wasm.wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130(arg0, arg1, addHeapObject(arg2));
1005
+ function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
1006
+ wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
1007
1007
  }
1008
1008
 
1009
- function wasm_bindgen__convert__closures_____invoke__hd535e5ed92b9c746(arg0, arg1, arg2) {
1009
+ function wasm_bindgen__convert__closures_____invoke__hcf61203bdba0e0f4(arg0, arg1, arg2) {
1010
1010
  try {
1011
1011
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1012
- wasm.wasm_bindgen__convert__closures_____invoke__hd535e5ed92b9c746(retptr, arg0, arg1, addHeapObject(arg2));
1012
+ wasm.wasm_bindgen__convert__closures_____invoke__hcf61203bdba0e0f4(retptr, arg0, arg1, addHeapObject(arg2));
1013
1013
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1014
1014
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1015
1015
  if (r1) {
@@ -4932,7 +4932,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (
4932
4932
  return addHeapObject(ret);
4933
4933
  }, arguments) };
4934
4934
 
4935
- exports.__wbg_cipher_97fed7966ff80505 = function(arg0) {
4935
+ exports.__wbg_cipher_ff9e132fd98c62f5 = function(arg0) {
4936
4936
  const ret = getObject(arg0).cipher;
4937
4937
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4938
4938
  };
@@ -5019,7 +5019,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
5019
5019
  return addHeapObject(ret);
5020
5020
  };
5021
5021
 
5022
- exports.__wbg_folder_45bbb37d014a753a = function(arg0) {
5022
+ exports.__wbg_folder_4ce510559d1b0f02 = function(arg0) {
5023
5023
  const ret = getObject(arg0).folder;
5024
5024
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
5025
5025
  };
@@ -5051,7 +5051,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
5051
5051
  return ret;
5052
5052
  };
5053
5053
 
5054
- exports.__wbg_get_33ed8a53bee3f99a = function() { return handleError(function (arg0, arg1, arg2) {
5054
+ exports.__wbg_get_6122fc01bfa28474 = function() { return handleError(function (arg0, arg1, arg2) {
5055
5055
  let deferred0_0;
5056
5056
  let deferred0_1;
5057
5057
  try {
@@ -5064,7 +5064,17 @@ exports.__wbg_get_33ed8a53bee3f99a = function() { return handleError(function (a
5064
5064
  }
5065
5065
  }, arguments) };
5066
5066
 
5067
- exports.__wbg_get_42ffd8821b63fce5 = function() { return handleError(function (arg0, arg1, arg2) {
5067
+ exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
5068
+ const ret = getObject(arg0)[arg1 >>> 0];
5069
+ return addHeapObject(ret);
5070
+ };
5071
+
5072
+ exports.__wbg_get_access_token_99179cfa2a874ff0 = function(arg0) {
5073
+ const ret = getObject(arg0).get_access_token();
5074
+ return addHeapObject(ret);
5075
+ };
5076
+
5077
+ exports.__wbg_get_aef941e5a3956502 = function() { return handleError(function (arg0, arg1, arg2) {
5068
5078
  let deferred0_0;
5069
5079
  let deferred0_1;
5070
5080
  try {
@@ -5077,16 +5087,6 @@ exports.__wbg_get_42ffd8821b63fce5 = function() { return handleError(function (a
5077
5087
  }
5078
5088
  }, arguments) };
5079
5089
 
5080
- exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
5081
- const ret = getObject(arg0)[arg1 >>> 0];
5082
- return addHeapObject(ret);
5083
- };
5084
-
5085
- exports.__wbg_get_access_token_4931c53dd80f15f1 = function(arg0) {
5086
- const ret = getObject(arg0).get_access_token();
5087
- return addHeapObject(ret);
5088
- };
5089
-
5090
5090
  exports.__wbg_get_c03a59ff46a549dd = function() { return handleError(function (arg0, arg1, arg2) {
5091
5091
  let deferred0_0;
5092
5092
  let deferred0_1;
@@ -5288,12 +5288,12 @@ exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
5288
5288
  return ret;
5289
5289
  };
5290
5290
 
5291
- exports.__wbg_list_df938d68efbb2005 = function() { return handleError(function (arg0) {
5291
+ exports.__wbg_list_cec120f78e4b19e2 = function() { return handleError(function (arg0) {
5292
5292
  const ret = getObject(arg0).list();
5293
5293
  return addHeapObject(ret);
5294
5294
  }, arguments) };
5295
5295
 
5296
- exports.__wbg_list_fde10818f23e1d2d = function() { return handleError(function (arg0) {
5296
+ exports.__wbg_list_d75d0e6cf56f282d = function() { return handleError(function (arg0) {
5297
5297
  const ret = getObject(arg0).list();
5298
5298
  return addHeapObject(ret);
5299
5299
  }, arguments) };
@@ -5494,7 +5494,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(
5494
5494
  getObject(arg0).randomFillSync(takeObject(arg1));
5495
5495
  }, arguments) };
5496
5496
 
5497
- exports.__wbg_remove_a982db8fa89beb94 = function() { return handleError(function (arg0, arg1, arg2) {
5497
+ exports.__wbg_remove_3f9c3497c164068a = function() { return handleError(function (arg0, arg1, arg2) {
5498
5498
  let deferred0_0;
5499
5499
  let deferred0_1;
5500
5500
  try {
@@ -5507,7 +5507,7 @@ exports.__wbg_remove_a982db8fa89beb94 = function() { return handleError(function
5507
5507
  }
5508
5508
  }, arguments) };
5509
5509
 
5510
- exports.__wbg_remove_c29a0eed3c169530 = function() { return handleError(function (arg0, arg1, arg2) {
5510
+ exports.__wbg_remove_e7d7e8fbe1d65ce2 = function() { return handleError(function (arg0, arg1, arg2) {
5511
5511
  let deferred0_0;
5512
5512
  let deferred0_1;
5513
5513
  try {
@@ -5545,7 +5545,7 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function(arg0, arg1) {
5545
5545
  return addHeapObject(ret);
5546
5546
  };
5547
5547
 
5548
- exports.__wbg_set_31e87eb877122664 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5548
+ exports.__wbg_set_0c52fc95b4de4b2d = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5549
5549
  let deferred0_0;
5550
5550
  let deferred0_1;
5551
5551
  try {
@@ -5562,7 +5562,12 @@ exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
5562
5562
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5563
5563
  };
5564
5564
 
5565
- exports.__wbg_set_7dc1aaa2e7fa9024 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5565
+ exports.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
5566
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5567
+ return addHeapObject(ret);
5568
+ };
5569
+
5570
+ exports.__wbg_set_9d1a4c50052938f4 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5566
5571
  let deferred0_0;
5567
5572
  let deferred0_1;
5568
5573
  try {
@@ -5575,11 +5580,6 @@ exports.__wbg_set_7dc1aaa2e7fa9024 = function() { return handleError(function (a
5575
5580
  }
5576
5581
  }, arguments) };
5577
5582
 
5578
- exports.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
5579
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5580
- return addHeapObject(ret);
5581
- };
5582
-
5583
5583
  exports.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
5584
5584
  getObject(arg0).body = getObject(arg1);
5585
5585
  };
@@ -5757,27 +5757,33 @@ exports.__wbg_warn_8f5b5437666d0885 = function(arg0, arg1, arg2, arg3) {
5757
5757
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5758
5758
  };
5759
5759
 
5760
- exports.__wbindgen_cast_0f3a80f9c6c81c16 = function(arg0, arg1) {
5761
- // Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 43, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5762
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3238f077fb5ae8c5, wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130);
5763
- return addHeapObject(ret);
5764
- };
5765
-
5766
5760
  exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
5767
5761
  // Cast intrinsic for `Ref(String) -> Externref`.
5768
5762
  const ret = getStringFromWasm0(arg0, arg1);
5769
5763
  return addHeapObject(ret);
5770
5764
  };
5771
5765
 
5772
- exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
5773
- // Cast intrinsic for `U64 -> Externref`.
5774
- const ret = BigInt.asUintN(64, arg0);
5766
+ exports.__wbindgen_cast_298dd3322eda9063 = function(arg0, arg1) {
5767
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 332, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5768
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5769
+ return addHeapObject(ret);
5770
+ };
5771
+
5772
+ exports.__wbindgen_cast_34ef3ce950757bdd = function(arg0, arg1) {
5773
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5774
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h6008707e16612dc8, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5775
+ return addHeapObject(ret);
5776
+ };
5777
+
5778
+ exports.__wbindgen_cast_397295739b4135cd = function(arg0, arg1) {
5779
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [NamedExternref("Event")], shim_idx: 43, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5780
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h6008707e16612dc8, wasm_bindgen__convert__closures_____invoke__hcf61203bdba0e0f4);
5775
5781
  return addHeapObject(ret);
5776
5782
  };
5777
5783
 
5778
- exports.__wbindgen_cast_5750452b86ec572d = function(arg0, arg1) {
5779
- // Cast intrinsic for `Closure(Closure { dtor_idx: 332, function: Function { arguments: [Externref], shim_idx: 43, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5780
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130);
5784
+ exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
5785
+ // Cast intrinsic for `U64 -> Externref`.
5786
+ const ret = BigInt.asUintN(64, arg0);
5781
5787
  return addHeapObject(ret);
5782
5788
  };
5783
5789
 
@@ -5815,21 +5821,15 @@ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
5815
5821
  return addHeapObject(ret);
5816
5822
  };
5817
5823
 
5818
- exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
5819
- // Cast intrinsic for `F64 -> Externref`.
5820
- const ret = arg0;
5824
+ exports.__wbindgen_cast_cc64d9c4c77c46f7 = function(arg0, arg1) {
5825
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 339, function: Function { arguments: [NamedExternref("Event")], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5826
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5821
5827
  return addHeapObject(ret);
5822
5828
  };
5823
5829
 
5824
- exports.__wbindgen_cast_e1085c040d7c5239 = function(arg0, arg1) {
5825
- // Cast intrinsic for `Closure(Closure { dtor_idx: 339, function: Function { arguments: [NamedExternref("Event")], shim_idx: 43, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5826
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130);
5827
- return addHeapObject(ret);
5828
- };
5829
-
5830
- exports.__wbindgen_cast_e12aaa4ecde9c999 = function(arg0, arg1) {
5831
- // Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [NamedExternref("Event")], shim_idx: 41, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5832
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3238f077fb5ae8c5, wasm_bindgen__convert__closures_____invoke__hd535e5ed92b9c746);
5830
+ exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
5831
+ // Cast intrinsic for `F64 -> Externref`.
5832
+ const ret = arg0;
5833
5833
  return addHeapObject(ret);
5834
5834
  };
5835
5835
 
@@ -527,24 +527,24 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
527
527
  export const vaultclient_attachments: (a: number) => number;
528
528
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
529
529
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
530
- export const wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130: (
530
+ export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
531
531
  a: number,
532
532
  b: number,
533
533
  c: number,
534
534
  ) => void;
535
- export const wasm_bindgen__closure__destroy__h3238f077fb5ae8c5: (a: number, b: number) => void;
536
- export const wasm_bindgen__convert__closures_____invoke__hd535e5ed92b9c746: (
535
+ export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
536
+ export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
537
+ export const wasm_bindgen__convert__closures_____invoke__hcf61203bdba0e0f4: (
537
538
  a: number,
538
539
  b: number,
539
540
  c: number,
540
541
  d: number,
541
542
  ) => void;
542
- export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
543
+ export const wasm_bindgen__closure__destroy__h6008707e16612dc8: (a: number, b: number) => void;
543
544
  export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
544
545
  a: number,
545
546
  b: number,
546
547
  ) => void;
547
- export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
548
548
  export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
549
549
  export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
550
550
  a: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.523",
3
+ "version": "0.2.0-main.524",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",