@bitwarden/sdk-internal 0.2.0-main.143 → 0.2.0-main.144

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.
@@ -672,20 +672,6 @@ export interface FolderView {
672
672
  revisionDate: DateTime<Utc>;
673
673
  }
674
674
 
675
- export interface DecryptFileError extends Error {
676
- name: "DecryptFileError";
677
- variant: "Decrypt" | "Io";
678
- }
679
-
680
- export function isDecryptFileError(error: any): error is DecryptFileError;
681
-
682
- export interface EncryptFileError extends Error {
683
- name: "EncryptFileError";
684
- variant: "Encrypt" | "Io";
685
- }
686
-
687
- export function isEncryptFileError(error: any): error is EncryptFileError;
688
-
689
675
  export interface DecryptError extends Error {
690
676
  name: "DecryptError";
691
677
  variant: "Crypto" | "VaultLocked";
@@ -840,6 +826,20 @@ export interface Card {
840
826
  number: EncString | undefined;
841
827
  }
842
828
 
829
+ export interface DecryptFileError extends Error {
830
+ name: "DecryptFileError";
831
+ variant: "Decrypt" | "Io";
832
+ }
833
+
834
+ export function isDecryptFileError(error: any): error is DecryptFileError;
835
+
836
+ export interface EncryptFileError extends Error {
837
+ name: "EncryptFileError";
838
+ variant: "Encrypt" | "Io";
839
+ }
840
+
841
+ export function isEncryptFileError(error: any): error is EncryptFileError;
842
+
843
843
  export interface AttachmentView {
844
844
  id: string | undefined;
845
845
  url: string | undefined;
@@ -365,9 +365,9 @@ module.exports.isKeyGenerationError = function (error) {
365
365
  * @param {any} error
366
366
  * @returns {boolean}
367
367
  */
368
- module.exports.isDecryptFileError = function (error) {
368
+ module.exports.isDecryptError = function (error) {
369
369
  try {
370
- const ret = wasm.isDecryptFileError(addBorrowedObject(error));
370
+ const ret = wasm.isDecryptError(addBorrowedObject(error));
371
371
  return ret !== 0;
372
372
  } finally {
373
373
  heap[stack_pointer++] = undefined;
@@ -378,9 +378,9 @@ module.exports.isDecryptFileError = function (error) {
378
378
  * @param {any} error
379
379
  * @returns {boolean}
380
380
  */
381
- module.exports.isEncryptFileError = function (error) {
381
+ module.exports.isEncryptError = function (error) {
382
382
  try {
383
- const ret = wasm.isEncryptFileError(addBorrowedObject(error));
383
+ const ret = wasm.isEncryptError(addBorrowedObject(error));
384
384
  return ret !== 0;
385
385
  } finally {
386
386
  heap[stack_pointer++] = undefined;
@@ -391,9 +391,9 @@ module.exports.isEncryptFileError = function (error) {
391
391
  * @param {any} error
392
392
  * @returns {boolean}
393
393
  */
394
- module.exports.isDecryptError = function (error) {
394
+ module.exports.isTotpError = function (error) {
395
395
  try {
396
- const ret = wasm.isDecryptError(addBorrowedObject(error));
396
+ const ret = wasm.isTotpError(addBorrowedObject(error));
397
397
  return ret !== 0;
398
398
  } finally {
399
399
  heap[stack_pointer++] = undefined;
@@ -404,9 +404,9 @@ module.exports.isDecryptError = function (error) {
404
404
  * @param {any} error
405
405
  * @returns {boolean}
406
406
  */
407
- module.exports.isEncryptError = function (error) {
407
+ module.exports.isCipherError = function (error) {
408
408
  try {
409
- const ret = wasm.isEncryptError(addBorrowedObject(error));
409
+ const ret = wasm.isCipherError(addBorrowedObject(error));
410
410
  return ret !== 0;
411
411
  } finally {
412
412
  heap[stack_pointer++] = undefined;
@@ -417,9 +417,9 @@ module.exports.isEncryptError = function (error) {
417
417
  * @param {any} error
418
418
  * @returns {boolean}
419
419
  */
420
- module.exports.isTotpError = function (error) {
420
+ module.exports.isDecryptFileError = function (error) {
421
421
  try {
422
- const ret = wasm.isTotpError(addBorrowedObject(error));
422
+ const ret = wasm.isDecryptFileError(addBorrowedObject(error));
423
423
  return ret !== 0;
424
424
  } finally {
425
425
  heap[stack_pointer++] = undefined;
@@ -430,9 +430,9 @@ module.exports.isTotpError = function (error) {
430
430
  * @param {any} error
431
431
  * @returns {boolean}
432
432
  */
433
- module.exports.isCipherError = function (error) {
433
+ module.exports.isEncryptFileError = function (error) {
434
434
  try {
435
- const ret = wasm.isCipherError(addBorrowedObject(error));
435
+ const ret = wasm.isEncryptFileError(addBorrowedObject(error));
436
436
  return ret !== 0;
437
437
  } finally {
438
438
  heap[stack_pointer++] = undefined;
@@ -58,12 +58,12 @@ export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => vo
58
58
  export const isSshKeyExportError: (a: number) => number;
59
59
  export const isSshKeyImportError: (a: number) => number;
60
60
  export const isKeyGenerationError: (a: number) => number;
61
- export const isDecryptFileError: (a: number) => number;
62
- export const isEncryptFileError: (a: number) => number;
63
61
  export const isDecryptError: (a: number) => number;
64
62
  export const isEncryptError: (a: number) => number;
65
63
  export const isTotpError: (a: number) => number;
66
64
  export const isCipherError: (a: number) => number;
65
+ export const isDecryptFileError: (a: number) => number;
66
+ export const isEncryptFileError: (a: number) => number;
67
67
  export const __wbg_bitwardenclient_free: (a: number, b: number) => void;
68
68
  export const bitwardenclient_new: (a: number) => number;
69
69
  export const bitwardenclient_echo: (a: number, b: number, c: number, d: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.143",
3
+ "version": "0.2.0-main.144",
4
4
  "license": "GPL-3.0",
5
5
  "files": [
6
6
  "bitwarden_wasm_internal_bg.js",