@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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- d0262d3e820f1aa3c843cb0ce24d262492d76eff
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}`);
@@ -834,17 +821,9 @@ export function isEncryptFileError(error) {
834
821
  }
835
822
 
836
823
  function __wbg_adapter_54(arg0, arg1, arg2) {
837
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8793204fba40d2ad(
838
- arg0,
839
- arg1,
840
- addHeapObject(arg2),
841
- );
842
- }
843
-
844
- function __wbg_adapter_57(arg0, arg1, arg2) {
845
824
  try {
846
825
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
847
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h29633be7d6a79170(
826
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb9e80c303706ad41(
848
827
  retptr,
849
828
  arg0,
850
829
  arg1,
@@ -860,6 +839,14 @@ function __wbg_adapter_57(arg0, arg1, arg2) {
860
839
  }
861
840
  }
862
841
 
842
+ function __wbg_adapter_57(arg0, arg1, arg2) {
843
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
844
+ arg0,
845
+ arg1,
846
+ addHeapObject(arg2),
847
+ );
848
+ }
849
+
863
850
  function __wbg_adapter_60(arg0, arg1) {
864
851
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
865
852
  arg0,
@@ -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_3dca5935651f1080() {
4131
+ export function __wbg_get_06413fe5c74b47e9() {
4145
4132
  return handleError(function (arg0, arg1, arg2) {
4146
4133
  let deferred0_0;
4147
4134
  let deferred0_1;
@@ -4156,7 +4143,14 @@ export function __wbg_get_3dca5935651f1080() {
4156
4143
  }, arguments);
4157
4144
  }
4158
4145
 
4159
- export function __wbg_get_6085e06bb064bc86() {
4146
+ export function __wbg_get_67b2ba62fc30de12() {
4147
+ return handleError(function (arg0, arg1) {
4148
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
4149
+ return addHeapObject(ret);
4150
+ }, arguments);
4151
+ }
4152
+
4153
+ export function __wbg_get_a0e559c325e5c984() {
4160
4154
  return handleError(function (arg0, arg1, arg2) {
4161
4155
  let deferred0_0;
4162
4156
  let deferred0_1;
@@ -4171,19 +4165,12 @@ export function __wbg_get_6085e06bb064bc86() {
4171
4165
  }, arguments);
4172
4166
  }
4173
4167
 
4174
- export function __wbg_get_67b2ba62fc30de12() {
4175
- return handleError(function (arg0, arg1) {
4176
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
4177
- return addHeapObject(ret);
4178
- }, arguments);
4179
- }
4180
-
4181
4168
  export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
4182
4169
  const ret = getObject(arg0)[arg1 >>> 0];
4183
4170
  return addHeapObject(ret);
4184
4171
  }
4185
4172
 
4186
- export function __wbg_getaccesstoken_bfde4d326f7d5724(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_4e5c8ac8d5ef92c5() {
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_6040e191bbb6453c() {
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_15be877a4b0d43bf() {
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_15be877a4b0d43bf() {
4591
4578
  }, arguments);
4592
4579
  }
4593
4580
 
4594
- export function __wbg_remove_bc854a655eb9f040() {
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_533ebe5f1c6148b9() {
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_533ebe5f1c6148b9() {
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_afa0c46c90c00eb5() {
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;
@@ -4894,28 +4881,28 @@ export function __wbindgen_cb_drop(arg0) {
4894
4881
  return ret;
4895
4882
  }
4896
4883
 
4897
- export function __wbindgen_closure_wrapper193(arg0, arg1, arg2) {
4884
+ export function __wbindgen_closure_wrapper191(arg0, arg1, arg2) {
4898
4885
  const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_54);
4899
4886
  return addHeapObject(ret);
4900
4887
  }
4901
4888
 
4902
- export function __wbindgen_closure_wrapper195(arg0, arg1, arg2) {
4889
+ export function __wbindgen_closure_wrapper193(arg0, arg1, arg2) {
4903
4890
  const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_57);
4904
4891
  return addHeapObject(ret);
4905
4892
  }
4906
4893
 
4907
- export function __wbindgen_closure_wrapper3797(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_wrapper6144(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_wrapper6529(arg0, arg1, arg2) {
4918
- const ret = makeMutClosure(arg0, arg1, 342, __wbg_adapter_54);
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,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,