@bitwarden/sdk-internal 0.2.0-main.527 → 0.2.0-main.529
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 +20 -0
- package/bitwarden_wasm_internal_bg.js +59 -59
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +7 -7
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +20 -0
- package/node/bitwarden_wasm_internal.js +63 -63
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +6 -6
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f954d14ba23712d76b0a642acab83c83e2cfabd8
|
|
@@ -1438,6 +1438,26 @@ export interface CallError extends Error {
|
|
|
1438
1438
|
|
|
1439
1439
|
export function isCallError(error: any): error is CallError;
|
|
1440
1440
|
|
|
1441
|
+
/**
|
|
1442
|
+
* The data necessary to re-share the user-key to a V1 organization membership. Note: The
|
|
1443
|
+
* Public-key must be verified/trusted. Further, there is no sender authentication possible here.
|
|
1444
|
+
*/
|
|
1445
|
+
export interface V1OrganizationMembership {
|
|
1446
|
+
organization_id: Uuid;
|
|
1447
|
+
name: string;
|
|
1448
|
+
public_key: PublicKey;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1452
|
+
* The data necessary to re-share the user-key to a V1 emergency access membership. Note: The
|
|
1453
|
+
* Public-key must be verified/trusted. Further, there is no sender authentication possible here.
|
|
1454
|
+
*/
|
|
1455
|
+
export interface V1EmergencyAccessMembership {
|
|
1456
|
+
id: Uuid;
|
|
1457
|
+
name: string;
|
|
1458
|
+
public_key: PublicKey;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1441
1461
|
export interface CipherRiskError extends Error {
|
|
1442
1462
|
name: "CipherRiskError";
|
|
1443
1463
|
variant: "Reqwest";
|
|
@@ -1029,10 +1029,6 @@ function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg
|
|
|
1029
1029
|
wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
1032
|
-
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
1033
|
-
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
1032
|
function wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db(arg0, arg1, arg2) {
|
|
1037
1033
|
try {
|
|
1038
1034
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -1047,6 +1043,10 @@ function wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db(arg0, arg
|
|
|
1047
1043
|
}
|
|
1048
1044
|
}
|
|
1049
1045
|
|
|
1046
|
+
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
1047
|
+
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
1050
|
function wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, arg2, arg3) {
|
|
1051
1051
|
wasm.wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1052
1052
|
}
|
|
@@ -4968,7 +4968,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
|
|
|
4968
4968
|
return addHeapObject(ret);
|
|
4969
4969
|
}, arguments) };
|
|
4970
4970
|
|
|
4971
|
-
export function
|
|
4971
|
+
export function __wbg_cipher_a3be80db68e37efb(arg0) {
|
|
4972
4972
|
const ret = getObject(arg0).cipher;
|
|
4973
4973
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4974
4974
|
};
|
|
@@ -5055,7 +5055,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
5055
5055
|
return addHeapObject(ret);
|
|
5056
5056
|
};
|
|
5057
5057
|
|
|
5058
|
-
export function
|
|
5058
|
+
export function __wbg_folder_ee747b560aa13119(arg0) {
|
|
5059
5059
|
const ret = getObject(arg0).folder;
|
|
5060
5060
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
5061
5061
|
};
|
|
@@ -5087,7 +5087,17 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
5087
5087
|
return ret;
|
|
5088
5088
|
};
|
|
5089
5089
|
|
|
5090
|
-
export function
|
|
5090
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
5091
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5092
|
+
return addHeapObject(ret);
|
|
5093
|
+
};
|
|
5094
|
+
|
|
5095
|
+
export function __wbg_get_access_token_c844cfb365a3f29f(arg0) {
|
|
5096
|
+
const ret = getObject(arg0).get_access_token();
|
|
5097
|
+
return addHeapObject(ret);
|
|
5098
|
+
};
|
|
5099
|
+
|
|
5100
|
+
export function __wbg_get_b09f95011635fcb6() { return handleError(function (arg0, arg1, arg2) {
|
|
5091
5101
|
let deferred0_0;
|
|
5092
5102
|
let deferred0_1;
|
|
5093
5103
|
try {
|
|
@@ -5100,12 +5110,7 @@ export function __wbg_get_0b30250d94987600() { return handleError(function (arg0
|
|
|
5100
5110
|
}
|
|
5101
5111
|
}, arguments) };
|
|
5102
5112
|
|
|
5103
|
-
export function
|
|
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) {
|
|
5113
|
+
export function __wbg_get_c03a59ff46a549dd() { return handleError(function (arg0, arg1, arg2) {
|
|
5109
5114
|
let deferred0_0;
|
|
5110
5115
|
let deferred0_1;
|
|
5111
5116
|
try {
|
|
@@ -5118,12 +5123,7 @@ export function __wbg_get_9afb6f1e4582c19d() { return handleError(function (arg0
|
|
|
5118
5123
|
}
|
|
5119
5124
|
}, arguments) };
|
|
5120
5125
|
|
|
5121
|
-
export function
|
|
5122
|
-
const ret = getObject(arg0).get_access_token();
|
|
5123
|
-
return addHeapObject(ret);
|
|
5124
|
-
};
|
|
5125
|
-
|
|
5126
|
-
export function __wbg_get_c03a59ff46a549dd() { return handleError(function (arg0, arg1, arg2) {
|
|
5126
|
+
export function __wbg_get_d43bb2144256bd26() { return handleError(function (arg0, arg1, arg2) {
|
|
5127
5127
|
let deferred0_0;
|
|
5128
5128
|
let deferred0_1;
|
|
5129
5129
|
try {
|
|
@@ -5324,12 +5324,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
5324
5324
|
return ret;
|
|
5325
5325
|
};
|
|
5326
5326
|
|
|
5327
|
-
export function
|
|
5327
|
+
export function __wbg_list_733ffd902f224f54() { return handleError(function (arg0) {
|
|
5328
5328
|
const ret = getObject(arg0).list();
|
|
5329
5329
|
return addHeapObject(ret);
|
|
5330
5330
|
}, arguments) };
|
|
5331
5331
|
|
|
5332
|
-
export function
|
|
5332
|
+
export function __wbg_list_8cab6725fbb56482() { return handleError(function (arg0) {
|
|
5333
5333
|
const ret = getObject(arg0).list();
|
|
5334
5334
|
return addHeapObject(ret);
|
|
5335
5335
|
}, arguments) };
|
|
@@ -5530,7 +5530,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
|
|
|
5530
5530
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
5531
5531
|
}, arguments) };
|
|
5532
5532
|
|
|
5533
|
-
export function
|
|
5533
|
+
export function __wbg_remove_bb923590b3bfdcb3() { return handleError(function (arg0, arg1, arg2) {
|
|
5534
5534
|
let deferred0_0;
|
|
5535
5535
|
let deferred0_1;
|
|
5536
5536
|
try {
|
|
@@ -5543,7 +5543,7 @@ export function __wbg_remove_a51dd510df9ae51d() { return handleError(function (a
|
|
|
5543
5543
|
}
|
|
5544
5544
|
}, arguments) };
|
|
5545
5545
|
|
|
5546
|
-
export function
|
|
5546
|
+
export function __wbg_remove_e1aa17a0d88d5a7e() { return handleError(function (arg0, arg1, arg2) {
|
|
5547
5547
|
let deferred0_0;
|
|
5548
5548
|
let deferred0_1;
|
|
5549
5549
|
try {
|
|
@@ -5598,7 +5598,20 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
|
5598
5598
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5599
5599
|
};
|
|
5600
5600
|
|
|
5601
|
-
export function
|
|
5601
|
+
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5602
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5603
|
+
return addHeapObject(ret);
|
|
5604
|
+
};
|
|
5605
|
+
|
|
5606
|
+
export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
|
|
5607
|
+
getObject(arg0).body = getObject(arg1);
|
|
5608
|
+
};
|
|
5609
|
+
|
|
5610
|
+
export function __wbg_set_c213c871859d6500(arg0, arg1, arg2) {
|
|
5611
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
5612
|
+
};
|
|
5613
|
+
|
|
5614
|
+
export function __wbg_set_cf2d064389f4e4c2() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5602
5615
|
let deferred0_0;
|
|
5603
5616
|
let deferred0_1;
|
|
5604
5617
|
try {
|
|
@@ -5611,7 +5624,11 @@ export function __wbg_set_6e1a46fb1b4fbfbf() { return handleError(function (arg0
|
|
|
5611
5624
|
}
|
|
5612
5625
|
}, arguments) };
|
|
5613
5626
|
|
|
5614
|
-
export function
|
|
5627
|
+
export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
|
|
5628
|
+
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
5629
|
+
};
|
|
5630
|
+
|
|
5631
|
+
export function __wbg_set_f9cbab27f55058fe() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5615
5632
|
let deferred0_0;
|
|
5616
5633
|
let deferred0_1;
|
|
5617
5634
|
try {
|
|
@@ -5624,23 +5641,6 @@ export function __wbg_set_8a313f41247925b3() { return handleError(function (arg0
|
|
|
5624
5641
|
}
|
|
5625
5642
|
}, arguments) };
|
|
5626
5643
|
|
|
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
|
-
|
|
5632
|
-
export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
|
|
5633
|
-
getObject(arg0).body = getObject(arg1);
|
|
5634
|
-
};
|
|
5635
|
-
|
|
5636
|
-
export function __wbg_set_c213c871859d6500(arg0, arg1, arg2) {
|
|
5637
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
5638
|
-
};
|
|
5639
|
-
|
|
5640
|
-
export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
|
|
5641
|
-
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
5642
|
-
};
|
|
5643
|
-
|
|
5644
5644
|
export function __wbg_set_headers_6926da238cd32ee4(arg0, arg1) {
|
|
5645
5645
|
getObject(arg0).headers = getObject(arg1);
|
|
5646
5646
|
};
|
|
@@ -5812,18 +5812,18 @@ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
|
5812
5812
|
return addHeapObject(ret);
|
|
5813
5813
|
};
|
|
5814
5814
|
|
|
5815
|
-
export function __wbindgen_cast_298dd3322eda9063(arg0, arg1) {
|
|
5816
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 332, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5817
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
|
|
5818
|
-
return addHeapObject(ret);
|
|
5819
|
-
};
|
|
5820
|
-
|
|
5821
5815
|
export function __wbindgen_cast_34ef3ce950757bdd(arg0, arg1) {
|
|
5822
5816
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5823
5817
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h34c685b2e12a24bd, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
|
|
5824
5818
|
return addHeapObject(ret);
|
|
5825
5819
|
};
|
|
5826
5820
|
|
|
5821
|
+
export function __wbindgen_cast_39620859b18b910b(arg0, arg1) {
|
|
5822
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 596, function: Function { arguments: [], shim_idx: 334, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5823
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h666c8569a46b7e11, wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d);
|
|
5824
|
+
return addHeapObject(ret);
|
|
5825
|
+
};
|
|
5826
|
+
|
|
5827
5827
|
export function __wbindgen_cast_397295739b4135cd(arg0, arg1) {
|
|
5828
5828
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [NamedExternref("Event")], shim_idx: 43, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5829
5829
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h34c685b2e12a24bd, wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db);
|
|
@@ -5844,6 +5844,12 @@ export function __wbindgen_cast_5fea77eff9dd275c(arg0, arg1) {
|
|
|
5844
5844
|
return addHeapObject(ret);
|
|
5845
5845
|
};
|
|
5846
5846
|
|
|
5847
|
+
export function __wbindgen_cast_6e6ad7ab1aa4960b(arg0, arg1) {
|
|
5848
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 340, function: Function { arguments: [NamedExternref("Event")], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5849
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
|
|
5850
|
+
return addHeapObject(ret);
|
|
5851
|
+
};
|
|
5852
|
+
|
|
5847
5853
|
export function __wbindgen_cast_7a6d185652cd8149(arg0, arg1) {
|
|
5848
5854
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5849
5855
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -5858,14 +5864,14 @@ export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
|
5858
5864
|
return addHeapObject(ret);
|
|
5859
5865
|
};
|
|
5860
5866
|
|
|
5861
|
-
export function
|
|
5862
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5863
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
5867
|
+
export function __wbindgen_cast_b2ff35054ed9693c(arg0, arg1) {
|
|
5868
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 333, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5869
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
|
|
5864
5870
|
return addHeapObject(ret);
|
|
5865
5871
|
};
|
|
5866
5872
|
|
|
5867
|
-
export function
|
|
5868
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5873
|
+
export function __wbindgen_cast_c425055212da0068(arg0, arg1) {
|
|
5874
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 333, function: Function { arguments: [], shim_idx: 334, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5869
5875
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d);
|
|
5870
5876
|
return addHeapObject(ret);
|
|
5871
5877
|
};
|
|
@@ -5876,12 +5882,6 @@ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
|
|
|
5876
5882
|
return addHeapObject(ret);
|
|
5877
5883
|
};
|
|
5878
5884
|
|
|
5879
|
-
export function __wbindgen_cast_cc64d9c4c77c46f7(arg0, arg1) {
|
|
5880
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 339, function: Function { arguments: [NamedExternref("Event")], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5881
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
|
|
5882
|
-
return addHeapObject(ret);
|
|
5883
|
-
};
|
|
5884
|
-
|
|
5885
5885
|
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
5886
5886
|
// Cast intrinsic for `F64 -> Externref`.
|
|
5887
5887
|
const ret = arg0;
|
|
Binary file
|
|
@@ -539,20 +539,20 @@ export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
|
|
|
539
539
|
b: number,
|
|
540
540
|
c: number,
|
|
541
541
|
) => void;
|
|
542
|
-
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
543
|
-
export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
544
|
-
a: number,
|
|
545
|
-
b: number,
|
|
546
|
-
) => void;
|
|
547
|
-
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
548
542
|
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;
|
|
550
543
|
export const wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db: (
|
|
551
544
|
a: number,
|
|
552
545
|
b: number,
|
|
553
546
|
c: number,
|
|
554
547
|
d: number,
|
|
555
548
|
) => void;
|
|
549
|
+
export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
|
|
550
|
+
export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
551
|
+
a: number,
|
|
552
|
+
b: number,
|
|
553
|
+
) => void;
|
|
554
|
+
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
555
|
+
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
556
556
|
export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
|
|
557
557
|
a: number,
|
|
558
558
|
b: number,
|