@bitwarden/sdk-internal 0.2.0-main.221 → 0.2.0-main.222
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 +23 -0
- package/bitwarden_wasm_internal_bg.js +41 -29
- 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 +23 -0
- package/node/bitwarden_wasm_internal.js +41 -29
- 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
|
+
8423a4c2715db0624cc6a6886046212d9cc73a9f
|
|
@@ -835,6 +835,24 @@ export interface CipherListView {
|
|
|
835
835
|
localData: LocalDataView | undefined;
|
|
836
836
|
}
|
|
837
837
|
|
|
838
|
+
/**
|
|
839
|
+
* Represents the result of decrypting a list of ciphers.
|
|
840
|
+
*
|
|
841
|
+
* This struct contains two vectors: `successes` and `failures`.
|
|
842
|
+
* `successes` contains the decrypted `CipherListView` objects,
|
|
843
|
+
* while `failures` contains the original `Cipher` objects that failed to decrypt.
|
|
844
|
+
*/
|
|
845
|
+
export interface DecryptCipherListResult {
|
|
846
|
+
/**
|
|
847
|
+
* The decrypted `CipherListView` objects.
|
|
848
|
+
*/
|
|
849
|
+
successes: CipherListView[];
|
|
850
|
+
/**
|
|
851
|
+
* The original `Cipher` objects that failed to decrypt.
|
|
852
|
+
*/
|
|
853
|
+
failures: Cipher[];
|
|
854
|
+
}
|
|
855
|
+
|
|
838
856
|
export interface Field {
|
|
839
857
|
name: EncString | undefined;
|
|
840
858
|
value: EncString | undefined;
|
|
@@ -1262,6 +1280,11 @@ export class CiphersClient {
|
|
|
1262
1280
|
encrypt(cipher_view: CipherView): EncryptionContext;
|
|
1263
1281
|
decrypt(cipher: Cipher): CipherView;
|
|
1264
1282
|
decrypt_list(ciphers: Cipher[]): CipherListView[];
|
|
1283
|
+
/**
|
|
1284
|
+
* Decrypt cipher list with failures
|
|
1285
|
+
* Returns both successfully decrypted ciphers and any that failed to decrypt
|
|
1286
|
+
*/
|
|
1287
|
+
decrypt_list_with_failures(ciphers: Cipher[]): DecryptCipherListResult;
|
|
1265
1288
|
decrypt_fido2_credentials(cipher_view: CipherView): Fido2CredentialView[];
|
|
1266
1289
|
move_to_organization(cipher_view: CipherView, organization_id: OrganizationId): CipherView;
|
|
1267
1290
|
decrypt_fido2_private_key(cipher_view: CipherView): string;
|
|
@@ -753,7 +753,7 @@ function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
|
753
753
|
);
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
-
function
|
|
756
|
+
function __wbg_adapter_278(arg0, arg1, arg2, arg3) {
|
|
757
757
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h8776500d04a3e634(
|
|
758
758
|
arg0,
|
|
759
759
|
arg1,
|
|
@@ -1199,6 +1199,18 @@ export class CiphersClient {
|
|
|
1199
1199
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
|
+
/**
|
|
1203
|
+
* Decrypt cipher list with failures
|
|
1204
|
+
* Returns both successfully decrypted ciphers and any that failed to decrypt
|
|
1205
|
+
* @param {Cipher[]} ciphers
|
|
1206
|
+
* @returns {DecryptCipherListResult}
|
|
1207
|
+
*/
|
|
1208
|
+
decrypt_list_with_failures(ciphers) {
|
|
1209
|
+
const ptr0 = passArrayJsValueToWasm0(ciphers, wasm.__wbindgen_malloc);
|
|
1210
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1211
|
+
const ret = wasm.ciphersclient_decrypt_list_with_failures(this.__wbg_ptr, ptr0, len0);
|
|
1212
|
+
return takeObject(ret);
|
|
1213
|
+
}
|
|
1202
1214
|
/**
|
|
1203
1215
|
* @param {CipherView} cipher_view
|
|
1204
1216
|
* @returns {Fido2CredentialView[]}
|
|
@@ -3335,19 +3347,7 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
|
3335
3347
|
return ret;
|
|
3336
3348
|
}
|
|
3337
3349
|
|
|
3338
|
-
export function
|
|
3339
|
-
return handleError(function (arg0, arg1) {
|
|
3340
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
3341
|
-
return addHeapObject(ret);
|
|
3342
|
-
}, arguments);
|
|
3343
|
-
}
|
|
3344
|
-
|
|
3345
|
-
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
3346
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
3347
|
-
return addHeapObject(ret);
|
|
3348
|
-
}
|
|
3349
|
-
|
|
3350
|
-
export function __wbg_get_d74b07b1ba78be21() {
|
|
3350
|
+
export function __wbg_get_19ade86a11be7465() {
|
|
3351
3351
|
return handleError(function (arg0, arg1, arg2) {
|
|
3352
3352
|
let deferred0_0;
|
|
3353
3353
|
let deferred0_1;
|
|
@@ -3362,7 +3362,19 @@ export function __wbg_get_d74b07b1ba78be21() {
|
|
|
3362
3362
|
}, arguments);
|
|
3363
3363
|
}
|
|
3364
3364
|
|
|
3365
|
-
export function
|
|
3365
|
+
export function __wbg_get_67b2ba62fc30de12() {
|
|
3366
|
+
return handleError(function (arg0, arg1) {
|
|
3367
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
3368
|
+
return addHeapObject(ret);
|
|
3369
|
+
}, arguments);
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
3373
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
3374
|
+
return addHeapObject(ret);
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3377
|
+
export function __wbg_getaccesstoken_6f28f7da38d99e02(arg0) {
|
|
3366
3378
|
const ret = getObject(arg0).get_access_token();
|
|
3367
3379
|
return addHeapObject(ret);
|
|
3368
3380
|
}
|
|
@@ -3467,7 +3479,7 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
|
3467
3479
|
return ret;
|
|
3468
3480
|
}
|
|
3469
3481
|
|
|
3470
|
-
export function
|
|
3482
|
+
export function __wbg_list_405a6847e8a91187() {
|
|
3471
3483
|
return handleError(function (arg0) {
|
|
3472
3484
|
const ret = getObject(arg0).list();
|
|
3473
3485
|
return addHeapObject(ret);
|
|
@@ -3502,7 +3514,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
3502
3514
|
const a = state0.a;
|
|
3503
3515
|
state0.a = 0;
|
|
3504
3516
|
try {
|
|
3505
|
-
return
|
|
3517
|
+
return __wbg_adapter_278(a, state0.b, arg0, arg1);
|
|
3506
3518
|
} finally {
|
|
3507
3519
|
state0.a = a;
|
|
3508
3520
|
}
|
|
@@ -3644,7 +3656,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
3644
3656
|
}, arguments);
|
|
3645
3657
|
}
|
|
3646
3658
|
|
|
3647
|
-
export function
|
|
3659
|
+
export function __wbg_remove_bb17db1971104c99() {
|
|
3648
3660
|
return handleError(function (arg0, arg1, arg2) {
|
|
3649
3661
|
let deferred0_0;
|
|
3650
3662
|
let deferred0_1;
|
|
@@ -3691,7 +3703,11 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
|
3691
3703
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
3692
3704
|
}
|
|
3693
3705
|
|
|
3694
|
-
export function
|
|
3706
|
+
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
3707
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
export function __wbg_set_ff21587e2212f1ae() {
|
|
3695
3711
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3696
3712
|
let deferred0_0;
|
|
3697
3713
|
let deferred0_1;
|
|
@@ -3706,10 +3722,6 @@ export function __wbg_set_616a519deee0d894() {
|
|
|
3706
3722
|
}, arguments);
|
|
3707
3723
|
}
|
|
3708
3724
|
|
|
3709
|
-
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
3710
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3711
|
-
}
|
|
3712
|
-
|
|
3713
3725
|
export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
|
3714
3726
|
getObject(arg0).body = getObject(arg1);
|
|
3715
3727
|
}
|
|
@@ -3889,18 +3901,18 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
3889
3901
|
return ret;
|
|
3890
3902
|
}
|
|
3891
3903
|
|
|
3892
|
-
export function
|
|
3893
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3904
|
+
export function __wbindgen_closure_wrapper2905(arg0, arg1, arg2) {
|
|
3905
|
+
const ret = makeMutClosure(arg0, arg1, 919, __wbg_adapter_50);
|
|
3894
3906
|
return addHeapObject(ret);
|
|
3895
3907
|
}
|
|
3896
3908
|
|
|
3897
|
-
export function
|
|
3898
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3909
|
+
export function __wbindgen_closure_wrapper3745(arg0, arg1, arg2) {
|
|
3910
|
+
const ret = makeMutClosure(arg0, arg1, 1003, __wbg_adapter_53);
|
|
3899
3911
|
return addHeapObject(ret);
|
|
3900
3912
|
}
|
|
3901
3913
|
|
|
3902
|
-
export function
|
|
3903
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3914
|
+
export function __wbindgen_closure_wrapper4163(arg0, arg1, arg2) {
|
|
3915
|
+
const ret = makeMutClosure(arg0, arg1, 1126, __wbg_adapter_56);
|
|
3904
3916
|
return addHeapObject(ret);
|
|
3905
3917
|
}
|
|
3906
3918
|
|
|
Binary file
|
|
@@ -120,6 +120,7 @@ export const attachmentsclient_decrypt_buffer: (
|
|
|
120
120
|
export const ciphersclient_encrypt: (a: number, b: number, c: number) => void;
|
|
121
121
|
export const ciphersclient_decrypt: (a: number, b: number, c: number) => void;
|
|
122
122
|
export const ciphersclient_decrypt_list: (a: number, b: number, c: number, d: number) => void;
|
|
123
|
+
export const ciphersclient_decrypt_list_with_failures: (a: number, b: number, c: number) => number;
|
|
123
124
|
export const ciphersclient_decrypt_fido2_credentials: (a: number, b: number, c: number) => void;
|
|
124
125
|
export const ciphersclient_move_to_organization: (
|
|
125
126
|
a: number,
|