@bitwarden/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/VERSION +1 -1
- 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 +7 -6
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +9 -0
- package/node/bitwarden_wasm_internal.js +46 -33
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +7 -6
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
876501d41f31e7711c3f9067d59b2f9facdfce48
|
|
@@ -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,14 +999,14 @@ export function isGetFolderError(error) {
|
|
|
986
999
|
}
|
|
987
1000
|
}
|
|
988
1001
|
|
|
989
|
-
function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
|
|
990
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
|
|
991
|
-
}
|
|
992
|
-
|
|
993
1002
|
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
994
1003
|
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
995
1004
|
}
|
|
996
1005
|
|
|
1006
|
+
function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
|
|
1007
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
|
|
1008
|
+
}
|
|
1009
|
+
|
|
997
1010
|
function wasm_bindgen__convert__closures_____invoke__h693de69d229f304a(arg0, arg1, arg2) {
|
|
998
1011
|
try {
|
|
999
1012
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -4710,7 +4723,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
|
|
|
4710
4723
|
return addHeapObject(ret);
|
|
4711
4724
|
}, arguments) };
|
|
4712
4725
|
|
|
4713
|
-
export function
|
|
4726
|
+
export function __wbg_cipher_2d1247f05b30f77e(arg0) {
|
|
4714
4727
|
const ret = getObject(arg0).cipher;
|
|
4715
4728
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4716
4729
|
};
|
|
@@ -4802,7 +4815,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
4802
4815
|
return addHeapObject(ret);
|
|
4803
4816
|
};
|
|
4804
4817
|
|
|
4805
|
-
export function
|
|
4818
|
+
export function __wbg_folder_1b48ee0129bc4aef(arg0) {
|
|
4806
4819
|
const ret = getObject(arg0).folder;
|
|
4807
4820
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4808
4821
|
};
|
|
@@ -4834,7 +4847,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
4834
4847
|
return ret;
|
|
4835
4848
|
};
|
|
4836
4849
|
|
|
4837
|
-
export function
|
|
4850
|
+
export function __wbg_get_0a25008b84f7d25c() { return handleError(function (arg0, arg1, arg2) {
|
|
4838
4851
|
let deferred0_0;
|
|
4839
4852
|
let deferred0_1;
|
|
4840
4853
|
try {
|
|
@@ -4847,17 +4860,7 @@ export function __wbg_get_61cef8fcf59a1887() { return handleError(function (arg0
|
|
|
4847
4860
|
}
|
|
4848
4861
|
}, arguments) };
|
|
4849
4862
|
|
|
4850
|
-
export function
|
|
4851
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4852
|
-
return addHeapObject(ret);
|
|
4853
|
-
};
|
|
4854
|
-
|
|
4855
|
-
export function __wbg_get_access_token_69f0eef2738fa0a6(arg0) {
|
|
4856
|
-
const ret = getObject(arg0).get_access_token();
|
|
4857
|
-
return addHeapObject(ret);
|
|
4858
|
-
};
|
|
4859
|
-
|
|
4860
|
-
export function __wbg_get_af210d83b309a3db() { return handleError(function (arg0, arg1, arg2) {
|
|
4863
|
+
export function __wbg_get_68e47edb669df514() { return handleError(function (arg0, arg1, arg2) {
|
|
4861
4864
|
let deferred0_0;
|
|
4862
4865
|
let deferred0_1;
|
|
4863
4866
|
try {
|
|
@@ -4870,6 +4873,16 @@ export function __wbg_get_af210d83b309a3db() { return handleError(function (arg0
|
|
|
4870
4873
|
}
|
|
4871
4874
|
}, arguments) };
|
|
4872
4875
|
|
|
4876
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
4877
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4878
|
+
return addHeapObject(ret);
|
|
4879
|
+
};
|
|
4880
|
+
|
|
4881
|
+
export function __wbg_get_access_token_ab7b7fd75e8e0ae1(arg0) {
|
|
4882
|
+
const ret = getObject(arg0).get_access_token();
|
|
4883
|
+
return addHeapObject(ret);
|
|
4884
|
+
};
|
|
4885
|
+
|
|
4873
4886
|
export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0, arg1) {
|
|
4874
4887
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4875
4888
|
return addHeapObject(ret);
|
|
@@ -5058,12 +5071,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
5058
5071
|
return ret;
|
|
5059
5072
|
};
|
|
5060
5073
|
|
|
5061
|
-
export function
|
|
5074
|
+
export function __wbg_list_06d194051d5a464f() { return handleError(function (arg0) {
|
|
5062
5075
|
const ret = getObject(arg0).list();
|
|
5063
5076
|
return addHeapObject(ret);
|
|
5064
5077
|
}, arguments) };
|
|
5065
5078
|
|
|
5066
|
-
export function
|
|
5079
|
+
export function __wbg_list_60503123dab02237() { return handleError(function (arg0) {
|
|
5067
5080
|
const ret = getObject(arg0).list();
|
|
5068
5081
|
return addHeapObject(ret);
|
|
5069
5082
|
}, arguments) };
|
|
@@ -5285,7 +5298,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
|
|
|
5285
5298
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
5286
5299
|
}, arguments) };
|
|
5287
5300
|
|
|
5288
|
-
export function
|
|
5301
|
+
export function __wbg_remove_57d50e4cf38f98e9() { return handleError(function (arg0, arg1, arg2) {
|
|
5289
5302
|
let deferred0_0;
|
|
5290
5303
|
let deferred0_1;
|
|
5291
5304
|
try {
|
|
@@ -5298,7 +5311,7 @@ export function __wbg_remove_3c9eb11764be0edc() { return handleError(function (a
|
|
|
5298
5311
|
}
|
|
5299
5312
|
}, arguments) };
|
|
5300
5313
|
|
|
5301
|
-
export function
|
|
5314
|
+
export function __wbg_remove_a0601c1d6421d90d() { return handleError(function (arg0, arg1, arg2) {
|
|
5302
5315
|
let deferred0_0;
|
|
5303
5316
|
let deferred0_1;
|
|
5304
5317
|
try {
|
|
@@ -5336,11 +5349,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
5336
5349
|
return addHeapObject(ret);
|
|
5337
5350
|
};
|
|
5338
5351
|
|
|
5339
|
-
export function
|
|
5340
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5341
|
-
};
|
|
5342
|
-
|
|
5343
|
-
export function __wbg_set_617055d565da34c1() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5352
|
+
export function __wbg_set_346afe6e6edb087b() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5344
5353
|
let deferred0_0;
|
|
5345
5354
|
let deferred0_1;
|
|
5346
5355
|
try {
|
|
@@ -5353,7 +5362,16 @@ export function __wbg_set_617055d565da34c1() { return handleError(function (arg0
|
|
|
5353
5362
|
}
|
|
5354
5363
|
}, arguments) };
|
|
5355
5364
|
|
|
5356
|
-
export function
|
|
5365
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
5366
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5367
|
+
};
|
|
5368
|
+
|
|
5369
|
+
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5370
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5371
|
+
return addHeapObject(ret);
|
|
5372
|
+
};
|
|
5373
|
+
|
|
5374
|
+
export function __wbg_set_9c9ede344ab3633e() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5357
5375
|
let deferred0_0;
|
|
5358
5376
|
let deferred0_1;
|
|
5359
5377
|
try {
|
|
@@ -5366,11 +5384,6 @@ export function __wbg_set_62159450a5dcdf4b() { return handleError(function (arg0
|
|
|
5366
5384
|
}
|
|
5367
5385
|
}, arguments) };
|
|
5368
5386
|
|
|
5369
|
-
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5370
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5371
|
-
return addHeapObject(ret);
|
|
5372
|
-
};
|
|
5373
|
-
|
|
5374
5387
|
export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
|
|
5375
5388
|
getObject(arg0).body = getObject(arg1);
|
|
5376
5389
|
};
|
|
Binary file
|
|
@@ -257,6 +257,7 @@ export const isEncryptionSettingsError: (a: number) => number;
|
|
|
257
257
|
export const isEnrollAdminPasswordResetError: (a: number) => number;
|
|
258
258
|
export const isMakeKeysError: (a: number) => number;
|
|
259
259
|
export const isMasterPasswordError: (a: number) => number;
|
|
260
|
+
export const isRotateCryptographyStateError: (a: number) => number;
|
|
260
261
|
export const isStatefulCryptoError: (a: number) => number;
|
|
261
262
|
export const isCryptoError: (a: number) => number;
|
|
262
263
|
export const __wbg_exporterclient_free: (a: number, b: number) => void;
|
|
@@ -509,25 +510,25 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
|
|
|
509
510
|
export const vaultclient_attachments: (a: number) => number;
|
|
510
511
|
export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
|
|
511
512
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
512
|
-
export const
|
|
513
|
+
export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
513
514
|
a: number,
|
|
514
515
|
b: number,
|
|
515
|
-
c: number,
|
|
516
516
|
) => void;
|
|
517
|
-
export const
|
|
518
|
-
export const
|
|
517
|
+
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
518
|
+
export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
|
|
519
519
|
a: number,
|
|
520
520
|
b: number,
|
|
521
|
+
c: number,
|
|
521
522
|
) => void;
|
|
523
|
+
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
524
|
+
export const wasm_bindgen__closure__destroy__h0d4ec2bbb1b6536b: (a: number, b: number) => void;
|
|
522
525
|
export const wasm_bindgen__convert__closures_____invoke__h693de69d229f304a: (
|
|
523
526
|
a: number,
|
|
524
527
|
b: number,
|
|
525
528
|
c: number,
|
|
526
529
|
d: number,
|
|
527
530
|
) => void;
|
|
528
|
-
export const wasm_bindgen__closure__destroy__h0d4ec2bbb1b6536b: (a: number, b: number) => void;
|
|
529
531
|
export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
|
|
530
|
-
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
531
532
|
export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
|
|
532
533
|
a: number,
|
|
533
534
|
b: number,
|