@bitwarden/commercial-sdk-internal 0.2.0-main.458 → 0.2.0-main.460

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.
@@ -1489,6 +1489,13 @@ export interface CreateCipherAdminError extends Error {
1489
1489
 
1490
1490
  export function isCreateCipherAdminError(error: any): error is CreateCipherAdminError;
1491
1491
 
1492
+ export interface DeleteCipherAdminError extends Error {
1493
+ name: "DeleteCipherAdminError";
1494
+ variant: "Api";
1495
+ }
1496
+
1497
+ export function isDeleteCipherAdminError(error: any): error is DeleteCipherAdminError;
1498
+
1492
1499
  export interface RestoreCipherAdminError extends Error {
1493
1500
  name: "RestoreCipherAdminError";
1494
1501
  variant: "Api" | "VaultParse" | "Crypto";
@@ -2061,6 +2068,10 @@ export class CipherAdminClient {
2061
2068
  private constructor();
2062
2069
  free(): void;
2063
2070
  [Symbol.dispose](): void;
2071
+ list_org_ciphers(
2072
+ org_id: OrganizationId,
2073
+ include_member_items: boolean,
2074
+ ): Promise<DecryptCipherListResult>;
2064
2075
  /**
2065
2076
  * Adds the cipher matched by [CipherId] to any number of collections on the server.
2066
2077
  */
@@ -2074,6 +2085,34 @@ export class CipherAdminClient {
2074
2085
  * Creates the Cipher on the server only, does not store it to local state.
2075
2086
  */
2076
2087
  create(request: CipherCreateRequest): Promise<CipherView>;
2088
+ /**
2089
+ * Deletes all Cipher objects with a matching CipherId from the server, using the admin
2090
+ * endpoint. Affects server data only, does not modify local state.
2091
+ */
2092
+ delete_many(cipher_ids: CipherId[], organization_id: OrganizationId): Promise<void>;
2093
+ /**
2094
+ * Soft-deletes the Cipher with the matching CipherId from the server, using the admin
2095
+ * endpoint. Affects server data only, does not modify local state.
2096
+ */
2097
+ soft_delete(cipher_id: CipherId): Promise<void>;
2098
+ /**
2099
+ * Soft-deletes all Cipher objects for the given CipherIds from the server, using the admin
2100
+ * endpoint. Affects server data only, does not modify local state.
2101
+ */
2102
+ soft_delete_many(cipher_ids: CipherId[], organization_id: OrganizationId): Promise<void>;
2103
+ /**
2104
+ * Deletes the Cipher with the matching CipherId from the server, using the admin endpoint.
2105
+ * Affects server data only, does not modify local state.
2106
+ */
2107
+ delete(cipher_id: CipherId): Promise<void>;
2108
+ /**
2109
+ * Restores multiple soft-deleted ciphers on the server.
2110
+ */
2111
+ restore_many(cipher_ids: CipherId[], org_id: OrganizationId): Promise<DecryptCipherListResult>;
2112
+ /**
2113
+ * Restores a soft-deleted cipher on the server, using the admin endpoint.
2114
+ */
2115
+ restore(cipher_id: CipherId): Promise<CipherView>;
2077
2116
  }
2078
2117
  /**
2079
2118
  * Client for evaluating credential risk for login ciphers.
@@ -2181,6 +2220,16 @@ export class CiphersClient {
2181
2220
  admin(): CipherAdminClient;
2182
2221
  decrypt(cipher: Cipher): CipherView;
2183
2222
  encrypt(cipher_view: CipherView): EncryptionContext;
2223
+ /**
2224
+ * Get [Cipher] by ID from state and decrypt it to a [CipherView].
2225
+ */
2226
+ get(cipher_id: string): Promise<CipherView>;
2227
+ /**
2228
+ * Get all ciphers from state and decrypt them, returning both successes and failures.
2229
+ * This method will not fail when some ciphers fail to decrypt, allowing for graceful
2230
+ * handling of corrupted or problematic cipher data.
2231
+ */
2232
+ list(): Promise<DecryptCipherListResult>;
2184
2233
  /**
2185
2234
  * Adds the cipher matched by [CipherId] to any number of collections on the server.
2186
2235
  */
@@ -2197,6 +2246,30 @@ export class CiphersClient {
2197
2246
  * Creates a new [Cipher] and saves it to the server.
2198
2247
  */
2199
2248
  create(request: CipherCreateRequest): Promise<CipherView>;
2249
+ /**
2250
+ * Deletes all [Cipher] objects with a matching [CipherId] from the server.
2251
+ */
2252
+ delete_many(cipher_ids: CipherId[], organization_id?: OrganizationId | null): Promise<void>;
2253
+ /**
2254
+ * Soft-deletes the [Cipher] with the matching [CipherId] from the server.
2255
+ */
2256
+ soft_delete(cipher_id: CipherId): Promise<void>;
2257
+ /**
2258
+ * Soft-deletes all [Cipher] objects for the given [CipherId]s from the server.
2259
+ */
2260
+ soft_delete_many(cipher_ids: CipherId[], organization_id?: OrganizationId | null): Promise<void>;
2261
+ /**
2262
+ * Deletes the [Cipher] with the matching [CipherId] from the server.
2263
+ */
2264
+ delete(cipher_id: CipherId): Promise<void>;
2265
+ /**
2266
+ * Restores multiple soft-deleted ciphers on the server.
2267
+ */
2268
+ restore_many(cipher_ids: CipherId[]): Promise<DecryptCipherListResult>;
2269
+ /**
2270
+ * Restores a soft-deleted cipher on the server.
2271
+ */
2272
+ restore(cipher_id: CipherId): Promise<CipherView>;
2200
2273
  }
2201
2274
  export class CollectionViewNodeItem {
2202
2275
  private constructor();
@@ -846,6 +846,19 @@ exports.isCreateCipherAdminError = function (error) {
846
846
  }
847
847
  };
848
848
 
849
+ /**
850
+ * @param {any} error
851
+ * @returns {boolean}
852
+ */
853
+ exports.isDeleteCipherAdminError = function (error) {
854
+ try {
855
+ const ret = wasm.isDeleteCipherAdminError(addBorrowedObject(error));
856
+ return ret !== 0;
857
+ } finally {
858
+ heap[stack_pointer++] = undefined;
859
+ }
860
+ };
861
+
849
862
  /**
850
863
  * @param {any} error
851
864
  * @returns {boolean}
@@ -980,6 +993,14 @@ function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg
980
993
  wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
981
994
  }
982
995
 
996
+ function wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5(arg0, arg1, arg2) {
997
+ wasm.wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5(
998
+ arg0,
999
+ arg1,
1000
+ addHeapObject(arg2),
1001
+ );
1002
+ }
1003
+
983
1004
  function wasm_bindgen__convert__closures_____invoke__h6fa4a14c2e357000(arg0, arg1, arg2) {
984
1005
  try {
985
1006
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -999,14 +1020,6 @@ function wasm_bindgen__convert__closures_____invoke__h6fa4a14c2e357000(arg0, arg
999
1020
  }
1000
1021
  }
1001
1022
 
1002
- function wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5(arg0, arg1, arg2) {
1003
- wasm.wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5(
1004
- arg0,
1005
- arg1,
1006
- addHeapObject(arg2),
1007
- );
1008
- }
1009
-
1010
1023
  function wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, arg2, arg3) {
1011
1024
  wasm.wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(
1012
1025
  arg0,
@@ -1339,6 +1352,19 @@ class CipherAdminClient {
1339
1352
  const ptr = this.__destroy_into_raw();
1340
1353
  wasm.__wbg_cipheradminclient_free(ptr, 0);
1341
1354
  }
1355
+ /**
1356
+ * @param {OrganizationId} org_id
1357
+ * @param {boolean} include_member_items
1358
+ * @returns {Promise<DecryptCipherListResult>}
1359
+ */
1360
+ list_org_ciphers(org_id, include_member_items) {
1361
+ const ret = wasm.cipheradminclient_list_org_ciphers(
1362
+ this.__wbg_ptr,
1363
+ addHeapObject(org_id),
1364
+ include_member_items,
1365
+ );
1366
+ return takeObject(ret);
1367
+ }
1342
1368
  /**
1343
1369
  * Adds the cipher matched by [CipherId] to any number of collections on the server.
1344
1370
  * @param {CipherId} cipher_id
@@ -1380,6 +1406,88 @@ class CipherAdminClient {
1380
1406
  const ret = wasm.cipheradminclient_create(this.__wbg_ptr, addHeapObject(request));
1381
1407
  return takeObject(ret);
1382
1408
  }
1409
+ /**
1410
+ * Deletes all Cipher objects with a matching CipherId from the server, using the admin
1411
+ * endpoint. Affects server data only, does not modify local state.
1412
+ * @param {CipherId[]} cipher_ids
1413
+ * @param {OrganizationId} organization_id
1414
+ * @returns {Promise<void>}
1415
+ */
1416
+ delete_many(cipher_ids, organization_id) {
1417
+ const ptr0 = passArrayJsValueToWasm0(cipher_ids, wasm.__wbindgen_malloc);
1418
+ const len0 = WASM_VECTOR_LEN;
1419
+ const ret = wasm.cipheradminclient_delete_many(
1420
+ this.__wbg_ptr,
1421
+ ptr0,
1422
+ len0,
1423
+ addHeapObject(organization_id),
1424
+ );
1425
+ return takeObject(ret);
1426
+ }
1427
+ /**
1428
+ * Soft-deletes the Cipher with the matching CipherId from the server, using the admin
1429
+ * endpoint. Affects server data only, does not modify local state.
1430
+ * @param {CipherId} cipher_id
1431
+ * @returns {Promise<void>}
1432
+ */
1433
+ soft_delete(cipher_id) {
1434
+ const ret = wasm.cipheradminclient_soft_delete(this.__wbg_ptr, addHeapObject(cipher_id));
1435
+ return takeObject(ret);
1436
+ }
1437
+ /**
1438
+ * Soft-deletes all Cipher objects for the given CipherIds from the server, using the admin
1439
+ * endpoint. Affects server data only, does not modify local state.
1440
+ * @param {CipherId[]} cipher_ids
1441
+ * @param {OrganizationId} organization_id
1442
+ * @returns {Promise<void>}
1443
+ */
1444
+ soft_delete_many(cipher_ids, organization_id) {
1445
+ const ptr0 = passArrayJsValueToWasm0(cipher_ids, wasm.__wbindgen_malloc);
1446
+ const len0 = WASM_VECTOR_LEN;
1447
+ const ret = wasm.cipheradminclient_soft_delete_many(
1448
+ this.__wbg_ptr,
1449
+ ptr0,
1450
+ len0,
1451
+ addHeapObject(organization_id),
1452
+ );
1453
+ return takeObject(ret);
1454
+ }
1455
+ /**
1456
+ * Deletes the Cipher with the matching CipherId from the server, using the admin endpoint.
1457
+ * Affects server data only, does not modify local state.
1458
+ * @param {CipherId} cipher_id
1459
+ * @returns {Promise<void>}
1460
+ */
1461
+ delete(cipher_id) {
1462
+ const ret = wasm.cipheradminclient_delete(this.__wbg_ptr, addHeapObject(cipher_id));
1463
+ return takeObject(ret);
1464
+ }
1465
+ /**
1466
+ * Restores multiple soft-deleted ciphers on the server.
1467
+ * @param {CipherId[]} cipher_ids
1468
+ * @param {OrganizationId} org_id
1469
+ * @returns {Promise<DecryptCipherListResult>}
1470
+ */
1471
+ restore_many(cipher_ids, org_id) {
1472
+ const ptr0 = passArrayJsValueToWasm0(cipher_ids, wasm.__wbindgen_malloc);
1473
+ const len0 = WASM_VECTOR_LEN;
1474
+ const ret = wasm.cipheradminclient_restore_many(
1475
+ this.__wbg_ptr,
1476
+ ptr0,
1477
+ len0,
1478
+ addHeapObject(org_id),
1479
+ );
1480
+ return takeObject(ret);
1481
+ }
1482
+ /**
1483
+ * Restores a soft-deleted cipher on the server, using the admin endpoint.
1484
+ * @param {CipherId} cipher_id
1485
+ * @returns {Promise<CipherView>}
1486
+ */
1487
+ restore(cipher_id) {
1488
+ const ret = wasm.cipheradminclient_restore(this.__wbg_ptr, addHeapObject(cipher_id));
1489
+ return takeObject(ret);
1490
+ }
1383
1491
  }
1384
1492
  if (Symbol.dispose) CipherAdminClient.prototype[Symbol.dispose] = CipherAdminClient.prototype.free;
1385
1493
 
@@ -1774,6 +1882,27 @@ class CiphersClient {
1774
1882
  wasm.__wbindgen_add_to_stack_pointer(16);
1775
1883
  }
1776
1884
  }
1885
+ /**
1886
+ * Get [Cipher] by ID from state and decrypt it to a [CipherView].
1887
+ * @param {string} cipher_id
1888
+ * @returns {Promise<CipherView>}
1889
+ */
1890
+ get(cipher_id) {
1891
+ const ptr0 = passStringToWasm0(cipher_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1892
+ const len0 = WASM_VECTOR_LEN;
1893
+ const ret = wasm.ciphersclient_get(this.__wbg_ptr, ptr0, len0);
1894
+ return takeObject(ret);
1895
+ }
1896
+ /**
1897
+ * Get all ciphers from state and decrypt them, returning both successes and failures.
1898
+ * This method will not fail when some ciphers fail to decrypt, allowing for graceful
1899
+ * handling of corrupted or problematic cipher data.
1900
+ * @returns {Promise<DecryptCipherListResult>}
1901
+ */
1902
+ list() {
1903
+ const ret = wasm.ciphersclient_list(this.__wbg_ptr);
1904
+ return takeObject(ret);
1905
+ }
1777
1906
  /**
1778
1907
  * Adds the cipher matched by [CipherId] to any number of collections on the server.
1779
1908
  * @param {CipherId} cipher_id
@@ -1811,6 +1940,78 @@ class CiphersClient {
1811
1940
  const ret = wasm.ciphersclient_create(this.__wbg_ptr, addHeapObject(request));
1812
1941
  return takeObject(ret);
1813
1942
  }
1943
+ /**
1944
+ * Deletes all [Cipher] objects with a matching [CipherId] from the server.
1945
+ * @param {CipherId[]} cipher_ids
1946
+ * @param {OrganizationId | null} [organization_id]
1947
+ * @returns {Promise<void>}
1948
+ */
1949
+ delete_many(cipher_ids, organization_id) {
1950
+ const ptr0 = passArrayJsValueToWasm0(cipher_ids, wasm.__wbindgen_malloc);
1951
+ const len0 = WASM_VECTOR_LEN;
1952
+ const ret = wasm.ciphersclient_delete_many(
1953
+ this.__wbg_ptr,
1954
+ ptr0,
1955
+ len0,
1956
+ isLikeNone(organization_id) ? 0 : addHeapObject(organization_id),
1957
+ );
1958
+ return takeObject(ret);
1959
+ }
1960
+ /**
1961
+ * Soft-deletes the [Cipher] with the matching [CipherId] from the server.
1962
+ * @param {CipherId} cipher_id
1963
+ * @returns {Promise<void>}
1964
+ */
1965
+ soft_delete(cipher_id) {
1966
+ const ret = wasm.ciphersclient_soft_delete(this.__wbg_ptr, addHeapObject(cipher_id));
1967
+ return takeObject(ret);
1968
+ }
1969
+ /**
1970
+ * Soft-deletes all [Cipher] objects for the given [CipherId]s from the server.
1971
+ * @param {CipherId[]} cipher_ids
1972
+ * @param {OrganizationId | null} [organization_id]
1973
+ * @returns {Promise<void>}
1974
+ */
1975
+ soft_delete_many(cipher_ids, organization_id) {
1976
+ const ptr0 = passArrayJsValueToWasm0(cipher_ids, wasm.__wbindgen_malloc);
1977
+ const len0 = WASM_VECTOR_LEN;
1978
+ const ret = wasm.ciphersclient_soft_delete_many(
1979
+ this.__wbg_ptr,
1980
+ ptr0,
1981
+ len0,
1982
+ isLikeNone(organization_id) ? 0 : addHeapObject(organization_id),
1983
+ );
1984
+ return takeObject(ret);
1985
+ }
1986
+ /**
1987
+ * Deletes the [Cipher] with the matching [CipherId] from the server.
1988
+ * @param {CipherId} cipher_id
1989
+ * @returns {Promise<void>}
1990
+ */
1991
+ delete(cipher_id) {
1992
+ const ret = wasm.ciphersclient_delete(this.__wbg_ptr, addHeapObject(cipher_id));
1993
+ return takeObject(ret);
1994
+ }
1995
+ /**
1996
+ * Restores multiple soft-deleted ciphers on the server.
1997
+ * @param {CipherId[]} cipher_ids
1998
+ * @returns {Promise<DecryptCipherListResult>}
1999
+ */
2000
+ restore_many(cipher_ids) {
2001
+ const ptr0 = passArrayJsValueToWasm0(cipher_ids, wasm.__wbindgen_malloc);
2002
+ const len0 = WASM_VECTOR_LEN;
2003
+ const ret = wasm.ciphersclient_restore_many(this.__wbg_ptr, ptr0, len0);
2004
+ return takeObject(ret);
2005
+ }
2006
+ /**
2007
+ * Restores a soft-deleted cipher on the server.
2008
+ * @param {CipherId} cipher_id
2009
+ * @returns {Promise<CipherView>}
2010
+ */
2011
+ restore(cipher_id) {
2012
+ const ret = wasm.ciphersclient_restore(this.__wbg_ptr, addHeapObject(cipher_id));
2013
+ return takeObject(ret);
2014
+ }
1814
2015
  }
1815
2016
  if (Symbol.dispose) CiphersClient.prototype[Symbol.dispose] = CiphersClient.prototype.free;
1816
2017
 
@@ -4975,7 +5176,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
4975
5176
  }, arguments);
4976
5177
  };
4977
5178
 
4978
- exports.__wbg_cipher_53e60e520ae98ff8 = function (arg0) {
5179
+ exports.__wbg_cipher_101db265d942d33c = function (arg0) {
4979
5180
  const ret = getObject(arg0).cipher;
4980
5181
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4981
5182
  };
@@ -5068,7 +5269,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
5068
5269
  return addHeapObject(ret);
5069
5270
  };
5070
5271
 
5071
- exports.__wbg_folder_ca4cffdaa92d0cec = function (arg0) {
5272
+ exports.__wbg_folder_bdf0a07a8a9c457f = function (arg0) {
5072
5273
  const ret = getObject(arg0).folder;
5073
5274
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
5074
5275
  };
@@ -5106,7 +5307,12 @@ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
5106
5307
  return addHeapObject(ret);
5107
5308
  };
5108
5309
 
5109
- exports.__wbg_get_7ec0f310f972810d = function () {
5310
+ exports.__wbg_get_access_token_6f8ad6699eadc99f = function (arg0) {
5311
+ const ret = getObject(arg0).get_access_token();
5312
+ return addHeapObject(ret);
5313
+ };
5314
+
5315
+ exports.__wbg_get_d4a565559c4d73e2 = function () {
5110
5316
  return handleError(function (arg0, arg1, arg2) {
5111
5317
  let deferred0_0;
5112
5318
  let deferred0_1;
@@ -5121,12 +5327,7 @@ exports.__wbg_get_7ec0f310f972810d = function () {
5121
5327
  }, arguments);
5122
5328
  };
5123
5329
 
5124
- exports.__wbg_get_access_token_ff6f685a8a67a5db = function (arg0) {
5125
- const ret = getObject(arg0).get_access_token();
5126
- return addHeapObject(ret);
5127
- };
5128
-
5129
- exports.__wbg_get_b513275fbef0cba7 = function () {
5330
+ exports.__wbg_get_efa2100c2e4023dd = function () {
5130
5331
  return handleError(function (arg0, arg1, arg2) {
5131
5332
  let deferred0_0;
5132
5333
  let deferred0_1;
@@ -5332,14 +5533,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
5332
5533
  return ret;
5333
5534
  };
5334
5535
 
5335
- exports.__wbg_list_246f5348dfc7cebb = function () {
5536
+ exports.__wbg_list_527564afec06224a = function () {
5336
5537
  return handleError(function (arg0) {
5337
5538
  const ret = getObject(arg0).list();
5338
5539
  return addHeapObject(ret);
5339
5540
  }, arguments);
5340
5541
  };
5341
5542
 
5342
- exports.__wbg_list_4c5f76b00a43ad9f = function () {
5543
+ exports.__wbg_list_e3b83390f7619448 = function () {
5343
5544
  return handleError(function (arg0) {
5344
5545
  const ret = getObject(arg0).list();
5345
5546
  return addHeapObject(ret);
@@ -5583,7 +5784,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
5583
5784
  }, arguments);
5584
5785
  };
5585
5786
 
5586
- exports.__wbg_remove_382e10a950eecfb7 = function () {
5787
+ exports.__wbg_remove_1a983553b83b453a = function () {
5587
5788
  return handleError(function (arg0, arg1, arg2) {
5588
5789
  let deferred0_0;
5589
5790
  let deferred0_1;
@@ -5598,7 +5799,7 @@ exports.__wbg_remove_382e10a950eecfb7 = function () {
5598
5799
  }, arguments);
5599
5800
  };
5600
5801
 
5601
- exports.__wbg_remove_8d8de0eb9e310a9a = function () {
5802
+ exports.__wbg_remove_20a1fd34e5342aaa = function () {
5602
5803
  return handleError(function (arg0, arg1, arg2) {
5603
5804
  let deferred0_0;
5604
5805
  let deferred0_1;
@@ -5648,12 +5849,7 @@ exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5648
5849
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5649
5850
  };
5650
5851
 
5651
- exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
5652
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5653
- return addHeapObject(ret);
5654
- };
5655
-
5656
- exports.__wbg_set_bbcdf33dbd4a2835 = function () {
5852
+ exports.__wbg_set_603bc0b855dc993a = function () {
5657
5853
  return handleError(function (arg0, arg1, arg2, arg3) {
5658
5854
  let deferred0_0;
5659
5855
  let deferred0_1;
@@ -5668,6 +5864,11 @@ exports.__wbg_set_bbcdf33dbd4a2835 = function () {
5668
5864
  }, arguments);
5669
5865
  };
5670
5866
 
5867
+ exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
5868
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5869
+ return addHeapObject(ret);
5870
+ };
5871
+
5671
5872
  exports.__wbg_set_body_3c365989753d61f4 = function (arg0, arg1) {
5672
5873
  getObject(arg0).body = getObject(arg1);
5673
5874
  };
@@ -5687,7 +5888,7 @@ exports.__wbg_set_credentials_f621cd2d85c0c228 = function (arg0, arg1) {
5687
5888
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5688
5889
  };
5689
5890
 
5690
- exports.__wbg_set_ee494851be12e881 = function () {
5891
+ exports.__wbg_set_f991afb1d572e876 = function () {
5691
5892
  return handleError(function (arg0, arg1, arg2, arg3) {
5692
5893
  let deferred0_0;
5693
5894
  let deferred0_1;
@@ -354,7 +354,19 @@ export const attachmentsclient_decrypt_buffer: (
354
354
  f: number,
355
355
  ) => void;
356
356
  export const cipheradminclient_create: (a: number, b: number) => number;
357
+ export const cipheradminclient_delete: (a: number, b: number) => number;
358
+ export const cipheradminclient_delete_many: (a: number, b: number, c: number, d: number) => number;
357
359
  export const cipheradminclient_edit: (a: number, b: number, c: number) => number;
360
+ export const cipheradminclient_list_org_ciphers: (a: number, b: number, c: number) => number;
361
+ export const cipheradminclient_restore: (a: number, b: number) => number;
362
+ export const cipheradminclient_restore_many: (a: number, b: number, c: number, d: number) => number;
363
+ export const cipheradminclient_soft_delete: (a: number, b: number) => number;
364
+ export const cipheradminclient_soft_delete_many: (
365
+ a: number,
366
+ b: number,
367
+ c: number,
368
+ d: number,
369
+ ) => number;
358
370
  export const cipheradminclient_update_collection: (
359
371
  a: number,
360
372
  b: number,
@@ -370,6 +382,8 @@ export const ciphersclient_decrypt_fido2_credentials: (a: number, b: number, c:
370
382
  export const ciphersclient_decrypt_fido2_private_key: (a: number, b: number, c: number) => void;
371
383
  export const ciphersclient_decrypt_list: (a: number, b: number, c: number, d: number) => void;
372
384
  export const ciphersclient_decrypt_list_with_failures: (a: number, b: number, c: number) => number;
385
+ export const ciphersclient_delete: (a: number, b: number) => number;
386
+ export const ciphersclient_delete_many: (a: number, b: number, c: number, d: number) => number;
373
387
  export const ciphersclient_edit: (a: number, b: number) => number;
374
388
  export const ciphersclient_encrypt: (a: number, b: number, c: number) => void;
375
389
  export const ciphersclient_encrypt_cipher_for_rotation: (
@@ -378,12 +392,16 @@ export const ciphersclient_encrypt_cipher_for_rotation: (
378
392
  c: number,
379
393
  d: number,
380
394
  ) => void;
395
+ export const ciphersclient_get: (a: number, b: number, c: number) => number;
396
+ export const ciphersclient_list: (a: number) => number;
381
397
  export const ciphersclient_move_to_organization: (
382
398
  a: number,
383
399
  b: number,
384
400
  c: number,
385
401
  d: number,
386
402
  ) => void;
403
+ export const ciphersclient_restore: (a: number, b: number) => number;
404
+ export const ciphersclient_restore_many: (a: number, b: number, c: number) => number;
387
405
  export const ciphersclient_set_fido2_credentials: (
388
406
  a: number,
389
407
  b: number,
@@ -407,6 +425,8 @@ export const ciphersclient_share_ciphers_bulk: (
407
425
  e: number,
408
426
  f: number,
409
427
  ) => number;
428
+ export const ciphersclient_soft_delete: (a: number, b: number) => number;
429
+ export const ciphersclient_soft_delete_many: (a: number, b: number, c: number, d: number) => number;
410
430
  export const ciphersclient_update_collection: (
411
431
  a: number,
412
432
  b: number,
@@ -438,6 +458,7 @@ export const isCreateCipherError: (a: number) => number;
438
458
  export const isCreateFolderError: (a: number) => number;
439
459
  export const isDecryptError: (a: number) => number;
440
460
  export const isDecryptFileError: (a: number) => number;
461
+ export const isDeleteCipherAdminError: (a: number) => number;
441
462
  export const isDeleteCipherError: (a: number) => number;
442
463
  export const isEditCipherAdminError: (a: number) => number;
443
464
  export const isEditCipherError: (a: number) => number;
@@ -492,20 +513,20 @@ export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
492
513
  a: number,
493
514
  b: number,
494
515
  ) => void;
495
- export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
496
516
  export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
497
- export const wasm_bindgen__convert__closures_____invoke__h6fa4a14c2e357000: (
517
+ export const wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5: (
498
518
  a: number,
499
519
  b: number,
500
520
  c: number,
501
- d: number,
502
521
  ) => void;
503
522
  export const wasm_bindgen__closure__destroy__h7a79e3df9e7c7848: (a: number, b: number) => void;
504
- export const wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5: (
523
+ export const wasm_bindgen__convert__closures_____invoke__h6fa4a14c2e357000: (
505
524
  a: number,
506
525
  b: number,
507
526
  c: number,
527
+ d: number,
508
528
  ) => void;
529
+ export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
509
530
  export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
510
531
  a: number,
511
532
  b: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/commercial-sdk-internal",
3
- "version": "0.2.0-main.458",
3
+ "version": "0.2.0-main.460",
4
4
  "license": "BITWARDEN SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT",
5
5
  "repository": {
6
6
  "type": "git",