@bitwarden/commercial-sdk-internal 0.2.0-main.485 → 0.2.0-main.486
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 +7 -0
- package/bitwarden_wasm_internal_bg.js +37 -24
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +9 -8
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +7 -0
- package/node/bitwarden_wasm_internal.js +33 -20
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +8 -7
- package/package.json +1 -1
|
@@ -569,6 +569,13 @@ export type WrappedAccountCryptographicState =
|
|
|
569
569
|
};
|
|
570
570
|
};
|
|
571
571
|
|
|
572
|
+
export interface RotateCryptographyStateError extends Error {
|
|
573
|
+
name: "RotateCryptographyStateError";
|
|
574
|
+
variant: "KeyMissing" | "InvalidData";
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
export function isRotateCryptographyStateError(error: any): error is RotateCryptographyStateError;
|
|
578
|
+
|
|
572
579
|
/**
|
|
573
580
|
* Response from the `make_update_password` function
|
|
574
581
|
*/
|
|
@@ -401,6 +401,19 @@ export function isAccountCryptographyInitializationError(error) {
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
+
/**
|
|
405
|
+
* @param {any} error
|
|
406
|
+
* @returns {boolean}
|
|
407
|
+
*/
|
|
408
|
+
export function isRotateCryptographyStateError(error) {
|
|
409
|
+
try {
|
|
410
|
+
const ret = wasm.isRotateCryptographyStateError(addBorrowedObject(error));
|
|
411
|
+
return ret !== 0;
|
|
412
|
+
} finally {
|
|
413
|
+
heap[stack_pointer++] = undefined;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
404
417
|
/**
|
|
405
418
|
* @param {any} error
|
|
406
419
|
* @returns {boolean}
|
|
@@ -986,6 +999,14 @@ export function isGetFolderError(error) {
|
|
|
986
999
|
}
|
|
987
1000
|
}
|
|
988
1001
|
|
|
1002
|
+
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
1003
|
+
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
function wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58(arg0, arg1, arg2) {
|
|
1007
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58(arg0, arg1, addHeapObject(arg2));
|
|
1008
|
+
}
|
|
1009
|
+
|
|
989
1010
|
function wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6(arg0, arg1, arg2) {
|
|
990
1011
|
try {
|
|
991
1012
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -1000,14 +1021,6 @@ function wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6(arg0, arg
|
|
|
1000
1021
|
}
|
|
1001
1022
|
}
|
|
1002
1023
|
|
|
1003
|
-
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
1004
|
-
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
function wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58(arg0, arg1, arg2) {
|
|
1008
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58(arg0, arg1, addHeapObject(arg2));
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
1024
|
function wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, arg2, arg3) {
|
|
1012
1025
|
wasm.wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1013
1026
|
}
|
|
@@ -4784,7 +4797,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
|
|
|
4784
4797
|
return addHeapObject(ret);
|
|
4785
4798
|
}, arguments) };
|
|
4786
4799
|
|
|
4787
|
-
export function
|
|
4800
|
+
export function __wbg_cipher_d687be99ff3a914d(arg0) {
|
|
4788
4801
|
const ret = getObject(arg0).cipher;
|
|
4789
4802
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4790
4803
|
};
|
|
@@ -4876,7 +4889,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
4876
4889
|
return addHeapObject(ret);
|
|
4877
4890
|
};
|
|
4878
4891
|
|
|
4879
|
-
export function
|
|
4892
|
+
export function __wbg_folder_9e294147a7313385(arg0) {
|
|
4880
4893
|
const ret = getObject(arg0).folder;
|
|
4881
4894
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4882
4895
|
};
|
|
@@ -4908,7 +4921,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
4908
4921
|
return ret;
|
|
4909
4922
|
};
|
|
4910
4923
|
|
|
4911
|
-
export function
|
|
4924
|
+
export function __wbg_get_5e6e196b7e315352() { return handleError(function (arg0, arg1, arg2) {
|
|
4912
4925
|
let deferred0_0;
|
|
4913
4926
|
let deferred0_1;
|
|
4914
4927
|
try {
|
|
@@ -4926,12 +4939,12 @@ export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
|
4926
4939
|
return addHeapObject(ret);
|
|
4927
4940
|
};
|
|
4928
4941
|
|
|
4929
|
-
export function
|
|
4942
|
+
export function __wbg_get_access_token_e2760ab93692a550(arg0) {
|
|
4930
4943
|
const ret = getObject(arg0).get_access_token();
|
|
4931
4944
|
return addHeapObject(ret);
|
|
4932
4945
|
};
|
|
4933
4946
|
|
|
4934
|
-
export function
|
|
4947
|
+
export function __wbg_get_e6ec424f9032b35c() { return handleError(function (arg0, arg1, arg2) {
|
|
4935
4948
|
let deferred0_0;
|
|
4936
4949
|
let deferred0_1;
|
|
4937
4950
|
try {
|
|
@@ -5132,12 +5145,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
5132
5145
|
return ret;
|
|
5133
5146
|
};
|
|
5134
5147
|
|
|
5135
|
-
export function
|
|
5148
|
+
export function __wbg_list_42bf62b33a13ad31() { return handleError(function (arg0) {
|
|
5136
5149
|
const ret = getObject(arg0).list();
|
|
5137
5150
|
return addHeapObject(ret);
|
|
5138
5151
|
}, arguments) };
|
|
5139
5152
|
|
|
5140
|
-
export function
|
|
5153
|
+
export function __wbg_list_611d82206bdbf704() { return handleError(function (arg0) {
|
|
5141
5154
|
const ret = getObject(arg0).list();
|
|
5142
5155
|
return addHeapObject(ret);
|
|
5143
5156
|
}, arguments) };
|
|
@@ -5359,7 +5372,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
|
|
|
5359
5372
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
5360
5373
|
}, arguments) };
|
|
5361
5374
|
|
|
5362
|
-
export function
|
|
5375
|
+
export function __wbg_remove_9ed247eaa9631247() { return handleError(function (arg0, arg1, arg2) {
|
|
5363
5376
|
let deferred0_0;
|
|
5364
5377
|
let deferred0_1;
|
|
5365
5378
|
try {
|
|
@@ -5372,7 +5385,7 @@ export function __wbg_remove_3c9eb11764be0edc() { return handleError(function (a
|
|
|
5372
5385
|
}
|
|
5373
5386
|
}, arguments) };
|
|
5374
5387
|
|
|
5375
|
-
export function
|
|
5388
|
+
export function __wbg_remove_b68697fa6d2cf125() { return handleError(function (arg0, arg1, arg2) {
|
|
5376
5389
|
let deferred0_0;
|
|
5377
5390
|
let deferred0_1;
|
|
5378
5391
|
try {
|
|
@@ -5414,7 +5427,7 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
|
5414
5427
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5415
5428
|
};
|
|
5416
5429
|
|
|
5417
|
-
export function
|
|
5430
|
+
export function __wbg_set_4d43dc4720dadd8e() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5418
5431
|
let deferred0_0;
|
|
5419
5432
|
let deferred0_1;
|
|
5420
5433
|
try {
|
|
@@ -5427,7 +5440,12 @@ export function __wbg_set_617055d565da34c1() { return handleError(function (arg0
|
|
|
5427
5440
|
}
|
|
5428
5441
|
}, arguments) };
|
|
5429
5442
|
|
|
5430
|
-
export function
|
|
5443
|
+
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5444
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5445
|
+
return addHeapObject(ret);
|
|
5446
|
+
};
|
|
5447
|
+
|
|
5448
|
+
export function __wbg_set_a460475c1b17b076() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5431
5449
|
let deferred0_0;
|
|
5432
5450
|
let deferred0_1;
|
|
5433
5451
|
try {
|
|
@@ -5440,11 +5458,6 @@ export function __wbg_set_62159450a5dcdf4b() { return handleError(function (arg0
|
|
|
5440
5458
|
}
|
|
5441
5459
|
}, arguments) };
|
|
5442
5460
|
|
|
5443
|
-
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5444
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5445
|
-
return addHeapObject(ret);
|
|
5446
|
-
};
|
|
5447
|
-
|
|
5448
5461
|
export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
|
|
5449
5462
|
getObject(arg0).body = getObject(arg1);
|
|
5450
5463
|
};
|
|
Binary file
|
|
@@ -259,6 +259,7 @@ export const isEncryptionSettingsError: (a: number) => number;
|
|
|
259
259
|
export const isEnrollAdminPasswordResetError: (a: number) => number;
|
|
260
260
|
export const isMakeKeysError: (a: number) => number;
|
|
261
261
|
export const isMasterPasswordError: (a: number) => number;
|
|
262
|
+
export const isRotateCryptographyStateError: (a: number) => number;
|
|
262
263
|
export const isStatefulCryptoError: (a: number) => number;
|
|
263
264
|
export const isCryptoError: (a: number) => number;
|
|
264
265
|
export const __wbg_exporterclient_free: (a: number, b: number) => void;
|
|
@@ -513,25 +514,25 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
|
|
|
513
514
|
export const vaultclient_attachments: (a: number) => number;
|
|
514
515
|
export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
|
|
515
516
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
516
|
-
export const
|
|
517
|
+
export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
517
518
|
a: number,
|
|
518
519
|
b: number,
|
|
519
|
-
c: number,
|
|
520
|
-
d: number,
|
|
521
520
|
) => void;
|
|
522
|
-
export const
|
|
523
|
-
export const
|
|
521
|
+
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
522
|
+
export const wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58: (
|
|
524
523
|
a: number,
|
|
525
524
|
b: number,
|
|
525
|
+
c: number,
|
|
526
526
|
) => void;
|
|
527
|
+
export const wasm_bindgen__closure__destroy__h607bdcca11c93892: (a: number, b: number) => void;
|
|
527
528
|
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
528
|
-
export const
|
|
529
|
+
export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
|
|
530
|
+
export const wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6: (
|
|
529
531
|
a: number,
|
|
530
532
|
b: number,
|
|
531
533
|
c: number,
|
|
534
|
+
d: number,
|
|
532
535
|
) => void;
|
|
533
|
-
export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
|
|
534
|
-
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
535
536
|
export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
|
|
536
537
|
a: number,
|
|
537
538
|
b: number,
|