@bitwarden/commercial-sdk-internal 0.2.0-main.368 → 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/bitwarden_wasm_internal.d.ts +11 -0
- package/bitwarden_wasm_internal_bg.js +67 -30
- 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 +68 -30
- 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);
|
|
@@ -906,7 +906,7 @@ function __wbg_adapter_60(arg0, arg1) {
|
|
|
906
906
|
);
|
|
907
907
|
}
|
|
908
908
|
|
|
909
|
-
function
|
|
909
|
+
function __wbg_adapter_355(arg0, arg1, arg2, arg3) {
|
|
910
910
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h849ee2a9e4ae2f91(
|
|
911
911
|
arg0,
|
|
912
912
|
arg1,
|
|
@@ -1165,12 +1165,20 @@ export class AuthClient {
|
|
|
1165
1165
|
const ptr = this.__destroy_into_raw();
|
|
1166
1166
|
wasm.__wbg_authclient_free(ptr, 0);
|
|
1167
1167
|
}
|
|
1168
|
+
/**
|
|
1169
|
+
* Client for identity functionality
|
|
1170
|
+
* @returns {IdentityClient}
|
|
1171
|
+
*/
|
|
1172
|
+
identity() {
|
|
1173
|
+
const ret = wasm.authclient_identity(this.__wbg_ptr);
|
|
1174
|
+
return IdentityClient.__wrap(ret);
|
|
1175
|
+
}
|
|
1168
1176
|
/**
|
|
1169
1177
|
* Client for send access functionality
|
|
1170
1178
|
* @returns {SendAccessClient}
|
|
1171
1179
|
*/
|
|
1172
1180
|
send_access() {
|
|
1173
|
-
const ret = wasm.
|
|
1181
|
+
const ret = wasm.authclient_identity(this.__wbg_ptr);
|
|
1174
1182
|
return SendAccessClient.__wrap(ret);
|
|
1175
1183
|
}
|
|
1176
1184
|
}
|
|
@@ -2664,6 +2672,35 @@ export class GeneratorClient {
|
|
|
2664
2672
|
}
|
|
2665
2673
|
}
|
|
2666
2674
|
|
|
2675
|
+
const IdentityClientFinalization =
|
|
2676
|
+
typeof FinalizationRegistry === "undefined"
|
|
2677
|
+
? { register: () => {}, unregister: () => {} }
|
|
2678
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_identityclient_free(ptr >>> 0, 1));
|
|
2679
|
+
/**
|
|
2680
|
+
* The IdentityClient is used to obtain identity / access tokens from the Bitwarden Identity API.
|
|
2681
|
+
*/
|
|
2682
|
+
export class IdentityClient {
|
|
2683
|
+
static __wrap(ptr) {
|
|
2684
|
+
ptr = ptr >>> 0;
|
|
2685
|
+
const obj = Object.create(IdentityClient.prototype);
|
|
2686
|
+
obj.__wbg_ptr = ptr;
|
|
2687
|
+
IdentityClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2688
|
+
return obj;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
__destroy_into_raw() {
|
|
2692
|
+
const ptr = this.__wbg_ptr;
|
|
2693
|
+
this.__wbg_ptr = 0;
|
|
2694
|
+
IdentityClientFinalization.unregister(this);
|
|
2695
|
+
return ptr;
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
free() {
|
|
2699
|
+
const ptr = this.__destroy_into_raw();
|
|
2700
|
+
wasm.__wbg_identityclient_free(ptr, 0);
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2667
2704
|
const IncomingMessageFinalization =
|
|
2668
2705
|
typeof FinalizationRegistry === "undefined"
|
|
2669
2706
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -4282,7 +4319,7 @@ export function __wbg_call_7cccdd69e0791ae2() {
|
|
|
4282
4319
|
}, arguments);
|
|
4283
4320
|
}
|
|
4284
4321
|
|
|
4285
|
-
export function
|
|
4322
|
+
export function __wbg_cipher_b9bba3bed549c7a1(arg0) {
|
|
4286
4323
|
const ret = getObject(arg0).cipher;
|
|
4287
4324
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4288
4325
|
}
|
|
@@ -4362,7 +4399,7 @@ export function __wbg_fetch_509096533071c657(arg0, arg1) {
|
|
|
4362
4399
|
return addHeapObject(ret);
|
|
4363
4400
|
}
|
|
4364
4401
|
|
|
4365
|
-
export function
|
|
4402
|
+
export function __wbg_folder_2e8e018716a86b20(arg0) {
|
|
4366
4403
|
const ret = getObject(arg0).folder;
|
|
4367
4404
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4368
4405
|
}
|
|
@@ -4389,7 +4426,7 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
|
4389
4426
|
return ret;
|
|
4390
4427
|
}
|
|
4391
4428
|
|
|
4392
|
-
export function
|
|
4429
|
+
export function __wbg_get_06a7c389d73976e4() {
|
|
4393
4430
|
return handleError(function (arg0, arg1, arg2) {
|
|
4394
4431
|
let deferred0_0;
|
|
4395
4432
|
let deferred0_1;
|
|
@@ -4404,7 +4441,7 @@ export function __wbg_get_302642f7a13aa938() {
|
|
|
4404
4441
|
}, arguments);
|
|
4405
4442
|
}
|
|
4406
4443
|
|
|
4407
|
-
export function
|
|
4444
|
+
export function __wbg_get_0d53d8bad034f847() {
|
|
4408
4445
|
return handleError(function (arg0, arg1, arg2) {
|
|
4409
4446
|
let deferred0_0;
|
|
4410
4447
|
let deferred0_1;
|
|
@@ -4431,7 +4468,7 @@ export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
|
4431
4468
|
return addHeapObject(ret);
|
|
4432
4469
|
}
|
|
4433
4470
|
|
|
4434
|
-
export function
|
|
4471
|
+
export function __wbg_getaccesstoken_3a9776f32a1130a3(arg0) {
|
|
4435
4472
|
const ret = getObject(arg0).get_access_token();
|
|
4436
4473
|
return addHeapObject(ret);
|
|
4437
4474
|
}
|
|
@@ -4616,14 +4653,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
|
4616
4653
|
return ret;
|
|
4617
4654
|
}
|
|
4618
4655
|
|
|
4619
|
-
export function
|
|
4656
|
+
export function __wbg_list_6fcd7aa4f49b230e() {
|
|
4620
4657
|
return handleError(function (arg0) {
|
|
4621
4658
|
const ret = getObject(arg0).list();
|
|
4622
4659
|
return addHeapObject(ret);
|
|
4623
4660
|
}, arguments);
|
|
4624
4661
|
}
|
|
4625
4662
|
|
|
4626
|
-
export function
|
|
4663
|
+
export function __wbg_list_b8eb4a9fd04e8583() {
|
|
4627
4664
|
return handleError(function (arg0) {
|
|
4628
4665
|
const ret = getObject(arg0).list();
|
|
4629
4666
|
return addHeapObject(ret);
|
|
@@ -4666,7 +4703,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
4666
4703
|
const a = state0.a;
|
|
4667
4704
|
state0.a = 0;
|
|
4668
4705
|
try {
|
|
4669
|
-
return
|
|
4706
|
+
return __wbg_adapter_355(a, state0.b, arg0, arg1);
|
|
4670
4707
|
} finally {
|
|
4671
4708
|
state0.a = a;
|
|
4672
4709
|
}
|
|
@@ -4829,7 +4866,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
4829
4866
|
}, arguments);
|
|
4830
4867
|
}
|
|
4831
4868
|
|
|
4832
|
-
export function
|
|
4869
|
+
export function __wbg_remove_b61892357ced7e0d() {
|
|
4833
4870
|
return handleError(function (arg0, arg1, arg2) {
|
|
4834
4871
|
let deferred0_0;
|
|
4835
4872
|
let deferred0_1;
|
|
@@ -4844,7 +4881,7 @@ export function __wbg_remove_67be0baf343040f2() {
|
|
|
4844
4881
|
}, arguments);
|
|
4845
4882
|
}
|
|
4846
4883
|
|
|
4847
|
-
export function
|
|
4884
|
+
export function __wbg_remove_d38612e2e58a9e8f() {
|
|
4848
4885
|
return handleError(function (arg0, arg1, arg2) {
|
|
4849
4886
|
let deferred0_0;
|
|
4850
4887
|
let deferred0_1;
|
|
@@ -4890,15 +4927,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
4890
4927
|
return addHeapObject(ret);
|
|
4891
4928
|
}
|
|
4892
4929
|
|
|
4893
|
-
export function
|
|
4894
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
4895
|
-
}
|
|
4896
|
-
|
|
4897
|
-
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
4898
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4899
|
-
}
|
|
4900
|
-
|
|
4901
|
-
export function __wbg_set_6191c49af670792c() {
|
|
4930
|
+
export function __wbg_set_21a2ed8a70365e91() {
|
|
4902
4931
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4903
4932
|
let deferred0_0;
|
|
4904
4933
|
let deferred0_1;
|
|
@@ -4913,16 +4942,19 @@ export function __wbg_set_6191c49af670792c() {
|
|
|
4913
4942
|
}, arguments);
|
|
4914
4943
|
}
|
|
4915
4944
|
|
|
4916
|
-
export function
|
|
4917
|
-
getObject(arg0)
|
|
4945
|
+
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
4946
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
4918
4947
|
}
|
|
4919
4948
|
|
|
4920
|
-
export function
|
|
4921
|
-
|
|
4922
|
-
|
|
4949
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
4950
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4953
|
+
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
4954
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4923
4955
|
}
|
|
4924
4956
|
|
|
4925
|
-
export function
|
|
4957
|
+
export function __wbg_set_8e9c610c5c900fb3() {
|
|
4926
4958
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4927
4959
|
let deferred0_0;
|
|
4928
4960
|
let deferred0_1;
|
|
@@ -4937,6 +4969,11 @@ export function __wbg_set_ad3ed0ab770b3ea2() {
|
|
|
4937
4969
|
}, arguments);
|
|
4938
4970
|
}
|
|
4939
4971
|
|
|
4972
|
+
export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
4973
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4974
|
+
return addHeapObject(ret);
|
|
4975
|
+
}
|
|
4976
|
+
|
|
4940
4977
|
export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
|
4941
4978
|
getObject(arg0).body = getObject(arg1);
|
|
4942
4979
|
}
|
|
@@ -5162,17 +5199,17 @@ export function __wbindgen_closure_wrapper198(arg0, arg1, arg2) {
|
|
|
5162
5199
|
return addHeapObject(ret);
|
|
5163
5200
|
}
|
|
5164
5201
|
|
|
5165
|
-
export function
|
|
5202
|
+
export function __wbindgen_closure_wrapper4273(arg0, arg1, arg2) {
|
|
5166
5203
|
const ret = makeMutClosure(arg0, arg1, 349, __wbg_adapter_60);
|
|
5167
5204
|
return addHeapObject(ret);
|
|
5168
5205
|
}
|
|
5169
5206
|
|
|
5170
|
-
export function
|
|
5207
|
+
export function __wbindgen_closure_wrapper8249(arg0, arg1, arg2) {
|
|
5171
5208
|
const ret = makeMutClosure(arg0, arg1, 516, __wbg_adapter_60);
|
|
5172
5209
|
return addHeapObject(ret);
|
|
5173
5210
|
}
|
|
5174
5211
|
|
|
5175
|
-
export function
|
|
5212
|
+
export function __wbindgen_closure_wrapper8632(arg0, arg1, arg2) {
|
|
5176
5213
|
const ret = makeMutClosure(arg0, arg1, 538, __wbg_adapter_57);
|
|
5177
5214
|
return addHeapObject(ret);
|
|
5178
5215
|
}
|
|
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;
|