@bitwarden/sdk-internal 0.2.0-main.253 → 0.2.0-main.255

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.
@@ -167,6 +167,11 @@ export interface TokenProvider {
167
167
  get_access_token(): Promise<string | undefined>;
168
168
  }
169
169
 
170
+ /**
171
+ * Active feature flags for the SDK.
172
+ */
173
+ export interface FeatureFlags extends Map<string, boolean> {}
174
+
170
175
  export interface TestError extends Error {
171
176
  name: "TestError";
172
177
  }
@@ -445,16 +450,6 @@ export interface StatefulCryptoError extends Error {
445
450
 
446
451
  export function isStatefulCryptoError(error: any): error is StatefulCryptoError;
447
452
 
448
- /**
449
- * Feature flags for the Bitwarden SDK client.
450
- */
451
- export interface Flags {
452
- /**
453
- * Enable cipher key encryption within the `CipherClient`
454
- */
455
- enableCipherKeyEncryption?: boolean;
456
- }
457
-
458
453
  export interface EncryptionSettingsError extends Error {
459
454
  name: "EncryptionSettingsError";
460
455
  variant:
@@ -1713,7 +1708,7 @@ export class PlatformClient {
1713
1708
  /**
1714
1709
  * Load feature flags into the client
1715
1710
  */
1716
- load_flags(flags: Flags): void;
1711
+ load_flags(flags: FeatureFlags): void;
1717
1712
  }
1718
1713
  /**
1719
1714
  * This module represents a stopgap solution to provide access to primitive crypto functions for JS
@@ -2756,7 +2756,7 @@ class PlatformClient {
2756
2756
  }
2757
2757
  /**
2758
2758
  * Load feature flags into the client
2759
- * @param {Flags} flags
2759
+ * @param {FeatureFlags} flags
2760
2760
  */
2761
2761
  load_flags(flags) {
2762
2762
  try {
@@ -3917,7 +3917,12 @@ module.exports.__wbg_get_67b2ba62fc30de12 = function () {
3917
3917
  }, arguments);
3918
3918
  };
3919
3919
 
3920
- module.exports.__wbg_get_91f2f10f549e1b14 = function () {
3920
+ module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
3921
+ const ret = getObject(arg0)[arg1 >>> 0];
3922
+ return addHeapObject(ret);
3923
+ };
3924
+
3925
+ module.exports.__wbg_get_d607d2970ad03cd5 = function () {
3921
3926
  return handleError(function (arg0, arg1, arg2) {
3922
3927
  let deferred0_0;
3923
3928
  let deferred0_1;
@@ -3932,12 +3937,7 @@ module.exports.__wbg_get_91f2f10f549e1b14 = function () {
3932
3937
  }, arguments);
3933
3938
  };
3934
3939
 
3935
- module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
3936
- const ret = getObject(arg0)[arg1 >>> 0];
3937
- return addHeapObject(ret);
3938
- };
3939
-
3940
- module.exports.__wbg_get_bb0392cef9c16355 = function () {
3940
+ module.exports.__wbg_get_efc0df1033d41976 = function () {
3941
3941
  return handleError(function (arg0, arg1, arg2) {
3942
3942
  let deferred0_0;
3943
3943
  let deferred0_1;
@@ -3952,7 +3952,7 @@ module.exports.__wbg_get_bb0392cef9c16355 = function () {
3952
3952
  }, arguments);
3953
3953
  };
3954
3954
 
3955
- module.exports.__wbg_getaccesstoken_4201accf46d0dd9c = function (arg0) {
3955
+ module.exports.__wbg_getaccesstoken_53ef4be4a512efc3 = function (arg0) {
3956
3956
  const ret = getObject(arg0).get_access_token();
3957
3957
  return addHeapObject(ret);
3958
3958
  };
@@ -4057,14 +4057,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
4057
4057
  return ret;
4058
4058
  };
4059
4059
 
4060
- module.exports.__wbg_list_a72d5b774dc0701e = function () {
4060
+ module.exports.__wbg_list_4a95c40299572818 = function () {
4061
4061
  return handleError(function (arg0) {
4062
4062
  const ret = getObject(arg0).list();
4063
4063
  return addHeapObject(ret);
4064
4064
  }, arguments);
4065
4065
  };
4066
4066
 
4067
- module.exports.__wbg_list_cbdfab01b619cb4b = function () {
4067
+ module.exports.__wbg_list_c60e9c4dbfaab8b8 = function () {
4068
4068
  return handleError(function (arg0) {
4069
4069
  const ret = getObject(arg0).list();
4070
4070
  return addHeapObject(ret);
@@ -4246,7 +4246,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
4246
4246
  }, arguments);
4247
4247
  };
4248
4248
 
4249
- module.exports.__wbg_remove_202c93fccfd9f27b = function () {
4249
+ module.exports.__wbg_remove_51df0d8ce3518dd8 = function () {
4250
4250
  return handleError(function (arg0, arg1, arg2) {
4251
4251
  let deferred0_0;
4252
4252
  let deferred0_1;
@@ -4261,7 +4261,7 @@ module.exports.__wbg_remove_202c93fccfd9f27b = function () {
4261
4261
  }, arguments);
4262
4262
  };
4263
4263
 
4264
- module.exports.__wbg_remove_2ac0badb3957ef28 = function () {
4264
+ module.exports.__wbg_remove_f0c9a96b50d98cc3 = function () {
4265
4265
  return handleError(function (arg0, arg1, arg2) {
4266
4266
  let deferred0_0;
4267
4267
  let deferred0_1;
@@ -4300,7 +4300,19 @@ module.exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
4300
4300
  return addHeapObject(ret);
4301
4301
  };
4302
4302
 
4303
- module.exports.__wbg_set_0d0c8a2c99f22f2d = function () {
4303
+ module.exports.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
4304
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
4305
+ };
4306
+
4307
+ module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
4308
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4309
+ };
4310
+
4311
+ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
4312
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4313
+ };
4314
+
4315
+ module.exports.__wbg_set_8a8b3aa4d766257d = function () {
4304
4316
  return handleError(function (arg0, arg1, arg2, arg3) {
4305
4317
  let deferred0_0;
4306
4318
  let deferred0_1;
@@ -4315,7 +4327,12 @@ module.exports.__wbg_set_0d0c8a2c99f22f2d = function () {
4315
4327
  }, arguments);
4316
4328
  };
4317
4329
 
4318
- module.exports.__wbg_set_29e4eb6daff559a3 = function () {
4330
+ module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
4331
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4332
+ return addHeapObject(ret);
4333
+ };
4334
+
4335
+ module.exports.__wbg_set_ff28f81c87998a08 = function () {
4319
4336
  return handleError(function (arg0, arg1, arg2, arg3) {
4320
4337
  let deferred0_0;
4321
4338
  let deferred0_1;
@@ -4330,23 +4347,6 @@ module.exports.__wbg_set_29e4eb6daff559a3 = function () {
4330
4347
  }, arguments);
4331
4348
  };
4332
4349
 
4333
- module.exports.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
4334
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
4335
- };
4336
-
4337
- module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
4338
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4339
- };
4340
-
4341
- module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
4342
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4343
- };
4344
-
4345
- module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
4346
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4347
- return addHeapObject(ret);
4348
- };
4349
-
4350
4350
  module.exports.__wbg_setbody_5923b78a95eedf29 = function (arg0, arg1) {
4351
4351
  getObject(arg0).body = getObject(arg1);
4352
4352
  };
@@ -4535,18 +4535,18 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
4535
4535
  return ret;
4536
4536
  };
4537
4537
 
4538
- module.exports.__wbindgen_closure_wrapper3221 = function (arg0, arg1, arg2) {
4539
- const ret = makeMutClosure(arg0, arg1, 268, __wbg_adapter_54);
4538
+ module.exports.__wbindgen_closure_wrapper3253 = function (arg0, arg1, arg2) {
4539
+ const ret = makeMutClosure(arg0, arg1, 272, __wbg_adapter_54);
4540
4540
  return addHeapObject(ret);
4541
4541
  };
4542
4542
 
4543
- module.exports.__wbindgen_closure_wrapper5596 = function (arg0, arg1, arg2) {
4544
- const ret = makeMutClosure(arg0, arg1, 293, __wbg_adapter_54);
4543
+ module.exports.__wbindgen_closure_wrapper5624 = function (arg0, arg1, arg2) {
4544
+ const ret = makeMutClosure(arg0, arg1, 297, __wbg_adapter_54);
4545
4545
  return addHeapObject(ret);
4546
4546
  };
4547
4547
 
4548
- module.exports.__wbindgen_closure_wrapper5956 = function (arg0, arg1, arg2) {
4549
- const ret = makeMutClosure(arg0, arg1, 318, __wbg_adapter_59);
4548
+ module.exports.__wbindgen_closure_wrapper5982 = function (arg0, arg1, arg2) {
4549
+ const ret = makeMutClosure(arg0, arg1, 322, __wbg_adapter_59);
4550
4550
  return addHeapObject(ret);
4551
4551
  };
4552
4552
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.253",
3
+ "version": "0.2.0-main.255",
4
4
  "license": "GPL-3.0",
5
5
  "files": [
6
6
  "bitwarden_wasm_internal_bg.js",