@bitwarden/sdk-internal 0.2.0-main.82 → 0.2.0-main.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/bitwarden_wasm_internal.d.ts +28 -0
- package/bitwarden_wasm_internal_bg.js +55 -3
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +4 -0
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +28 -0
- package/node/bitwarden_wasm_internal.js +55 -3
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +4 -0
- package/package.json +1 -1
package/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
c3962e5991de6326ca89ff3765e7a5a483457e21
|
@@ -268,6 +268,34 @@ export interface FolderView {
|
|
268
268
|
revisionDate: DateTime<Utc>;
|
269
269
|
}
|
270
270
|
|
271
|
+
export interface DecryptFileError extends Error {
|
272
|
+
name: "DecryptFileError";
|
273
|
+
variant: "Decrypt" | "Io";
|
274
|
+
}
|
275
|
+
|
276
|
+
export function isDecryptFileError(error: any): error is DecryptFileError;
|
277
|
+
|
278
|
+
export interface EncryptFileError extends Error {
|
279
|
+
name: "EncryptFileError";
|
280
|
+
variant: "Encrypt" | "Io";
|
281
|
+
}
|
282
|
+
|
283
|
+
export function isEncryptFileError(error: any): error is EncryptFileError;
|
284
|
+
|
285
|
+
export interface DecryptError extends Error {
|
286
|
+
name: "DecryptError";
|
287
|
+
variant: "Crypto" | "VaultLocked";
|
288
|
+
}
|
289
|
+
|
290
|
+
export function isDecryptError(error: any): error is DecryptError;
|
291
|
+
|
292
|
+
export interface EncryptError extends Error {
|
293
|
+
name: "EncryptError";
|
294
|
+
variant: "Crypto" | "VaultLocked";
|
295
|
+
}
|
296
|
+
|
297
|
+
export function isEncryptError(error: any): error is EncryptError;
|
298
|
+
|
271
299
|
export interface TotpResponse {
|
272
300
|
/**
|
273
301
|
* Generated TOTP code
|
@@ -311,6 +311,58 @@ export function isKeyGenerationError(error) {
|
|
311
311
|
}
|
312
312
|
}
|
313
313
|
|
314
|
+
/**
|
315
|
+
* @param {any} error
|
316
|
+
* @returns {boolean}
|
317
|
+
*/
|
318
|
+
export function isDecryptFileError(error) {
|
319
|
+
try {
|
320
|
+
const ret = wasm.isDecryptFileError(addBorrowedObject(error));
|
321
|
+
return ret !== 0;
|
322
|
+
} finally {
|
323
|
+
heap[stack_pointer++] = undefined;
|
324
|
+
}
|
325
|
+
}
|
326
|
+
|
327
|
+
/**
|
328
|
+
* @param {any} error
|
329
|
+
* @returns {boolean}
|
330
|
+
*/
|
331
|
+
export function isEncryptFileError(error) {
|
332
|
+
try {
|
333
|
+
const ret = wasm.isEncryptFileError(addBorrowedObject(error));
|
334
|
+
return ret !== 0;
|
335
|
+
} finally {
|
336
|
+
heap[stack_pointer++] = undefined;
|
337
|
+
}
|
338
|
+
}
|
339
|
+
|
340
|
+
/**
|
341
|
+
* @param {any} error
|
342
|
+
* @returns {boolean}
|
343
|
+
*/
|
344
|
+
export function isDecryptError(error) {
|
345
|
+
try {
|
346
|
+
const ret = wasm.isDecryptError(addBorrowedObject(error));
|
347
|
+
return ret !== 0;
|
348
|
+
} finally {
|
349
|
+
heap[stack_pointer++] = undefined;
|
350
|
+
}
|
351
|
+
}
|
352
|
+
|
353
|
+
/**
|
354
|
+
* @param {any} error
|
355
|
+
* @returns {boolean}
|
356
|
+
*/
|
357
|
+
export function isEncryptError(error) {
|
358
|
+
try {
|
359
|
+
const ret = wasm.isEncryptError(addBorrowedObject(error));
|
360
|
+
return ret !== 0;
|
361
|
+
} finally {
|
362
|
+
heap[stack_pointer++] = undefined;
|
363
|
+
}
|
364
|
+
}
|
365
|
+
|
314
366
|
/**
|
315
367
|
* @param {any} error
|
316
368
|
* @returns {boolean}
|
@@ -413,7 +465,7 @@ function __wbg_adapter_40(arg0, arg1, arg2) {
|
|
413
465
|
);
|
414
466
|
}
|
415
467
|
|
416
|
-
function
|
468
|
+
function __wbg_adapter_143(arg0, arg1, arg2, arg3) {
|
417
469
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h69e15f428907d894(
|
418
470
|
arg0,
|
419
471
|
arg1,
|
@@ -1036,7 +1088,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
1036
1088
|
const a = state0.a;
|
1037
1089
|
state0.a = 0;
|
1038
1090
|
try {
|
1039
|
-
return
|
1091
|
+
return __wbg_adapter_143(a, state0.b, arg0, arg1);
|
1040
1092
|
} finally {
|
1041
1093
|
state0.a = a;
|
1042
1094
|
}
|
@@ -1353,7 +1405,7 @@ export function __wbindgen_cb_drop(arg0) {
|
|
1353
1405
|
return ret;
|
1354
1406
|
}
|
1355
1407
|
|
1356
|
-
export function
|
1408
|
+
export function __wbindgen_closure_wrapper2091(arg0, arg1, arg2) {
|
1357
1409
|
const ret = makeMutClosure(arg0, arg1, 563, __wbg_adapter_40);
|
1358
1410
|
return addHeapObject(ret);
|
1359
1411
|
}
|
Binary file
|
@@ -6,6 +6,10 @@ export const isEncryptionSettingsError: (a: number) => number;
|
|
6
6
|
export const isSshKeyExportError: (a: number) => number;
|
7
7
|
export const isSshKeyImportError: (a: number) => number;
|
8
8
|
export const isKeyGenerationError: (a: number) => number;
|
9
|
+
export const isDecryptFileError: (a: number) => number;
|
10
|
+
export const isEncryptFileError: (a: number) => number;
|
11
|
+
export const isDecryptError: (a: number) => number;
|
12
|
+
export const isEncryptError: (a: number) => number;
|
9
13
|
export const isTotpError: (a: number) => number;
|
10
14
|
export const __wbg_bitwardenclient_free: (a: number, b: number) => void;
|
11
15
|
export const bitwardenclient_new: (a: number, b: number) => number;
|