@bitwarden/sdk-internal 0.2.0-main.369 → 0.2.0-main.370
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 +11 -0
- package/bitwarden_wasm_internal_bg.js +66 -29
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +3 -1
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +11 -0
- package/node/bitwarden_wasm_internal.js +67 -29
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1805,6 +1805,10 @@ export class AttachmentsClient {
|
|
|
1805
1805
|
export class AuthClient {
|
|
1806
1806
|
private constructor();
|
|
1807
1807
|
free(): void;
|
|
1808
|
+
/**
|
|
1809
|
+
* Client for identity functionality
|
|
1810
|
+
*/
|
|
1811
|
+
identity(): IdentityClient;
|
|
1808
1812
|
/**
|
|
1809
1813
|
* Client for send access functionality
|
|
1810
1814
|
*/
|
|
@@ -2155,6 +2159,13 @@ export class GeneratorClient {
|
|
|
2155
2159
|
*/
|
|
2156
2160
|
passphrase(input: PassphraseGeneratorRequest): string;
|
|
2157
2161
|
}
|
|
2162
|
+
/**
|
|
2163
|
+
* The IdentityClient is used to obtain identity / access tokens from the Bitwarden Identity API.
|
|
2164
|
+
*/
|
|
2165
|
+
export class IdentityClient {
|
|
2166
|
+
private constructor();
|
|
2167
|
+
free(): void;
|
|
2168
|
+
}
|
|
2158
2169
|
export class IncomingMessage {
|
|
2159
2170
|
free(): void;
|
|
2160
2171
|
constructor(payload: Uint8Array, destination: Endpoint, source: Endpoint, topic?: string | null);
|
|
@@ -900,7 +900,7 @@ function __wbg_adapter_60(arg0, arg1) {
|
|
|
900
900
|
);
|
|
901
901
|
}
|
|
902
902
|
|
|
903
|
-
function
|
|
903
|
+
function __wbg_adapter_353(arg0, arg1, arg2, arg3) {
|
|
904
904
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h849ee2a9e4ae2f91(
|
|
905
905
|
arg0,
|
|
906
906
|
arg1,
|
|
@@ -1160,12 +1160,20 @@ class AuthClient {
|
|
|
1160
1160
|
const ptr = this.__destroy_into_raw();
|
|
1161
1161
|
wasm.__wbg_authclient_free(ptr, 0);
|
|
1162
1162
|
}
|
|
1163
|
+
/**
|
|
1164
|
+
* Client for identity functionality
|
|
1165
|
+
* @returns {IdentityClient}
|
|
1166
|
+
*/
|
|
1167
|
+
identity() {
|
|
1168
|
+
const ret = wasm.authclient_identity(this.__wbg_ptr);
|
|
1169
|
+
return IdentityClient.__wrap(ret);
|
|
1170
|
+
}
|
|
1163
1171
|
/**
|
|
1164
1172
|
* Client for send access functionality
|
|
1165
1173
|
* @returns {SendAccessClient}
|
|
1166
1174
|
*/
|
|
1167
1175
|
send_access() {
|
|
1168
|
-
const ret = wasm.
|
|
1176
|
+
const ret = wasm.authclient_identity(this.__wbg_ptr);
|
|
1169
1177
|
return SendAccessClient.__wrap(ret);
|
|
1170
1178
|
}
|
|
1171
1179
|
}
|
|
@@ -2596,6 +2604,36 @@ class GeneratorClient {
|
|
|
2596
2604
|
}
|
|
2597
2605
|
module.exports.GeneratorClient = GeneratorClient;
|
|
2598
2606
|
|
|
2607
|
+
const IdentityClientFinalization =
|
|
2608
|
+
typeof FinalizationRegistry === "undefined"
|
|
2609
|
+
? { register: () => {}, unregister: () => {} }
|
|
2610
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_identityclient_free(ptr >>> 0, 1));
|
|
2611
|
+
/**
|
|
2612
|
+
* The IdentityClient is used to obtain identity / access tokens from the Bitwarden Identity API.
|
|
2613
|
+
*/
|
|
2614
|
+
class IdentityClient {
|
|
2615
|
+
static __wrap(ptr) {
|
|
2616
|
+
ptr = ptr >>> 0;
|
|
2617
|
+
const obj = Object.create(IdentityClient.prototype);
|
|
2618
|
+
obj.__wbg_ptr = ptr;
|
|
2619
|
+
IdentityClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2620
|
+
return obj;
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
__destroy_into_raw() {
|
|
2624
|
+
const ptr = this.__wbg_ptr;
|
|
2625
|
+
this.__wbg_ptr = 0;
|
|
2626
|
+
IdentityClientFinalization.unregister(this);
|
|
2627
|
+
return ptr;
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
free() {
|
|
2631
|
+
const ptr = this.__destroy_into_raw();
|
|
2632
|
+
wasm.__wbg_identityclient_free(ptr, 0);
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
module.exports.IdentityClient = IdentityClient;
|
|
2636
|
+
|
|
2599
2637
|
const IncomingMessageFinalization =
|
|
2600
2638
|
typeof FinalizationRegistry === "undefined"
|
|
2601
2639
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -4225,7 +4263,7 @@ module.exports.__wbg_call_7cccdd69e0791ae2 = function () {
|
|
|
4225
4263
|
}, arguments);
|
|
4226
4264
|
};
|
|
4227
4265
|
|
|
4228
|
-
module.exports.
|
|
4266
|
+
module.exports.__wbg_cipher_b9bba3bed549c7a1 = function (arg0) {
|
|
4229
4267
|
const ret = getObject(arg0).cipher;
|
|
4230
4268
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4231
4269
|
};
|
|
@@ -4305,7 +4343,7 @@ module.exports.__wbg_fetch_509096533071c657 = function (arg0, arg1) {
|
|
|
4305
4343
|
return addHeapObject(ret);
|
|
4306
4344
|
};
|
|
4307
4345
|
|
|
4308
|
-
module.exports.
|
|
4346
|
+
module.exports.__wbg_folder_2e8e018716a86b20 = function (arg0) {
|
|
4309
4347
|
const ret = getObject(arg0).folder;
|
|
4310
4348
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4311
4349
|
};
|
|
@@ -4332,19 +4370,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
|
4332
4370
|
return ret;
|
|
4333
4371
|
};
|
|
4334
4372
|
|
|
4335
|
-
module.exports.
|
|
4336
|
-
return handleError(function (arg0, arg1) {
|
|
4337
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4338
|
-
return addHeapObject(ret);
|
|
4339
|
-
}, arguments);
|
|
4340
|
-
};
|
|
4341
|
-
|
|
4342
|
-
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
4343
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4344
|
-
return addHeapObject(ret);
|
|
4345
|
-
};
|
|
4346
|
-
|
|
4347
|
-
module.exports.__wbg_get_ed0f51a7b78bb9cf = function () {
|
|
4373
|
+
module.exports.__wbg_get_06a7c389d73976e4 = function () {
|
|
4348
4374
|
return handleError(function (arg0, arg1, arg2) {
|
|
4349
4375
|
let deferred0_0;
|
|
4350
4376
|
let deferred0_1;
|
|
@@ -4359,7 +4385,7 @@ module.exports.__wbg_get_ed0f51a7b78bb9cf = function () {
|
|
|
4359
4385
|
}, arguments);
|
|
4360
4386
|
};
|
|
4361
4387
|
|
|
4362
|
-
module.exports.
|
|
4388
|
+
module.exports.__wbg_get_0d53d8bad034f847 = function () {
|
|
4363
4389
|
return handleError(function (arg0, arg1, arg2) {
|
|
4364
4390
|
let deferred0_0;
|
|
4365
4391
|
let deferred0_1;
|
|
@@ -4374,7 +4400,19 @@ module.exports.__wbg_get_ff9b4bcaa48b169c = function () {
|
|
|
4374
4400
|
}, arguments);
|
|
4375
4401
|
};
|
|
4376
4402
|
|
|
4377
|
-
module.exports.
|
|
4403
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
4404
|
+
return handleError(function (arg0, arg1) {
|
|
4405
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4406
|
+
return addHeapObject(ret);
|
|
4407
|
+
}, arguments);
|
|
4408
|
+
};
|
|
4409
|
+
|
|
4410
|
+
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
4411
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4412
|
+
return addHeapObject(ret);
|
|
4413
|
+
};
|
|
4414
|
+
|
|
4415
|
+
module.exports.__wbg_getaccesstoken_3a9776f32a1130a3 = function (arg0) {
|
|
4378
4416
|
const ret = getObject(arg0).get_access_token();
|
|
4379
4417
|
return addHeapObject(ret);
|
|
4380
4418
|
};
|
|
@@ -4559,14 +4597,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
|
|
|
4559
4597
|
return ret;
|
|
4560
4598
|
};
|
|
4561
4599
|
|
|
4562
|
-
module.exports.
|
|
4600
|
+
module.exports.__wbg_list_6fcd7aa4f49b230e = function () {
|
|
4563
4601
|
return handleError(function (arg0) {
|
|
4564
4602
|
const ret = getObject(arg0).list();
|
|
4565
4603
|
return addHeapObject(ret);
|
|
4566
4604
|
}, arguments);
|
|
4567
4605
|
};
|
|
4568
4606
|
|
|
4569
|
-
module.exports.
|
|
4607
|
+
module.exports.__wbg_list_b8eb4a9fd04e8583 = function () {
|
|
4570
4608
|
return handleError(function (arg0) {
|
|
4571
4609
|
const ret = getObject(arg0).list();
|
|
4572
4610
|
return addHeapObject(ret);
|
|
@@ -4609,7 +4647,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
|
|
|
4609
4647
|
const a = state0.a;
|
|
4610
4648
|
state0.a = 0;
|
|
4611
4649
|
try {
|
|
4612
|
-
return
|
|
4650
|
+
return __wbg_adapter_353(a, state0.b, arg0, arg1);
|
|
4613
4651
|
} finally {
|
|
4614
4652
|
state0.a = a;
|
|
4615
4653
|
}
|
|
@@ -4772,7 +4810,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
4772
4810
|
}, arguments);
|
|
4773
4811
|
};
|
|
4774
4812
|
|
|
4775
|
-
module.exports.
|
|
4813
|
+
module.exports.__wbg_remove_b61892357ced7e0d = function () {
|
|
4776
4814
|
return handleError(function (arg0, arg1, arg2) {
|
|
4777
4815
|
let deferred0_0;
|
|
4778
4816
|
let deferred0_1;
|
|
@@ -4787,7 +4825,7 @@ module.exports.__wbg_remove_861642888719c381 = function () {
|
|
|
4787
4825
|
}, arguments);
|
|
4788
4826
|
};
|
|
4789
4827
|
|
|
4790
|
-
module.exports.
|
|
4828
|
+
module.exports.__wbg_remove_d38612e2e58a9e8f = function () {
|
|
4791
4829
|
return handleError(function (arg0, arg1, arg2) {
|
|
4792
4830
|
let deferred0_0;
|
|
4793
4831
|
let deferred0_1;
|
|
@@ -4833,7 +4871,7 @@ module.exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
|
|
|
4833
4871
|
return addHeapObject(ret);
|
|
4834
4872
|
};
|
|
4835
4873
|
|
|
4836
|
-
module.exports.
|
|
4874
|
+
module.exports.__wbg_set_21a2ed8a70365e91 = function () {
|
|
4837
4875
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4838
4876
|
let deferred0_0;
|
|
4839
4877
|
let deferred0_1;
|
|
@@ -4860,7 +4898,7 @@ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
|
4860
4898
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4861
4899
|
};
|
|
4862
4900
|
|
|
4863
|
-
module.exports.
|
|
4901
|
+
module.exports.__wbg_set_8e9c610c5c900fb3 = function () {
|
|
4864
4902
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4865
4903
|
let deferred0_0;
|
|
4866
4904
|
let deferred0_1;
|
|
@@ -5105,17 +5143,17 @@ module.exports.__wbindgen_closure_wrapper200 = function (arg0, arg1, arg2) {
|
|
|
5105
5143
|
return addHeapObject(ret);
|
|
5106
5144
|
};
|
|
5107
5145
|
|
|
5108
|
-
module.exports.
|
|
5146
|
+
module.exports.__wbindgen_closure_wrapper4262 = function (arg0, arg1, arg2) {
|
|
5109
5147
|
const ret = makeMutClosure(arg0, arg1, 349, __wbg_adapter_60);
|
|
5110
5148
|
return addHeapObject(ret);
|
|
5111
5149
|
};
|
|
5112
5150
|
|
|
5113
|
-
module.exports.
|
|
5151
|
+
module.exports.__wbindgen_closure_wrapper8237 = function (arg0, arg1, arg2) {
|
|
5114
5152
|
const ret = makeMutClosure(arg0, arg1, 516, __wbg_adapter_60);
|
|
5115
5153
|
return addHeapObject(ret);
|
|
5116
5154
|
};
|
|
5117
5155
|
|
|
5118
|
-
module.exports.
|
|
5156
|
+
module.exports.__wbindgen_closure_wrapper8620 = function (arg0, arg1, arg2) {
|
|
5119
5157
|
const ret = makeMutClosure(arg0, arg1, 538, __wbg_adapter_54);
|
|
5120
5158
|
return addHeapObject(ret);
|
|
5121
5159
|
};
|
|
Binary file
|
|
@@ -182,7 +182,8 @@ export const generate_ssh_key: (a: number, b: number) => void;
|
|
|
182
182
|
export const import_ssh_key: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
183
183
|
export const isTestError: (a: number) => number;
|
|
184
184
|
export const __wbg_authclient_free: (a: number, b: number) => void;
|
|
185
|
-
export const
|
|
185
|
+
export const authclient_identity: (a: number) => number;
|
|
186
|
+
export const __wbg_identityclient_free: (a: number, b: number) => void;
|
|
186
187
|
export const sendaccessclient_request_send_access_token: (a: number, b: number) => number;
|
|
187
188
|
export const isCollectionDecryptError: (a: number) => number;
|
|
188
189
|
export const cryptoclient_initialize_user_crypto: (a: number, b: number) => number;
|
|
@@ -398,6 +399,7 @@ export const purecrypto_unwrap_encapsulation_key: (
|
|
|
398
399
|
export const __wbg_stateclient_free: (a: number, b: number) => void;
|
|
399
400
|
export const __wbg_platformclient_free: (a: number, b: number) => void;
|
|
400
401
|
export const platformclient_state: (a: number) => number;
|
|
402
|
+
export const authclient_send_access: (a: number) => number;
|
|
401
403
|
export const vaultclient_ciphers: (a: number) => number;
|
|
402
404
|
export const vaultclient_folders: (a: number) => number;
|
|
403
405
|
export const vaultclient_totp: (a: number) => number;
|