@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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 8f0ea145cb2d4e4260f0d924fe5a7c9d3167242d
1
+ 202849503951de24a7b7487e9e97eff844346091
@@ -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;
@@ -371,9 +371,9 @@ export function isKeyGenerationError(error) {
371
371
  * @param {any} error
372
372
  * @returns {boolean}
373
373
  */
374
- export function isDecryptFileError(error) {
374
+ export function isDecryptError(error) {
375
375
  try {
376
- const ret = wasm.isDecryptFileError(addBorrowedObject(error));
376
+ const ret = wasm.isDecryptError(addBorrowedObject(error));
377
377
  return ret !== 0;
378
378
  } finally {
379
379
  heap[stack_pointer++] = undefined;
@@ -384,9 +384,9 @@ export function isDecryptFileError(error) {
384
384
  * @param {any} error
385
385
  * @returns {boolean}
386
386
  */
387
- export function isEncryptFileError(error) {
387
+ export function isEncryptError(error) {
388
388
  try {
389
- const ret = wasm.isEncryptFileError(addBorrowedObject(error));
389
+ const ret = wasm.isEncryptError(addBorrowedObject(error));
390
390
  return ret !== 0;
391
391
  } finally {
392
392
  heap[stack_pointer++] = undefined;
@@ -397,9 +397,9 @@ export function isEncryptFileError(error) {
397
397
  * @param {any} error
398
398
  * @returns {boolean}
399
399
  */
400
- export function isDecryptError(error) {
400
+ export function isTotpError(error) {
401
401
  try {
402
- const ret = wasm.isDecryptError(addBorrowedObject(error));
402
+ const ret = wasm.isTotpError(addBorrowedObject(error));
403
403
  return ret !== 0;
404
404
  } finally {
405
405
  heap[stack_pointer++] = undefined;
@@ -410,9 +410,9 @@ export function isDecryptError(error) {
410
410
  * @param {any} error
411
411
  * @returns {boolean}
412
412
  */
413
- export function isEncryptError(error) {
413
+ export function isCipherError(error) {
414
414
  try {
415
- const ret = wasm.isEncryptError(addBorrowedObject(error));
415
+ const ret = wasm.isCipherError(addBorrowedObject(error));
416
416
  return ret !== 0;
417
417
  } finally {
418
418
  heap[stack_pointer++] = undefined;
@@ -423,9 +423,9 @@ export function isEncryptError(error) {
423
423
  * @param {any} error
424
424
  * @returns {boolean}
425
425
  */
426
- export function isTotpError(error) {
426
+ export function isDecryptFileError(error) {
427
427
  try {
428
- const ret = wasm.isTotpError(addBorrowedObject(error));
428
+ const ret = wasm.isDecryptFileError(addBorrowedObject(error));
429
429
  return ret !== 0;
430
430
  } finally {
431
431
  heap[stack_pointer++] = undefined;
@@ -436,9 +436,9 @@ export function isTotpError(error) {
436
436
  * @param {any} error
437
437
  * @returns {boolean}
438
438
  */
439
- export function isCipherError(error) {
439
+ export function isEncryptFileError(error) {
440
440
  try {
441
- const ret = wasm.isCipherError(addBorrowedObject(error));
441
+ const ret = wasm.isEncryptFileError(addBorrowedObject(error));
442
442
  return ret !== 0;
443
443
  } finally {
444
444
  heap[stack_pointer++] = undefined;
Binary file
@@ -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;