@bitwarden/sdk-internal 0.2.0-main.320 → 0.2.0-main.322

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.
@@ -1369,6 +1369,10 @@ export interface FolderView {
1369
1369
  revisionDate: DateTime<Utc>;
1370
1370
  }
1371
1371
 
1372
+ export interface AncestorMap {
1373
+ ancestors: Map<CollectionId, string>;
1374
+ }
1375
+
1372
1376
  export interface DecryptError extends Error {
1373
1377
  name: "DecryptError";
1374
1378
  variant: "Crypto";
@@ -1724,12 +1728,12 @@ export class CollectionViewNodeItem {
1724
1728
  get_item(): CollectionView;
1725
1729
  get_parent(): CollectionView | undefined;
1726
1730
  get_children(): CollectionView[];
1727
- get_ancestors(): Map<any, any>;
1731
+ get_ancestors(): AncestorMap;
1728
1732
  }
1729
1733
  export class CollectionViewTree {
1730
1734
  private constructor();
1731
1735
  free(): void;
1732
- get_item_by_id(collection_view: CollectionView): CollectionViewNodeItem | undefined;
1736
+ get_item_for_view(collection_view: CollectionView): CollectionViewNodeItem | undefined;
1733
1737
  get_root_items(): CollectionViewNodeItem[];
1734
1738
  get_flat_items(): CollectionViewNodeItem[];
1735
1739
  }
@@ -1586,7 +1586,7 @@ class CollectionViewNodeItem {
1586
1586
  }
1587
1587
  }
1588
1588
  /**
1589
- * @returns {Map<any, any>}
1589
+ * @returns {AncestorMap}
1590
1590
  */
1591
1591
  get_ancestors() {
1592
1592
  const ret = wasm.collectionviewnodeitem_get_ancestors(this.__wbg_ptr);
@@ -1624,8 +1624,8 @@ class CollectionViewTree {
1624
1624
  * @param {CollectionView} collection_view
1625
1625
  * @returns {CollectionViewNodeItem | undefined}
1626
1626
  */
1627
- get_item_by_id(collection_view) {
1628
- const ret = wasm.collectionviewtree_get_item_by_id(
1627
+ get_item_for_view(collection_view) {
1628
+ const ret = wasm.collectionviewtree_get_item_for_view(
1629
1629
  this.__wbg_ptr,
1630
1630
  addHeapObject(collection_view),
1631
1631
  );
@@ -4144,7 +4144,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
4144
4144
  return ret;
4145
4145
  };
4146
4146
 
4147
- module.exports.__wbg_get_331a0bc62ad67269 = function () {
4147
+ module.exports.__wbg_get_3ba4bb995012514b = function () {
4148
4148
  return handleError(function (arg0, arg1, arg2) {
4149
4149
  let deferred0_0;
4150
4150
  let deferred0_1;
@@ -4159,7 +4159,19 @@ module.exports.__wbg_get_331a0bc62ad67269 = function () {
4159
4159
  }, arguments);
4160
4160
  };
4161
4161
 
4162
- module.exports.__wbg_get_5cc60d51693809d5 = function () {
4162
+ module.exports.__wbg_get_67b2ba62fc30de12 = function () {
4163
+ return handleError(function (arg0, arg1) {
4164
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
4165
+ return addHeapObject(ret);
4166
+ }, arguments);
4167
+ };
4168
+
4169
+ module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
4170
+ const ret = getObject(arg0)[arg1 >>> 0];
4171
+ return addHeapObject(ret);
4172
+ };
4173
+
4174
+ module.exports.__wbg_get_cb1a2fcde59e6452 = function () {
4163
4175
  return handleError(function (arg0, arg1, arg2) {
4164
4176
  let deferred0_0;
4165
4177
  let deferred0_1;
@@ -4174,19 +4186,7 @@ module.exports.__wbg_get_5cc60d51693809d5 = function () {
4174
4186
  }, arguments);
4175
4187
  };
4176
4188
 
4177
- module.exports.__wbg_get_67b2ba62fc30de12 = function () {
4178
- return handleError(function (arg0, arg1) {
4179
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
4180
- return addHeapObject(ret);
4181
- }, arguments);
4182
- };
4183
-
4184
- module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
4185
- const ret = getObject(arg0)[arg1 >>> 0];
4186
- return addHeapObject(ret);
4187
- };
4188
-
4189
- module.exports.__wbg_getaccesstoken_86134279b9493799 = function (arg0) {
4189
+ module.exports.__wbg_getaccesstoken_4deb24f9ed6f1d7a = function (arg0) {
4190
4190
  const ret = getObject(arg0).get_access_token();
4191
4191
  return addHeapObject(ret);
4192
4192
  };
@@ -4371,14 +4371,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
4371
4371
  return ret;
4372
4372
  };
4373
4373
 
4374
- module.exports.__wbg_list_846007a1562d9028 = function () {
4374
+ module.exports.__wbg_list_432edaab8d451581 = function () {
4375
4375
  return handleError(function (arg0) {
4376
4376
  const ret = getObject(arg0).list();
4377
4377
  return addHeapObject(ret);
4378
4378
  }, arguments);
4379
4379
  };
4380
4380
 
4381
- module.exports.__wbg_list_e1b001eb3bed05ba = function () {
4381
+ module.exports.__wbg_list_b147d4ed87819296 = function () {
4382
4382
  return handleError(function (arg0) {
4383
4383
  const ret = getObject(arg0).list();
4384
4384
  return addHeapObject(ret);
@@ -4579,7 +4579,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
4579
4579
  }, arguments);
4580
4580
  };
4581
4581
 
4582
- module.exports.__wbg_remove_88e9ea4eb6dd7478 = function () {
4582
+ module.exports.__wbg_remove_bbbd3f66f99cccfe = function () {
4583
4583
  return handleError(function (arg0, arg1, arg2) {
4584
4584
  let deferred0_0;
4585
4585
  let deferred0_1;
@@ -4594,7 +4594,7 @@ module.exports.__wbg_remove_88e9ea4eb6dd7478 = function () {
4594
4594
  }, arguments);
4595
4595
  };
4596
4596
 
4597
- module.exports.__wbg_remove_b79f18540462b5cc = function () {
4597
+ module.exports.__wbg_remove_db8978b74308fd8b = function () {
4598
4598
  return handleError(function (arg0, arg1, arg2) {
4599
4599
  let deferred0_0;
4600
4600
  let deferred0_1;
@@ -4648,7 +4648,7 @@ module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
4648
4648
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4649
4649
  };
4650
4650
 
4651
- module.exports.__wbg_set_4949d4cfd64eccce = function () {
4651
+ module.exports.__wbg_set_5266cb7b833829c6 = function () {
4652
4652
  return handleError(function (arg0, arg1, arg2, arg3) {
4653
4653
  let deferred0_0;
4654
4654
  let deferred0_1;
@@ -4663,7 +4663,16 @@ module.exports.__wbg_set_4949d4cfd64eccce = function () {
4663
4663
  }, arguments);
4664
4664
  };
4665
4665
 
4666
- module.exports.__wbg_set_5d3466af125030c1 = function () {
4666
+ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
4667
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4668
+ };
4669
+
4670
+ module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
4671
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4672
+ return addHeapObject(ret);
4673
+ };
4674
+
4675
+ module.exports.__wbg_set_a053bae3934c0198 = function () {
4667
4676
  return handleError(function (arg0, arg1, arg2, arg3) {
4668
4677
  let deferred0_0;
4669
4678
  let deferred0_1;
@@ -4678,15 +4687,6 @@ module.exports.__wbg_set_5d3466af125030c1 = function () {
4678
4687
  }, arguments);
4679
4688
  };
4680
4689
 
4681
- module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
4682
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4683
- };
4684
-
4685
- module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
4686
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4687
- return addHeapObject(ret);
4688
- };
4689
-
4690
4690
  module.exports.__wbg_setbody_5923b78a95eedf29 = function (arg0, arg1) {
4691
4691
  getObject(arg0).body = getObject(arg1);
4692
4692
  };
@@ -4908,17 +4908,17 @@ module.exports.__wbindgen_closure_wrapper193 = function (arg0, arg1, arg2) {
4908
4908
  };
4909
4909
 
4910
4910
  module.exports.__wbindgen_closure_wrapper3845 = function (arg0, arg1, arg2) {
4911
- const ret = makeMutClosure(arg0, arg1, 292, __wbg_adapter_60);
4911
+ const ret = makeMutClosure(arg0, arg1, 294, __wbg_adapter_60);
4912
4912
  return addHeapObject(ret);
4913
4913
  };
4914
4914
 
4915
- module.exports.__wbindgen_closure_wrapper6167 = function (arg0, arg1, arg2) {
4916
- const ret = makeMutClosure(arg0, arg1, 317, __wbg_adapter_60);
4915
+ module.exports.__wbindgen_closure_wrapper6175 = function (arg0, arg1, arg2) {
4916
+ const ret = makeMutClosure(arg0, arg1, 319, __wbg_adapter_60);
4917
4917
  return addHeapObject(ret);
4918
4918
  };
4919
4919
 
4920
- module.exports.__wbindgen_closure_wrapper6546 = function (arg0, arg1, arg2) {
4921
- const ret = makeMutClosure(arg0, arg1, 340, __wbg_adapter_54);
4920
+ module.exports.__wbindgen_closure_wrapper6554 = function (arg0, arg1, arg2) {
4921
+ const ret = makeMutClosure(arg0, arg1, 342, __wbg_adapter_54);
4922
4922
  return addHeapObject(ret);
4923
4923
  };
4924
4924
 
@@ -358,7 +358,7 @@ export const collectionviewnodeitem_get_item: (a: number) => number;
358
358
  export const collectionviewnodeitem_get_parent: (a: number) => number;
359
359
  export const collectionviewnodeitem_get_children: (a: number, b: number) => void;
360
360
  export const collectionviewnodeitem_get_ancestors: (a: number) => number;
361
- export const collectionviewtree_get_item_by_id: (a: number, b: number) => number;
361
+ export const collectionviewtree_get_item_for_view: (a: number, b: number) => number;
362
362
  export const collectionviewtree_get_root_items: (a: number, b: number) => void;
363
363
  export const collectionviewtree_get_flat_items: (a: number, b: number) => void;
364
364
  export const totpclient_generate_totp: (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.320",
3
+ "version": "0.2.0-main.322",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",