@bitwarden/sdk-internal 0.2.0-main.277 → 0.2.0-main.278
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 +7 -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 +1 -0
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +7 -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 +1 -0
- package/package.json +1 -1
package/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
03d02e6d01a1a81b151940b4e782b0f99a080f77
|
@@ -449,6 +449,13 @@ export type OrganizationId = Tagged<Uuid, "OrganizationId">;
|
|
449
449
|
*/
|
450
450
|
export type PasswordProtectedKeyEnvelope = Tagged<string, "PasswordProtectedKeyEnvelope">;
|
451
451
|
|
452
|
+
export interface MasterPasswordError extends Error {
|
453
|
+
name: "MasterPasswordError";
|
454
|
+
variant: "EncryptionKeyMalformed" | "KdfMalformed" | "MissingField";
|
455
|
+
}
|
456
|
+
|
457
|
+
export function isMasterPasswordError(error: any): error is MasterPasswordError;
|
458
|
+
|
452
459
|
export interface DeriveKeyConnectorError extends Error {
|
453
460
|
name: "DeriveKeyConnectorError";
|
454
461
|
variant: "WrongPassword" | "Crypto";
|
@@ -364,6 +364,19 @@ export function isCollectionDecryptError(error) {
|
|
364
364
|
}
|
365
365
|
}
|
366
366
|
|
367
|
+
/**
|
368
|
+
* @param {any} error
|
369
|
+
* @returns {boolean}
|
370
|
+
*/
|
371
|
+
export function isMasterPasswordError(error) {
|
372
|
+
try {
|
373
|
+
const ret = wasm.isMasterPasswordError(addBorrowedObject(error));
|
374
|
+
return ret !== 0;
|
375
|
+
} finally {
|
376
|
+
heap[stack_pointer++] = undefined;
|
377
|
+
}
|
378
|
+
}
|
379
|
+
|
367
380
|
/**
|
368
381
|
* @param {any} error
|
369
382
|
* @returns {boolean}
|
@@ -809,7 +822,7 @@ function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
809
822
|
);
|
810
823
|
}
|
811
824
|
|
812
|
-
function
|
825
|
+
function __wbg_adapter_327(arg0, arg1, arg2, arg3) {
|
813
826
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
|
814
827
|
arg0,
|
815
828
|
arg1,
|
@@ -3974,7 +3987,7 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
3974
3987
|
return ret;
|
3975
3988
|
}
|
3976
3989
|
|
3977
|
-
export function
|
3990
|
+
export function __wbg_get_5ba7fe45e71ba65c() {
|
3978
3991
|
return handleError(function (arg0, arg1, arg2) {
|
3979
3992
|
let deferred0_0;
|
3980
3993
|
let deferred0_1;
|
@@ -3996,7 +4009,12 @@ export function __wbg_get_67b2ba62fc30de12() {
|
|
3996
4009
|
}, arguments);
|
3997
4010
|
}
|
3998
4011
|
|
3999
|
-
export function
|
4012
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
4013
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
4014
|
+
return addHeapObject(ret);
|
4015
|
+
}
|
4016
|
+
|
4017
|
+
export function __wbg_get_df7e5d864ed1c406() {
|
4000
4018
|
return handleError(function (arg0, arg1, arg2) {
|
4001
4019
|
let deferred0_0;
|
4002
4020
|
let deferred0_1;
|
@@ -4011,12 +4029,7 @@ export function __wbg_get_96e6d3bbee08db28() {
|
|
4011
4029
|
}, arguments);
|
4012
4030
|
}
|
4013
4031
|
|
4014
|
-
export function
|
4015
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
4016
|
-
return addHeapObject(ret);
|
4017
|
-
}
|
4018
|
-
|
4019
|
-
export function __wbg_getaccesstoken_2e3ceda8e23b2f45(arg0) {
|
4032
|
+
export function __wbg_getaccesstoken_079c6825c84e2ed9(arg0) {
|
4020
4033
|
const ret = getObject(arg0).get_access_token();
|
4021
4034
|
return addHeapObject(ret);
|
4022
4035
|
}
|
@@ -4121,14 +4134,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
4121
4134
|
return ret;
|
4122
4135
|
}
|
4123
4136
|
|
4124
|
-
export function
|
4137
|
+
export function __wbg_list_20cbeecca69c3b14() {
|
4125
4138
|
return handleError(function (arg0) {
|
4126
4139
|
const ret = getObject(arg0).list();
|
4127
4140
|
return addHeapObject(ret);
|
4128
4141
|
}, arguments);
|
4129
4142
|
}
|
4130
4143
|
|
4131
|
-
export function
|
4144
|
+
export function __wbg_list_53faab1c4aa1b122() {
|
4132
4145
|
return handleError(function (arg0) {
|
4133
4146
|
const ret = getObject(arg0).list();
|
4134
4147
|
return addHeapObject(ret);
|
@@ -4163,7 +4176,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
4163
4176
|
const a = state0.a;
|
4164
4177
|
state0.a = 0;
|
4165
4178
|
try {
|
4166
|
-
return
|
4179
|
+
return __wbg_adapter_327(a, state0.b, arg0, arg1);
|
4167
4180
|
} finally {
|
4168
4181
|
state0.a = a;
|
4169
4182
|
}
|
@@ -4310,7 +4323,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
4310
4323
|
}, arguments);
|
4311
4324
|
}
|
4312
4325
|
|
4313
|
-
export function
|
4326
|
+
export function __wbg_remove_295d65307335485a() {
|
4314
4327
|
return handleError(function (arg0, arg1, arg2) {
|
4315
4328
|
let deferred0_0;
|
4316
4329
|
let deferred0_1;
|
@@ -4325,7 +4338,7 @@ export function __wbg_remove_c186bc3d34ae82cb() {
|
|
4325
4338
|
}, arguments);
|
4326
4339
|
}
|
4327
4340
|
|
4328
|
-
export function
|
4341
|
+
export function __wbg_remove_73171861626d963c() {
|
4329
4342
|
return handleError(function (arg0, arg1, arg2) {
|
4330
4343
|
let deferred0_0;
|
4331
4344
|
let deferred0_1;
|
@@ -4364,6 +4377,21 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
4364
4377
|
return addHeapObject(ret);
|
4365
4378
|
}
|
4366
4379
|
|
4380
|
+
export function __wbg_set_2d113a1bd16aab72() {
|
4381
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
4382
|
+
let deferred0_0;
|
4383
|
+
let deferred0_1;
|
4384
|
+
try {
|
4385
|
+
deferred0_0 = arg1;
|
4386
|
+
deferred0_1 = arg2;
|
4387
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
4388
|
+
return addHeapObject(ret);
|
4389
|
+
} finally {
|
4390
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
4391
|
+
}
|
4392
|
+
}, arguments);
|
4393
|
+
}
|
4394
|
+
|
4367
4395
|
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
4368
4396
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
4369
4397
|
}
|
@@ -4376,7 +4404,7 @@ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
4376
4404
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
4377
4405
|
}
|
4378
4406
|
|
4379
|
-
export function
|
4407
|
+
export function __wbg_set_7b858e538c6e10eb() {
|
4380
4408
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
4381
4409
|
let deferred0_0;
|
4382
4410
|
let deferred0_1;
|
@@ -4396,21 +4424,6 @@ export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
4396
4424
|
return addHeapObject(ret);
|
4397
4425
|
}
|
4398
4426
|
|
4399
|
-
export function __wbg_set_e1981082a2111fd6() {
|
4400
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
4401
|
-
let deferred0_0;
|
4402
|
-
let deferred0_1;
|
4403
|
-
try {
|
4404
|
-
deferred0_0 = arg1;
|
4405
|
-
deferred0_1 = arg2;
|
4406
|
-
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
4407
|
-
return addHeapObject(ret);
|
4408
|
-
} finally {
|
4409
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
4410
|
-
}
|
4411
|
-
}, arguments);
|
4412
|
-
}
|
4413
|
-
|
4414
4427
|
export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
4415
4428
|
getObject(arg0).body = getObject(arg1);
|
4416
4429
|
}
|
@@ -4599,17 +4612,17 @@ export function __wbindgen_cb_drop(arg0) {
|
|
4599
4612
|
return ret;
|
4600
4613
|
}
|
4601
4614
|
|
4602
|
-
export function
|
4615
|
+
export function __wbindgen_closure_wrapper3472(arg0, arg1, arg2) {
|
4603
4616
|
const ret = makeMutClosure(arg0, arg1, 278, __wbg_adapter_54);
|
4604
4617
|
return addHeapObject(ret);
|
4605
4618
|
}
|
4606
4619
|
|
4607
|
-
export function
|
4620
|
+
export function __wbindgen_closure_wrapper5838(arg0, arg1, arg2) {
|
4608
4621
|
const ret = makeMutClosure(arg0, arg1, 303, __wbg_adapter_54);
|
4609
4622
|
return addHeapObject(ret);
|
4610
4623
|
}
|
4611
4624
|
|
4612
|
-
export function
|
4625
|
+
export function __wbindgen_closure_wrapper6214(arg0, arg1, arg2) {
|
4613
4626
|
const ret = makeMutClosure(arg0, arg1, 328, __wbg_adapter_59);
|
4614
4627
|
return addHeapObject(ret);
|
4615
4628
|
}
|
Binary file
|
@@ -200,6 +200,7 @@ export const cryptoclient_unseal_password_protected_key_envelope: (
|
|
200
200
|
d: number,
|
201
201
|
e: number,
|
202
202
|
) => void;
|
203
|
+
export const isMasterPasswordError: (a: number) => number;
|
203
204
|
export const isDeriveKeyConnectorError: (a: number) => number;
|
204
205
|
export const isEnrollAdminPasswordResetError: (a: number) => number;
|
205
206
|
export const isCryptoClientError: (a: number) => number;
|