@bitwarden/commercial-sdk-internal 0.2.0-main.421 → 0.2.0-main.422
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 +28 -1
- package/bitwarden_wasm_internal_bg.js +36 -36
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +1 -1
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +28 -1
- package/node/bitwarden_wasm_internal.js +40 -40
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +4 -4
- package/package.json +1 -1
|
@@ -792,6 +792,33 @@ export type EncString = Tagged<string, "EncString">;
|
|
|
792
792
|
|
|
793
793
|
export type SignedPublicKey = Tagged<string, "SignedPublicKey">;
|
|
794
794
|
|
|
795
|
+
/**
|
|
796
|
+
* A set of keys where a given `DownstreamKey` is protected by an encrypted public/private
|
|
797
|
+
* key-pair. The `DownstreamKey` is used to encrypt/decrypt data, while the public/private key-pair
|
|
798
|
+
* is used to rotate the `DownstreamKey`.
|
|
799
|
+
*
|
|
800
|
+
* The `PrivateKey` is protected by an `UpstreamKey`, such as a `DeviceKey`, or `PrfKey`,
|
|
801
|
+
* and the `PublicKey` is protected by the `DownstreamKey`. This setup allows:
|
|
802
|
+
*
|
|
803
|
+
* - Access to `DownstreamKey` by knowing the `UpstreamKey`
|
|
804
|
+
* - Rotation to a `NewDownstreamKey` by knowing the current `DownstreamKey`, without needing
|
|
805
|
+
* access to the `UpstreamKey`
|
|
806
|
+
*/
|
|
807
|
+
export interface RotateableKeySet {
|
|
808
|
+
/**
|
|
809
|
+
* `DownstreamKey` protected by encapsulation key
|
|
810
|
+
*/
|
|
811
|
+
encapsulatedDownstreamKey: UnsignedSharedKey;
|
|
812
|
+
/**
|
|
813
|
+
* Encapsulation key protected by `DownstreamKey`
|
|
814
|
+
*/
|
|
815
|
+
encryptedEncapsulationKey: EncString;
|
|
816
|
+
/**
|
|
817
|
+
* Decapsulation key protected by `UpstreamKey`
|
|
818
|
+
*/
|
|
819
|
+
encryptedDecapsulationKey: EncString;
|
|
820
|
+
}
|
|
821
|
+
|
|
795
822
|
/**
|
|
796
823
|
* Key Derivation Function for Bitwarden Account
|
|
797
824
|
*
|
|
@@ -1281,7 +1308,7 @@ export interface SecureNoteView {
|
|
|
1281
1308
|
|
|
1282
1309
|
export interface GetCipherError extends Error {
|
|
1283
1310
|
name: "GetCipherError";
|
|
1284
|
-
variant: "ItemNotFound" | "Crypto" | "
|
|
1311
|
+
variant: "ItemNotFound" | "Crypto" | "Repository";
|
|
1285
1312
|
}
|
|
1286
1313
|
|
|
1287
1314
|
export function isGetCipherError(error: any): error is GetCipherError;
|
|
@@ -4681,7 +4681,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
|
|
|
4681
4681
|
}, arguments);
|
|
4682
4682
|
}
|
|
4683
4683
|
|
|
4684
|
-
export function
|
|
4684
|
+
export function __wbg_cipher_f2e574d68952d395(arg0) {
|
|
4685
4685
|
const ret = getObject(arg0).cipher;
|
|
4686
4686
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4687
4687
|
}
|
|
@@ -4774,7 +4774,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
4774
4774
|
return addHeapObject(ret);
|
|
4775
4775
|
}
|
|
4776
4776
|
|
|
4777
|
-
export function
|
|
4777
|
+
export function __wbg_folder_0d97489c28d80f2c(arg0) {
|
|
4778
4778
|
const ret = getObject(arg0).folder;
|
|
4779
4779
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4780
4780
|
}
|
|
@@ -4807,12 +4807,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
4807
4807
|
return ret;
|
|
4808
4808
|
}
|
|
4809
4809
|
|
|
4810
|
-
export function
|
|
4811
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4812
|
-
return addHeapObject(ret);
|
|
4813
|
-
}
|
|
4814
|
-
|
|
4815
|
-
export function __wbg_get_906612b83779a7a5() {
|
|
4810
|
+
export function __wbg_get_38a0d33f5d8fe3e6() {
|
|
4816
4811
|
return handleError(function (arg0, arg1, arg2) {
|
|
4817
4812
|
let deferred0_0;
|
|
4818
4813
|
let deferred0_1;
|
|
@@ -4827,19 +4822,7 @@ export function __wbg_get_906612b83779a7a5() {
|
|
|
4827
4822
|
}, arguments);
|
|
4828
4823
|
}
|
|
4829
4824
|
|
|
4830
|
-
export function
|
|
4831
|
-
const ret = getObject(arg0).get_access_token();
|
|
4832
|
-
return addHeapObject(ret);
|
|
4833
|
-
}
|
|
4834
|
-
|
|
4835
|
-
export function __wbg_get_efcb449f58ec27c2() {
|
|
4836
|
-
return handleError(function (arg0, arg1) {
|
|
4837
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4838
|
-
return addHeapObject(ret);
|
|
4839
|
-
}, arguments);
|
|
4840
|
-
}
|
|
4841
|
-
|
|
4842
|
-
export function __wbg_get_f2b4178b803b7230() {
|
|
4825
|
+
export function __wbg_get_63331cddb3c81318() {
|
|
4843
4826
|
return handleError(function (arg0, arg1, arg2) {
|
|
4844
4827
|
let deferred0_0;
|
|
4845
4828
|
let deferred0_1;
|
|
@@ -4854,6 +4837,23 @@ export function __wbg_get_f2b4178b803b7230() {
|
|
|
4854
4837
|
}, arguments);
|
|
4855
4838
|
}
|
|
4856
4839
|
|
|
4840
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
4841
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4842
|
+
return addHeapObject(ret);
|
|
4843
|
+
}
|
|
4844
|
+
|
|
4845
|
+
export function __wbg_get_access_token_ff492ff9ec7db859(arg0) {
|
|
4846
|
+
const ret = getObject(arg0).get_access_token();
|
|
4847
|
+
return addHeapObject(ret);
|
|
4848
|
+
}
|
|
4849
|
+
|
|
4850
|
+
export function __wbg_get_efcb449f58ec27c2() {
|
|
4851
|
+
return handleError(function (arg0, arg1) {
|
|
4852
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4853
|
+
return addHeapObject(ret);
|
|
4854
|
+
}, arguments);
|
|
4855
|
+
}
|
|
4856
|
+
|
|
4857
4857
|
export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
|
|
4858
4858
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
4859
4859
|
return addHeapObject(ret);
|
|
@@ -5038,14 +5038,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
5038
5038
|
return ret;
|
|
5039
5039
|
}
|
|
5040
5040
|
|
|
5041
|
-
export function
|
|
5041
|
+
export function __wbg_list_5785128899ac45b8() {
|
|
5042
5042
|
return handleError(function (arg0) {
|
|
5043
5043
|
const ret = getObject(arg0).list();
|
|
5044
5044
|
return addHeapObject(ret);
|
|
5045
5045
|
}, arguments);
|
|
5046
5046
|
}
|
|
5047
5047
|
|
|
5048
|
-
export function
|
|
5048
|
+
export function __wbg_list_81ad0e6d7a86f793() {
|
|
5049
5049
|
return handleError(function (arg0) {
|
|
5050
5050
|
const ret = getObject(arg0).list();
|
|
5051
5051
|
return addHeapObject(ret);
|
|
@@ -5289,7 +5289,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
5289
5289
|
}, arguments);
|
|
5290
5290
|
}
|
|
5291
5291
|
|
|
5292
|
-
export function
|
|
5292
|
+
export function __wbg_remove_177b181db8985dde() {
|
|
5293
5293
|
return handleError(function (arg0, arg1, arg2) {
|
|
5294
5294
|
let deferred0_0;
|
|
5295
5295
|
let deferred0_1;
|
|
@@ -5304,7 +5304,7 @@ export function __wbg_remove_4bd5c377165db91f() {
|
|
|
5304
5304
|
}, arguments);
|
|
5305
5305
|
}
|
|
5306
5306
|
|
|
5307
|
-
export function
|
|
5307
|
+
export function __wbg_remove_1b0b59ed6aa183ee() {
|
|
5308
5308
|
return handleError(function (arg0, arg1, arg2) {
|
|
5309
5309
|
let deferred0_0;
|
|
5310
5310
|
let deferred0_1;
|
|
@@ -5350,7 +5350,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
5350
5350
|
return addHeapObject(ret);
|
|
5351
5351
|
}
|
|
5352
5352
|
|
|
5353
|
-
export function
|
|
5353
|
+
export function __wbg_set_1e170041843aba75() {
|
|
5354
5354
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5355
5355
|
let deferred0_0;
|
|
5356
5356
|
let deferred0_1;
|
|
@@ -5365,16 +5365,7 @@ export function __wbg_set_11a079cace77951c() {
|
|
|
5365
5365
|
}, arguments);
|
|
5366
5366
|
}
|
|
5367
5367
|
|
|
5368
|
-
export function
|
|
5369
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5370
|
-
}
|
|
5371
|
-
|
|
5372
|
-
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5373
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5374
|
-
return addHeapObject(ret);
|
|
5375
|
-
}
|
|
5376
|
-
|
|
5377
|
-
export function __wbg_set_95709825d99cadb3() {
|
|
5368
|
+
export function __wbg_set_20c8942e7d6fc8d9() {
|
|
5378
5369
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5379
5370
|
let deferred0_0;
|
|
5380
5371
|
let deferred0_1;
|
|
@@ -5389,6 +5380,15 @@ export function __wbg_set_95709825d99cadb3() {
|
|
|
5389
5380
|
}, arguments);
|
|
5390
5381
|
}
|
|
5391
5382
|
|
|
5383
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
5384
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5385
|
+
}
|
|
5386
|
+
|
|
5387
|
+
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5388
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5389
|
+
return addHeapObject(ret);
|
|
5390
|
+
}
|
|
5391
|
+
|
|
5392
5392
|
export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
|
|
5393
5393
|
getObject(arg0).body = getObject(arg1);
|
|
5394
5394
|
}
|
|
Binary file
|
|
@@ -459,13 +459,13 @@ export const wasm_bindgen__convert__closures_____invoke__hdced9b5886b06c62: (
|
|
|
459
459
|
b: number,
|
|
460
460
|
c: number,
|
|
461
461
|
) => void;
|
|
462
|
-
export const wasm_bindgen__closure__destroy__h591e0f2efd143068: (a: number, b: number) => void;
|
|
463
462
|
export const wasm_bindgen__closure__destroy__h450a29d5adc6ff56: (a: number, b: number) => void;
|
|
464
463
|
export const wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2: (
|
|
465
464
|
a: number,
|
|
466
465
|
b: number,
|
|
467
466
|
) => void;
|
|
468
467
|
export const wasm_bindgen__closure__destroy__he41cbbdbe831f2ac: (a: number, b: number) => void;
|
|
468
|
+
export const wasm_bindgen__closure__destroy__h591e0f2efd143068: (a: number, b: number) => void;
|
|
469
469
|
export const wasm_bindgen__convert__closures_____invoke__ha432c5dfb6304f11: (
|
|
470
470
|
a: number,
|
|
471
471
|
b: number,
|