@bitwarden/commercial-sdk-internal 0.2.0-main.459 → 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.
- package/bitwarden_wasm_internal.d.ts +73 -0
- package/bitwarden_wasm_internal_bg.js +234 -33
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +28 -7
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +73 -0
- package/node/bitwarden_wasm_internal.js +230 -29
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +25 -4
- package/package.json +1 -1
|
@@ -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}
|
|
@@ -986,6 +999,14 @@ export function isGetFolderError(error) {
|
|
|
986
999
|
}
|
|
987
1000
|
}
|
|
988
1001
|
|
|
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
|
+
|
|
989
1010
|
function wasm_bindgen__convert__closures_____invoke__h6fa4a14c2e357000(arg0, arg1, arg2) {
|
|
990
1011
|
try {
|
|
991
1012
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -1009,14 +1030,6 @@ function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg
|
|
|
1009
1030
|
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1010
1031
|
}
|
|
1011
1032
|
|
|
1012
|
-
function wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5(arg0, arg1, arg2) {
|
|
1013
|
-
wasm.wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5(
|
|
1014
|
-
arg0,
|
|
1015
|
-
arg1,
|
|
1016
|
-
addHeapObject(arg2),
|
|
1017
|
-
);
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
1033
|
function wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, arg2, arg3) {
|
|
1021
1034
|
wasm.wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(
|
|
1022
1035
|
arg0,
|
|
@@ -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
|
|
5133
|
+
export function __wbg_cipher_101db265d942d33c(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
|
|
5226
|
+
export function __wbg_folder_bdf0a07a8a9c457f(arg0) {
|
|
5026
5227
|
const ret = getObject(arg0).folder;
|
|
5027
5228
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
5028
5229
|
}
|
|
@@ -5055,7 +5256,17 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
5055
5256
|
return ret;
|
|
5056
5257
|
}
|
|
5057
5258
|
|
|
5058
|
-
export function
|
|
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_access_token_6f8ad6699eadc99f(arg0) {
|
|
5265
|
+
const ret = getObject(arg0).get_access_token();
|
|
5266
|
+
return addHeapObject(ret);
|
|
5267
|
+
}
|
|
5268
|
+
|
|
5269
|
+
export function __wbg_get_d4a565559c4d73e2() {
|
|
5059
5270
|
return handleError(function (arg0, arg1, arg2) {
|
|
5060
5271
|
let deferred0_0;
|
|
5061
5272
|
let deferred0_1;
|
|
@@ -5070,12 +5281,7 @@ export function __wbg_get_3690138fd117a6f6() {
|
|
|
5070
5281
|
}, arguments);
|
|
5071
5282
|
}
|
|
5072
5283
|
|
|
5073
|
-
export function
|
|
5074
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5075
|
-
return addHeapObject(ret);
|
|
5076
|
-
}
|
|
5077
|
-
|
|
5078
|
-
export function __wbg_get_9ab99f38b7039f74() {
|
|
5284
|
+
export function __wbg_get_efa2100c2e4023dd() {
|
|
5079
5285
|
return handleError(function (arg0, arg1, arg2) {
|
|
5080
5286
|
let deferred0_0;
|
|
5081
5287
|
let deferred0_1;
|
|
@@ -5090,11 +5296,6 @@ export function __wbg_get_9ab99f38b7039f74() {
|
|
|
5090
5296
|
}, arguments);
|
|
5091
5297
|
}
|
|
5092
5298
|
|
|
5093
|
-
export function __wbg_get_access_token_bdd060f06a002a5d(arg0) {
|
|
5094
|
-
const ret = getObject(arg0).get_access_token();
|
|
5095
|
-
return addHeapObject(ret);
|
|
5096
|
-
}
|
|
5097
|
-
|
|
5098
5299
|
export function __wbg_get_efcb449f58ec27c2() {
|
|
5099
5300
|
return handleError(function (arg0, arg1) {
|
|
5100
5301
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
@@ -5286,14 +5487,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
5286
5487
|
return ret;
|
|
5287
5488
|
}
|
|
5288
5489
|
|
|
5289
|
-
export function
|
|
5490
|
+
export function __wbg_list_527564afec06224a() {
|
|
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
|
|
5497
|
+
export function __wbg_list_e3b83390f7619448() {
|
|
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
|
|
5741
|
+
export function __wbg_remove_1a983553b83b453a() {
|
|
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
|
|
5756
|
+
export function __wbg_remove_20a1fd34e5342aaa() {
|
|
5556
5757
|
return handleError(function (arg0, arg1, arg2) {
|
|
5557
5758
|
let deferred0_0;
|
|
5558
5759
|
let deferred0_1;
|
|
@@ -5602,12 +5803,7 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
|
5602
5803
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5603
5804
|
}
|
|
5604
5805
|
|
|
5605
|
-
export function
|
|
5606
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5607
|
-
return addHeapObject(ret);
|
|
5608
|
-
}
|
|
5609
|
-
|
|
5610
|
-
export function __wbg_set_917b77deabba789e() {
|
|
5806
|
+
export function __wbg_set_603bc0b855dc993a() {
|
|
5611
5807
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5612
5808
|
let deferred0_0;
|
|
5613
5809
|
let deferred0_1;
|
|
@@ -5622,6 +5818,11 @@ export function __wbg_set_917b77deabba789e() {
|
|
|
5622
5818
|
}, arguments);
|
|
5623
5819
|
}
|
|
5624
5820
|
|
|
5821
|
+
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5822
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5823
|
+
return addHeapObject(ret);
|
|
5824
|
+
}
|
|
5825
|
+
|
|
5625
5826
|
export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
|
|
5626
5827
|
getObject(arg0).body = getObject(arg1);
|
|
5627
5828
|
}
|
|
@@ -5641,7 +5842,7 @@ export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
|
|
|
5641
5842
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
5642
5843
|
}
|
|
5643
5844
|
|
|
5644
|
-
export function
|
|
5845
|
+
export function __wbg_set_f991afb1d572e876() {
|
|
5645
5846
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5646
5847
|
let deferred0_0;
|
|
5647
5848
|
let deferred0_1;
|
|
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;
|
|
@@ -488,24 +509,24 @@ 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
|
|
512
|
+
export const wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5: (
|
|
492
513
|
a: number,
|
|
493
514
|
b: number,
|
|
494
515
|
c: number,
|
|
495
|
-
d: number,
|
|
496
516
|
) => void;
|
|
497
517
|
export const wasm_bindgen__closure__destroy__h7a79e3df9e7c7848: (a: number, b: number) => void;
|
|
498
|
-
export const
|
|
518
|
+
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
519
|
+
export const wasm_bindgen__convert__closures_____invoke__h6fa4a14c2e357000: (
|
|
499
520
|
a: number,
|
|
500
521
|
b: number,
|
|
522
|
+
c: number,
|
|
523
|
+
d: number,
|
|
501
524
|
) => void;
|
|
502
|
-
export const
|
|
503
|
-
export const wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5: (
|
|
525
|
+
export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
504
526
|
a: number,
|
|
505
527
|
b: number,
|
|
506
|
-
c: number,
|
|
507
528
|
) => void;
|
|
508
|
-
export const
|
|
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,
|