@bitwarden/commercial-sdk-internal 0.2.0-main.459 → 0.2.0-main.461

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}
@@ -976,6 +989,10 @@ exports.isGetFolderError = function (error) {
976
989
  }
977
990
  };
978
991
 
992
+ function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
993
+ wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
994
+ }
995
+
979
996
  function wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5(arg0, arg1, arg2) {
980
997
  wasm.wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5(
981
998
  arg0,
@@ -984,10 +1001,6 @@ function wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5(arg0, arg
984
1001
  );
985
1002
  }
986
1003
 
987
- function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
988
- wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
989
- }
990
-
991
1004
  function wasm_bindgen__convert__closures_____invoke__h6fa4a14c2e357000(arg0, arg1, arg2) {
992
1005
  try {
993
1006
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -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_895e94441738f487 = function (arg0) {
5179
+ exports.__wbg_cipher_a6c7e43755ac6538 = 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_992da4f7ce16023e = function (arg0) {
5272
+ exports.__wbg_folder_153ef38beb441989 = function (arg0) {
5072
5273
  const ret = getObject(arg0).folder;
5073
5274
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
5074
5275
  };
@@ -5101,7 +5302,12 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
5101
5302
  return ret;
5102
5303
  };
5103
5304
 
5104
- exports.__wbg_get_3690138fd117a6f6 = function () {
5305
+ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
5306
+ const ret = getObject(arg0)[arg1 >>> 0];
5307
+ return addHeapObject(ret);
5308
+ };
5309
+
5310
+ exports.__wbg_get_824bf528187fd6bc = function () {
5105
5311
  return handleError(function (arg0, arg1, arg2) {
5106
5312
  let deferred0_0;
5107
5313
  let deferred0_1;
@@ -5116,12 +5322,7 @@ exports.__wbg_get_3690138fd117a6f6 = function () {
5116
5322
  }, arguments);
5117
5323
  };
5118
5324
 
5119
- exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
5120
- const ret = getObject(arg0)[arg1 >>> 0];
5121
- return addHeapObject(ret);
5122
- };
5123
-
5124
- exports.__wbg_get_9ab99f38b7039f74 = function () {
5325
+ exports.__wbg_get_8df4b126628a40c1 = function () {
5125
5326
  return handleError(function (arg0, arg1, arg2) {
5126
5327
  let deferred0_0;
5127
5328
  let deferred0_1;
@@ -5136,7 +5337,7 @@ exports.__wbg_get_9ab99f38b7039f74 = function () {
5136
5337
  }, arguments);
5137
5338
  };
5138
5339
 
5139
- exports.__wbg_get_access_token_bdd060f06a002a5d = function (arg0) {
5340
+ exports.__wbg_get_access_token_a35bcccc27403992 = function (arg0) {
5140
5341
  const ret = getObject(arg0).get_access_token();
5141
5342
  return addHeapObject(ret);
5142
5343
  };
@@ -5332,14 +5533,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
5332
5533
  return ret;
5333
5534
  };
5334
5535
 
5335
- exports.__wbg_list_13624e179e188fbc = function () {
5536
+ exports.__wbg_list_638ff40a69038814 = 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_1790fa27ae4ea61b = function () {
5543
+ exports.__wbg_list_e7a05c6ddcb9284d = 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_27a3e5cacecb0efa = function () {
5787
+ exports.__wbg_remove_03e5ab1e95ec1d84 = 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_27a3e5cacecb0efa = function () {
5598
5799
  }, arguments);
5599
5800
  };
5600
5801
 
5601
- exports.__wbg_remove_6e2fed8e1948911d = function () {
5802
+ exports.__wbg_remove_8b81dff264f5ab5d = function () {
5602
5803
  return handleError(function (arg0, arg1, arg2) {
5603
5804
  let deferred0_0;
5604
5805
  let deferred0_1;
@@ -5653,7 +5854,22 @@ exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
5653
5854
  return addHeapObject(ret);
5654
5855
  };
5655
5856
 
5656
- exports.__wbg_set_917b77deabba789e = function () {
5857
+ exports.__wbg_set_947358caaaa89f24 = function () {
5858
+ return handleError(function (arg0, arg1, arg2, arg3) {
5859
+ let deferred0_0;
5860
+ let deferred0_1;
5861
+ try {
5862
+ deferred0_0 = arg1;
5863
+ deferred0_1 = arg2;
5864
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5865
+ return addHeapObject(ret);
5866
+ } finally {
5867
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5868
+ }
5869
+ }, arguments);
5870
+ };
5871
+
5872
+ exports.__wbg_set_b024fb9858c629b9 = function () {
5657
5873
  return handleError(function (arg0, arg1, arg2, arg3) {
5658
5874
  let deferred0_0;
5659
5875
  let deferred0_1;
@@ -5687,21 +5903,6 @@ exports.__wbg_set_credentials_f621cd2d85c0c228 = function (arg0, arg1) {
5687
5903
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5688
5904
  };
5689
5905
 
5690
- exports.__wbg_set_d4f7ece8d3b79958 = function () {
5691
- return handleError(function (arg0, arg1, arg2, arg3) {
5692
- let deferred0_0;
5693
- let deferred0_1;
5694
- try {
5695
- deferred0_0 = arg1;
5696
- deferred0_1 = arg2;
5697
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5698
- return addHeapObject(ret);
5699
- } finally {
5700
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5701
- }
5702
- }, arguments);
5703
- };
5704
-
5705
5906
  exports.__wbg_set_headers_6926da238cd32ee4 = function (arg0, arg1) {
5706
5907
  getObject(arg0).headers = getObject(arg1);
5707
5908
  };
@@ -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;
@@ -488,18 +509,18 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
488
509
  export const vaultclient_attachments: (a: number) => number;
489
510
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
490
511
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
491
- export const wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5: (
512
+ export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
492
513
  a: number,
493
514
  b: number,
494
- c: number,
495
515
  ) => void;
496
516
  export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
497
- export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
517
+ export const wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5: (
498
518
  a: number,
499
519
  b: number,
520
+ c: number,
500
521
  ) => void;
501
- export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
502
522
  export const wasm_bindgen__closure__destroy__h7a79e3df9e7c7848: (a: number, b: number) => void;
523
+ export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
503
524
  export const wasm_bindgen__convert__closures_____invoke__h6fa4a14c2e357000: (
504
525
  a: number,
505
526
  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.459",
3
+ "version": "0.2.0-main.461",
4
4
  "license": "BITWARDEN SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT",
5
5
  "repository": {
6
6
  "type": "git",