@bitwarden/sdk-internal 0.2.0-main.224 → 0.2.0-main.225

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.
@@ -1244,7 +1244,7 @@ export interface Repository<T> {
1244
1244
  }
1245
1245
 
1246
1246
  export interface TokenProvider {
1247
- get_access_token(): Promise<string>;
1247
+ get_access_token(): Promise<string | undefined>;
1248
1248
  }
1249
1249
 
1250
1250
  export interface TestError extends Error {
@@ -1264,7 +1264,7 @@ export class AttachmentsClient {
1264
1264
  }
1265
1265
  export class BitwardenClient {
1266
1266
  free(): void;
1267
- constructor(settings: ClientSettings | null | undefined, token_provider: any);
1267
+ constructor(token_provider: any, settings?: ClientSettings | null);
1268
1268
  /**
1269
1269
  * Test method, echoes back the input
1270
1270
  */
@@ -985,13 +985,13 @@ class BitwardenClient {
985
985
  wasm.__wbg_bitwardenclient_free(ptr, 0);
986
986
  }
987
987
  /**
988
- * @param {ClientSettings | null | undefined} settings
989
988
  * @param {any} token_provider
989
+ * @param {ClientSettings | null} [settings]
990
990
  */
991
- constructor(settings, token_provider) {
991
+ constructor(token_provider, settings) {
992
992
  const ret = wasm.bitwardenclient_new(
993
- isLikeNone(settings) ? 0 : addHeapObject(settings),
994
993
  addHeapObject(token_provider),
994
+ isLikeNone(settings) ? 0 : addHeapObject(settings),
995
995
  );
996
996
  this.__wbg_ptr = ret >>> 0;
997
997
  BitwardenClientFinalization.register(this, this.__wbg_ptr, this);
@@ -3394,7 +3394,12 @@ module.exports.__wbg_get_67b2ba62fc30de12 = function () {
3394
3394
  }, arguments);
3395
3395
  };
3396
3396
 
3397
- module.exports.__wbg_get_890e4177717f9ef6 = function () {
3397
+ module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
3398
+ const ret = getObject(arg0)[arg1 >>> 0];
3399
+ return addHeapObject(ret);
3400
+ };
3401
+
3402
+ module.exports.__wbg_get_cefc449f27b5b2b5 = function () {
3398
3403
  return handleError(function (arg0, arg1, arg2) {
3399
3404
  let deferred0_0;
3400
3405
  let deferred0_1;
@@ -3409,12 +3414,7 @@ module.exports.__wbg_get_890e4177717f9ef6 = function () {
3409
3414
  }, arguments);
3410
3415
  };
3411
3416
 
3412
- module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
3413
- const ret = getObject(arg0)[arg1 >>> 0];
3414
- return addHeapObject(ret);
3415
- };
3416
-
3417
- module.exports.__wbg_getaccesstoken_0e9ad4049aeafc04 = function (arg0) {
3417
+ module.exports.__wbg_getaccesstoken_ea777e2ee11f5d4c = function (arg0) {
3418
3418
  const ret = getObject(arg0).get_access_token();
3419
3419
  return addHeapObject(ret);
3420
3420
  };
@@ -3519,7 +3519,7 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
3519
3519
  return ret;
3520
3520
  };
3521
3521
 
3522
- module.exports.__wbg_list_34dd2c5c74fa88f6 = function () {
3522
+ module.exports.__wbg_list_4c3389bca02ccd5d = function () {
3523
3523
  return handleError(function (arg0) {
3524
3524
  const ret = getObject(arg0).list();
3525
3525
  return addHeapObject(ret);
@@ -3696,7 +3696,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
3696
3696
  }, arguments);
3697
3697
  };
3698
3698
 
3699
- module.exports.__wbg_remove_58c93427251a9a40 = function () {
3699
+ module.exports.__wbg_remove_5bef744ea27147f9 = function () {
3700
3700
  return handleError(function (arg0, arg1, arg2) {
3701
3701
  let deferred0_0;
3702
3702
  let deferred0_1;
@@ -3747,7 +3747,7 @@ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
3747
3747
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
3748
3748
  };
3749
3749
 
3750
- module.exports.__wbg_set_f4ad258b3a9d2119 = function () {
3750
+ module.exports.__wbg_set_eb62834c6aad321f = function () {
3751
3751
  return handleError(function (arg0, arg1, arg2, arg3) {
3752
3752
  let deferred0_0;
3753
3753
  let deferred0_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.224",
3
+ "version": "0.2.0-main.225",
4
4
  "license": "GPL-3.0",
5
5
  "files": [
6
6
  "bitwarden_wasm_internal_bg.js",