@bitwarden/sdk-internal 0.2.0-main.311 → 0.2.0-main.312

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.
@@ -945,12 +945,7 @@ export interface PassphraseGeneratorRequest {
945
945
  includeNumber: boolean;
946
946
  }
947
947
 
948
- export interface PassphraseError extends Error {
949
- name: "PassphraseError";
950
- variant: "InvalidNumWords";
951
- }
952
-
953
- export function isPassphraseError(error: any): error is PassphraseError;
948
+ export type PassphraseError = { InvalidNumWords: { minimum: number; maximum: number } };
954
949
 
955
950
  export interface DiscoverResponse {
956
951
  version: string;
@@ -507,19 +507,6 @@ module.exports.isPasswordError = function (error) {
507
507
  }
508
508
  };
509
509
 
510
- /**
511
- * @param {any} error
512
- * @returns {boolean}
513
- */
514
- module.exports.isPassphraseError = function (error) {
515
- try {
516
- const ret = wasm.isPassphraseError(addBorrowedObject(error));
517
- return ret !== 0;
518
- } finally {
519
- heap[stack_pointer++] = undefined;
520
- }
521
- };
522
-
523
510
  function _assertClass(instance, klass) {
524
511
  if (!(instance instanceof klass)) {
525
512
  throw new Error(`expected instance of ${klass.name}`);
@@ -828,17 +815,9 @@ module.exports.isEncryptFileError = function (error) {
828
815
  };
829
816
 
830
817
  function __wbg_adapter_54(arg0, arg1, arg2) {
831
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8793204fba40d2ad(
832
- arg0,
833
- arg1,
834
- addHeapObject(arg2),
835
- );
836
- }
837
-
838
- function __wbg_adapter_57(arg0, arg1, arg2) {
839
818
  try {
840
819
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
841
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h29633be7d6a79170(
820
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb9e80c303706ad41(
842
821
  retptr,
843
822
  arg0,
844
823
  arg1,
@@ -854,6 +833,14 @@ function __wbg_adapter_57(arg0, arg1, arg2) {
854
833
  }
855
834
  }
856
835
 
836
+ function __wbg_adapter_57(arg0, arg1, arg2) {
837
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
838
+ arg0,
839
+ arg1,
840
+ addHeapObject(arg2),
841
+ );
842
+ }
843
+
857
844
  function __wbg_adapter_60(arg0, arg1) {
858
845
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
859
846
  arg0,
@@ -861,7 +848,7 @@ function __wbg_adapter_60(arg0, arg1) {
861
848
  );
862
849
  }
863
850
 
864
- function __wbg_adapter_337(arg0, arg1, arg2, arg3) {
851
+ function __wbg_adapter_336(arg0, arg1, arg2, arg3) {
865
852
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
866
853
  arg0,
867
854
  arg1,
@@ -4157,7 +4144,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
4157
4144
  return ret;
4158
4145
  };
4159
4146
 
4160
- module.exports.__wbg_get_3dca5935651f1080 = function () {
4147
+ module.exports.__wbg_get_06413fe5c74b47e9 = function () {
4161
4148
  return handleError(function (arg0, arg1, arg2) {
4162
4149
  let deferred0_0;
4163
4150
  let deferred0_1;
@@ -4172,7 +4159,14 @@ module.exports.__wbg_get_3dca5935651f1080 = function () {
4172
4159
  }, arguments);
4173
4160
  };
4174
4161
 
4175
- module.exports.__wbg_get_6085e06bb064bc86 = function () {
4162
+ module.exports.__wbg_get_67b2ba62fc30de12 = function () {
4163
+ return handleError(function (arg0, arg1) {
4164
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
4165
+ return addHeapObject(ret);
4166
+ }, arguments);
4167
+ };
4168
+
4169
+ module.exports.__wbg_get_a0e559c325e5c984 = function () {
4176
4170
  return handleError(function (arg0, arg1, arg2) {
4177
4171
  let deferred0_0;
4178
4172
  let deferred0_1;
@@ -4187,19 +4181,12 @@ module.exports.__wbg_get_6085e06bb064bc86 = function () {
4187
4181
  }, arguments);
4188
4182
  };
4189
4183
 
4190
- module.exports.__wbg_get_67b2ba62fc30de12 = function () {
4191
- return handleError(function (arg0, arg1) {
4192
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
4193
- return addHeapObject(ret);
4194
- }, arguments);
4195
- };
4196
-
4197
4184
  module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
4198
4185
  const ret = getObject(arg0)[arg1 >>> 0];
4199
4186
  return addHeapObject(ret);
4200
4187
  };
4201
4188
 
4202
- module.exports.__wbg_getaccesstoken_bfde4d326f7d5724 = function (arg0) {
4189
+ module.exports.__wbg_getaccesstoken_9ea03742be981bde = function (arg0) {
4203
4190
  const ret = getObject(arg0).get_access_token();
4204
4191
  return addHeapObject(ret);
4205
4192
  };
@@ -4384,14 +4371,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
4384
4371
  return ret;
4385
4372
  };
4386
4373
 
4387
- module.exports.__wbg_list_4e5c8ac8d5ef92c5 = function () {
4374
+ module.exports.__wbg_list_3f12bdb7e5687184 = function () {
4388
4375
  return handleError(function (arg0) {
4389
4376
  const ret = getObject(arg0).list();
4390
4377
  return addHeapObject(ret);
4391
4378
  }, arguments);
4392
4379
  };
4393
4380
 
4394
- module.exports.__wbg_list_6040e191bbb6453c = function () {
4381
+ module.exports.__wbg_list_a617cda4a5e0a3eb = function () {
4395
4382
  return handleError(function (arg0) {
4396
4383
  const ret = getObject(arg0).list();
4397
4384
  return addHeapObject(ret);
@@ -4434,7 +4421,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
4434
4421
  const a = state0.a;
4435
4422
  state0.a = 0;
4436
4423
  try {
4437
- return __wbg_adapter_337(a, state0.b, arg0, arg1);
4424
+ return __wbg_adapter_336(a, state0.b, arg0, arg1);
4438
4425
  } finally {
4439
4426
  state0.a = a;
4440
4427
  }
@@ -4592,7 +4579,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
4592
4579
  }, arguments);
4593
4580
  };
4594
4581
 
4595
- module.exports.__wbg_remove_15be877a4b0d43bf = function () {
4582
+ module.exports.__wbg_remove_55d70a14faa7a84e = function () {
4596
4583
  return handleError(function (arg0, arg1, arg2) {
4597
4584
  let deferred0_0;
4598
4585
  let deferred0_1;
@@ -4607,7 +4594,7 @@ module.exports.__wbg_remove_15be877a4b0d43bf = function () {
4607
4594
  }, arguments);
4608
4595
  };
4609
4596
 
4610
- module.exports.__wbg_remove_bc854a655eb9f040 = function () {
4597
+ module.exports.__wbg_remove_960e3b50ec787551 = function () {
4611
4598
  return handleError(function (arg0, arg1, arg2) {
4612
4599
  let deferred0_0;
4613
4600
  let deferred0_1;
@@ -4661,7 +4648,11 @@ module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
4661
4648
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4662
4649
  };
4663
4650
 
4664
- module.exports.__wbg_set_533ebe5f1c6148b9 = function () {
4651
+ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
4652
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4653
+ };
4654
+
4655
+ module.exports.__wbg_set_707b38d265c0047e = function () {
4665
4656
  return handleError(function (arg0, arg1, arg2, arg3) {
4666
4657
  let deferred0_0;
4667
4658
  let deferred0_1;
@@ -4676,16 +4667,12 @@ module.exports.__wbg_set_533ebe5f1c6148b9 = function () {
4676
4667
  }, arguments);
4677
4668
  };
4678
4669
 
4679
- module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
4680
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4681
- };
4682
-
4683
4670
  module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
4684
4671
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4685
4672
  return addHeapObject(ret);
4686
4673
  };
4687
4674
 
4688
- module.exports.__wbg_set_afa0c46c90c00eb5 = function () {
4675
+ module.exports.__wbg_set_fa5f3e1670c6515d = function () {
4689
4676
  return handleError(function (arg0, arg1, arg2, arg3) {
4690
4677
  let deferred0_0;
4691
4678
  let deferred0_1;
@@ -4910,28 +4897,28 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
4910
4897
  return ret;
4911
4898
  };
4912
4899
 
4913
- module.exports.__wbindgen_closure_wrapper193 = function (arg0, arg1, arg2) {
4900
+ module.exports.__wbindgen_closure_wrapper191 = function (arg0, arg1, arg2) {
4914
4901
  const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_54);
4915
4902
  return addHeapObject(ret);
4916
4903
  };
4917
4904
 
4918
- module.exports.__wbindgen_closure_wrapper195 = function (arg0, arg1, arg2) {
4905
+ module.exports.__wbindgen_closure_wrapper193 = function (arg0, arg1, arg2) {
4919
4906
  const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_57);
4920
4907
  return addHeapObject(ret);
4921
4908
  };
4922
4909
 
4923
- module.exports.__wbindgen_closure_wrapper3797 = function (arg0, arg1, arg2) {
4924
- const ret = makeMutClosure(arg0, arg1, 294, __wbg_adapter_60);
4910
+ module.exports.__wbindgen_closure_wrapper3801 = function (arg0, arg1, arg2) {
4911
+ const ret = makeMutClosure(arg0, arg1, 293, __wbg_adapter_60);
4925
4912
  return addHeapObject(ret);
4926
4913
  };
4927
4914
 
4928
- module.exports.__wbindgen_closure_wrapper6144 = function (arg0, arg1, arg2) {
4929
- const ret = makeMutClosure(arg0, arg1, 319, __wbg_adapter_60);
4915
+ module.exports.__wbindgen_closure_wrapper6146 = function (arg0, arg1, arg2) {
4916
+ const ret = makeMutClosure(arg0, arg1, 318, __wbg_adapter_60);
4930
4917
  return addHeapObject(ret);
4931
4918
  };
4932
4919
 
4933
- module.exports.__wbindgen_closure_wrapper6529 = function (arg0, arg1, arg2) {
4934
- const ret = makeMutClosure(arg0, arg1, 342, __wbg_adapter_54);
4920
+ module.exports.__wbindgen_closure_wrapper6531 = function (arg0, arg1, arg2) {
4921
+ const ret = makeMutClosure(arg0, arg1, 341, __wbg_adapter_57);
4935
4922
  return addHeapObject(ret);
4936
4923
  };
4937
4924
 
@@ -251,7 +251,6 @@ export const generatorclient_password: (a: number, b: number, c: number) => void
251
251
  export const generatorclient_passphrase: (a: number, b: number, c: number) => void;
252
252
  export const isUsernameError: (a: number) => number;
253
253
  export const isPasswordError: (a: number) => number;
254
- export const isPassphraseError: (a: number) => number;
255
254
  export const __wbg_outgoingmessage_free: (a: number, b: number) => void;
256
255
  export const __wbg_get_outgoingmessage_payload: (a: number, b: number) => void;
257
256
  export const __wbg_set_outgoingmessage_payload: (a: number, b: number, c: number) => void;
@@ -408,16 +407,16 @@ export const __wbindgen_exn_store: (a: number) => void;
408
407
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
409
408
  export const __wbindgen_export_4: WebAssembly.Table;
410
409
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
411
- export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8793204fba40d2ad: (
410
+ export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb9e80c303706ad41: (
412
411
  a: number,
413
412
  b: number,
414
413
  c: number,
414
+ d: number,
415
415
  ) => void;
416
- export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h29633be7d6a79170: (
416
+ export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02: (
417
417
  a: number,
418
418
  b: number,
419
419
  c: number,
420
- d: number,
421
420
  ) => void;
422
421
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e: (
423
422
  a: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.311",
3
+ "version": "0.2.0-main.312",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",