@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);
|
|
@@ -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_6d4b0329aa713e6f(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_f0f5221fba71a8d6(arg0) {
|
|
4366
4403
|
const ret = getObject(arg0).folder;
|
|
4367
4404
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4368
4405
|
}
|
|
@@ -4389,19 +4426,7 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
|
4389
4426
|
return ret;
|
|
4390
4427
|
}
|
|
4391
4428
|
|
|
4392
|
-
export function
|
|
4393
|
-
return handleError(function (arg0, arg1) {
|
|
4394
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4395
|
-
return addHeapObject(ret);
|
|
4396
|
-
}, arguments);
|
|
4397
|
-
}
|
|
4398
|
-
|
|
4399
|
-
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
4400
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4401
|
-
return addHeapObject(ret);
|
|
4402
|
-
}
|
|
4403
|
-
|
|
4404
|
-
export function __wbg_get_ed0f51a7b78bb9cf() {
|
|
4429
|
+
export function __wbg_get_61df30619186fd87() {
|
|
4405
4430
|
return handleError(function (arg0, arg1, arg2) {
|
|
4406
4431
|
let deferred0_0;
|
|
4407
4432
|
let deferred0_1;
|
|
@@ -4416,7 +4441,19 @@ export function __wbg_get_ed0f51a7b78bb9cf() {
|
|
|
4416
4441
|
}, arguments);
|
|
4417
4442
|
}
|
|
4418
4443
|
|
|
4419
|
-
export function
|
|
4444
|
+
export function __wbg_get_67b2ba62fc30de12() {
|
|
4445
|
+
return handleError(function (arg0, arg1) {
|
|
4446
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4447
|
+
return addHeapObject(ret);
|
|
4448
|
+
}, arguments);
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4451
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
4452
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4453
|
+
return addHeapObject(ret);
|
|
4454
|
+
}
|
|
4455
|
+
|
|
4456
|
+
export function __wbg_get_e4ef7322d68ab383() {
|
|
4420
4457
|
return handleError(function (arg0, arg1, arg2) {
|
|
4421
4458
|
let deferred0_0;
|
|
4422
4459
|
let deferred0_1;
|
|
@@ -4431,7 +4468,7 @@ export function __wbg_get_ff9b4bcaa48b169c() {
|
|
|
4431
4468
|
}, arguments);
|
|
4432
4469
|
}
|
|
4433
4470
|
|
|
4434
|
-
export function
|
|
4471
|
+
export function __wbg_getaccesstoken_9cbe5828ab38b4c1(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_562f9b41c2eddcc7() {
|
|
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_8619d74e75f24d17() {
|
|
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_b7ea90f3b7133fcb() {
|
|
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_861642888719c381() {
|
|
|
4844
4881
|
}, arguments);
|
|
4845
4882
|
}
|
|
4846
4883
|
|
|
4847
|
-
export function
|
|
4884
|
+
export function __wbg_remove_d3f3781a0f03446c() {
|
|
4848
4885
|
return handleError(function (arg0, arg1, arg2) {
|
|
4849
4886
|
let deferred0_0;
|
|
4850
4887
|
let deferred0_1;
|
|
@@ -4890,21 +4927,6 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
4890
4927
|
return addHeapObject(ret);
|
|
4891
4928
|
}
|
|
4892
4929
|
|
|
4893
|
-
export function __wbg_set_19f315c892446833() {
|
|
4894
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4895
|
-
let deferred0_0;
|
|
4896
|
-
let deferred0_1;
|
|
4897
|
-
try {
|
|
4898
|
-
deferred0_0 = arg1;
|
|
4899
|
-
deferred0_1 = arg2;
|
|
4900
|
-
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
4901
|
-
return addHeapObject(ret);
|
|
4902
|
-
} finally {
|
|
4903
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4904
|
-
}
|
|
4905
|
-
}, arguments);
|
|
4906
|
-
}
|
|
4907
|
-
|
|
4908
4930
|
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
4909
4931
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
4910
4932
|
}
|
|
@@ -4917,7 +4939,7 @@ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
|
4917
4939
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4918
4940
|
}
|
|
4919
4941
|
|
|
4920
|
-
export function
|
|
4942
|
+
export function __wbg_set_7f067b933dc18d3c() {
|
|
4921
4943
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4922
4944
|
let deferred0_0;
|
|
4923
4945
|
let deferred0_1;
|
|
@@ -4937,6 +4959,21 @@ export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
|
4937
4959
|
return addHeapObject(ret);
|
|
4938
4960
|
}
|
|
4939
4961
|
|
|
4962
|
+
export function __wbg_set_99d30132201b391d() {
|
|
4963
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4964
|
+
let deferred0_0;
|
|
4965
|
+
let deferred0_1;
|
|
4966
|
+
try {
|
|
4967
|
+
deferred0_0 = arg1;
|
|
4968
|
+
deferred0_1 = arg2;
|
|
4969
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
4970
|
+
return addHeapObject(ret);
|
|
4971
|
+
} finally {
|
|
4972
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4973
|
+
}
|
|
4974
|
+
}, arguments);
|
|
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;
|