@bitwarden/commercial-sdk-internal 0.2.0-main.485 → 0.2.0-main.487
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 +9 -0
- package/bitwarden_wasm_internal_bg.js +46 -33
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +6 -5
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +9 -0
- package/node/bitwarden_wasm_internal.js +50 -37
- 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
|
*/
|
|
@@ -991,6 +998,8 @@ export interface RotateableKeySet {
|
|
|
991
998
|
encryptedDecapsulationKey: EncString;
|
|
992
999
|
}
|
|
993
1000
|
|
|
1001
|
+
export type PublicKey = Tagged<string, "PublicKey">;
|
|
1002
|
+
|
|
994
1003
|
/**
|
|
995
1004
|
* Key Derivation Function for Bitwarden Account
|
|
996
1005
|
*
|
|
@@ -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,10 @@ 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
|
+
|
|
989
1006
|
function wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6(arg0, arg1, arg2) {
|
|
990
1007
|
try {
|
|
991
1008
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -1000,10 +1017,6 @@ function wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6(arg0, arg
|
|
|
1000
1017
|
}
|
|
1001
1018
|
}
|
|
1002
1019
|
|
|
1003
|
-
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
1004
|
-
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
1020
|
function wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58(arg0, arg1, arg2) {
|
|
1008
1021
|
wasm.wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58(arg0, arg1, addHeapObject(arg2));
|
|
1009
1022
|
}
|
|
@@ -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_2d1247f05b30f77e(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_1b48ee0129bc4aef(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_0a25008b84f7d25c() { return handleError(function (arg0, arg1, arg2) {
|
|
4912
4925
|
let deferred0_0;
|
|
4913
4926
|
let deferred0_1;
|
|
4914
4927
|
try {
|
|
@@ -4921,17 +4934,7 @@ export function __wbg_get_61cef8fcf59a1887() { return handleError(function (arg0
|
|
|
4921
4934
|
}
|
|
4922
4935
|
}, arguments) };
|
|
4923
4936
|
|
|
4924
|
-
export function
|
|
4925
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4926
|
-
return addHeapObject(ret);
|
|
4927
|
-
};
|
|
4928
|
-
|
|
4929
|
-
export function __wbg_get_access_token_69f0eef2738fa0a6(arg0) {
|
|
4930
|
-
const ret = getObject(arg0).get_access_token();
|
|
4931
|
-
return addHeapObject(ret);
|
|
4932
|
-
};
|
|
4933
|
-
|
|
4934
|
-
export function __wbg_get_af210d83b309a3db() { return handleError(function (arg0, arg1, arg2) {
|
|
4937
|
+
export function __wbg_get_68e47edb669df514() { return handleError(function (arg0, arg1, arg2) {
|
|
4935
4938
|
let deferred0_0;
|
|
4936
4939
|
let deferred0_1;
|
|
4937
4940
|
try {
|
|
@@ -4944,6 +4947,16 @@ export function __wbg_get_af210d83b309a3db() { return handleError(function (arg0
|
|
|
4944
4947
|
}
|
|
4945
4948
|
}, arguments) };
|
|
4946
4949
|
|
|
4950
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
4951
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4952
|
+
return addHeapObject(ret);
|
|
4953
|
+
};
|
|
4954
|
+
|
|
4955
|
+
export function __wbg_get_access_token_ab7b7fd75e8e0ae1(arg0) {
|
|
4956
|
+
const ret = getObject(arg0).get_access_token();
|
|
4957
|
+
return addHeapObject(ret);
|
|
4958
|
+
};
|
|
4959
|
+
|
|
4947
4960
|
export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0, arg1) {
|
|
4948
4961
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4949
4962
|
return addHeapObject(ret);
|
|
@@ -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_06d194051d5a464f() { 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_60503123dab02237() { 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_57d50e4cf38f98e9() { 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_a0601c1d6421d90d() { return handleError(function (arg0, arg1, arg2) {
|
|
5376
5389
|
let deferred0_0;
|
|
5377
5390
|
let deferred0_1;
|
|
5378
5391
|
try {
|
|
@@ -5410,11 +5423,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
5410
5423
|
return addHeapObject(ret);
|
|
5411
5424
|
};
|
|
5412
5425
|
|
|
5413
|
-
export function
|
|
5414
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5415
|
-
};
|
|
5416
|
-
|
|
5417
|
-
export function __wbg_set_617055d565da34c1() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5426
|
+
export function __wbg_set_346afe6e6edb087b() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5418
5427
|
let deferred0_0;
|
|
5419
5428
|
let deferred0_1;
|
|
5420
5429
|
try {
|
|
@@ -5427,7 +5436,16 @@ export function __wbg_set_617055d565da34c1() { return handleError(function (arg0
|
|
|
5427
5436
|
}
|
|
5428
5437
|
}, arguments) };
|
|
5429
5438
|
|
|
5430
|
-
export function
|
|
5439
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
5440
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5441
|
+
};
|
|
5442
|
+
|
|
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_9c9ede344ab3633e() { 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,6 +514,11 @@ 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;
|
|
517
|
+
export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
518
|
+
a: number,
|
|
519
|
+
b: number,
|
|
520
|
+
) => void;
|
|
521
|
+
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
516
522
|
export const wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6: (
|
|
517
523
|
a: number,
|
|
518
524
|
b: number,
|
|
@@ -520,11 +526,6 @@ export const wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6: (
|
|
|
520
526
|
d: number,
|
|
521
527
|
) => void;
|
|
522
528
|
export const wasm_bindgen__closure__destroy__h607bdcca11c93892: (a: number, b: number) => void;
|
|
523
|
-
export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
524
|
-
a: number,
|
|
525
|
-
b: number,
|
|
526
|
-
) => void;
|
|
527
|
-
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
528
529
|
export const wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58: (
|
|
529
530
|
a: number,
|
|
530
531
|
b: number,
|