@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.
@@ -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 __wbg_adapter_354(arg0, arg1, arg2, arg3) {
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.authclient_send_access(this.__wbg_ptr);
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.__wbg_cipher_08f78882224cdb00 = function (arg0) {
4342
+ module.exports.__wbg_cipher_b9bba3bed549c7a1 = 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.__wbg_folder_f76a5853497e9116 = function (arg0) {
4422
+ module.exports.__wbg_folder_2e8e018716a86b20 = function (arg0) {
4385
4423
  const ret = getObject(arg0).folder;
4386
4424
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4387
4425
  };
@@ -4408,7 +4446,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
4408
4446
  return ret;
4409
4447
  };
4410
4448
 
4411
- module.exports.__wbg_get_302642f7a13aa938 = function () {
4449
+ module.exports.__wbg_get_06a7c389d73976e4 = function () {
4412
4450
  return handleError(function (arg0, arg1, arg2) {
4413
4451
  let deferred0_0;
4414
4452
  let deferred0_1;
@@ -4423,7 +4461,7 @@ module.exports.__wbg_get_302642f7a13aa938 = function () {
4423
4461
  }, arguments);
4424
4462
  };
4425
4463
 
4426
- module.exports.__wbg_get_5ec6883135f99994 = function () {
4464
+ module.exports.__wbg_get_0d53d8bad034f847 = function () {
4427
4465
  return handleError(function (arg0, arg1, arg2) {
4428
4466
  let deferred0_0;
4429
4467
  let deferred0_1;
@@ -4450,7 +4488,7 @@ module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
4450
4488
  return addHeapObject(ret);
4451
4489
  };
4452
4490
 
4453
- module.exports.__wbg_getaccesstoken_f91f83776d536dc6 = function (arg0) {
4491
+ module.exports.__wbg_getaccesstoken_3a9776f32a1130a3 = 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.__wbg_list_1c9d0649715a6397 = function () {
4676
+ module.exports.__wbg_list_6fcd7aa4f49b230e = 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.__wbg_list_6a696a343b3e3368 = function () {
4683
+ module.exports.__wbg_list_b8eb4a9fd04e8583 = 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 __wbg_adapter_354(a, state0.b, arg0, arg1);
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.__wbg_remove_67be0baf343040f2 = function () {
4889
+ module.exports.__wbg_remove_b61892357ced7e0d = 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_67be0baf343040f2 = function () {
4863
4901
  }, arguments);
4864
4902
  };
4865
4903
 
4866
- module.exports.__wbg_remove_bd74d45a16a100f8 = function () {
4904
+ module.exports.__wbg_remove_d38612e2e58a9e8f = function () {
4867
4905
  return handleError(function (arg0, arg1, arg2) {
4868
4906
  let deferred0_0;
4869
4907
  let deferred0_1;
@@ -4909,15 +4947,7 @@ module.exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
4909
4947
  return addHeapObject(ret);
4910
4948
  };
4911
4949
 
4912
- module.exports.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
4913
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
4914
- };
4915
-
4916
- module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
4917
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4918
- };
4919
-
4920
- module.exports.__wbg_set_6191c49af670792c = function () {
4950
+ module.exports.__wbg_set_21a2ed8a70365e91 = function () {
4921
4951
  return handleError(function (arg0, arg1, arg2, arg3) {
4922
4952
  let deferred0_0;
4923
4953
  let deferred0_1;
@@ -4932,16 +4962,19 @@ module.exports.__wbg_set_6191c49af670792c = function () {
4932
4962
  }, arguments);
4933
4963
  };
4934
4964
 
4935
- module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
4936
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4965
+ module.exports.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
4966
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
4937
4967
  };
4938
4968
 
4939
- module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
4940
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4941
- return addHeapObject(ret);
4969
+ module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
4970
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4971
+ };
4972
+
4973
+ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
4974
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4942
4975
  };
4943
4976
 
4944
- module.exports.__wbg_set_ad3ed0ab770b3ea2 = function () {
4977
+ module.exports.__wbg_set_8e9c610c5c900fb3 = function () {
4945
4978
  return handleError(function (arg0, arg1, arg2, arg3) {
4946
4979
  let deferred0_0;
4947
4980
  let deferred0_1;
@@ -4956,6 +4989,11 @@ module.exports.__wbg_set_ad3ed0ab770b3ea2 = function () {
4956
4989
  }, arguments);
4957
4990
  };
4958
4991
 
4992
+ module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
4993
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4994
+ return addHeapObject(ret);
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.__wbindgen_closure_wrapper4270 = function (arg0, arg1, arg2) {
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.__wbindgen_closure_wrapper8246 = function (arg0, arg1, arg2) {
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.__wbindgen_closure_wrapper8629 = function (arg0, arg1, arg2) {
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
  };
@@ -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 authclient_send_access: (a: number) => number;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/commercial-sdk-internal",
3
- "version": "0.2.0-main.368",
3
+ "version": "0.2.0-main.370",
4
4
  "license": "BITWARDEN SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT",
5
5
  "repository": {
6
6
  "type": "git",