@bitwarden/commercial-sdk-internal 0.1.0 → 0.2.0-main.353
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 +8 -1
- package/bitwarden_wasm_internal_bg.js +44 -44
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +2 -2
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +8 -1
- package/node/bitwarden_wasm_internal.js +44 -44
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +2 -2
- package/package.json +1 -1
|
@@ -395,6 +395,7 @@ export interface InitUserCryptoRequest {
|
|
|
395
395
|
*/
|
|
396
396
|
export type InitUserCryptoMethod =
|
|
397
397
|
| { password: { password: string; user_key: EncString } }
|
|
398
|
+
| { masterPasswordUnlock: { password: string; master_password_unlock: MasterPasswordUnlockData } }
|
|
398
399
|
| { decryptedKey: { decrypted_user_key: string } }
|
|
399
400
|
| { pin: { pin: string; pin_protected_user_key: EncString } }
|
|
400
401
|
| { pinEnvelope: { pin: string; pin_protected_user_key_envelope: PasswordProtectedKeyEnvelope } }
|
|
@@ -715,7 +716,8 @@ export type DeviceType =
|
|
|
715
716
|
| "Server"
|
|
716
717
|
| "WindowsCLI"
|
|
717
718
|
| "MacOsCLI"
|
|
718
|
-
| "LinuxCLI"
|
|
719
|
+
| "LinuxCLI"
|
|
720
|
+
| "DuckDuckGoBrowser";
|
|
719
721
|
|
|
720
722
|
/**
|
|
721
723
|
* Basic client behavior settings. These settings specify the various targets and behavior of the
|
|
@@ -730,6 +732,7 @@ export type DeviceType =
|
|
|
730
732
|
* api_url: \"https://api.bitwarden.com\".to_string(),
|
|
731
733
|
* user_agent: \"Bitwarden Rust-SDK\".to_string(),
|
|
732
734
|
* device_type: DeviceType::SDK,
|
|
735
|
+
* bitwarden_client_version: None,
|
|
733
736
|
* };
|
|
734
737
|
* let default = ClientSettings::default();
|
|
735
738
|
* ```
|
|
@@ -751,6 +754,10 @@ export interface ClientSettings {
|
|
|
751
754
|
* Device type to send to Bitwarden. Defaults to SDK
|
|
752
755
|
*/
|
|
753
756
|
deviceType?: DeviceType;
|
|
757
|
+
/**
|
|
758
|
+
* Bitwarden Client Version to send to Bitwarden.
|
|
759
|
+
*/
|
|
760
|
+
bitwardenClientVersion?: string | undefined;
|
|
754
761
|
}
|
|
755
762
|
|
|
756
763
|
export type UnsignedSharedKey = Tagged<string, "UnsignedSharedKey">;
|
|
@@ -817,7 +817,7 @@ module.exports.isEncryptFileError = function (error) {
|
|
|
817
817
|
function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
818
818
|
try {
|
|
819
819
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
820
|
-
wasm.
|
|
820
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2c1223667a93fd6c(
|
|
821
821
|
retptr,
|
|
822
822
|
arg0,
|
|
823
823
|
arg1,
|
|
@@ -834,7 +834,7 @@ function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
837
|
-
wasm.
|
|
837
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0d7795300800d4d2(
|
|
838
838
|
arg0,
|
|
839
839
|
arg1,
|
|
840
840
|
addHeapObject(arg2),
|
|
@@ -4137,7 +4137,7 @@ module.exports.__wbg_call_7cccdd69e0791ae2 = function () {
|
|
|
4137
4137
|
}, arguments);
|
|
4138
4138
|
};
|
|
4139
4139
|
|
|
4140
|
-
module.exports.
|
|
4140
|
+
module.exports.__wbg_cipher_3ef84bb81bec347a = function (arg0) {
|
|
4141
4141
|
const ret = getObject(arg0).cipher;
|
|
4142
4142
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4143
4143
|
};
|
|
@@ -4217,7 +4217,7 @@ module.exports.__wbg_fetch_509096533071c657 = function (arg0, arg1) {
|
|
|
4217
4217
|
return addHeapObject(ret);
|
|
4218
4218
|
};
|
|
4219
4219
|
|
|
4220
|
-
module.exports.
|
|
4220
|
+
module.exports.__wbg_folder_c58043e46963725e = function (arg0) {
|
|
4221
4221
|
const ret = getObject(arg0).folder;
|
|
4222
4222
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4223
4223
|
};
|
|
@@ -4239,7 +4239,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
|
4239
4239
|
return ret;
|
|
4240
4240
|
};
|
|
4241
4241
|
|
|
4242
|
-
module.exports.
|
|
4242
|
+
module.exports.__wbg_get_482497ba509c279f = function () {
|
|
4243
4243
|
return handleError(function (arg0, arg1, arg2) {
|
|
4244
4244
|
let deferred0_0;
|
|
4245
4245
|
let deferred0_1;
|
|
@@ -4254,7 +4254,19 @@ module.exports.__wbg_get_1310b3927bf2791c = function () {
|
|
|
4254
4254
|
}, arguments);
|
|
4255
4255
|
};
|
|
4256
4256
|
|
|
4257
|
-
module.exports.
|
|
4257
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
4258
|
+
return handleError(function (arg0, arg1) {
|
|
4259
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4260
|
+
return addHeapObject(ret);
|
|
4261
|
+
}, arguments);
|
|
4262
|
+
};
|
|
4263
|
+
|
|
4264
|
+
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
4265
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4266
|
+
return addHeapObject(ret);
|
|
4267
|
+
};
|
|
4268
|
+
|
|
4269
|
+
module.exports.__wbg_get_fb2c5abe3ecf4327 = function () {
|
|
4258
4270
|
return handleError(function (arg0, arg1, arg2) {
|
|
4259
4271
|
let deferred0_0;
|
|
4260
4272
|
let deferred0_1;
|
|
@@ -4269,19 +4281,7 @@ module.exports.__wbg_get_3fc5162c26d628a0 = function () {
|
|
|
4269
4281
|
}, arguments);
|
|
4270
4282
|
};
|
|
4271
4283
|
|
|
4272
|
-
module.exports.
|
|
4273
|
-
return handleError(function (arg0, arg1) {
|
|
4274
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4275
|
-
return addHeapObject(ret);
|
|
4276
|
-
}, arguments);
|
|
4277
|
-
};
|
|
4278
|
-
|
|
4279
|
-
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
4280
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4281
|
-
return addHeapObject(ret);
|
|
4282
|
-
};
|
|
4283
|
-
|
|
4284
|
-
module.exports.__wbg_getaccesstoken_fd2bae33da5ff8ce = function (arg0) {
|
|
4284
|
+
module.exports.__wbg_getaccesstoken_9e32a90d6288c168 = function (arg0) {
|
|
4285
4285
|
const ret = getObject(arg0).get_access_token();
|
|
4286
4286
|
return addHeapObject(ret);
|
|
4287
4287
|
};
|
|
@@ -4466,14 +4466,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
|
|
|
4466
4466
|
return ret;
|
|
4467
4467
|
};
|
|
4468
4468
|
|
|
4469
|
-
module.exports.
|
|
4469
|
+
module.exports.__wbg_list_8e8e87c793258a92 = function () {
|
|
4470
4470
|
return handleError(function (arg0) {
|
|
4471
4471
|
const ret = getObject(arg0).list();
|
|
4472
4472
|
return addHeapObject(ret);
|
|
4473
4473
|
}, arguments);
|
|
4474
4474
|
};
|
|
4475
4475
|
|
|
4476
|
-
module.exports.
|
|
4476
|
+
module.exports.__wbg_list_b2e76202b8524498 = function () {
|
|
4477
4477
|
return handleError(function (arg0) {
|
|
4478
4478
|
const ret = getObject(arg0).list();
|
|
4479
4479
|
return addHeapObject(ret);
|
|
@@ -4674,7 +4674,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
4674
4674
|
}, arguments);
|
|
4675
4675
|
};
|
|
4676
4676
|
|
|
4677
|
-
module.exports.
|
|
4677
|
+
module.exports.__wbg_remove_1d11b7043a9b2631 = function () {
|
|
4678
4678
|
return handleError(function (arg0, arg1, arg2) {
|
|
4679
4679
|
let deferred0_0;
|
|
4680
4680
|
let deferred0_1;
|
|
@@ -4689,7 +4689,7 @@ module.exports.__wbg_remove_6b2e1c134228275a = function () {
|
|
|
4689
4689
|
}, arguments);
|
|
4690
4690
|
};
|
|
4691
4691
|
|
|
4692
|
-
module.exports.
|
|
4692
|
+
module.exports.__wbg_remove_4bdd32ee030cdba5 = function () {
|
|
4693
4693
|
return handleError(function (arg0, arg1, arg2) {
|
|
4694
4694
|
let deferred0_0;
|
|
4695
4695
|
let deferred0_1;
|
|
@@ -4735,7 +4735,19 @@ module.exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
|
|
|
4735
4735
|
return addHeapObject(ret);
|
|
4736
4736
|
};
|
|
4737
4737
|
|
|
4738
|
-
module.exports.
|
|
4738
|
+
module.exports.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
|
|
4739
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
4740
|
+
};
|
|
4741
|
+
|
|
4742
|
+
module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
4743
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4744
|
+
};
|
|
4745
|
+
|
|
4746
|
+
module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
4747
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4748
|
+
};
|
|
4749
|
+
|
|
4750
|
+
module.exports.__wbg_set_77e9220d80206e12 = function () {
|
|
4739
4751
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4740
4752
|
let deferred0_0;
|
|
4741
4753
|
let deferred0_1;
|
|
@@ -4750,11 +4762,12 @@ module.exports.__wbg_set_1a34528409ca377f = function () {
|
|
|
4750
4762
|
}, arguments);
|
|
4751
4763
|
};
|
|
4752
4764
|
|
|
4753
|
-
module.exports.
|
|
4754
|
-
getObject(arg0)
|
|
4765
|
+
module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
4766
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4767
|
+
return addHeapObject(ret);
|
|
4755
4768
|
};
|
|
4756
4769
|
|
|
4757
|
-
module.exports.
|
|
4770
|
+
module.exports.__wbg_set_b2324c129f5cbef0 = function () {
|
|
4758
4771
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4759
4772
|
let deferred0_0;
|
|
4760
4773
|
let deferred0_1;
|
|
@@ -4769,19 +4782,6 @@ module.exports.__wbg_set_3b892e687f61c61f = function () {
|
|
|
4769
4782
|
}, arguments);
|
|
4770
4783
|
};
|
|
4771
4784
|
|
|
4772
|
-
module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
4773
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4774
|
-
};
|
|
4775
|
-
|
|
4776
|
-
module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
4777
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4778
|
-
};
|
|
4779
|
-
|
|
4780
|
-
module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
4781
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4782
|
-
return addHeapObject(ret);
|
|
4783
|
-
};
|
|
4784
|
-
|
|
4785
4785
|
module.exports.__wbg_setbody_5923b78a95eedf29 = function (arg0, arg1) {
|
|
4786
4786
|
getObject(arg0).body = getObject(arg1);
|
|
4787
4787
|
};
|
|
@@ -5002,17 +5002,17 @@ module.exports.__wbindgen_closure_wrapper195 = function (arg0, arg1, arg2) {
|
|
|
5002
5002
|
return addHeapObject(ret);
|
|
5003
5003
|
};
|
|
5004
5004
|
|
|
5005
|
-
module.exports.
|
|
5006
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5005
|
+
module.exports.__wbindgen_closure_wrapper3861 = function (arg0, arg1, arg2) {
|
|
5006
|
+
const ret = makeMutClosure(arg0, arg1, 293, __wbg_adapter_60);
|
|
5007
5007
|
return addHeapObject(ret);
|
|
5008
5008
|
};
|
|
5009
5009
|
|
|
5010
|
-
module.exports.
|
|
5010
|
+
module.exports.__wbindgen_closure_wrapper6193 = function (arg0, arg1, arg2) {
|
|
5011
5011
|
const ret = makeMutClosure(arg0, arg1, 319, __wbg_adapter_60);
|
|
5012
5012
|
return addHeapObject(ret);
|
|
5013
5013
|
};
|
|
5014
5014
|
|
|
5015
|
-
module.exports.
|
|
5015
|
+
module.exports.__wbindgen_closure_wrapper6573 = function (arg0, arg1, arg2) {
|
|
5016
5016
|
const ret = makeMutClosure(arg0, arg1, 342, __wbg_adapter_57);
|
|
5017
5017
|
return addHeapObject(ret);
|
|
5018
5018
|
};
|
|
Binary file
|
|
@@ -412,13 +412,13 @@ export const __wbindgen_exn_store: (a: number) => void;
|
|
|
412
412
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
413
413
|
export const __wbindgen_export_4: WebAssembly.Table;
|
|
414
414
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
415
|
-
export const
|
|
415
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2c1223667a93fd6c: (
|
|
416
416
|
a: number,
|
|
417
417
|
b: number,
|
|
418
418
|
c: number,
|
|
419
419
|
d: number,
|
|
420
420
|
) => void;
|
|
421
|
-
export const
|
|
421
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0d7795300800d4d2: (
|
|
422
422
|
a: number,
|
|
423
423
|
b: number,
|
|
424
424
|
c: number,
|