@bitwarden/sdk-internal 0.2.0-main.310 → 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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 92bb5c30abbcd9a12f429cf60df681492c886c65
1
+ c9758478be01fded5898b0c01b8478c657aef251
@@ -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;
@@ -513,19 +513,6 @@ export function isPasswordError(error) {
513
513
  }
514
514
  }
515
515
 
516
- /**
517
- * @param {any} error
518
- * @returns {boolean}
519
- */
520
- export function isPassphraseError(error) {
521
- try {
522
- const ret = wasm.isPassphraseError(addBorrowedObject(error));
523
- return ret !== 0;
524
- } finally {
525
- heap[stack_pointer++] = undefined;
526
- }
527
- }
528
-
529
516
  function _assertClass(instance, klass) {
530
517
  if (!(instance instanceof klass)) {
531
518
  throw new Error(`expected instance of ${klass.name}`);
@@ -836,7 +823,7 @@ export function isEncryptFileError(error) {
836
823
  function __wbg_adapter_54(arg0, arg1, arg2) {
837
824
  try {
838
825
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
839
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha454bdf5b4fbe0b2(
826
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb9e80c303706ad41(
840
827
  retptr,
841
828
  arg0,
842
829
  arg1,
@@ -853,7 +840,7 @@ function __wbg_adapter_54(arg0, arg1, arg2) {
853
840
  }
854
841
 
855
842
  function __wbg_adapter_57(arg0, arg1, arg2) {
856
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1357e1fddec762f2(
843
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
857
844
  arg0,
858
845
  arg1,
859
846
  addHeapObject(arg2),
@@ -867,7 +854,7 @@ function __wbg_adapter_60(arg0, arg1) {
867
854
  );
868
855
  }
869
856
 
870
- function __wbg_adapter_337(arg0, arg1, arg2, arg3) {
857
+ function __wbg_adapter_336(arg0, arg1, arg2, arg3) {
871
858
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
872
859
  arg0,
873
860
  arg1,
@@ -4141,7 +4128,7 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
4141
4128
  return ret;
4142
4129
  }
4143
4130
 
4144
- export function __wbg_get_3a409a7dafd3e832() {
4131
+ export function __wbg_get_06413fe5c74b47e9() {
4145
4132
  return handleError(function (arg0, arg1, arg2) {
4146
4133
  let deferred0_0;
4147
4134
  let deferred0_1;
@@ -4163,7 +4150,7 @@ export function __wbg_get_67b2ba62fc30de12() {
4163
4150
  }, arguments);
4164
4151
  }
4165
4152
 
4166
- export function __wbg_get_95a0582c46fd0c96() {
4153
+ export function __wbg_get_a0e559c325e5c984() {
4167
4154
  return handleError(function (arg0, arg1, arg2) {
4168
4155
  let deferred0_0;
4169
4156
  let deferred0_1;
@@ -4183,7 +4170,7 @@ export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
4183
4170
  return addHeapObject(ret);
4184
4171
  }
4185
4172
 
4186
- export function __wbg_getaccesstoken_cbb2f210f2f61bbd(arg0) {
4173
+ export function __wbg_getaccesstoken_9ea03742be981bde(arg0) {
4187
4174
  const ret = getObject(arg0).get_access_token();
4188
4175
  return addHeapObject(ret);
4189
4176
  }
@@ -4368,14 +4355,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
4368
4355
  return ret;
4369
4356
  }
4370
4357
 
4371
- export function __wbg_list_b1cdc7778de66020() {
4358
+ export function __wbg_list_3f12bdb7e5687184() {
4372
4359
  return handleError(function (arg0) {
4373
4360
  const ret = getObject(arg0).list();
4374
4361
  return addHeapObject(ret);
4375
4362
  }, arguments);
4376
4363
  }
4377
4364
 
4378
- export function __wbg_list_bcf3b9131930635a() {
4365
+ export function __wbg_list_a617cda4a5e0a3eb() {
4379
4366
  return handleError(function (arg0) {
4380
4367
  const ret = getObject(arg0).list();
4381
4368
  return addHeapObject(ret);
@@ -4418,7 +4405,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
4418
4405
  const a = state0.a;
4419
4406
  state0.a = 0;
4420
4407
  try {
4421
- return __wbg_adapter_337(a, state0.b, arg0, arg1);
4408
+ return __wbg_adapter_336(a, state0.b, arg0, arg1);
4422
4409
  } finally {
4423
4410
  state0.a = a;
4424
4411
  }
@@ -4576,7 +4563,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
4576
4563
  }, arguments);
4577
4564
  }
4578
4565
 
4579
- export function __wbg_remove_975abb7a03360aba() {
4566
+ export function __wbg_remove_55d70a14faa7a84e() {
4580
4567
  return handleError(function (arg0, arg1, arg2) {
4581
4568
  let deferred0_0;
4582
4569
  let deferred0_1;
@@ -4591,7 +4578,7 @@ export function __wbg_remove_975abb7a03360aba() {
4591
4578
  }, arguments);
4592
4579
  }
4593
4580
 
4594
- export function __wbg_remove_b7b33f655fbc8553() {
4581
+ export function __wbg_remove_960e3b50ec787551() {
4595
4582
  return handleError(function (arg0, arg1, arg2) {
4596
4583
  let deferred0_0;
4597
4584
  let deferred0_1;
@@ -4645,7 +4632,11 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
4645
4632
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4646
4633
  }
4647
4634
 
4648
- export function __wbg_set_40d071fe896210d7() {
4635
+ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
4636
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4637
+ }
4638
+
4639
+ export function __wbg_set_707b38d265c0047e() {
4649
4640
  return handleError(function (arg0, arg1, arg2, arg3) {
4650
4641
  let deferred0_0;
4651
4642
  let deferred0_1;
@@ -4660,16 +4651,12 @@ export function __wbg_set_40d071fe896210d7() {
4660
4651
  }, arguments);
4661
4652
  }
4662
4653
 
4663
- export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
4664
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4665
- }
4666
-
4667
4654
  export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
4668
4655
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4669
4656
  return addHeapObject(ret);
4670
4657
  }
4671
4658
 
4672
- export function __wbg_set_9b654d2ccc308957() {
4659
+ export function __wbg_set_fa5f3e1670c6515d() {
4673
4660
  return handleError(function (arg0, arg1, arg2, arg3) {
4674
4661
  let deferred0_0;
4675
4662
  let deferred0_1;
@@ -4904,18 +4891,18 @@ export function __wbindgen_closure_wrapper193(arg0, arg1, arg2) {
4904
4891
  return addHeapObject(ret);
4905
4892
  }
4906
4893
 
4907
- export function __wbindgen_closure_wrapper3786(arg0, arg1, arg2) {
4908
- const ret = makeMutClosure(arg0, arg1, 294, __wbg_adapter_60);
4894
+ export function __wbindgen_closure_wrapper3801(arg0, arg1, arg2) {
4895
+ const ret = makeMutClosure(arg0, arg1, 293, __wbg_adapter_60);
4909
4896
  return addHeapObject(ret);
4910
4897
  }
4911
4898
 
4912
- export function __wbindgen_closure_wrapper6140(arg0, arg1, arg2) {
4913
- const ret = makeMutClosure(arg0, arg1, 319, __wbg_adapter_60);
4899
+ export function __wbindgen_closure_wrapper6146(arg0, arg1, arg2) {
4900
+ const ret = makeMutClosure(arg0, arg1, 318, __wbg_adapter_60);
4914
4901
  return addHeapObject(ret);
4915
4902
  }
4916
4903
 
4917
- export function __wbindgen_closure_wrapper6521(arg0, arg1, arg2) {
4918
- const ret = makeMutClosure(arg0, arg1, 342, __wbg_adapter_57);
4904
+ export function __wbindgen_closure_wrapper6531(arg0, arg1, arg2) {
4905
+ const ret = makeMutClosure(arg0, arg1, 341, __wbg_adapter_57);
4919
4906
  return addHeapObject(ret);
4920
4907
  }
4921
4908
 
Binary file
@@ -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,13 +407,13 @@ 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__ha454bdf5b4fbe0b2: (
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,
415
414
  d: number,
416
415
  ) => void;
417
- export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1357e1fddec762f2: (
416
+ export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02: (
418
417
  a: number,
419
418
  b: number,
420
419
  c: number,