@bitwarden/commercial-sdk-internal 0.2.0-main.359 → 0.2.0-main.361
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 +3 -9
- package/bitwarden_wasm_internal_bg.js +36 -33
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +1 -0
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +3 -9
- package/node/bitwarden_wasm_internal.js +36 -33
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +1 -0
- package/package.json +1 -1
|
@@ -631,11 +631,6 @@ export type UserId = Tagged<Uuid, "UserId">;
|
|
|
631
631
|
*/
|
|
632
632
|
export type OrganizationId = Tagged<Uuid, "OrganizationId">;
|
|
633
633
|
|
|
634
|
-
/**
|
|
635
|
-
* A non-generic wrapper around `bitwarden-crypto`\'s `PasswordProtectedKeyEnvelope`.
|
|
636
|
-
*/
|
|
637
|
-
export type PasswordProtectedKeyEnvelope = Tagged<string, "PasswordProtectedKeyEnvelope">;
|
|
638
|
-
|
|
639
634
|
export interface MasterPasswordError extends Error {
|
|
640
635
|
name: "MasterPasswordError";
|
|
641
636
|
variant:
|
|
@@ -766,6 +761,8 @@ export type EncString = Tagged<string, "EncString">;
|
|
|
766
761
|
|
|
767
762
|
export type SignedPublicKey = Tagged<string, "SignedPublicKey">;
|
|
768
763
|
|
|
764
|
+
export type PasswordProtectedKeyEnvelope = Tagged<string, "PasswordProtectedKeyEnvelope">;
|
|
765
|
+
|
|
769
766
|
/**
|
|
770
767
|
* The type of key / signature scheme used for signing and verifying.
|
|
771
768
|
*/
|
|
@@ -1917,10 +1914,7 @@ export class CryptoClient {
|
|
|
1917
1914
|
* Decrypts a `PasswordProtectedKeyEnvelope`, returning the user key, if successful.
|
|
1918
1915
|
* This is a stop-gap solution, until initialization of the SDK is used.
|
|
1919
1916
|
*/
|
|
1920
|
-
unseal_password_protected_key_envelope(
|
|
1921
|
-
pin: string,
|
|
1922
|
-
envelope: PasswordProtectedKeyEnvelope,
|
|
1923
|
-
): Uint8Array;
|
|
1917
|
+
unseal_password_protected_key_envelope(pin: string, envelope: string): Uint8Array;
|
|
1924
1918
|
}
|
|
1925
1919
|
export class ExporterClient {
|
|
1926
1920
|
private constructor();
|
|
@@ -2089,7 +2089,7 @@ export class CryptoClient {
|
|
|
2089
2089
|
* Decrypts a `PasswordProtectedKeyEnvelope`, returning the user key, if successful.
|
|
2090
2090
|
* This is a stop-gap solution, until initialization of the SDK is used.
|
|
2091
2091
|
* @param {string} pin
|
|
2092
|
-
* @param {
|
|
2092
|
+
* @param {string} envelope
|
|
2093
2093
|
* @returns {Uint8Array}
|
|
2094
2094
|
*/
|
|
2095
2095
|
unseal_password_protected_key_envelope(pin, envelope) {
|
|
@@ -2097,12 +2097,15 @@ export class CryptoClient {
|
|
|
2097
2097
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2098
2098
|
const ptr0 = passStringToWasm0(pin, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2099
2099
|
const len0 = WASM_VECTOR_LEN;
|
|
2100
|
+
const ptr1 = passStringToWasm0(envelope, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2101
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2100
2102
|
wasm.cryptoclient_unseal_password_protected_key_envelope(
|
|
2101
2103
|
retptr,
|
|
2102
2104
|
this.__wbg_ptr,
|
|
2103
2105
|
ptr0,
|
|
2104
2106
|
len0,
|
|
2105
|
-
|
|
2107
|
+
ptr1,
|
|
2108
|
+
len1,
|
|
2106
2109
|
);
|
|
2107
2110
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2108
2111
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
@@ -2111,9 +2114,9 @@ export class CryptoClient {
|
|
|
2111
2114
|
if (r3) {
|
|
2112
2115
|
throw takeObject(r2);
|
|
2113
2116
|
}
|
|
2114
|
-
var
|
|
2117
|
+
var v3 = getArrayU8FromWasm0(r0, r1).slice();
|
|
2115
2118
|
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
2116
|
-
return
|
|
2119
|
+
return v3;
|
|
2117
2120
|
} finally {
|
|
2118
2121
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2119
2122
|
}
|
|
@@ -4176,7 +4179,7 @@ export function __wbg_call_7cccdd69e0791ae2() {
|
|
|
4176
4179
|
}, arguments);
|
|
4177
4180
|
}
|
|
4178
4181
|
|
|
4179
|
-
export function
|
|
4182
|
+
export function __wbg_cipher_8d57d546ebd28feb(arg0) {
|
|
4180
4183
|
const ret = getObject(arg0).cipher;
|
|
4181
4184
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4182
4185
|
}
|
|
@@ -4256,7 +4259,7 @@ export function __wbg_fetch_509096533071c657(arg0, arg1) {
|
|
|
4256
4259
|
return addHeapObject(ret);
|
|
4257
4260
|
}
|
|
4258
4261
|
|
|
4259
|
-
export function
|
|
4262
|
+
export function __wbg_folder_e7b703a9574b8633(arg0) {
|
|
4260
4263
|
const ret = getObject(arg0).folder;
|
|
4261
4264
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4262
4265
|
}
|
|
@@ -4278,7 +4281,7 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
|
4278
4281
|
return ret;
|
|
4279
4282
|
}
|
|
4280
4283
|
|
|
4281
|
-
export function
|
|
4284
|
+
export function __wbg_get_0fe8cec0c515874b() {
|
|
4282
4285
|
return handleError(function (arg0, arg1, arg2) {
|
|
4283
4286
|
let deferred0_0;
|
|
4284
4287
|
let deferred0_1;
|
|
@@ -4293,7 +4296,14 @@ export function __wbg_get_08b222c47354f6cc() {
|
|
|
4293
4296
|
}, arguments);
|
|
4294
4297
|
}
|
|
4295
4298
|
|
|
4296
|
-
export function
|
|
4299
|
+
export function __wbg_get_67b2ba62fc30de12() {
|
|
4300
|
+
return handleError(function (arg0, arg1) {
|
|
4301
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4302
|
+
return addHeapObject(ret);
|
|
4303
|
+
}, arguments);
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
export function __wbg_get_68689cff5a27a4e3() {
|
|
4297
4307
|
return handleError(function (arg0, arg1, arg2) {
|
|
4298
4308
|
let deferred0_0;
|
|
4299
4309
|
let deferred0_1;
|
|
@@ -4308,19 +4318,12 @@ export function __wbg_get_42fd8e993ca0b577() {
|
|
|
4308
4318
|
}, arguments);
|
|
4309
4319
|
}
|
|
4310
4320
|
|
|
4311
|
-
export function __wbg_get_67b2ba62fc30de12() {
|
|
4312
|
-
return handleError(function (arg0, arg1) {
|
|
4313
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4314
|
-
return addHeapObject(ret);
|
|
4315
|
-
}, arguments);
|
|
4316
|
-
}
|
|
4317
|
-
|
|
4318
4321
|
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
4319
4322
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4320
4323
|
return addHeapObject(ret);
|
|
4321
4324
|
}
|
|
4322
4325
|
|
|
4323
|
-
export function
|
|
4326
|
+
export function __wbg_getaccesstoken_e19adb10f028d797(arg0) {
|
|
4324
4327
|
const ret = getObject(arg0).get_access_token();
|
|
4325
4328
|
return addHeapObject(ret);
|
|
4326
4329
|
}
|
|
@@ -4505,14 +4508,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
|
4505
4508
|
return ret;
|
|
4506
4509
|
}
|
|
4507
4510
|
|
|
4508
|
-
export function
|
|
4511
|
+
export function __wbg_list_4d7ad3b099048858() {
|
|
4509
4512
|
return handleError(function (arg0) {
|
|
4510
4513
|
const ret = getObject(arg0).list();
|
|
4511
4514
|
return addHeapObject(ret);
|
|
4512
4515
|
}, arguments);
|
|
4513
4516
|
}
|
|
4514
4517
|
|
|
4515
|
-
export function
|
|
4518
|
+
export function __wbg_list_58b48f9ba5ad52dc() {
|
|
4516
4519
|
return handleError(function (arg0) {
|
|
4517
4520
|
const ret = getObject(arg0).list();
|
|
4518
4521
|
return addHeapObject(ret);
|
|
@@ -4713,7 +4716,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
4713
4716
|
}, arguments);
|
|
4714
4717
|
}
|
|
4715
4718
|
|
|
4716
|
-
export function
|
|
4719
|
+
export function __wbg_remove_3537743f8f56af1c() {
|
|
4717
4720
|
return handleError(function (arg0, arg1, arg2) {
|
|
4718
4721
|
let deferred0_0;
|
|
4719
4722
|
let deferred0_1;
|
|
@@ -4728,7 +4731,7 @@ export function __wbg_remove_5b5878c32f6e33db() {
|
|
|
4728
4731
|
}, arguments);
|
|
4729
4732
|
}
|
|
4730
4733
|
|
|
4731
|
-
export function
|
|
4734
|
+
export function __wbg_remove_588e522225864fee() {
|
|
4732
4735
|
return handleError(function (arg0, arg1, arg2) {
|
|
4733
4736
|
let deferred0_0;
|
|
4734
4737
|
let deferred0_1;
|
|
@@ -4774,7 +4777,15 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
4774
4777
|
return addHeapObject(ret);
|
|
4775
4778
|
}
|
|
4776
4779
|
|
|
4777
|
-
export function
|
|
4780
|
+
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
4781
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
4782
|
+
}
|
|
4783
|
+
|
|
4784
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
4785
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4786
|
+
}
|
|
4787
|
+
|
|
4788
|
+
export function __wbg_set_5d5d2f6723f9ec70() {
|
|
4778
4789
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4779
4790
|
let deferred0_0;
|
|
4780
4791
|
let deferred0_1;
|
|
@@ -4789,14 +4800,6 @@ export function __wbg_set_2fc2b892c7b6fa35() {
|
|
|
4789
4800
|
}, arguments);
|
|
4790
4801
|
}
|
|
4791
4802
|
|
|
4792
|
-
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
4793
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
4794
|
-
}
|
|
4795
|
-
|
|
4796
|
-
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
4797
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4798
|
-
}
|
|
4799
|
-
|
|
4800
4803
|
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
4801
4804
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4802
4805
|
}
|
|
@@ -4806,7 +4809,7 @@ export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
|
4806
4809
|
return addHeapObject(ret);
|
|
4807
4810
|
}
|
|
4808
4811
|
|
|
4809
|
-
export function
|
|
4812
|
+
export function __wbg_set_d3e2a357bd7efe01() {
|
|
4810
4813
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4811
4814
|
let deferred0_0;
|
|
4812
4815
|
let deferred0_1;
|
|
@@ -5041,17 +5044,17 @@ export function __wbindgen_closure_wrapper195(arg0, arg1, arg2) {
|
|
|
5041
5044
|
return addHeapObject(ret);
|
|
5042
5045
|
}
|
|
5043
5046
|
|
|
5044
|
-
export function
|
|
5047
|
+
export function __wbindgen_closure_wrapper3927(arg0, arg1, arg2) {
|
|
5045
5048
|
const ret = makeMutClosure(arg0, arg1, 299, __wbg_adapter_60);
|
|
5046
5049
|
return addHeapObject(ret);
|
|
5047
5050
|
}
|
|
5048
5051
|
|
|
5049
|
-
export function
|
|
5052
|
+
export function __wbindgen_closure_wrapper6411(arg0, arg1, arg2) {
|
|
5050
5053
|
const ret = makeMutClosure(arg0, arg1, 325, __wbg_adapter_60);
|
|
5051
5054
|
return addHeapObject(ret);
|
|
5052
5055
|
}
|
|
5053
5056
|
|
|
5054
|
-
export function
|
|
5057
|
+
export function __wbindgen_closure_wrapper6791(arg0, arg1, arg2) {
|
|
5055
5058
|
const ret = makeMutClosure(arg0, arg1, 348, __wbg_adapter_57);
|
|
5056
5059
|
return addHeapObject(ret);
|
|
5057
5060
|
}
|
|
Binary file
|
|
@@ -213,6 +213,7 @@ export const cryptoclient_unseal_password_protected_key_envelope: (
|
|
|
213
213
|
c: number,
|
|
214
214
|
d: number,
|
|
215
215
|
e: number,
|
|
216
|
+
f: number,
|
|
216
217
|
) => void;
|
|
217
218
|
export const isMasterPasswordError: (a: number) => number;
|
|
218
219
|
export const isDeriveKeyConnectorError: (a: number) => number;
|