@bitwarden/sdk-internal 0.2.0-main.526 → 0.2.0-main.527
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 +59 -31
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +3 -2
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +7 -0
- package/node/bitwarden_wasm_internal.js +59 -31
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +2 -1
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7f4059e7f968e465e8961d2126d4562a3161cf1a
|
|
@@ -2441,6 +2441,13 @@ export class CiphersClient {
|
|
|
2441
2441
|
collection_ids: CollectionId[],
|
|
2442
2442
|
): Promise<Cipher[]>;
|
|
2443
2443
|
decrypt_list(ciphers: Cipher[]): CipherListView[];
|
|
2444
|
+
/**
|
|
2445
|
+
* Encrypt a list of cipher views.
|
|
2446
|
+
*
|
|
2447
|
+
* This method attempts to encrypt all ciphers in the list. If any cipher
|
|
2448
|
+
* fails to encrypt, the entire operation fails and an error is returned.
|
|
2449
|
+
*/
|
|
2450
|
+
encrypt_list(cipher_views: CipherView[]): EncryptionContext[];
|
|
2444
2451
|
move_to_organization(cipher_view: CipherView, organization_id: OrganizationId): CipherView;
|
|
2445
2452
|
/**
|
|
2446
2453
|
* Temporary method used to re-encrypt FIDO2 credentials for a cipher view.
|
|
@@ -1579,6 +1579,34 @@ export class CiphersClient {
|
|
|
1579
1579
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
|
+
/**
|
|
1583
|
+
* Encrypt a list of cipher views.
|
|
1584
|
+
*
|
|
1585
|
+
* This method attempts to encrypt all ciphers in the list. If any cipher
|
|
1586
|
+
* fails to encrypt, the entire operation fails and an error is returned.
|
|
1587
|
+
* @param {CipherView[]} cipher_views
|
|
1588
|
+
* @returns {EncryptionContext[]}
|
|
1589
|
+
*/
|
|
1590
|
+
encrypt_list(cipher_views) {
|
|
1591
|
+
try {
|
|
1592
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1593
|
+
const ptr0 = passArrayJsValueToWasm0(cipher_views, wasm.__wbindgen_malloc);
|
|
1594
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1595
|
+
wasm.ciphersclient_encrypt_list(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1596
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1597
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1598
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1599
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1600
|
+
if (r3) {
|
|
1601
|
+
throw takeObject(r2);
|
|
1602
|
+
}
|
|
1603
|
+
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1604
|
+
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
1605
|
+
return v2;
|
|
1606
|
+
} finally {
|
|
1607
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1582
1610
|
/**
|
|
1583
1611
|
* @param {CipherView} cipher_view
|
|
1584
1612
|
* @param {OrganizationId} organization_id
|
|
@@ -4940,7 +4968,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
|
|
|
4940
4968
|
return addHeapObject(ret);
|
|
4941
4969
|
}, arguments) };
|
|
4942
4970
|
|
|
4943
|
-
export function
|
|
4971
|
+
export function __wbg_cipher_e94b41946da95619(arg0) {
|
|
4944
4972
|
const ret = getObject(arg0).cipher;
|
|
4945
4973
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4946
4974
|
};
|
|
@@ -5027,7 +5055,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
5027
5055
|
return addHeapObject(ret);
|
|
5028
5056
|
};
|
|
5029
5057
|
|
|
5030
|
-
export function
|
|
5058
|
+
export function __wbg_folder_7cc716d9bb265b1f(arg0) {
|
|
5031
5059
|
const ret = getObject(arg0).folder;
|
|
5032
5060
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
5033
5061
|
};
|
|
@@ -5059,7 +5087,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
5059
5087
|
return ret;
|
|
5060
5088
|
};
|
|
5061
5089
|
|
|
5062
|
-
export function
|
|
5090
|
+
export function __wbg_get_0b30250d94987600() { return handleError(function (arg0, arg1, arg2) {
|
|
5063
5091
|
let deferred0_0;
|
|
5064
5092
|
let deferred0_1;
|
|
5065
5093
|
try {
|
|
@@ -5072,7 +5100,12 @@ export function __wbg_get_0b8fdf26487baa48() { return handleError(function (arg0
|
|
|
5072
5100
|
}
|
|
5073
5101
|
}, arguments) };
|
|
5074
5102
|
|
|
5075
|
-
export function
|
|
5103
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
5104
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5105
|
+
return addHeapObject(ret);
|
|
5106
|
+
};
|
|
5107
|
+
|
|
5108
|
+
export function __wbg_get_9afb6f1e4582c19d() { return handleError(function (arg0, arg1, arg2) {
|
|
5076
5109
|
let deferred0_0;
|
|
5077
5110
|
let deferred0_1;
|
|
5078
5111
|
try {
|
|
@@ -5085,12 +5118,7 @@ export function __wbg_get_772dc118366a750c() { return handleError(function (arg0
|
|
|
5085
5118
|
}
|
|
5086
5119
|
}, arguments) };
|
|
5087
5120
|
|
|
5088
|
-
export function
|
|
5089
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5090
|
-
return addHeapObject(ret);
|
|
5091
|
-
};
|
|
5092
|
-
|
|
5093
|
-
export function __wbg_get_access_token_ed8665f4feda38dd(arg0) {
|
|
5121
|
+
export function __wbg_get_access_token_25fc3c7ed0d95a5f(arg0) {
|
|
5094
5122
|
const ret = getObject(arg0).get_access_token();
|
|
5095
5123
|
return addHeapObject(ret);
|
|
5096
5124
|
};
|
|
@@ -5296,12 +5324,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
5296
5324
|
return ret;
|
|
5297
5325
|
};
|
|
5298
5326
|
|
|
5299
|
-
export function
|
|
5327
|
+
export function __wbg_list_c880f3568db706bd() { return handleError(function (arg0) {
|
|
5300
5328
|
const ret = getObject(arg0).list();
|
|
5301
5329
|
return addHeapObject(ret);
|
|
5302
5330
|
}, arguments) };
|
|
5303
5331
|
|
|
5304
|
-
export function
|
|
5332
|
+
export function __wbg_list_ed1ce5ff3be9e3bc() { return handleError(function (arg0) {
|
|
5305
5333
|
const ret = getObject(arg0).list();
|
|
5306
5334
|
return addHeapObject(ret);
|
|
5307
5335
|
}, arguments) };
|
|
@@ -5502,7 +5530,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
|
|
|
5502
5530
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
5503
5531
|
}, arguments) };
|
|
5504
5532
|
|
|
5505
|
-
export function
|
|
5533
|
+
export function __wbg_remove_a51dd510df9ae51d() { return handleError(function (arg0, arg1, arg2) {
|
|
5506
5534
|
let deferred0_0;
|
|
5507
5535
|
let deferred0_1;
|
|
5508
5536
|
try {
|
|
@@ -5515,7 +5543,7 @@ export function __wbg_remove_570db54b523676ce() { return handleError(function (a
|
|
|
5515
5543
|
}
|
|
5516
5544
|
}, arguments) };
|
|
5517
5545
|
|
|
5518
|
-
export function
|
|
5546
|
+
export function __wbg_remove_a5a3acfb413a9cec() { return handleError(function (arg0, arg1, arg2) {
|
|
5519
5547
|
let deferred0_0;
|
|
5520
5548
|
let deferred0_1;
|
|
5521
5549
|
try {
|
|
@@ -5566,7 +5594,11 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
5566
5594
|
return addHeapObject(ret);
|
|
5567
5595
|
};
|
|
5568
5596
|
|
|
5569
|
-
export function
|
|
5597
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
5598
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5599
|
+
};
|
|
5600
|
+
|
|
5601
|
+
export function __wbg_set_6e1a46fb1b4fbfbf() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5570
5602
|
let deferred0_0;
|
|
5571
5603
|
let deferred0_1;
|
|
5572
5604
|
try {
|
|
@@ -5579,16 +5611,7 @@ export function __wbg_set_13decb01eef0e5d0() { return handleError(function (arg0
|
|
|
5579
5611
|
}
|
|
5580
5612
|
}, arguments) };
|
|
5581
5613
|
|
|
5582
|
-
export function
|
|
5583
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5584
|
-
};
|
|
5585
|
-
|
|
5586
|
-
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5587
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5588
|
-
return addHeapObject(ret);
|
|
5589
|
-
};
|
|
5590
|
-
|
|
5591
|
-
export function __wbg_set_a1a56c83262488d5() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5614
|
+
export function __wbg_set_8a313f41247925b3() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5592
5615
|
let deferred0_0;
|
|
5593
5616
|
let deferred0_1;
|
|
5594
5617
|
try {
|
|
@@ -5601,6 +5624,11 @@ export function __wbg_set_a1a56c83262488d5() { return handleError(function (arg0
|
|
|
5601
5624
|
}
|
|
5602
5625
|
}, arguments) };
|
|
5603
5626
|
|
|
5627
|
+
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5628
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5629
|
+
return addHeapObject(ret);
|
|
5630
|
+
};
|
|
5631
|
+
|
|
5604
5632
|
export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
|
|
5605
5633
|
getObject(arg0).body = getObject(arg1);
|
|
5606
5634
|
};
|
|
@@ -5830,6 +5858,12 @@ export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
|
5830
5858
|
return addHeapObject(ret);
|
|
5831
5859
|
};
|
|
5832
5860
|
|
|
5861
|
+
export function __wbindgen_cast_9f8dcc40cab50f4b(arg0, arg1) {
|
|
5862
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 595, function: Function { arguments: [], shim_idx: 333, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5863
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h666c8569a46b7e11, wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d);
|
|
5864
|
+
return addHeapObject(ret);
|
|
5865
|
+
};
|
|
5866
|
+
|
|
5833
5867
|
export function __wbindgen_cast_a2a1216eb14e5e30(arg0, arg1) {
|
|
5834
5868
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 332, function: Function { arguments: [], shim_idx: 333, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5835
5869
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d);
|
|
@@ -5854,12 +5888,6 @@ export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
|
5854
5888
|
return addHeapObject(ret);
|
|
5855
5889
|
};
|
|
5856
5890
|
|
|
5857
|
-
export function __wbindgen_cast_eac78313dde2d091(arg0, arg1) {
|
|
5858
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 589, function: Function { arguments: [], shim_idx: 333, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5859
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h666c8569a46b7e11, wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d);
|
|
5860
|
-
return addHeapObject(ret);
|
|
5861
|
-
};
|
|
5862
|
-
|
|
5863
5891
|
export function __wbindgen_cast_ef90a087adb7475d(arg0, arg1) {
|
|
5864
5892
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5865
5893
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
Binary file
|
|
@@ -422,6 +422,7 @@ export const ciphersclient_encrypt_cipher_for_rotation: (
|
|
|
422
422
|
c: number,
|
|
423
423
|
d: number,
|
|
424
424
|
) => void;
|
|
425
|
+
export const ciphersclient_encrypt_list: (a: number, b: number, c: number, d: number) => void;
|
|
425
426
|
export const ciphersclient_get: (a: number, b: number, c: number) => number;
|
|
426
427
|
export const ciphersclient_list: (a: number) => number;
|
|
427
428
|
export const ciphersclient_move_to_organization: (
|
|
@@ -543,15 +544,15 @@ export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
|
543
544
|
a: number,
|
|
544
545
|
b: number,
|
|
545
546
|
) => void;
|
|
547
|
+
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
546
548
|
export const wasm_bindgen__closure__destroy__h34c685b2e12a24bd: (a: number, b: number) => void;
|
|
549
|
+
export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
|
|
547
550
|
export const wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db: (
|
|
548
551
|
a: number,
|
|
549
552
|
b: number,
|
|
550
553
|
c: number,
|
|
551
554
|
d: number,
|
|
552
555
|
) => void;
|
|
553
|
-
export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
|
|
554
|
-
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
555
556
|
export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
|
|
556
557
|
a: number,
|
|
557
558
|
b: number,
|