@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
|
*/
|
|
@@ -391,6 +391,19 @@ exports.isAccountCryptographyInitializationError = function(error) {
|
|
|
391
391
|
}
|
|
392
392
|
};
|
|
393
393
|
|
|
394
|
+
/**
|
|
395
|
+
* @param {any} error
|
|
396
|
+
* @returns {boolean}
|
|
397
|
+
*/
|
|
398
|
+
exports.isRotateCryptographyStateError = function(error) {
|
|
399
|
+
try {
|
|
400
|
+
const ret = wasm.isRotateCryptographyStateError(addBorrowedObject(error));
|
|
401
|
+
return ret !== 0;
|
|
402
|
+
} finally {
|
|
403
|
+
heap[stack_pointer++] = undefined;
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
|
|
394
407
|
/**
|
|
395
408
|
* @param {any} error
|
|
396
409
|
* @returns {boolean}
|
|
@@ -976,14 +989,14 @@ exports.isGetFolderError = function(error) {
|
|
|
976
989
|
}
|
|
977
990
|
};
|
|
978
991
|
|
|
979
|
-
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
980
|
-
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
992
|
function wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58(arg0, arg1, arg2) {
|
|
984
993
|
wasm.wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58(arg0, arg1, addHeapObject(arg2));
|
|
985
994
|
}
|
|
986
995
|
|
|
996
|
+
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
997
|
+
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
998
|
+
}
|
|
999
|
+
|
|
987
1000
|
function wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6(arg0, arg1, arg2) {
|
|
988
1001
|
try {
|
|
989
1002
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -4830,7 +4843,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (
|
|
|
4830
4843
|
return addHeapObject(ret);
|
|
4831
4844
|
}, arguments) };
|
|
4832
4845
|
|
|
4833
|
-
exports.
|
|
4846
|
+
exports.__wbg_cipher_d687be99ff3a914d = function(arg0) {
|
|
4834
4847
|
const ret = getObject(arg0).cipher;
|
|
4835
4848
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4836
4849
|
};
|
|
@@ -4922,7 +4935,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
|
|
|
4922
4935
|
return addHeapObject(ret);
|
|
4923
4936
|
};
|
|
4924
4937
|
|
|
4925
|
-
exports.
|
|
4938
|
+
exports.__wbg_folder_9e294147a7313385 = function(arg0) {
|
|
4926
4939
|
const ret = getObject(arg0).folder;
|
|
4927
4940
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4928
4941
|
};
|
|
@@ -4954,7 +4967,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
|
|
|
4954
4967
|
return ret;
|
|
4955
4968
|
};
|
|
4956
4969
|
|
|
4957
|
-
exports.
|
|
4970
|
+
exports.__wbg_get_5e6e196b7e315352 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
4958
4971
|
let deferred0_0;
|
|
4959
4972
|
let deferred0_1;
|
|
4960
4973
|
try {
|
|
@@ -4972,12 +4985,12 @@ exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
|
|
|
4972
4985
|
return addHeapObject(ret);
|
|
4973
4986
|
};
|
|
4974
4987
|
|
|
4975
|
-
exports.
|
|
4988
|
+
exports.__wbg_get_access_token_e2760ab93692a550 = function(arg0) {
|
|
4976
4989
|
const ret = getObject(arg0).get_access_token();
|
|
4977
4990
|
return addHeapObject(ret);
|
|
4978
4991
|
};
|
|
4979
4992
|
|
|
4980
|
-
exports.
|
|
4993
|
+
exports.__wbg_get_e6ec424f9032b35c = function() { return handleError(function (arg0, arg1, arg2) {
|
|
4981
4994
|
let deferred0_0;
|
|
4982
4995
|
let deferred0_1;
|
|
4983
4996
|
try {
|
|
@@ -5178,12 +5191,12 @@ exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
|
5178
5191
|
return ret;
|
|
5179
5192
|
};
|
|
5180
5193
|
|
|
5181
|
-
exports.
|
|
5194
|
+
exports.__wbg_list_42bf62b33a13ad31 = function() { return handleError(function (arg0) {
|
|
5182
5195
|
const ret = getObject(arg0).list();
|
|
5183
5196
|
return addHeapObject(ret);
|
|
5184
5197
|
}, arguments) };
|
|
5185
5198
|
|
|
5186
|
-
exports.
|
|
5199
|
+
exports.__wbg_list_611d82206bdbf704 = function() { return handleError(function (arg0) {
|
|
5187
5200
|
const ret = getObject(arg0).list();
|
|
5188
5201
|
return addHeapObject(ret);
|
|
5189
5202
|
}, arguments) };
|
|
@@ -5405,7 +5418,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(
|
|
|
5405
5418
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
5406
5419
|
}, arguments) };
|
|
5407
5420
|
|
|
5408
|
-
exports.
|
|
5421
|
+
exports.__wbg_remove_9ed247eaa9631247 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
5409
5422
|
let deferred0_0;
|
|
5410
5423
|
let deferred0_1;
|
|
5411
5424
|
try {
|
|
@@ -5418,7 +5431,7 @@ exports.__wbg_remove_3c9eb11764be0edc = function() { return handleError(function
|
|
|
5418
5431
|
}
|
|
5419
5432
|
}, arguments) };
|
|
5420
5433
|
|
|
5421
|
-
exports.
|
|
5434
|
+
exports.__wbg_remove_b68697fa6d2cf125 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
5422
5435
|
let deferred0_0;
|
|
5423
5436
|
let deferred0_1;
|
|
5424
5437
|
try {
|
|
@@ -5460,7 +5473,7 @@ exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
|
5460
5473
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5461
5474
|
};
|
|
5462
5475
|
|
|
5463
|
-
exports.
|
|
5476
|
+
exports.__wbg_set_4d43dc4720dadd8e = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5464
5477
|
let deferred0_0;
|
|
5465
5478
|
let deferred0_1;
|
|
5466
5479
|
try {
|
|
@@ -5473,7 +5486,12 @@ exports.__wbg_set_617055d565da34c1 = function() { return handleError(function (a
|
|
|
5473
5486
|
}
|
|
5474
5487
|
}, arguments) };
|
|
5475
5488
|
|
|
5476
|
-
exports.
|
|
5489
|
+
exports.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
|
|
5490
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5491
|
+
return addHeapObject(ret);
|
|
5492
|
+
};
|
|
5493
|
+
|
|
5494
|
+
exports.__wbg_set_a460475c1b17b076 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5477
5495
|
let deferred0_0;
|
|
5478
5496
|
let deferred0_1;
|
|
5479
5497
|
try {
|
|
@@ -5486,11 +5504,6 @@ exports.__wbg_set_62159450a5dcdf4b = function() { return handleError(function (a
|
|
|
5486
5504
|
}
|
|
5487
5505
|
}, arguments) };
|
|
5488
5506
|
|
|
5489
|
-
exports.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
|
|
5490
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5491
|
-
return addHeapObject(ret);
|
|
5492
|
-
};
|
|
5493
|
-
|
|
5494
5507
|
exports.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
|
|
5495
5508
|
getObject(arg0).body = getObject(arg1);
|
|
5496
5509
|
};
|
|
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 wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
517
|
-
a: number,
|
|
518
|
-
b: number,
|
|
519
|
-
) => void;
|
|
520
|
-
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
521
517
|
export const wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58: (
|
|
522
518
|
a: number,
|
|
523
519
|
b: number,
|
|
524
520
|
c: number,
|
|
525
521
|
) => void;
|
|
526
|
-
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
527
522
|
export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
|
|
528
|
-
export const
|
|
523
|
+
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
524
|
+
export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
525
|
+
a: number,
|
|
526
|
+
b: number,
|
|
527
|
+
) => void;
|
|
529
528
|
export const wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6: (
|
|
530
529
|
a: number,
|
|
531
530
|
b: number,
|
|
532
531
|
c: number,
|
|
533
532
|
d: number,
|
|
534
533
|
) => void;
|
|
534
|
+
export const wasm_bindgen__closure__destroy__h607bdcca11c93892: (a: number, b: number) => void;
|
|
535
|
+
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
535
536
|
export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
|
|
536
537
|
a: number,
|
|
537
538
|
b: number,
|