@bitwarden/commercial-sdk-internal 0.1.0 → 0.2.0-main.354
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">;
|
|
@@ -823,7 +823,7 @@ export function isEncryptFileError(error) {
|
|
|
823
823
|
function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
824
824
|
try {
|
|
825
825
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
826
|
-
wasm.
|
|
826
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2c1223667a93fd6c(
|
|
827
827
|
retptr,
|
|
828
828
|
arg0,
|
|
829
829
|
arg1,
|
|
@@ -840,7 +840,7 @@ function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
|
840
840
|
}
|
|
841
841
|
|
|
842
842
|
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
843
|
-
wasm.
|
|
843
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0d7795300800d4d2(
|
|
844
844
|
arg0,
|
|
845
845
|
arg1,
|
|
846
846
|
addHeapObject(arg2),
|
|
@@ -4119,7 +4119,7 @@ export function __wbg_call_7cccdd69e0791ae2() {
|
|
|
4119
4119
|
}, arguments);
|
|
4120
4120
|
}
|
|
4121
4121
|
|
|
4122
|
-
export function
|
|
4122
|
+
export function __wbg_cipher_3ef84bb81bec347a(arg0) {
|
|
4123
4123
|
const ret = getObject(arg0).cipher;
|
|
4124
4124
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4125
4125
|
}
|
|
@@ -4199,7 +4199,7 @@ export function __wbg_fetch_509096533071c657(arg0, arg1) {
|
|
|
4199
4199
|
return addHeapObject(ret);
|
|
4200
4200
|
}
|
|
4201
4201
|
|
|
4202
|
-
export function
|
|
4202
|
+
export function __wbg_folder_c58043e46963725e(arg0) {
|
|
4203
4203
|
const ret = getObject(arg0).folder;
|
|
4204
4204
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4205
4205
|
}
|
|
@@ -4221,7 +4221,7 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
|
4221
4221
|
return ret;
|
|
4222
4222
|
}
|
|
4223
4223
|
|
|
4224
|
-
export function
|
|
4224
|
+
export function __wbg_get_482497ba509c279f() {
|
|
4225
4225
|
return handleError(function (arg0, arg1, arg2) {
|
|
4226
4226
|
let deferred0_0;
|
|
4227
4227
|
let deferred0_1;
|
|
@@ -4236,7 +4236,19 @@ export function __wbg_get_1310b3927bf2791c() {
|
|
|
4236
4236
|
}, arguments);
|
|
4237
4237
|
}
|
|
4238
4238
|
|
|
4239
|
-
export function
|
|
4239
|
+
export function __wbg_get_67b2ba62fc30de12() {
|
|
4240
|
+
return handleError(function (arg0, arg1) {
|
|
4241
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4242
|
+
return addHeapObject(ret);
|
|
4243
|
+
}, arguments);
|
|
4244
|
+
}
|
|
4245
|
+
|
|
4246
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
4247
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4248
|
+
return addHeapObject(ret);
|
|
4249
|
+
}
|
|
4250
|
+
|
|
4251
|
+
export function __wbg_get_fb2c5abe3ecf4327() {
|
|
4240
4252
|
return handleError(function (arg0, arg1, arg2) {
|
|
4241
4253
|
let deferred0_0;
|
|
4242
4254
|
let deferred0_1;
|
|
@@ -4251,19 +4263,7 @@ export function __wbg_get_3fc5162c26d628a0() {
|
|
|
4251
4263
|
}, arguments);
|
|
4252
4264
|
}
|
|
4253
4265
|
|
|
4254
|
-
export function
|
|
4255
|
-
return handleError(function (arg0, arg1) {
|
|
4256
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4257
|
-
return addHeapObject(ret);
|
|
4258
|
-
}, arguments);
|
|
4259
|
-
}
|
|
4260
|
-
|
|
4261
|
-
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
4262
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4263
|
-
return addHeapObject(ret);
|
|
4264
|
-
}
|
|
4265
|
-
|
|
4266
|
-
export function __wbg_getaccesstoken_fd2bae33da5ff8ce(arg0) {
|
|
4266
|
+
export function __wbg_getaccesstoken_9e32a90d6288c168(arg0) {
|
|
4267
4267
|
const ret = getObject(arg0).get_access_token();
|
|
4268
4268
|
return addHeapObject(ret);
|
|
4269
4269
|
}
|
|
@@ -4448,14 +4448,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
|
4448
4448
|
return ret;
|
|
4449
4449
|
}
|
|
4450
4450
|
|
|
4451
|
-
export function
|
|
4451
|
+
export function __wbg_list_8e8e87c793258a92() {
|
|
4452
4452
|
return handleError(function (arg0) {
|
|
4453
4453
|
const ret = getObject(arg0).list();
|
|
4454
4454
|
return addHeapObject(ret);
|
|
4455
4455
|
}, arguments);
|
|
4456
4456
|
}
|
|
4457
4457
|
|
|
4458
|
-
export function
|
|
4458
|
+
export function __wbg_list_b2e76202b8524498() {
|
|
4459
4459
|
return handleError(function (arg0) {
|
|
4460
4460
|
const ret = getObject(arg0).list();
|
|
4461
4461
|
return addHeapObject(ret);
|
|
@@ -4656,7 +4656,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
4656
4656
|
}, arguments);
|
|
4657
4657
|
}
|
|
4658
4658
|
|
|
4659
|
-
export function
|
|
4659
|
+
export function __wbg_remove_1d11b7043a9b2631() {
|
|
4660
4660
|
return handleError(function (arg0, arg1, arg2) {
|
|
4661
4661
|
let deferred0_0;
|
|
4662
4662
|
let deferred0_1;
|
|
@@ -4671,7 +4671,7 @@ export function __wbg_remove_6b2e1c134228275a() {
|
|
|
4671
4671
|
}, arguments);
|
|
4672
4672
|
}
|
|
4673
4673
|
|
|
4674
|
-
export function
|
|
4674
|
+
export function __wbg_remove_4bdd32ee030cdba5() {
|
|
4675
4675
|
return handleError(function (arg0, arg1, arg2) {
|
|
4676
4676
|
let deferred0_0;
|
|
4677
4677
|
let deferred0_1;
|
|
@@ -4717,7 +4717,19 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
4717
4717
|
return addHeapObject(ret);
|
|
4718
4718
|
}
|
|
4719
4719
|
|
|
4720
|
-
export function
|
|
4720
|
+
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
4721
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
4722
|
+
}
|
|
4723
|
+
|
|
4724
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
4725
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4726
|
+
}
|
|
4727
|
+
|
|
4728
|
+
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
4729
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4730
|
+
}
|
|
4731
|
+
|
|
4732
|
+
export function __wbg_set_77e9220d80206e12() {
|
|
4721
4733
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4722
4734
|
let deferred0_0;
|
|
4723
4735
|
let deferred0_1;
|
|
@@ -4732,11 +4744,12 @@ export function __wbg_set_1a34528409ca377f() {
|
|
|
4732
4744
|
}, arguments);
|
|
4733
4745
|
}
|
|
4734
4746
|
|
|
4735
|
-
export function
|
|
4736
|
-
getObject(arg0)
|
|
4747
|
+
export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
4748
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4749
|
+
return addHeapObject(ret);
|
|
4737
4750
|
}
|
|
4738
4751
|
|
|
4739
|
-
export function
|
|
4752
|
+
export function __wbg_set_b2324c129f5cbef0() {
|
|
4740
4753
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4741
4754
|
let deferred0_0;
|
|
4742
4755
|
let deferred0_1;
|
|
@@ -4751,19 +4764,6 @@ export function __wbg_set_3b892e687f61c61f() {
|
|
|
4751
4764
|
}, arguments);
|
|
4752
4765
|
}
|
|
4753
4766
|
|
|
4754
|
-
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
4755
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4756
|
-
}
|
|
4757
|
-
|
|
4758
|
-
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
4759
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4760
|
-
}
|
|
4761
|
-
|
|
4762
|
-
export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
4763
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4764
|
-
return addHeapObject(ret);
|
|
4765
|
-
}
|
|
4766
|
-
|
|
4767
4767
|
export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
|
4768
4768
|
getObject(arg0).body = getObject(arg1);
|
|
4769
4769
|
}
|
|
@@ -4984,17 +4984,17 @@ export function __wbindgen_closure_wrapper195(arg0, arg1, arg2) {
|
|
|
4984
4984
|
return addHeapObject(ret);
|
|
4985
4985
|
}
|
|
4986
4986
|
|
|
4987
|
-
export function
|
|
4988
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4987
|
+
export function __wbindgen_closure_wrapper3861(arg0, arg1, arg2) {
|
|
4988
|
+
const ret = makeMutClosure(arg0, arg1, 293, __wbg_adapter_60);
|
|
4989
4989
|
return addHeapObject(ret);
|
|
4990
4990
|
}
|
|
4991
4991
|
|
|
4992
|
-
export function
|
|
4992
|
+
export function __wbindgen_closure_wrapper6193(arg0, arg1, arg2) {
|
|
4993
4993
|
const ret = makeMutClosure(arg0, arg1, 319, __wbg_adapter_60);
|
|
4994
4994
|
return addHeapObject(ret);
|
|
4995
4995
|
}
|
|
4996
4996
|
|
|
4997
|
-
export function
|
|
4997
|
+
export function __wbindgen_closure_wrapper6573(arg0, arg1, arg2) {
|
|
4998
4998
|
const ret = makeMutClosure(arg0, arg1, 342, __wbg_adapter_57);
|
|
4999
4999
|
return addHeapObject(ret);
|
|
5000
5000
|
}
|
|
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,
|