@bitwarden/commercial-sdk-internal 0.2.0-main.369 → 0.2.0-main.371
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 +11 -0
- package/bitwarden_wasm_internal_bg.js +80 -43
- 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 +81 -43
- 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
|
*/
|
|
@@ -2174,6 +2178,13 @@ export class GeneratorClient {
|
|
|
2174
2178
|
*/
|
|
2175
2179
|
passphrase(input: PassphraseGeneratorRequest): string;
|
|
2176
2180
|
}
|
|
2181
|
+
/**
|
|
2182
|
+
* The IdentityClient is used to obtain identity / access tokens from the Bitwarden Identity API.
|
|
2183
|
+
*/
|
|
2184
|
+
export class IdentityClient {
|
|
2185
|
+
private constructor();
|
|
2186
|
+
free(): void;
|
|
2187
|
+
}
|
|
2177
2188
|
export class IncomingMessage {
|
|
2178
2189
|
free(): void;
|
|
2179
2190
|
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_355(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
|
}
|
|
@@ -2672,6 +2680,36 @@ class GeneratorClient {
|
|
|
2672
2680
|
}
|
|
2673
2681
|
module.exports.GeneratorClient = GeneratorClient;
|
|
2674
2682
|
|
|
2683
|
+
const IdentityClientFinalization =
|
|
2684
|
+
typeof FinalizationRegistry === "undefined"
|
|
2685
|
+
? { register: () => {}, unregister: () => {} }
|
|
2686
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_identityclient_free(ptr >>> 0, 1));
|
|
2687
|
+
/**
|
|
2688
|
+
* The IdentityClient is used to obtain identity / access tokens from the Bitwarden Identity API.
|
|
2689
|
+
*/
|
|
2690
|
+
class IdentityClient {
|
|
2691
|
+
static __wrap(ptr) {
|
|
2692
|
+
ptr = ptr >>> 0;
|
|
2693
|
+
const obj = Object.create(IdentityClient.prototype);
|
|
2694
|
+
obj.__wbg_ptr = ptr;
|
|
2695
|
+
IdentityClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2696
|
+
return obj;
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
__destroy_into_raw() {
|
|
2700
|
+
const ptr = this.__wbg_ptr;
|
|
2701
|
+
this.__wbg_ptr = 0;
|
|
2702
|
+
IdentityClientFinalization.unregister(this);
|
|
2703
|
+
return ptr;
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
free() {
|
|
2707
|
+
const ptr = this.__destroy_into_raw();
|
|
2708
|
+
wasm.__wbg_identityclient_free(ptr, 0);
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
module.exports.IdentityClient = IdentityClient;
|
|
2712
|
+
|
|
2675
2713
|
const IncomingMessageFinalization =
|
|
2676
2714
|
typeof FinalizationRegistry === "undefined"
|
|
2677
2715
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -4301,7 +4339,7 @@ module.exports.__wbg_call_7cccdd69e0791ae2 = function () {
|
|
|
4301
4339
|
}, arguments);
|
|
4302
4340
|
};
|
|
4303
4341
|
|
|
4304
|
-
module.exports.
|
|
4342
|
+
module.exports.__wbg_cipher_6d4b0329aa713e6f = function (arg0) {
|
|
4305
4343
|
const ret = getObject(arg0).cipher;
|
|
4306
4344
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4307
4345
|
};
|
|
@@ -4381,7 +4419,7 @@ module.exports.__wbg_fetch_509096533071c657 = function (arg0, arg1) {
|
|
|
4381
4419
|
return addHeapObject(ret);
|
|
4382
4420
|
};
|
|
4383
4421
|
|
|
4384
|
-
module.exports.
|
|
4422
|
+
module.exports.__wbg_folder_f0f5221fba71a8d6 = function (arg0) {
|
|
4385
4423
|
const ret = getObject(arg0).folder;
|
|
4386
4424
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4387
4425
|
};
|
|
@@ -4408,19 +4446,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
|
4408
4446
|
return ret;
|
|
4409
4447
|
};
|
|
4410
4448
|
|
|
4411
|
-
module.exports.
|
|
4412
|
-
return handleError(function (arg0, arg1) {
|
|
4413
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4414
|
-
return addHeapObject(ret);
|
|
4415
|
-
}, arguments);
|
|
4416
|
-
};
|
|
4417
|
-
|
|
4418
|
-
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
4419
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4420
|
-
return addHeapObject(ret);
|
|
4421
|
-
};
|
|
4422
|
-
|
|
4423
|
-
module.exports.__wbg_get_ed0f51a7b78bb9cf = function () {
|
|
4449
|
+
module.exports.__wbg_get_61df30619186fd87 = function () {
|
|
4424
4450
|
return handleError(function (arg0, arg1, arg2) {
|
|
4425
4451
|
let deferred0_0;
|
|
4426
4452
|
let deferred0_1;
|
|
@@ -4435,7 +4461,19 @@ module.exports.__wbg_get_ed0f51a7b78bb9cf = function () {
|
|
|
4435
4461
|
}, arguments);
|
|
4436
4462
|
};
|
|
4437
4463
|
|
|
4438
|
-
module.exports.
|
|
4464
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
4465
|
+
return handleError(function (arg0, arg1) {
|
|
4466
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4467
|
+
return addHeapObject(ret);
|
|
4468
|
+
}, arguments);
|
|
4469
|
+
};
|
|
4470
|
+
|
|
4471
|
+
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
4472
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4473
|
+
return addHeapObject(ret);
|
|
4474
|
+
};
|
|
4475
|
+
|
|
4476
|
+
module.exports.__wbg_get_e4ef7322d68ab383 = function () {
|
|
4439
4477
|
return handleError(function (arg0, arg1, arg2) {
|
|
4440
4478
|
let deferred0_0;
|
|
4441
4479
|
let deferred0_1;
|
|
@@ -4450,7 +4488,7 @@ module.exports.__wbg_get_ff9b4bcaa48b169c = function () {
|
|
|
4450
4488
|
}, arguments);
|
|
4451
4489
|
};
|
|
4452
4490
|
|
|
4453
|
-
module.exports.
|
|
4491
|
+
module.exports.__wbg_getaccesstoken_9cbe5828ab38b4c1 = function (arg0) {
|
|
4454
4492
|
const ret = getObject(arg0).get_access_token();
|
|
4455
4493
|
return addHeapObject(ret);
|
|
4456
4494
|
};
|
|
@@ -4635,14 +4673,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
|
|
|
4635
4673
|
return ret;
|
|
4636
4674
|
};
|
|
4637
4675
|
|
|
4638
|
-
module.exports.
|
|
4676
|
+
module.exports.__wbg_list_562f9b41c2eddcc7 = function () {
|
|
4639
4677
|
return handleError(function (arg0) {
|
|
4640
4678
|
const ret = getObject(arg0).list();
|
|
4641
4679
|
return addHeapObject(ret);
|
|
4642
4680
|
}, arguments);
|
|
4643
4681
|
};
|
|
4644
4682
|
|
|
4645
|
-
module.exports.
|
|
4683
|
+
module.exports.__wbg_list_8619d74e75f24d17 = function () {
|
|
4646
4684
|
return handleError(function (arg0) {
|
|
4647
4685
|
const ret = getObject(arg0).list();
|
|
4648
4686
|
return addHeapObject(ret);
|
|
@@ -4685,7 +4723,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
|
|
|
4685
4723
|
const a = state0.a;
|
|
4686
4724
|
state0.a = 0;
|
|
4687
4725
|
try {
|
|
4688
|
-
return
|
|
4726
|
+
return __wbg_adapter_355(a, state0.b, arg0, arg1);
|
|
4689
4727
|
} finally {
|
|
4690
4728
|
state0.a = a;
|
|
4691
4729
|
}
|
|
@@ -4848,7 +4886,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
4848
4886
|
}, arguments);
|
|
4849
4887
|
};
|
|
4850
4888
|
|
|
4851
|
-
module.exports.
|
|
4889
|
+
module.exports.__wbg_remove_b7ea90f3b7133fcb = function () {
|
|
4852
4890
|
return handleError(function (arg0, arg1, arg2) {
|
|
4853
4891
|
let deferred0_0;
|
|
4854
4892
|
let deferred0_1;
|
|
@@ -4863,7 +4901,7 @@ module.exports.__wbg_remove_861642888719c381 = function () {
|
|
|
4863
4901
|
}, arguments);
|
|
4864
4902
|
};
|
|
4865
4903
|
|
|
4866
|
-
module.exports.
|
|
4904
|
+
module.exports.__wbg_remove_d3f3781a0f03446c = function () {
|
|
4867
4905
|
return handleError(function (arg0, arg1, arg2) {
|
|
4868
4906
|
let deferred0_0;
|
|
4869
4907
|
let deferred0_1;
|
|
@@ -4909,21 +4947,6 @@ module.exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
|
|
|
4909
4947
|
return addHeapObject(ret);
|
|
4910
4948
|
};
|
|
4911
4949
|
|
|
4912
|
-
module.exports.__wbg_set_19f315c892446833 = function () {
|
|
4913
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4914
|
-
let deferred0_0;
|
|
4915
|
-
let deferred0_1;
|
|
4916
|
-
try {
|
|
4917
|
-
deferred0_0 = arg1;
|
|
4918
|
-
deferred0_1 = arg2;
|
|
4919
|
-
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
4920
|
-
return addHeapObject(ret);
|
|
4921
|
-
} finally {
|
|
4922
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4923
|
-
}
|
|
4924
|
-
}, arguments);
|
|
4925
|
-
};
|
|
4926
|
-
|
|
4927
4950
|
module.exports.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
|
|
4928
4951
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
4929
4952
|
};
|
|
@@ -4936,7 +4959,7 @@ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
|
4936
4959
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4937
4960
|
};
|
|
4938
4961
|
|
|
4939
|
-
module.exports.
|
|
4962
|
+
module.exports.__wbg_set_7f067b933dc18d3c = function () {
|
|
4940
4963
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4941
4964
|
let deferred0_0;
|
|
4942
4965
|
let deferred0_1;
|
|
@@ -4956,6 +4979,21 @@ module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
|
4956
4979
|
return addHeapObject(ret);
|
|
4957
4980
|
};
|
|
4958
4981
|
|
|
4982
|
+
module.exports.__wbg_set_99d30132201b391d = function () {
|
|
4983
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4984
|
+
let deferred0_0;
|
|
4985
|
+
let deferred0_1;
|
|
4986
|
+
try {
|
|
4987
|
+
deferred0_0 = arg1;
|
|
4988
|
+
deferred0_1 = arg2;
|
|
4989
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
4990
|
+
return addHeapObject(ret);
|
|
4991
|
+
} finally {
|
|
4992
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4993
|
+
}
|
|
4994
|
+
}, arguments);
|
|
4995
|
+
};
|
|
4996
|
+
|
|
4959
4997
|
module.exports.__wbg_setbody_5923b78a95eedf29 = function (arg0, arg1) {
|
|
4960
4998
|
getObject(arg0).body = getObject(arg1);
|
|
4961
4999
|
};
|
|
@@ -5181,17 +5219,17 @@ module.exports.__wbindgen_closure_wrapper198 = function (arg0, arg1, arg2) {
|
|
|
5181
5219
|
return addHeapObject(ret);
|
|
5182
5220
|
};
|
|
5183
5221
|
|
|
5184
|
-
module.exports.
|
|
5222
|
+
module.exports.__wbindgen_closure_wrapper4273 = function (arg0, arg1, arg2) {
|
|
5185
5223
|
const ret = makeMutClosure(arg0, arg1, 349, __wbg_adapter_60);
|
|
5186
5224
|
return addHeapObject(ret);
|
|
5187
5225
|
};
|
|
5188
5226
|
|
|
5189
|
-
module.exports.
|
|
5227
|
+
module.exports.__wbindgen_closure_wrapper8249 = function (arg0, arg1, arg2) {
|
|
5190
5228
|
const ret = makeMutClosure(arg0, arg1, 516, __wbg_adapter_60);
|
|
5191
5229
|
return addHeapObject(ret);
|
|
5192
5230
|
};
|
|
5193
5231
|
|
|
5194
|
-
module.exports.
|
|
5232
|
+
module.exports.__wbindgen_closure_wrapper8632 = function (arg0, arg1, arg2) {
|
|
5195
5233
|
const ret = makeMutClosure(arg0, arg1, 538, __wbg_adapter_57);
|
|
5196
5234
|
return addHeapObject(ret);
|
|
5197
5235
|
};
|
|
Binary file
|
|
@@ -183,7 +183,8 @@ export const generate_ssh_key: (a: number, b: number) => void;
|
|
|
183
183
|
export const import_ssh_key: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
184
184
|
export const isTestError: (a: number) => number;
|
|
185
185
|
export const __wbg_authclient_free: (a: number, b: number) => void;
|
|
186
|
-
export const
|
|
186
|
+
export const authclient_identity: (a: number) => number;
|
|
187
|
+
export const __wbg_identityclient_free: (a: number, b: number) => void;
|
|
187
188
|
export const sendaccessclient_request_send_access_token: (a: number, b: number) => number;
|
|
188
189
|
export const isCollectionDecryptError: (a: number) => number;
|
|
189
190
|
export const __wbg_commercialvaultclient_free: (a: number, b: number) => void;
|
|
@@ -402,6 +403,7 @@ export const purecrypto_unwrap_encapsulation_key: (
|
|
|
402
403
|
export const __wbg_stateclient_free: (a: number, b: number) => void;
|
|
403
404
|
export const __wbg_platformclient_free: (a: number, b: number) => void;
|
|
404
405
|
export const platformclient_state: (a: number) => number;
|
|
406
|
+
export const authclient_send_access: (a: number) => number;
|
|
405
407
|
export const vaultclient_ciphers: (a: number) => number;
|
|
406
408
|
export const vaultclient_folders: (a: number) => number;
|
|
407
409
|
export const vaultclient_totp: (a: number) => number;
|