@bitwarden/sdk-internal 0.2.0-main.239 → 0.2.0-main.240

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
- 49d027c1f5144d6d319e3cab56782f8b844cd8c2
1
+ 58a9bf9e33acc3f4fc564577317dc3e42b2c6d33
@@ -173,6 +173,33 @@ export interface TestError extends Error {
173
173
 
174
174
  export function isTestError(error: any): error is TestError;
175
175
 
176
+ export interface Collection {
177
+ id: Uuid | undefined;
178
+ organizationId: Uuid;
179
+ name: EncString;
180
+ externalId: string | undefined;
181
+ hidePasswords: boolean;
182
+ readOnly: boolean;
183
+ manage: boolean;
184
+ }
185
+
186
+ export interface CollectionView {
187
+ id: Uuid | undefined;
188
+ organizationId: Uuid;
189
+ name: string;
190
+ externalId: string | undefined;
191
+ hidePasswords: boolean;
192
+ readOnly: boolean;
193
+ manage: boolean;
194
+ }
195
+
196
+ export interface CollectionDecryptError extends Error {
197
+ name: "CollectionDecryptError";
198
+ variant: "Crypto";
199
+ }
200
+
201
+ export function isCollectionDecryptError(error: any): error is CollectionDecryptError;
202
+
176
203
  /**
177
204
  * State used for initializing the user cryptographic state.
178
205
  */
@@ -1151,16 +1178,6 @@ export interface CreateFolderError extends Error {
1151
1178
 
1152
1179
  export function isCreateFolderError(error: any): error is CreateFolderError;
1153
1180
 
1154
- export interface Collection {
1155
- id: Uuid | undefined;
1156
- organizationId: Uuid;
1157
- name: EncString;
1158
- externalId: string | undefined;
1159
- hidePasswords: boolean;
1160
- readOnly: boolean;
1161
- manage: boolean;
1162
- }
1163
-
1164
1181
  export interface SshKeyView {
1165
1182
  /**
1166
1183
  * SSH private key (ed25519/rsa) in unencrypted openssh private key format [OpenSSH private key](https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.key)
@@ -1424,6 +1441,33 @@ export class CiphersClient {
1424
1441
  move_to_organization(cipher_view: CipherView, organization_id: OrganizationId): CipherView;
1425
1442
  decrypt_fido2_private_key(cipher_view: CipherView): string;
1426
1443
  }
1444
+ export class CollectionViewNodeItem {
1445
+ private constructor();
1446
+ free(): void;
1447
+ get_item(): CollectionView;
1448
+ get_parent(): CollectionView | undefined;
1449
+ get_children(): CollectionView[];
1450
+ get_ancestors(): Map<any, any>;
1451
+ }
1452
+ export class CollectionViewTree {
1453
+ private constructor();
1454
+ free(): void;
1455
+ get_item_by_id(collection_view: CollectionView): CollectionViewNodeItem | undefined;
1456
+ get_root_items(): CollectionViewNodeItem[];
1457
+ get_flat_items(): CollectionViewNodeItem[];
1458
+ }
1459
+ export class CollectionsClient {
1460
+ private constructor();
1461
+ free(): void;
1462
+ decrypt(collection: Collection): CollectionView;
1463
+ decrypt_list(collections: Collection[]): CollectionView[];
1464
+ /**
1465
+ *
1466
+ * Returns the vector of CollectionView objects in a tree structure based on its implemented
1467
+ * path().
1468
+ */
1469
+ get_collection_tree(collections: CollectionView[]): CollectionViewTree;
1470
+ }
1427
1471
  /**
1428
1472
  * A client for the crypto operations.
1429
1473
  */
@@ -1475,7 +1519,7 @@ export class ExporterClient {
1475
1519
  * *Warning:* Expect this API to be unstable, and it will change in the future.
1476
1520
  *
1477
1521
  * For use with Apple using [ASCredentialExportManager](https://developer.apple.com/documentation/authenticationservices/ascredentialexportmanager).
1478
- * Ideally the input should be immediately serialized from [ASImportableAccount](https://developer.apple.com/documentation/authenticationservices/asimportableaccount).
1522
+ * Ideally, the input should be immediately serialized from [ASImportableAccount](https://developer.apple.com/documentation/authenticationservices/asimportableaccount).
1479
1523
  */
1480
1524
  export_cxf(account: Account, ciphers: Cipher[]): string;
1481
1525
  /**
@@ -1484,7 +1528,7 @@ export class ExporterClient {
1484
1528
  * *Warning:* Expect this API to be unstable, and it will change in the future.
1485
1529
  *
1486
1530
  * For use with Apple using [ASCredentialExportManager](https://developer.apple.com/documentation/authenticationservices/ascredentialexportmanager).
1487
- * Ideally the input should be immediately serialized from [ASImportableAccount](https://developer.apple.com/documentation/authenticationservices/asimportableaccount).
1531
+ * Ideally, the input should be immediately serialized from [ASImportableAccount](https://developer.apple.com/documentation/authenticationservices/asimportableaccount).
1488
1532
  */
1489
1533
  import_cxf(payload: string): Cipher[];
1490
1534
  }
@@ -1811,4 +1855,8 @@ export class VaultClient {
1811
1855
  * TOTP related operations.
1812
1856
  */
1813
1857
  totp(): TotpClient;
1858
+ /**
1859
+ * Collection related operations.
1860
+ */
1861
+ collections(): CollectionsClient;
1814
1862
  }
@@ -351,6 +351,19 @@ export function isTestError(error) {
351
351
  }
352
352
  }
353
353
 
354
+ /**
355
+ * @param {any} error
356
+ * @returns {boolean}
357
+ */
358
+ export function isCollectionDecryptError(error) {
359
+ try {
360
+ const ret = wasm.isCollectionDecryptError(addBorrowedObject(error));
361
+ return ret !== 0;
362
+ } finally {
363
+ heap[stack_pointer++] = undefined;
364
+ }
365
+ }
366
+
354
367
  /**
355
368
  * @param {any} error
356
369
  * @returns {boolean}
@@ -796,7 +809,7 @@ function __wbg_adapter_59(arg0, arg1, arg2) {
796
809
  );
797
810
  }
798
811
 
799
- function __wbg_adapter_304(arg0, arg1, arg2, arg3) {
812
+ function __wbg_adapter_322(arg0, arg1, arg2, arg3) {
800
813
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
801
814
  arg0,
802
815
  arg1,
@@ -1469,6 +1482,223 @@ export class CiphersClient {
1469
1482
  }
1470
1483
  }
1471
1484
 
1485
+ const CollectionViewNodeItemFinalization =
1486
+ typeof FinalizationRegistry === "undefined"
1487
+ ? { register: () => {}, unregister: () => {} }
1488
+ : new FinalizationRegistry((ptr) => wasm.__wbg_collectionviewnodeitem_free(ptr >>> 0, 1));
1489
+
1490
+ export class CollectionViewNodeItem {
1491
+ static __wrap(ptr) {
1492
+ ptr = ptr >>> 0;
1493
+ const obj = Object.create(CollectionViewNodeItem.prototype);
1494
+ obj.__wbg_ptr = ptr;
1495
+ CollectionViewNodeItemFinalization.register(obj, obj.__wbg_ptr, obj);
1496
+ return obj;
1497
+ }
1498
+
1499
+ __destroy_into_raw() {
1500
+ const ptr = this.__wbg_ptr;
1501
+ this.__wbg_ptr = 0;
1502
+ CollectionViewNodeItemFinalization.unregister(this);
1503
+ return ptr;
1504
+ }
1505
+
1506
+ free() {
1507
+ const ptr = this.__destroy_into_raw();
1508
+ wasm.__wbg_collectionviewnodeitem_free(ptr, 0);
1509
+ }
1510
+ /**
1511
+ * @returns {CollectionView}
1512
+ */
1513
+ get_item() {
1514
+ const ret = wasm.collectionviewnodeitem_get_item(this.__wbg_ptr);
1515
+ return takeObject(ret);
1516
+ }
1517
+ /**
1518
+ * @returns {CollectionView | undefined}
1519
+ */
1520
+ get_parent() {
1521
+ const ret = wasm.collectionviewnodeitem_get_parent(this.__wbg_ptr);
1522
+ return takeObject(ret);
1523
+ }
1524
+ /**
1525
+ * @returns {CollectionView[]}
1526
+ */
1527
+ get_children() {
1528
+ try {
1529
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1530
+ wasm.collectionviewnodeitem_get_children(retptr, this.__wbg_ptr);
1531
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1532
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1533
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1534
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1535
+ return v1;
1536
+ } finally {
1537
+ wasm.__wbindgen_add_to_stack_pointer(16);
1538
+ }
1539
+ }
1540
+ /**
1541
+ * @returns {Map<any, any>}
1542
+ */
1543
+ get_ancestors() {
1544
+ const ret = wasm.collectionviewnodeitem_get_ancestors(this.__wbg_ptr);
1545
+ return takeObject(ret);
1546
+ }
1547
+ }
1548
+
1549
+ const CollectionViewTreeFinalization =
1550
+ typeof FinalizationRegistry === "undefined"
1551
+ ? { register: () => {}, unregister: () => {} }
1552
+ : new FinalizationRegistry((ptr) => wasm.__wbg_collectionviewtree_free(ptr >>> 0, 1));
1553
+
1554
+ export class CollectionViewTree {
1555
+ static __wrap(ptr) {
1556
+ ptr = ptr >>> 0;
1557
+ const obj = Object.create(CollectionViewTree.prototype);
1558
+ obj.__wbg_ptr = ptr;
1559
+ CollectionViewTreeFinalization.register(obj, obj.__wbg_ptr, obj);
1560
+ return obj;
1561
+ }
1562
+
1563
+ __destroy_into_raw() {
1564
+ const ptr = this.__wbg_ptr;
1565
+ this.__wbg_ptr = 0;
1566
+ CollectionViewTreeFinalization.unregister(this);
1567
+ return ptr;
1568
+ }
1569
+
1570
+ free() {
1571
+ const ptr = this.__destroy_into_raw();
1572
+ wasm.__wbg_collectionviewtree_free(ptr, 0);
1573
+ }
1574
+ /**
1575
+ * @param {CollectionView} collection_view
1576
+ * @returns {CollectionViewNodeItem | undefined}
1577
+ */
1578
+ get_item_by_id(collection_view) {
1579
+ const ret = wasm.collectionviewtree_get_item_by_id(
1580
+ this.__wbg_ptr,
1581
+ addHeapObject(collection_view),
1582
+ );
1583
+ return ret === 0 ? undefined : CollectionViewNodeItem.__wrap(ret);
1584
+ }
1585
+ /**
1586
+ * @returns {CollectionViewNodeItem[]}
1587
+ */
1588
+ get_root_items() {
1589
+ try {
1590
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1591
+ wasm.collectionviewtree_get_root_items(retptr, this.__wbg_ptr);
1592
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1593
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1594
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1595
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1596
+ return v1;
1597
+ } finally {
1598
+ wasm.__wbindgen_add_to_stack_pointer(16);
1599
+ }
1600
+ }
1601
+ /**
1602
+ * @returns {CollectionViewNodeItem[]}
1603
+ */
1604
+ get_flat_items() {
1605
+ try {
1606
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1607
+ wasm.collectionviewtree_get_flat_items(retptr, this.__wbg_ptr);
1608
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1609
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1610
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1611
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1612
+ return v1;
1613
+ } finally {
1614
+ wasm.__wbindgen_add_to_stack_pointer(16);
1615
+ }
1616
+ }
1617
+ }
1618
+
1619
+ const CollectionsClientFinalization =
1620
+ typeof FinalizationRegistry === "undefined"
1621
+ ? { register: () => {}, unregister: () => {} }
1622
+ : new FinalizationRegistry((ptr) => wasm.__wbg_collectionsclient_free(ptr >>> 0, 1));
1623
+
1624
+ export class CollectionsClient {
1625
+ static __wrap(ptr) {
1626
+ ptr = ptr >>> 0;
1627
+ const obj = Object.create(CollectionsClient.prototype);
1628
+ obj.__wbg_ptr = ptr;
1629
+ CollectionsClientFinalization.register(obj, obj.__wbg_ptr, obj);
1630
+ return obj;
1631
+ }
1632
+
1633
+ __destroy_into_raw() {
1634
+ const ptr = this.__wbg_ptr;
1635
+ this.__wbg_ptr = 0;
1636
+ CollectionsClientFinalization.unregister(this);
1637
+ return ptr;
1638
+ }
1639
+
1640
+ free() {
1641
+ const ptr = this.__destroy_into_raw();
1642
+ wasm.__wbg_collectionsclient_free(ptr, 0);
1643
+ }
1644
+ /**
1645
+ * @param {Collection} collection
1646
+ * @returns {CollectionView}
1647
+ */
1648
+ decrypt(collection) {
1649
+ try {
1650
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1651
+ wasm.collectionsclient_decrypt(retptr, this.__wbg_ptr, addHeapObject(collection));
1652
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1653
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1654
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1655
+ if (r2) {
1656
+ throw takeObject(r1);
1657
+ }
1658
+ return takeObject(r0);
1659
+ } finally {
1660
+ wasm.__wbindgen_add_to_stack_pointer(16);
1661
+ }
1662
+ }
1663
+ /**
1664
+ * @param {Collection[]} collections
1665
+ * @returns {CollectionView[]}
1666
+ */
1667
+ decrypt_list(collections) {
1668
+ try {
1669
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1670
+ const ptr0 = passArrayJsValueToWasm0(collections, wasm.__wbindgen_malloc);
1671
+ const len0 = WASM_VECTOR_LEN;
1672
+ wasm.collectionsclient_decrypt_list(retptr, this.__wbg_ptr, ptr0, len0);
1673
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1674
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1675
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1676
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
1677
+ if (r3) {
1678
+ throw takeObject(r2);
1679
+ }
1680
+ var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
1681
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1682
+ return v2;
1683
+ } finally {
1684
+ wasm.__wbindgen_add_to_stack_pointer(16);
1685
+ }
1686
+ }
1687
+ /**
1688
+ *
1689
+ * Returns the vector of CollectionView objects in a tree structure based on its implemented
1690
+ * path().
1691
+ * @param {CollectionView[]} collections
1692
+ * @returns {CollectionViewTree}
1693
+ */
1694
+ get_collection_tree(collections) {
1695
+ const ptr0 = passArrayJsValueToWasm0(collections, wasm.__wbindgen_malloc);
1696
+ const len0 = WASM_VECTOR_LEN;
1697
+ const ret = wasm.collectionsclient_get_collection_tree(this.__wbg_ptr, ptr0, len0);
1698
+ return CollectionViewTree.__wrap(ret);
1699
+ }
1700
+ }
1701
+
1472
1702
  const CryptoClientFinalization =
1473
1703
  typeof FinalizationRegistry === "undefined"
1474
1704
  ? { register: () => {}, unregister: () => {} }
@@ -1718,7 +1948,7 @@ export class ExporterClient {
1718
1948
  * *Warning:* Expect this API to be unstable, and it will change in the future.
1719
1949
  *
1720
1950
  * For use with Apple using [ASCredentialExportManager](https://developer.apple.com/documentation/authenticationservices/ascredentialexportmanager).
1721
- * Ideally the input should be immediately serialized from [ASImportableAccount](https://developer.apple.com/documentation/authenticationservices/asimportableaccount).
1951
+ * Ideally, the input should be immediately serialized from [ASImportableAccount](https://developer.apple.com/documentation/authenticationservices/asimportableaccount).
1722
1952
  * @param {Account} account
1723
1953
  * @param {Cipher[]} ciphers
1724
1954
  * @returns {string}
@@ -1756,7 +1986,7 @@ export class ExporterClient {
1756
1986
  * *Warning:* Expect this API to be unstable, and it will change in the future.
1757
1987
  *
1758
1988
  * For use with Apple using [ASCredentialExportManager](https://developer.apple.com/documentation/authenticationservices/ascredentialexportmanager).
1759
- * Ideally the input should be immediately serialized from [ASImportableAccount](https://developer.apple.com/documentation/authenticationservices/asimportableaccount).
1989
+ * Ideally, the input should be immediately serialized from [ASImportableAccount](https://developer.apple.com/documentation/authenticationservices/asimportableaccount).
1760
1990
  * @param {string} payload
1761
1991
  * @returns {Cipher[]}
1762
1992
  */
@@ -3498,6 +3728,14 @@ export class VaultClient {
3498
3728
  const ret = wasm.vaultclient_attachments(this.__wbg_ptr);
3499
3729
  return TotpClient.__wrap(ret);
3500
3730
  }
3731
+ /**
3732
+ * Collection related operations.
3733
+ * @returns {CollectionsClient}
3734
+ */
3735
+ collections() {
3736
+ const ret = wasm.vaultclient_attachments(this.__wbg_ptr);
3737
+ return CollectionsClient.__wrap(ret);
3738
+ }
3501
3739
  }
3502
3740
 
3503
3741
  export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
@@ -3572,6 +3810,11 @@ export function __wbg_clearTimeout_b1115618e821c3b2(arg0) {
3572
3810
  return addHeapObject(ret);
3573
3811
  }
3574
3812
 
3813
+ export function __wbg_collectionviewnodeitem_new(arg0) {
3814
+ const ret = CollectionViewNodeItem.__wrap(arg0);
3815
+ return addHeapObject(ret);
3816
+ }
3817
+
3575
3818
  export function __wbg_crypto_574e78ad8b13b65f(arg0) {
3576
3819
  const ret = getObject(arg0).crypto;
3577
3820
  return addHeapObject(ret);
@@ -3634,7 +3877,7 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
3634
3877
  return ret;
3635
3878
  }
3636
3879
 
3637
- export function __wbg_get_649dd42f487d00a1() {
3880
+ export function __wbg_get_4d2d40ca4b374526() {
3638
3881
  return handleError(function (arg0, arg1, arg2) {
3639
3882
  let deferred0_0;
3640
3883
  let deferred0_1;
@@ -3656,7 +3899,7 @@ export function __wbg_get_67b2ba62fc30de12() {
3656
3899
  }, arguments);
3657
3900
  }
3658
3901
 
3659
- export function __wbg_get_a529634b244d1242() {
3902
+ export function __wbg_get_a704ce0594e32c52() {
3660
3903
  return handleError(function (arg0, arg1, arg2) {
3661
3904
  let deferred0_0;
3662
3905
  let deferred0_1;
@@ -3676,7 +3919,7 @@ export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
3676
3919
  return addHeapObject(ret);
3677
3920
  }
3678
3921
 
3679
- export function __wbg_getaccesstoken_ca3f8a05efc4cb0a(arg0) {
3922
+ export function __wbg_getaccesstoken_7142c5c3bc53c929(arg0) {
3680
3923
  const ret = getObject(arg0).get_access_token();
3681
3924
  return addHeapObject(ret);
3682
3925
  }
@@ -3781,14 +4024,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
3781
4024
  return ret;
3782
4025
  }
3783
4026
 
3784
- export function __wbg_list_122f4ed4cdeabf08() {
4027
+ export function __wbg_list_23076505e35b81fd() {
3785
4028
  return handleError(function (arg0) {
3786
4029
  const ret = getObject(arg0).list();
3787
4030
  return addHeapObject(ret);
3788
4031
  }, arguments);
3789
4032
  }
3790
4033
 
3791
- export function __wbg_list_e9340a57e89f7cb2() {
4034
+ export function __wbg_list_d648fcc86445493d() {
3792
4035
  return handleError(function (arg0) {
3793
4036
  const ret = getObject(arg0).list();
3794
4037
  return addHeapObject(ret);
@@ -3823,7 +4066,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
3823
4066
  const a = state0.a;
3824
4067
  state0.a = 0;
3825
4068
  try {
3826
- return __wbg_adapter_304(a, state0.b, arg0, arg1);
4069
+ return __wbg_adapter_322(a, state0.b, arg0, arg1);
3827
4070
  } finally {
3828
4071
  state0.a = a;
3829
4072
  }
@@ -3840,6 +4083,11 @@ export function __wbg_new_405e22f390576ce2() {
3840
4083
  return addHeapObject(ret);
3841
4084
  }
3842
4085
 
4086
+ export function __wbg_new_5e0be73521bc8c17() {
4087
+ const ret = new Map();
4088
+ return addHeapObject(ret);
4089
+ }
4090
+
3843
4091
  export function __wbg_new_78feb108b6472713() {
3844
4092
  const ret = new Array();
3845
4093
  return addHeapObject(ret);
@@ -3965,7 +4213,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
3965
4213
  }, arguments);
3966
4214
  }
3967
4215
 
3968
- export function __wbg_remove_16d35fdbb7886af8() {
4216
+ export function __wbg_remove_371346750b94862a() {
3969
4217
  return handleError(function (arg0, arg1, arg2) {
3970
4218
  let deferred0_0;
3971
4219
  let deferred0_1;
@@ -3980,7 +4228,7 @@ export function __wbg_remove_16d35fdbb7886af8() {
3980
4228
  }, arguments);
3981
4229
  }
3982
4230
 
3983
- export function __wbg_remove_cd158a0be0eeab0f() {
4231
+ export function __wbg_remove_ad058b841824a525() {
3984
4232
  return handleError(function (arg0, arg1, arg2) {
3985
4233
  let deferred0_0;
3986
4234
  let deferred0_1;
@@ -4019,19 +4267,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
4019
4267
  return addHeapObject(ret);
4020
4268
  }
4021
4269
 
4022
- export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
4023
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
4024
- }
4025
-
4026
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
4027
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4028
- }
4029
-
4030
- export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
4031
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4032
- }
4033
-
4034
- export function __wbg_set_856c97fda4471dd6() {
4270
+ export function __wbg_set_1877c5f7f0739440() {
4035
4271
  return handleError(function (arg0, arg1, arg2, arg3) {
4036
4272
  let deferred0_0;
4037
4273
  let deferred0_1;
@@ -4046,7 +4282,19 @@ export function __wbg_set_856c97fda4471dd6() {
4046
4282
  }, arguments);
4047
4283
  }
4048
4284
 
4049
- export function __wbg_set_9e38b917dbfa39fc() {
4285
+ export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
4286
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
4287
+ }
4288
+
4289
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
4290
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4291
+ }
4292
+
4293
+ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
4294
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4295
+ }
4296
+
4297
+ export function __wbg_set_767d872ecb04d0ee() {
4050
4298
  return handleError(function (arg0, arg1, arg2, arg3) {
4051
4299
  let deferred0_0;
4052
4300
  let deferred0_1;
@@ -4061,6 +4309,11 @@ export function __wbg_set_9e38b917dbfa39fc() {
4061
4309
  }, arguments);
4062
4310
  }
4063
4311
 
4312
+ export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
4313
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4314
+ return addHeapObject(ret);
4315
+ }
4316
+
4064
4317
  export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
4065
4318
  getObject(arg0).body = getObject(arg1);
4066
4319
  }
@@ -4249,18 +4502,18 @@ export function __wbindgen_cb_drop(arg0) {
4249
4502
  return ret;
4250
4503
  }
4251
4504
 
4252
- export function __wbindgen_closure_wrapper3189(arg0, arg1, arg2) {
4253
- const ret = makeMutClosure(arg0, arg1, 254, __wbg_adapter_54);
4505
+ export function __wbindgen_closure_wrapper3203(arg0, arg1, arg2) {
4506
+ const ret = makeMutClosure(arg0, arg1, 268, __wbg_adapter_54);
4254
4507
  return addHeapObject(ret);
4255
4508
  }
4256
4509
 
4257
- export function __wbindgen_closure_wrapper5440(arg0, arg1, arg2) {
4258
- const ret = makeMutClosure(arg0, arg1, 279, __wbg_adapter_54);
4510
+ export function __wbindgen_closure_wrapper5578(arg0, arg1, arg2) {
4511
+ const ret = makeMutClosure(arg0, arg1, 293, __wbg_adapter_54);
4259
4512
  return addHeapObject(ret);
4260
4513
  }
4261
4514
 
4262
- export function __wbindgen_closure_wrapper5799(arg0, arg1, arg2) {
4263
- const ret = makeMutClosure(arg0, arg1, 304, __wbg_adapter_59);
4515
+ export function __wbindgen_closure_wrapper5939(arg0, arg1, arg2) {
4516
+ const ret = makeMutClosure(arg0, arg1, 318, __wbg_adapter_59);
4264
4517
  return addHeapObject(ret);
4265
4518
  }
4266
4519
 
Binary file
@@ -179,6 +179,7 @@ export const sendaccessclient_request_send_access_token: (
179
179
  b: number,
180
180
  c: number,
181
181
  ) => number;
182
+ export const isCollectionDecryptError: (a: number) => number;
182
183
  export const cryptoclient_initialize_user_crypto: (a: number, b: number) => number;
183
184
  export const cryptoclient_initialize_org_crypto: (a: number, b: number) => number;
184
185
  export const cryptoclient_make_key_pair: (a: number, b: number, c: number, d: number) => void;
@@ -322,6 +323,18 @@ export const foldersclient_get: (a: number, b: number, c: number) => number;
322
323
  export const foldersclient_create: (a: number, b: number) => number;
323
324
  export const foldersclient_edit: (a: number, b: number, c: number, d: number) => number;
324
325
  export const vaultclient_attachments: (a: number) => number;
326
+ export const collectionsclient_decrypt: (a: number, b: number, c: number) => void;
327
+ export const collectionsclient_decrypt_list: (a: number, b: number, c: number, d: number) => void;
328
+ export const collectionsclient_get_collection_tree: (a: number, b: number, c: number) => number;
329
+ export const __wbg_collectionviewtree_free: (a: number, b: number) => void;
330
+ export const __wbg_collectionviewnodeitem_free: (a: number, b: number) => void;
331
+ export const collectionviewnodeitem_get_item: (a: number) => number;
332
+ export const collectionviewnodeitem_get_parent: (a: number) => number;
333
+ export const collectionviewnodeitem_get_children: (a: number, b: number) => void;
334
+ export const collectionviewnodeitem_get_ancestors: (a: number) => number;
335
+ export const collectionviewtree_get_item_by_id: (a: number, b: number) => number;
336
+ export const collectionviewtree_get_root_items: (a: number, b: number) => void;
337
+ export const collectionviewtree_get_flat_items: (a: number, b: number) => void;
325
338
  export const totpclient_generate_totp: (
326
339
  a: number,
327
340
  b: number,
@@ -351,8 +364,10 @@ export const __wbg_platformclient_free: (a: number, b: number) => void;
351
364
  export const vaultclient_ciphers: (a: number) => number;
352
365
  export const vaultclient_folders: (a: number) => number;
353
366
  export const vaultclient_totp: (a: number) => number;
367
+ export const vaultclient_collections: (a: number) => number;
354
368
  export const __wbg_foldersclient_free: (a: number, b: number) => void;
355
369
  export const __wbg_ciphersclient_free: (a: number, b: number) => void;
370
+ export const __wbg_collectionsclient_free: (a: number, b: number) => void;
356
371
  export const __wbg_vaultclient_free: (a: number, b: number) => void;
357
372
  export const __wbg_sendaccessclient_free: (a: number, b: number) => void;
358
373
  export const __wbg_totpclient_free: (a: number, b: number) => void;