@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();
@@ -856,6 +856,19 @@ export function isCreateCipherAdminError(error) {
856
856
  }
857
857
  }
858
858
 
859
+ /**
860
+ * @param {any} error
861
+ * @returns {boolean}
862
+ */
863
+ export function isDeleteCipherAdminError(error) {
864
+ try {
865
+ const ret = wasm.isDeleteCipherAdminError(addBorrowedObject(error));
866
+ return ret !== 0;
867
+ } finally {
868
+ heap[stack_pointer++] = undefined;
869
+ }
870
+ }
871
+
859
872
  /**
860
873
  * @param {any} error
861
874
  * @returns {boolean}
@@ -1345,6 +1358,19 @@ export class CipherAdminClient {
1345
1358
  const ptr = this.__destroy_into_raw();
1346
1359
  wasm.__wbg_cipheradminclient_free(ptr, 0);
1347
1360
  }
1361
+ /**
1362
+ * @param {OrganizationId} org_id
1363
+ * @param {boolean} include_member_items
1364
+ * @returns {Promise<DecryptCipherListResult>}
1365
+ */
1366
+ list_org_ciphers(org_id, include_member_items) {
1367
+ const ret = wasm.cipheradminclient_list_org_ciphers(
1368
+ this.__wbg_ptr,
1369
+ addHeapObject(org_id),
1370
+ include_member_items,
1371
+ );
1372
+ return takeObject(ret);
1373
+ }
1348
1374
  /**
1349
1375
  * Adds the cipher matched by [CipherId] to any number of collections on the server.
1350
1376
  * @param {CipherId} cipher_id
@@ -1386,6 +1412,88 @@ export class CipherAdminClient {
1386
1412
  const ret = wasm.cipheradminclient_create(this.__wbg_ptr, addHeapObject(request));
1387
1413
  return takeObject(ret);
1388
1414
  }
1415
+ /**
1416
+ * Deletes all Cipher objects with a matching CipherId from the server, using the admin
1417
+ * endpoint. Affects server data only, does not modify local state.
1418
+ * @param {CipherId[]} cipher_ids
1419
+ * @param {OrganizationId} organization_id
1420
+ * @returns {Promise<void>}
1421
+ */
1422
+ delete_many(cipher_ids, organization_id) {
1423
+ const ptr0 = passArrayJsValueToWasm0(cipher_ids, wasm.__wbindgen_malloc);
1424
+ const len0 = WASM_VECTOR_LEN;
1425
+ const ret = wasm.cipheradminclient_delete_many(
1426
+ this.__wbg_ptr,
1427
+ ptr0,
1428
+ len0,
1429
+ addHeapObject(organization_id),
1430
+ );
1431
+ return takeObject(ret);
1432
+ }
1433
+ /**
1434
+ * Soft-deletes the Cipher with the matching CipherId from the server, using the admin
1435
+ * endpoint. Affects server data only, does not modify local state.
1436
+ * @param {CipherId} cipher_id
1437
+ * @returns {Promise<void>}
1438
+ */
1439
+ soft_delete(cipher_id) {
1440
+ const ret = wasm.cipheradminclient_soft_delete(this.__wbg_ptr, addHeapObject(cipher_id));
1441
+ return takeObject(ret);
1442
+ }
1443
+ /**
1444
+ * Soft-deletes all Cipher objects for the given CipherIds from the server, using the admin
1445
+ * endpoint. Affects server data only, does not modify local state.
1446
+ * @param {CipherId[]} cipher_ids
1447
+ * @param {OrganizationId} organization_id
1448
+ * @returns {Promise<void>}
1449
+ */
1450
+ soft_delete_many(cipher_ids, organization_id) {
1451
+ const ptr0 = passArrayJsValueToWasm0(cipher_ids, wasm.__wbindgen_malloc);
1452
+ const len0 = WASM_VECTOR_LEN;
1453
+ const ret = wasm.cipheradminclient_soft_delete_many(
1454
+ this.__wbg_ptr,
1455
+ ptr0,
1456
+ len0,
1457
+ addHeapObject(organization_id),
1458
+ );
1459
+ return takeObject(ret);
1460
+ }
1461
+ /**
1462
+ * Deletes the Cipher with the matching CipherId from the server, using the admin endpoint.
1463
+ * Affects server data only, does not modify local state.
1464
+ * @param {CipherId} cipher_id
1465
+ * @returns {Promise<void>}
1466
+ */
1467
+ delete(cipher_id) {
1468
+ const ret = wasm.cipheradminclient_delete(this.__wbg_ptr, addHeapObject(cipher_id));
1469
+ return takeObject(ret);
1470
+ }
1471
+ /**
1472
+ * Restores multiple soft-deleted ciphers on the server.
1473
+ * @param {CipherId[]} cipher_ids
1474
+ * @param {OrganizationId} org_id
1475
+ * @returns {Promise<DecryptCipherListResult>}
1476
+ */
1477
+ restore_many(cipher_ids, org_id) {
1478
+ const ptr0 = passArrayJsValueToWasm0(cipher_ids, wasm.__wbindgen_malloc);
1479
+ const len0 = WASM_VECTOR_LEN;
1480
+ const ret = wasm.cipheradminclient_restore_many(
1481
+ this.__wbg_ptr,
1482
+ ptr0,
1483
+ len0,
1484
+ addHeapObject(org_id),
1485
+ );
1486
+ return takeObject(ret);
1487
+ }
1488
+ /**
1489
+ * Restores a soft-deleted cipher on the server, using the admin endpoint.
1490
+ * @param {CipherId} cipher_id
1491
+ * @returns {Promise<CipherView>}
1492
+ */
1493
+ restore(cipher_id) {
1494
+ const ret = wasm.cipheradminclient_restore(this.__wbg_ptr, addHeapObject(cipher_id));
1495
+ return takeObject(ret);
1496
+ }
1389
1497
  }
1390
1498
  if (Symbol.dispose) CipherAdminClient.prototype[Symbol.dispose] = CipherAdminClient.prototype.free;
1391
1499
 
@@ -1776,6 +1884,27 @@ export class CiphersClient {
1776
1884
  wasm.__wbindgen_add_to_stack_pointer(16);
1777
1885
  }
1778
1886
  }
1887
+ /**
1888
+ * Get [Cipher] by ID from state and decrypt it to a [CipherView].
1889
+ * @param {string} cipher_id
1890
+ * @returns {Promise<CipherView>}
1891
+ */
1892
+ get(cipher_id) {
1893
+ const ptr0 = passStringToWasm0(cipher_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1894
+ const len0 = WASM_VECTOR_LEN;
1895
+ const ret = wasm.ciphersclient_get(this.__wbg_ptr, ptr0, len0);
1896
+ return takeObject(ret);
1897
+ }
1898
+ /**
1899
+ * Get all ciphers from state and decrypt them, returning both successes and failures.
1900
+ * This method will not fail when some ciphers fail to decrypt, allowing for graceful
1901
+ * handling of corrupted or problematic cipher data.
1902
+ * @returns {Promise<DecryptCipherListResult>}
1903
+ */
1904
+ list() {
1905
+ const ret = wasm.ciphersclient_list(this.__wbg_ptr);
1906
+ return takeObject(ret);
1907
+ }
1779
1908
  /**
1780
1909
  * Adds the cipher matched by [CipherId] to any number of collections on the server.
1781
1910
  * @param {CipherId} cipher_id
@@ -1813,6 +1942,78 @@ export class CiphersClient {
1813
1942
  const ret = wasm.ciphersclient_create(this.__wbg_ptr, addHeapObject(request));
1814
1943
  return takeObject(ret);
1815
1944
  }
1945
+ /**
1946
+ * Deletes all [Cipher] objects with a matching [CipherId] from the server.
1947
+ * @param {CipherId[]} cipher_ids
1948
+ * @param {OrganizationId | null} [organization_id]
1949
+ * @returns {Promise<void>}
1950
+ */
1951
+ delete_many(cipher_ids, organization_id) {
1952
+ const ptr0 = passArrayJsValueToWasm0(cipher_ids, wasm.__wbindgen_malloc);
1953
+ const len0 = WASM_VECTOR_LEN;
1954
+ const ret = wasm.ciphersclient_delete_many(
1955
+ this.__wbg_ptr,
1956
+ ptr0,
1957
+ len0,
1958
+ isLikeNone(organization_id) ? 0 : addHeapObject(organization_id),
1959
+ );
1960
+ return takeObject(ret);
1961
+ }
1962
+ /**
1963
+ * Soft-deletes the [Cipher] with the matching [CipherId] from the server.
1964
+ * @param {CipherId} cipher_id
1965
+ * @returns {Promise<void>}
1966
+ */
1967
+ soft_delete(cipher_id) {
1968
+ const ret = wasm.ciphersclient_soft_delete(this.__wbg_ptr, addHeapObject(cipher_id));
1969
+ return takeObject(ret);
1970
+ }
1971
+ /**
1972
+ * Soft-deletes all [Cipher] objects for the given [CipherId]s from the server.
1973
+ * @param {CipherId[]} cipher_ids
1974
+ * @param {OrganizationId | null} [organization_id]
1975
+ * @returns {Promise<void>}
1976
+ */
1977
+ soft_delete_many(cipher_ids, organization_id) {
1978
+ const ptr0 = passArrayJsValueToWasm0(cipher_ids, wasm.__wbindgen_malloc);
1979
+ const len0 = WASM_VECTOR_LEN;
1980
+ const ret = wasm.ciphersclient_soft_delete_many(
1981
+ this.__wbg_ptr,
1982
+ ptr0,
1983
+ len0,
1984
+ isLikeNone(organization_id) ? 0 : addHeapObject(organization_id),
1985
+ );
1986
+ return takeObject(ret);
1987
+ }
1988
+ /**
1989
+ * Deletes the [Cipher] with the matching [CipherId] from the server.
1990
+ * @param {CipherId} cipher_id
1991
+ * @returns {Promise<void>}
1992
+ */
1993
+ delete(cipher_id) {
1994
+ const ret = wasm.ciphersclient_delete(this.__wbg_ptr, addHeapObject(cipher_id));
1995
+ return takeObject(ret);
1996
+ }
1997
+ /**
1998
+ * Restores multiple soft-deleted ciphers on the server.
1999
+ * @param {CipherId[]} cipher_ids
2000
+ * @returns {Promise<DecryptCipherListResult>}
2001
+ */
2002
+ restore_many(cipher_ids) {
2003
+ const ptr0 = passArrayJsValueToWasm0(cipher_ids, wasm.__wbindgen_malloc);
2004
+ const len0 = WASM_VECTOR_LEN;
2005
+ const ret = wasm.ciphersclient_restore_many(this.__wbg_ptr, ptr0, len0);
2006
+ return takeObject(ret);
2007
+ }
2008
+ /**
2009
+ * Restores a soft-deleted cipher on the server.
2010
+ * @param {CipherId} cipher_id
2011
+ * @returns {Promise<CipherView>}
2012
+ */
2013
+ restore(cipher_id) {
2014
+ const ret = wasm.ciphersclient_restore(this.__wbg_ptr, addHeapObject(cipher_id));
2015
+ return takeObject(ret);
2016
+ }
1816
2017
  }
1817
2018
  if (Symbol.dispose) CiphersClient.prototype[Symbol.dispose] = CiphersClient.prototype.free;
1818
2019
 
@@ -4929,7 +5130,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
4929
5130
  }, arguments);
4930
5131
  }
4931
5132
 
4932
- export function __wbg_cipher_895e94441738f487(arg0) {
5133
+ export function __wbg_cipher_a6c7e43755ac6538(arg0) {
4933
5134
  const ret = getObject(arg0).cipher;
4934
5135
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4935
5136
  }
@@ -5022,7 +5223,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
5022
5223
  return addHeapObject(ret);
5023
5224
  }
5024
5225
 
5025
- export function __wbg_folder_992da4f7ce16023e(arg0) {
5226
+ export function __wbg_folder_153ef38beb441989(arg0) {
5026
5227
  const ret = getObject(arg0).folder;
5027
5228
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
5028
5229
  }
@@ -5055,7 +5256,12 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
5055
5256
  return ret;
5056
5257
  }
5057
5258
 
5058
- export function __wbg_get_3690138fd117a6f6() {
5259
+ export function __wbg_get_7bed016f185add81(arg0, arg1) {
5260
+ const ret = getObject(arg0)[arg1 >>> 0];
5261
+ return addHeapObject(ret);
5262
+ }
5263
+
5264
+ export function __wbg_get_824bf528187fd6bc() {
5059
5265
  return handleError(function (arg0, arg1, arg2) {
5060
5266
  let deferred0_0;
5061
5267
  let deferred0_1;
@@ -5070,12 +5276,7 @@ export function __wbg_get_3690138fd117a6f6() {
5070
5276
  }, arguments);
5071
5277
  }
5072
5278
 
5073
- export function __wbg_get_7bed016f185add81(arg0, arg1) {
5074
- const ret = getObject(arg0)[arg1 >>> 0];
5075
- return addHeapObject(ret);
5076
- }
5077
-
5078
- export function __wbg_get_9ab99f38b7039f74() {
5279
+ export function __wbg_get_8df4b126628a40c1() {
5079
5280
  return handleError(function (arg0, arg1, arg2) {
5080
5281
  let deferred0_0;
5081
5282
  let deferred0_1;
@@ -5090,7 +5291,7 @@ export function __wbg_get_9ab99f38b7039f74() {
5090
5291
  }, arguments);
5091
5292
  }
5092
5293
 
5093
- export function __wbg_get_access_token_bdd060f06a002a5d(arg0) {
5294
+ export function __wbg_get_access_token_a35bcccc27403992(arg0) {
5094
5295
  const ret = getObject(arg0).get_access_token();
5095
5296
  return addHeapObject(ret);
5096
5297
  }
@@ -5286,14 +5487,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
5286
5487
  return ret;
5287
5488
  }
5288
5489
 
5289
- export function __wbg_list_13624e179e188fbc() {
5490
+ export function __wbg_list_638ff40a69038814() {
5290
5491
  return handleError(function (arg0) {
5291
5492
  const ret = getObject(arg0).list();
5292
5493
  return addHeapObject(ret);
5293
5494
  }, arguments);
5294
5495
  }
5295
5496
 
5296
- export function __wbg_list_1790fa27ae4ea61b() {
5497
+ export function __wbg_list_e7a05c6ddcb9284d() {
5297
5498
  return handleError(function (arg0) {
5298
5499
  const ret = getObject(arg0).list();
5299
5500
  return addHeapObject(ret);
@@ -5537,7 +5738,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
5537
5738
  }, arguments);
5538
5739
  }
5539
5740
 
5540
- export function __wbg_remove_27a3e5cacecb0efa() {
5741
+ export function __wbg_remove_03e5ab1e95ec1d84() {
5541
5742
  return handleError(function (arg0, arg1, arg2) {
5542
5743
  let deferred0_0;
5543
5744
  let deferred0_1;
@@ -5552,7 +5753,7 @@ export function __wbg_remove_27a3e5cacecb0efa() {
5552
5753
  }, arguments);
5553
5754
  }
5554
5755
 
5555
- export function __wbg_remove_6e2fed8e1948911d() {
5756
+ export function __wbg_remove_8b81dff264f5ab5d() {
5556
5757
  return handleError(function (arg0, arg1, arg2) {
5557
5758
  let deferred0_0;
5558
5759
  let deferred0_1;
@@ -5607,7 +5808,22 @@ export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5607
5808
  return addHeapObject(ret);
5608
5809
  }
5609
5810
 
5610
- export function __wbg_set_917b77deabba789e() {
5811
+ export function __wbg_set_947358caaaa89f24() {
5812
+ return handleError(function (arg0, arg1, arg2, arg3) {
5813
+ let deferred0_0;
5814
+ let deferred0_1;
5815
+ try {
5816
+ deferred0_0 = arg1;
5817
+ deferred0_1 = arg2;
5818
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5819
+ return addHeapObject(ret);
5820
+ } finally {
5821
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5822
+ }
5823
+ }, arguments);
5824
+ }
5825
+
5826
+ export function __wbg_set_b024fb9858c629b9() {
5611
5827
  return handleError(function (arg0, arg1, arg2, arg3) {
5612
5828
  let deferred0_0;
5613
5829
  let deferred0_1;
@@ -5641,21 +5857,6 @@ export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
5641
5857
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5642
5858
  }
5643
5859
 
5644
- export function __wbg_set_d4f7ece8d3b79958() {
5645
- return handleError(function (arg0, arg1, arg2, arg3) {
5646
- let deferred0_0;
5647
- let deferred0_1;
5648
- try {
5649
- deferred0_0 = arg1;
5650
- deferred0_1 = arg2;
5651
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5652
- return addHeapObject(ret);
5653
- } finally {
5654
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5655
- }
5656
- }, arguments);
5657
- }
5658
-
5659
5860
  export function __wbg_set_headers_6926da238cd32ee4(arg0, arg1) {
5660
5861
  getObject(arg0).headers = getObject(arg1);
5661
5862
  }
Binary file
@@ -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;
@@ -499,13 +520,13 @@ export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
499
520
  a: number,
500
521
  b: number,
501
522
  ) => void;
502
- export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
523
+ export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
503
524
  export const wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5: (
504
525
  a: number,
505
526
  b: number,
506
527
  c: number,
507
528
  ) => void;
508
- export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => 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,