@bitwarden/commercial-sdk-internal 0.2.0-main.471 → 0.2.0-main.473
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_bg.js +61 -61
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +13 -13
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.js +61 -61
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +13 -13
- package/package.json +1 -1
|
@@ -976,14 +976,14 @@ exports.isGetFolderError = function(error) {
|
|
|
976
976
|
}
|
|
977
977
|
};
|
|
978
978
|
|
|
979
|
-
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
980
|
-
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
979
|
function wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58(arg0, arg1, arg2) {
|
|
984
980
|
wasm.wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58(arg0, arg1, addHeapObject(arg2));
|
|
985
981
|
}
|
|
986
982
|
|
|
983
|
+
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
984
|
+
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
987
|
function wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6(arg0, arg1, arg2) {
|
|
988
988
|
try {
|
|
989
989
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -4063,7 +4063,7 @@ class PureCrypto {
|
|
|
4063
4063
|
const len0 = WASM_VECTOR_LEN;
|
|
4064
4064
|
const ptr1 = passArray8ToWasm0(wrapping_key, wasm.__wbindgen_malloc);
|
|
4065
4065
|
const len1 = WASM_VECTOR_LEN;
|
|
4066
|
-
wasm.
|
|
4066
|
+
wasm.purecrypto_unwrap_encapsulation_key(retptr, ptr0, len0, ptr1, len1);
|
|
4067
4067
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4068
4068
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4069
4069
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -4830,7 +4830,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (
|
|
|
4830
4830
|
return addHeapObject(ret);
|
|
4831
4831
|
}, arguments) };
|
|
4832
4832
|
|
|
4833
|
-
exports.
|
|
4833
|
+
exports.__wbg_cipher_465a4c5e9163aaac = function(arg0) {
|
|
4834
4834
|
const ret = getObject(arg0).cipher;
|
|
4835
4835
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4836
4836
|
};
|
|
@@ -4922,7 +4922,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
|
|
|
4922
4922
|
return addHeapObject(ret);
|
|
4923
4923
|
};
|
|
4924
4924
|
|
|
4925
|
-
exports.
|
|
4925
|
+
exports.__wbg_folder_78bb023df0fdc701 = function(arg0) {
|
|
4926
4926
|
const ret = getObject(arg0).folder;
|
|
4927
4927
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4928
4928
|
};
|
|
@@ -4954,7 +4954,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
|
|
|
4954
4954
|
return ret;
|
|
4955
4955
|
};
|
|
4956
4956
|
|
|
4957
|
-
exports.
|
|
4957
|
+
exports.__wbg_get_0073b0d9dbf73a1f = function() { return handleError(function (arg0, arg1, arg2) {
|
|
4958
4958
|
let deferred0_0;
|
|
4959
4959
|
let deferred0_1;
|
|
4960
4960
|
try {
|
|
@@ -4967,12 +4967,7 @@ exports.__wbg_get_350e2792874c2b01 = function() { return handleError(function (a
|
|
|
4967
4967
|
}
|
|
4968
4968
|
}, arguments) };
|
|
4969
4969
|
|
|
4970
|
-
exports.
|
|
4971
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4972
|
-
return addHeapObject(ret);
|
|
4973
|
-
};
|
|
4974
|
-
|
|
4975
|
-
exports.__wbg_get_8dd113a93566cae8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
4970
|
+
exports.__wbg_get_15c6dcca7951981a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
4976
4971
|
let deferred0_0;
|
|
4977
4972
|
let deferred0_1;
|
|
4978
4973
|
try {
|
|
@@ -4985,7 +4980,12 @@ exports.__wbg_get_8dd113a93566cae8 = function() { return handleError(function (a
|
|
|
4985
4980
|
}
|
|
4986
4981
|
}, arguments) };
|
|
4987
4982
|
|
|
4988
|
-
exports.
|
|
4983
|
+
exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
|
|
4984
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4985
|
+
return addHeapObject(ret);
|
|
4986
|
+
};
|
|
4987
|
+
|
|
4988
|
+
exports.__wbg_get_access_token_f74208803f66d567 = function(arg0) {
|
|
4989
4989
|
const ret = getObject(arg0).get_access_token();
|
|
4990
4990
|
return addHeapObject(ret);
|
|
4991
4991
|
};
|
|
@@ -5178,12 +5178,12 @@ exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
|
5178
5178
|
return ret;
|
|
5179
5179
|
};
|
|
5180
5180
|
|
|
5181
|
-
exports.
|
|
5181
|
+
exports.__wbg_list_c5e7d548377f982c = function() { return handleError(function (arg0) {
|
|
5182
5182
|
const ret = getObject(arg0).list();
|
|
5183
5183
|
return addHeapObject(ret);
|
|
5184
5184
|
}, arguments) };
|
|
5185
5185
|
|
|
5186
|
-
exports.
|
|
5186
|
+
exports.__wbg_list_e8b480f3e72a3825 = function() { return handleError(function (arg0) {
|
|
5187
5187
|
const ret = getObject(arg0).list();
|
|
5188
5188
|
return addHeapObject(ret);
|
|
5189
5189
|
}, arguments) };
|
|
@@ -5405,7 +5405,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(
|
|
|
5405
5405
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
5406
5406
|
}, arguments) };
|
|
5407
5407
|
|
|
5408
|
-
exports.
|
|
5408
|
+
exports.__wbg_remove_35659984f9ccdee5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
5409
5409
|
let deferred0_0;
|
|
5410
5410
|
let deferred0_1;
|
|
5411
5411
|
try {
|
|
@@ -5418,7 +5418,7 @@ exports.__wbg_remove_82c3dba8a1612f3c = function() { return handleError(function
|
|
|
5418
5418
|
}
|
|
5419
5419
|
}, arguments) };
|
|
5420
5420
|
|
|
5421
|
-
exports.
|
|
5421
|
+
exports.__wbg_remove_aa4b6da4e4723670 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
5422
5422
|
let deferred0_0;
|
|
5423
5423
|
let deferred0_1;
|
|
5424
5424
|
try {
|
|
@@ -5460,25 +5460,7 @@ exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
|
5460
5460
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5461
5461
|
};
|
|
5462
5462
|
|
|
5463
|
-
exports.
|
|
5464
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5465
|
-
return addHeapObject(ret);
|
|
5466
|
-
};
|
|
5467
|
-
|
|
5468
|
-
exports.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
|
|
5469
|
-
getObject(arg0).body = getObject(arg1);
|
|
5470
|
-
};
|
|
5471
|
-
|
|
5472
|
-
exports.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
|
|
5473
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
5474
|
-
};
|
|
5475
|
-
|
|
5476
|
-
exports.__wbg_set_c2abbebe8b9ebee1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
5477
|
-
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
5478
|
-
return ret;
|
|
5479
|
-
}, arguments) };
|
|
5480
|
-
|
|
5481
|
-
exports.__wbg_set_cebdb9f8a1e66108 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5463
|
+
exports.__wbg_set_8c696a92c5ab9170 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5482
5464
|
let deferred0_0;
|
|
5483
5465
|
let deferred0_1;
|
|
5484
5466
|
try {
|
|
@@ -5491,11 +5473,12 @@ exports.__wbg_set_cebdb9f8a1e66108 = function() { return handleError(function (a
|
|
|
5491
5473
|
}
|
|
5492
5474
|
}, arguments) };
|
|
5493
5475
|
|
|
5494
|
-
exports.
|
|
5495
|
-
getObject(arg0).
|
|
5476
|
+
exports.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
|
|
5477
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5478
|
+
return addHeapObject(ret);
|
|
5496
5479
|
};
|
|
5497
5480
|
|
|
5498
|
-
exports.
|
|
5481
|
+
exports.__wbg_set_930cbfcc46606440 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5499
5482
|
let deferred0_0;
|
|
5500
5483
|
let deferred0_1;
|
|
5501
5484
|
try {
|
|
@@ -5508,6 +5491,23 @@ exports.__wbg_set_fab346b938dc92c1 = function() { return handleError(function (a
|
|
|
5508
5491
|
}
|
|
5509
5492
|
}, arguments) };
|
|
5510
5493
|
|
|
5494
|
+
exports.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
|
|
5495
|
+
getObject(arg0).body = getObject(arg1);
|
|
5496
|
+
};
|
|
5497
|
+
|
|
5498
|
+
exports.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
|
|
5499
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
5500
|
+
};
|
|
5501
|
+
|
|
5502
|
+
exports.__wbg_set_c2abbebe8b9ebee1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
5503
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
5504
|
+
return ret;
|
|
5505
|
+
}, arguments) };
|
|
5506
|
+
|
|
5507
|
+
exports.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
|
|
5508
|
+
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
5509
|
+
};
|
|
5510
|
+
|
|
5511
5511
|
exports.__wbg_set_headers_6926da238cd32ee4 = function(arg0, arg1) {
|
|
5512
5512
|
getObject(arg0).headers = getObject(arg1);
|
|
5513
5513
|
};
|
|
@@ -5673,18 +5673,12 @@ exports.__wbg_warn_8f5b5437666d0885 = function(arg0, arg1, arg2, arg3) {
|
|
|
5673
5673
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5674
5674
|
};
|
|
5675
5675
|
|
|
5676
|
-
exports.
|
|
5677
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5676
|
+
exports.__wbindgen_cast_0acd39de5c783c71 = function(arg0, arg1) {
|
|
5677
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 333, function: Function { arguments: [NamedExternref("Event")], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5678
5678
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58);
|
|
5679
5679
|
return addHeapObject(ret);
|
|
5680
5680
|
};
|
|
5681
5681
|
|
|
5682
|
-
exports.__wbindgen_cast_175ebd987b2efee0 = function(arg0, arg1) {
|
|
5683
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 576, function: Function { arguments: [], shim_idx: 326, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5684
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h666c8569a46b7e11, wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d);
|
|
5685
|
-
return addHeapObject(ret);
|
|
5686
|
-
};
|
|
5687
|
-
|
|
5688
5682
|
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
5689
5683
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
5690
5684
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -5697,18 +5691,18 @@ exports.__wbindgen_cast_4042b341512ce63a = function(arg0, arg1) {
|
|
|
5697
5691
|
return addHeapObject(ret);
|
|
5698
5692
|
};
|
|
5699
5693
|
|
|
5700
|
-
exports.__wbindgen_cast_452689ba5ee76b4b = function(arg0, arg1) {
|
|
5701
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 325, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5702
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58);
|
|
5703
|
-
return addHeapObject(ret);
|
|
5704
|
-
};
|
|
5705
|
-
|
|
5706
5694
|
exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
5707
5695
|
// Cast intrinsic for `U64 -> Externref`.
|
|
5708
5696
|
const ret = BigInt.asUintN(64, arg0);
|
|
5709
5697
|
return addHeapObject(ret);
|
|
5710
5698
|
};
|
|
5711
5699
|
|
|
5700
|
+
exports.__wbindgen_cast_55a08bee8bbbdd86 = function(arg0, arg1) {
|
|
5701
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 578, function: Function { arguments: [], shim_idx: 328, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5702
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h666c8569a46b7e11, wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d);
|
|
5703
|
+
return addHeapObject(ret);
|
|
5704
|
+
};
|
|
5705
|
+
|
|
5712
5706
|
exports.__wbindgen_cast_5fea77eff9dd275c = function(arg0, arg1) {
|
|
5713
5707
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5714
5708
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -5717,6 +5711,12 @@ exports.__wbindgen_cast_5fea77eff9dd275c = function(arg0, arg1) {
|
|
|
5717
5711
|
return addHeapObject(ret);
|
|
5718
5712
|
};
|
|
5719
5713
|
|
|
5714
|
+
exports.__wbindgen_cast_60e5410fb9724a20 = function(arg0, arg1) {
|
|
5715
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 327, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5716
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58);
|
|
5717
|
+
return addHeapObject(ret);
|
|
5718
|
+
};
|
|
5719
|
+
|
|
5720
5720
|
exports.__wbindgen_cast_7a6d185652cd8149 = function(arg0, arg1) {
|
|
5721
5721
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5722
5722
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -5725,15 +5725,15 @@ exports.__wbindgen_cast_7a6d185652cd8149 = function(arg0, arg1) {
|
|
|
5725
5725
|
return addHeapObject(ret);
|
|
5726
5726
|
};
|
|
5727
5727
|
|
|
5728
|
-
exports.
|
|
5729
|
-
// Cast intrinsic for `
|
|
5730
|
-
const ret = arg0;
|
|
5728
|
+
exports.__wbindgen_cast_925ce08a137834bc = function(arg0, arg1) {
|
|
5729
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 327, function: Function { arguments: [], shim_idx: 328, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5730
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d);
|
|
5731
5731
|
return addHeapObject(ret);
|
|
5732
5732
|
};
|
|
5733
5733
|
|
|
5734
|
-
exports.
|
|
5735
|
-
// Cast intrinsic for `
|
|
5736
|
-
const ret =
|
|
5734
|
+
exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
5735
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
5736
|
+
const ret = arg0;
|
|
5737
5737
|
return addHeapObject(ret);
|
|
5738
5738
|
};
|
|
5739
5739
|
|
|
Binary file
|
|
@@ -151,6 +151,13 @@ export const purecrypto_unwrap_decapsulation_key: (
|
|
|
151
151
|
d: number,
|
|
152
152
|
e: number,
|
|
153
153
|
) => void;
|
|
154
|
+
export const purecrypto_unwrap_encapsulation_key: (
|
|
155
|
+
a: number,
|
|
156
|
+
b: number,
|
|
157
|
+
c: number,
|
|
158
|
+
d: number,
|
|
159
|
+
e: number,
|
|
160
|
+
) => void;
|
|
154
161
|
export const purecrypto_unwrap_symmetric_key: (
|
|
155
162
|
a: number,
|
|
156
163
|
b: number,
|
|
@@ -483,13 +490,6 @@ export const totpclient_generate_totp: (
|
|
|
483
490
|
e: number,
|
|
484
491
|
f: number,
|
|
485
492
|
) => void;
|
|
486
|
-
export const purecrypto_unwrap_encapsulation_key: (
|
|
487
|
-
a: number,
|
|
488
|
-
b: number,
|
|
489
|
-
c: number,
|
|
490
|
-
d: number,
|
|
491
|
-
e: number,
|
|
492
|
-
) => void;
|
|
493
493
|
export const __wbg_stateclient_free: (a: number, b: number) => void;
|
|
494
494
|
export const __wbg_platformclient_free: (a: number, b: number) => void;
|
|
495
495
|
export const platformclient_state: (a: number) => number;
|
|
@@ -513,12 +513,6 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
|
|
|
513
513
|
export const vaultclient_attachments: (a: number) => number;
|
|
514
514
|
export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
|
|
515
515
|
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__hc71695a401114797: (a: number, b: number) => void;
|
|
521
|
-
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
522
516
|
export const wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58: (
|
|
523
517
|
a: number,
|
|
524
518
|
b: number,
|
|
@@ -526,6 +520,12 @@ export const wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58: (
|
|
|
526
520
|
) => void;
|
|
527
521
|
export const wasm_bindgen__closure__destroy__h607bdcca11c93892: (a: number, b: number) => void;
|
|
528
522
|
export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (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
|
+
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
529
529
|
export const wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6: (
|
|
530
530
|
a: number,
|
|
531
531
|
b: number,
|