@breeztech/breez-sdk-spark-react-native 0.12.2 → 0.12.3-dev1

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.
Files changed (36) hide show
  1. package/{breeztech-breez-sdk-spark-react-native.podspec → BreezSdkSparkReactNative.podspec} +2 -2
  2. package/README.md +6 -6
  3. package/android/CMakeLists.txt +3 -4
  4. package/cpp/generated/breez_sdk_spark.cpp +661 -452
  5. package/cpp/generated/breez_sdk_spark.hpp +49 -29
  6. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  7. package/lib/commonjs/generated/breez_sdk_spark.js +368 -157
  8. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  9. package/lib/commonjs/generated/breez_sdk_spark_bindings.js +4 -2
  10. package/lib/commonjs/generated/breez_sdk_spark_bindings.js.map +1 -1
  11. package/lib/commonjs/index.js +11 -1
  12. package/lib/commonjs/index.js.map +1 -1
  13. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  14. package/lib/module/generated/breez_sdk_spark.js +367 -156
  15. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  16. package/lib/module/generated/breez_sdk_spark_bindings.js +4 -2
  17. package/lib/module/generated/breez_sdk_spark_bindings.js.map +1 -1
  18. package/lib/module/index.js +7 -0
  19. package/lib/module/index.js.map +1 -1
  20. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +77 -71
  21. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  22. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +1066 -128
  23. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/src/index.d.ts +1 -0
  25. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  26. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +77 -71
  27. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  28. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +1066 -128
  29. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  30. package/lib/typescript/module/src/index.d.ts +1 -0
  31. package/lib/typescript/module/src/index.d.ts.map +1 -1
  32. package/package.json +4 -4
  33. package/src/generated/breez_sdk_spark-ffi.ts +106 -91
  34. package/src/generated/breez_sdk_spark.ts +2836 -1046
  35. package/src/generated/breez_sdk_spark_bindings.ts +2 -2
  36. package/src/index.tsx +7 -0
@@ -278,7 +278,7 @@ typedef void (*UniffiCallbackInterfaceStorageMethod8)(
278
278
  uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
279
279
  typedef void (*UniffiCallbackInterfaceStorageMethod9)(
280
280
  uint64_t uniffi_handle, RustBuffer txid, uint32_t vout,
281
- uint64_t amount_sats,
281
+ uint64_t amount_sats, int8_t is_mature,
282
282
  UniffiForeignFutureCompleteVoid uniffi_future_callback,
283
283
  uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
284
284
  typedef void (*UniffiCallbackInterfaceStorageMethod10)(
@@ -529,6 +529,8 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_list_payments(void *ptr,
529
529
  uniffi_breez_sdk_spark_fn_method_breezsdk_list_unclaimed_deposits(
530
530
  void *ptr, RustBuffer request);
531
531
  /*handle*/ uint64_t
532
+ uniffi_breez_sdk_spark_fn_method_breezsdk_list_webhooks(void *ptr);
533
+ /*handle*/ uint64_t
532
534
  uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth(void *ptr,
533
535
  RustBuffer request_data);
534
536
  /*handle*/ uint64_t
@@ -557,6 +559,9 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_refund_deposit(void *ptr,
557
559
  uniffi_breez_sdk_spark_fn_method_breezsdk_register_lightning_address(
558
560
  void *ptr, RustBuffer request);
559
561
  /*handle*/ uint64_t
562
+ uniffi_breez_sdk_spark_fn_method_breezsdk_register_webhook(void *ptr,
563
+ RustBuffer request);
564
+ /*handle*/ uint64_t
560
565
  uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(void *ptr,
561
566
  RustBuffer id);
562
567
  /*handle*/ uint64_t
@@ -565,12 +570,15 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(void *ptr,
565
570
  /*handle*/ uint64_t
566
571
  uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message(void *ptr,
567
572
  RustBuffer request);
568
- void uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(
569
- void *ptr, RustCallStatus *uniffi_out_err);
573
+ /*handle*/ uint64_t
574
+ uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(void *ptr);
570
575
  /*handle*/ uint64_t
571
576
  uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(void *ptr,
572
577
  RustBuffer request);
573
578
  /*handle*/ uint64_t
579
+ uniffi_breez_sdk_spark_fn_method_breezsdk_unregister_webhook(
580
+ void *ptr, RustBuffer request);
581
+ /*handle*/ uint64_t
574
582
  uniffi_breez_sdk_spark_fn_method_breezsdk_update_contact(void *ptr,
575
583
  RustBuffer request);
576
584
  /*handle*/ uint64_t
@@ -768,7 +776,8 @@ uniffi_breez_sdk_spark_fn_method_storage_get_payment_by_invoice(
768
776
  uniffi_breez_sdk_spark_fn_method_storage_get_payments_by_parent_ids(
769
777
  void *ptr, RustBuffer parent_payment_ids);
770
778
  /*handle*/ uint64_t uniffi_breez_sdk_spark_fn_method_storage_add_deposit(
771
- void *ptr, RustBuffer txid, uint32_t vout, uint64_t amount_sats);
779
+ void *ptr, RustBuffer txid, uint32_t vout, uint64_t amount_sats,
780
+ int8_t is_mature);
772
781
  /*handle*/ uint64_t uniffi_breez_sdk_spark_fn_method_storage_delete_deposit(
773
782
  void *ptr, RustBuffer txid, uint32_t vout);
774
783
  /*handle*/ uint64_t
@@ -1030,6 +1039,7 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates();
1030
1039
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments();
1031
1040
  uint16_t
1032
1041
  uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits();
1042
+ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks();
1033
1043
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth();
1034
1044
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay();
1035
1045
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw();
@@ -1041,6 +1051,7 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees();
1041
1051
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit();
1042
1052
  uint16_t
1043
1053
  uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address();
1054
+ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook();
1044
1055
  uint16_t
1045
1056
  uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener();
1046
1057
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment();
@@ -1048,6 +1059,7 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message();
1048
1059
  uint16_t
1049
1060
  uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization();
1050
1061
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet();
1062
+ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook();
1051
1063
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact();
1052
1064
  uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings();
1053
1065
  uint16_t
@@ -3608,10 +3620,11 @@ static void body(jsi::Runtime &rt,
3608
3620
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_event,
3609
3621
  js_uniffiFutureCallback, js_uniffiCallbackData);
3610
3622
 
3623
+ // return type is MutReference(Struct("ForeignFuture"))
3611
3624
  // Finally, we need to copy the return value back into the Rust pointer.
3612
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
3613
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
3614
- uniffiResult);
3625
+ *rs_uniffiOutReturn =
3626
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
3627
+ rt, callInvoker, uniffiResult);
3615
3628
  } catch (const jsi::JSError &error) {
3616
3629
  std::cout
3617
3630
  << "Error in callback UniffiCallbackInterfaceEventListenerMethod0: "
@@ -3883,10 +3896,11 @@ static void body(jsi::Runtime &rt,
3883
3896
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_address,
3884
3897
  js_uniffiFutureCallback, js_uniffiCallbackData);
3885
3898
 
3899
+ // return type is MutReference(Struct("ForeignFuture"))
3886
3900
  // Finally, we need to copy the return value back into the Rust pointer.
3887
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
3888
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
3889
- uniffiResult);
3901
+ *rs_uniffiOutReturn =
3902
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
3903
+ rt, callInvoker, uniffiResult);
3890
3904
  } catch (const jsi::JSError &error) {
3891
3905
  std::cout << "Error in callback "
3892
3906
  "UniffiCallbackInterfaceBitcoinChainServiceMethod0: "
@@ -4028,10 +4042,11 @@ static void body(jsi::Runtime &rt,
4028
4042
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_txid,
4029
4043
  js_uniffiFutureCallback, js_uniffiCallbackData);
4030
4044
 
4045
+ // return type is MutReference(Struct("ForeignFuture"))
4031
4046
  // Finally, we need to copy the return value back into the Rust pointer.
4032
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
4033
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
4034
- uniffiResult);
4047
+ *rs_uniffiOutReturn =
4048
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
4049
+ rt, callInvoker, uniffiResult);
4035
4050
  } catch (const jsi::JSError &error) {
4036
4051
  std::cout << "Error in callback "
4037
4052
  "UniffiCallbackInterfaceBitcoinChainServiceMethod1: "
@@ -4173,10 +4188,11 @@ static void body(jsi::Runtime &rt,
4173
4188
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_txid,
4174
4189
  js_uniffiFutureCallback, js_uniffiCallbackData);
4175
4190
 
4191
+ // return type is MutReference(Struct("ForeignFuture"))
4176
4192
  // Finally, we need to copy the return value back into the Rust pointer.
4177
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
4178
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
4179
- uniffiResult);
4193
+ *rs_uniffiOutReturn =
4194
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
4195
+ rt, callInvoker, uniffiResult);
4180
4196
  } catch (const jsi::JSError &error) {
4181
4197
  std::cout << "Error in callback "
4182
4198
  "UniffiCallbackInterfaceBitcoinChainServiceMethod2: "
@@ -4317,10 +4333,11 @@ static void body(jsi::Runtime &rt,
4317
4333
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_tx,
4318
4334
  js_uniffiFutureCallback, js_uniffiCallbackData);
4319
4335
 
4336
+ // return type is MutReference(Struct("ForeignFuture"))
4320
4337
  // Finally, we need to copy the return value back into the Rust pointer.
4321
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
4322
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
4323
- uniffiResult);
4338
+ *rs_uniffiOutReturn =
4339
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
4340
+ rt, callInvoker, uniffiResult);
4324
4341
  } catch (const jsi::JSError &error) {
4325
4342
  std::cout << "Error in callback "
4326
4343
  "UniffiCallbackInterfaceBitcoinChainServiceMethod3: "
@@ -4458,10 +4475,11 @@ static void body(jsi::Runtime &rt,
4458
4475
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
4459
4476
  js_uniffiCallbackData);
4460
4477
 
4478
+ // return type is MutReference(Struct("ForeignFuture"))
4461
4479
  // Finally, we need to copy the return value back into the Rust pointer.
4462
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
4463
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
4464
- uniffiResult);
4480
+ *rs_uniffiOutReturn =
4481
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
4482
+ rt, callInvoker, uniffiResult);
4465
4483
  } catch (const jsi::JSError &error) {
4466
4484
  std::cout << "Error in callback "
4467
4485
  "UniffiCallbackInterfaceBitcoinChainServiceMethod4: "
@@ -4599,7 +4617,9 @@ static void body(jsi::Runtime &rt,
4599
4617
  return;
4600
4618
  }
4601
4619
 
4602
- // Finally, we need to copy the return value back into the Rust pointer.
4620
+ // return type is MutReference(RustBuffer(Some(ExternalFfiMetadata { name:
4621
+ // "PublicKeyBytes", module_path: "breez_sdk_spark" }))) Finally, we need to
4622
+ // copy the return value back into the Rust pointer.
4603
4623
  *rs_uniffiOutReturn =
4604
4624
  uniffi::breez_sdk_spark::Bridging<ReferenceHolder<RustBuffer>>::fromJs(
4605
4625
  rt, callInvoker, uniffiResult);
@@ -4735,10 +4755,11 @@ static void body(jsi::Runtime &rt,
4735
4755
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_path,
4736
4756
  js_uniffiFutureCallback, js_uniffiCallbackData);
4737
4757
 
4758
+ // return type is MutReference(Struct("ForeignFuture"))
4738
4759
  // Finally, we need to copy the return value back into the Rust pointer.
4739
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
4740
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
4741
- uniffiResult);
4760
+ *rs_uniffiOutReturn =
4761
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
4762
+ rt, callInvoker, uniffiResult);
4742
4763
  } catch (const jsi::JSError &error) {
4743
4764
  std::cout
4744
4765
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod1: "
@@ -4882,10 +4903,11 @@ static void body(jsi::Runtime &rt,
4882
4903
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_message, js_path,
4883
4904
  js_uniffiFutureCallback, js_uniffiCallbackData);
4884
4905
 
4906
+ // return type is MutReference(Struct("ForeignFuture"))
4885
4907
  // Finally, we need to copy the return value back into the Rust pointer.
4886
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
4887
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
4888
- uniffiResult);
4908
+ *rs_uniffiOutReturn =
4909
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
4910
+ rt, callInvoker, uniffiResult);
4889
4911
  } catch (const jsi::JSError &error) {
4890
4912
  std::cout
4891
4913
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod2: "
@@ -5030,10 +5052,11 @@ static void body(jsi::Runtime &rt,
5030
5052
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_message, js_path,
5031
5053
  js_uniffiFutureCallback, js_uniffiCallbackData);
5032
5054
 
5055
+ // return type is MutReference(Struct("ForeignFuture"))
5033
5056
  // Finally, we need to copy the return value back into the Rust pointer.
5034
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5035
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5036
- uniffiResult);
5057
+ *rs_uniffiOutReturn =
5058
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5059
+ rt, callInvoker, uniffiResult);
5037
5060
  } catch (const jsi::JSError &error) {
5038
5061
  std::cout
5039
5062
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod3: "
@@ -5178,10 +5201,11 @@ static void body(jsi::Runtime &rt,
5178
5201
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_message, js_path,
5179
5202
  js_uniffiFutureCallback, js_uniffiCallbackData);
5180
5203
 
5204
+ // return type is MutReference(Struct("ForeignFuture"))
5181
5205
  // Finally, we need to copy the return value back into the Rust pointer.
5182
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5183
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5184
- uniffiResult);
5206
+ *rs_uniffiOutReturn =
5207
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5208
+ rt, callInvoker, uniffiResult);
5185
5209
  } catch (const jsi::JSError &error) {
5186
5210
  std::cout
5187
5211
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod4: "
@@ -5326,10 +5350,11 @@ static void body(jsi::Runtime &rt,
5326
5350
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_message, js_path,
5327
5351
  js_uniffiFutureCallback, js_uniffiCallbackData);
5328
5352
 
5353
+ // return type is MutReference(Struct("ForeignFuture"))
5329
5354
  // Finally, we need to copy the return value back into the Rust pointer.
5330
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5331
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5332
- uniffiResult);
5355
+ *rs_uniffiOutReturn =
5356
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5357
+ rt, callInvoker, uniffiResult);
5333
5358
  } catch (const jsi::JSError &error) {
5334
5359
  std::cout
5335
5360
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod5: "
@@ -5474,10 +5499,11 @@ static void body(jsi::Runtime &rt,
5474
5499
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_hash, js_path,
5475
5500
  js_uniffiFutureCallback, js_uniffiCallbackData);
5476
5501
 
5502
+ // return type is MutReference(Struct("ForeignFuture"))
5477
5503
  // Finally, we need to copy the return value back into the Rust pointer.
5478
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5479
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5480
- uniffiResult);
5504
+ *rs_uniffiOutReturn =
5505
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5506
+ rt, callInvoker, uniffiResult);
5481
5507
  } catch (const jsi::JSError &error) {
5482
5508
  std::cout
5483
5509
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod6: "
@@ -5622,10 +5648,11 @@ static void body(jsi::Runtime &rt,
5622
5648
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_message, js_path,
5623
5649
  js_uniffiFutureCallback, js_uniffiCallbackData);
5624
5650
 
5651
+ // return type is MutReference(Struct("ForeignFuture"))
5625
5652
  // Finally, we need to copy the return value back into the Rust pointer.
5626
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5627
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5628
- uniffiResult);
5653
+ *rs_uniffiOutReturn =
5654
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5655
+ rt, callInvoker, uniffiResult);
5629
5656
  } catch (const jsi::JSError &error) {
5630
5657
  std::cout
5631
5658
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod7: "
@@ -5764,10 +5791,11 @@ static void body(jsi::Runtime &rt,
5764
5791
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
5765
5792
  js_uniffiCallbackData);
5766
5793
 
5794
+ // return type is MutReference(Struct("ForeignFuture"))
5767
5795
  // Finally, we need to copy the return value back into the Rust pointer.
5768
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5769
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5770
- uniffiResult);
5796
+ *rs_uniffiOutReturn =
5797
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5798
+ rt, callInvoker, uniffiResult);
5771
5799
  } catch (const jsi::JSError &error) {
5772
5800
  std::cout
5773
5801
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod8: "
@@ -5907,10 +5935,11 @@ static void body(jsi::Runtime &rt,
5907
5935
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_id,
5908
5936
  js_uniffiFutureCallback, js_uniffiCallbackData);
5909
5937
 
5938
+ // return type is MutReference(Struct("ForeignFuture"))
5910
5939
  // Finally, we need to copy the return value back into the Rust pointer.
5911
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
5912
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
5913
- uniffiResult);
5940
+ *rs_uniffiOutReturn =
5941
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
5942
+ rt, callInvoker, uniffiResult);
5914
5943
  } catch (const jsi::JSError &error) {
5915
5944
  std::cout
5916
5945
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod9: "
@@ -6048,10 +6077,11 @@ static void body(jsi::Runtime &rt,
6048
6077
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
6049
6078
  js_uniffiCallbackData);
6050
6079
 
6080
+ // return type is MutReference(Struct("ForeignFuture"))
6051
6081
  // Finally, we need to copy the return value back into the Rust pointer.
6052
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6053
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6054
- uniffiResult);
6082
+ *rs_uniffiOutReturn =
6083
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6084
+ rt, callInvoker, uniffiResult);
6055
6085
  } catch (const jsi::JSError &error) {
6056
6086
  std::cout
6057
6087
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod10: "
@@ -6191,10 +6221,11 @@ static void body(jsi::Runtime &rt,
6191
6221
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_index,
6192
6222
  js_uniffiFutureCallback, js_uniffiCallbackData);
6193
6223
 
6224
+ // return type is MutReference(Struct("ForeignFuture"))
6194
6225
  // Finally, we need to copy the return value back into the Rust pointer.
6195
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6196
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6197
- uniffiResult);
6226
+ *rs_uniffiOutReturn =
6227
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6228
+ rt, callInvoker, uniffiResult);
6198
6229
  } catch (const jsi::JSError &error) {
6199
6230
  std::cout
6200
6231
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod11: "
@@ -6335,10 +6366,11 @@ static void body(jsi::Runtime &rt,
6335
6366
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_index,
6336
6367
  js_uniffiFutureCallback, js_uniffiCallbackData);
6337
6368
 
6369
+ // return type is MutReference(Struct("ForeignFuture"))
6338
6370
  // Finally, we need to copy the return value back into the Rust pointer.
6339
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6340
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6341
- uniffiResult);
6371
+ *rs_uniffiOutReturn =
6372
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6373
+ rt, callInvoker, uniffiResult);
6342
6374
  } catch (const jsi::JSError &error) {
6343
6375
  std::cout
6344
6376
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod12: "
@@ -6479,10 +6511,11 @@ static void body(jsi::Runtime &rt,
6479
6511
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_index,
6480
6512
  js_uniffiFutureCallback, js_uniffiCallbackData);
6481
6513
 
6514
+ // return type is MutReference(Struct("ForeignFuture"))
6482
6515
  // Finally, we need to copy the return value back into the Rust pointer.
6483
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6484
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6485
- uniffiResult);
6516
+ *rs_uniffiOutReturn =
6517
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6518
+ rt, callInvoker, uniffiResult);
6486
6519
  } catch (const jsi::JSError &error) {
6487
6520
  std::cout
6488
6521
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod13: "
@@ -6627,10 +6660,11 @@ static void body(jsi::Runtime &rt,
6627
6660
  cb.call(rt, js_uniffiHandle, js_signingKey, js_newSigningKey,
6628
6661
  js_uniffiFutureCallback, js_uniffiCallbackData);
6629
6662
 
6663
+ // return type is MutReference(Struct("ForeignFuture"))
6630
6664
  // Finally, we need to copy the return value back into the Rust pointer.
6631
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6632
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6633
- uniffiResult);
6665
+ *rs_uniffiOutReturn =
6666
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6667
+ rt, callInvoker, uniffiResult);
6634
6668
  } catch (const jsi::JSError &error) {
6635
6669
  std::cout
6636
6670
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod14: "
@@ -6779,10 +6813,11 @@ static void body(jsi::Runtime &rt,
6779
6813
  cb.call(rt, js_uniffiHandle, js_secret, js_threshold, js_numShares,
6780
6814
  js_uniffiFutureCallback, js_uniffiCallbackData);
6781
6815
 
6816
+ // return type is MutReference(Struct("ForeignFuture"))
6782
6817
  // Finally, we need to copy the return value back into the Rust pointer.
6783
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6784
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6785
- uniffiResult);
6818
+ *rs_uniffiOutReturn =
6819
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6820
+ rt, callInvoker, uniffiResult);
6786
6821
  } catch (const jsi::JSError &error) {
6787
6822
  std::cout
6788
6823
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod15: "
@@ -6930,10 +6965,11 @@ static void body(jsi::Runtime &rt,
6930
6965
  cb.call(rt, js_uniffiHandle, js_encryptedSecret, js_receiverPublicKey,
6931
6966
  js_uniffiFutureCallback, js_uniffiCallbackData);
6932
6967
 
6968
+ // return type is MutReference(Struct("ForeignFuture"))
6933
6969
  // Finally, we need to copy the return value back into the Rust pointer.
6934
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
6935
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
6936
- uniffiResult);
6970
+ *rs_uniffiOutReturn =
6971
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
6972
+ rt, callInvoker, uniffiResult);
6937
6973
  } catch (const jsi::JSError &error) {
6938
6974
  std::cout
6939
6975
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod16: "
@@ -7077,10 +7113,11 @@ static void body(jsi::Runtime &rt,
7077
7113
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_secret,
7078
7114
  js_uniffiFutureCallback, js_uniffiCallbackData);
7079
7115
 
7116
+ // return type is MutReference(Struct("ForeignFuture"))
7080
7117
  // Finally, we need to copy the return value back into the Rust pointer.
7081
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7082
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7083
- uniffiResult);
7118
+ *rs_uniffiOutReturn =
7119
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7120
+ rt, callInvoker, uniffiResult);
7084
7121
  } catch (const jsi::JSError &error) {
7085
7122
  std::cout
7086
7123
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod17: "
@@ -7221,10 +7258,11 @@ static void body(jsi::Runtime &rt,
7221
7258
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_request,
7222
7259
  js_uniffiFutureCallback, js_uniffiCallbackData);
7223
7260
 
7261
+ // return type is MutReference(Struct("ForeignFuture"))
7224
7262
  // Finally, we need to copy the return value back into the Rust pointer.
7225
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7226
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7227
- uniffiResult);
7263
+ *rs_uniffiOutReturn =
7264
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7265
+ rt, callInvoker, uniffiResult);
7228
7266
  } catch (const jsi::JSError &error) {
7229
7267
  std::cout
7230
7268
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod18: "
@@ -7365,10 +7403,11 @@ static void body(jsi::Runtime &rt,
7365
7403
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_request,
7366
7404
  js_uniffiFutureCallback, js_uniffiCallbackData);
7367
7405
 
7406
+ // return type is MutReference(Struct("ForeignFuture"))
7368
7407
  // Finally, we need to copy the return value back into the Rust pointer.
7369
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7370
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7371
- uniffiResult);
7408
+ *rs_uniffiOutReturn =
7409
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7410
+ rt, callInvoker, uniffiResult);
7372
7411
  } catch (const jsi::JSError &error) {
7373
7412
  std::cout
7374
7413
  << "Error in callback UniffiCallbackInterfaceExternalSignerMethod19: "
@@ -7506,10 +7545,11 @@ static void body(jsi::Runtime &rt,
7506
7545
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
7507
7546
  js_uniffiCallbackData);
7508
7547
 
7548
+ // return type is MutReference(Struct("ForeignFuture"))
7509
7549
  // Finally, we need to copy the return value back into the Rust pointer.
7510
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7511
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7512
- uniffiResult);
7550
+ *rs_uniffiOutReturn =
7551
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7552
+ rt, callInvoker, uniffiResult);
7513
7553
  } catch (const jsi::JSError &error) {
7514
7554
  std::cout << "Error in callback UniffiCallbackInterfaceFiatServiceMethod0: "
7515
7555
  << error.what() << std::endl;
@@ -7644,10 +7684,11 @@ static void body(jsi::Runtime &rt,
7644
7684
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
7645
7685
  js_uniffiCallbackData);
7646
7686
 
7687
+ // return type is MutReference(Struct("ForeignFuture"))
7647
7688
  // Finally, we need to copy the return value back into the Rust pointer.
7648
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7649
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7650
- uniffiResult);
7689
+ *rs_uniffiOutReturn =
7690
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7691
+ rt, callInvoker, uniffiResult);
7651
7692
  } catch (const jsi::JSError &error) {
7652
7693
  std::cout << "Error in callback UniffiCallbackInterfaceFiatServiceMethod1: "
7653
7694
  << error.what() << std::endl;
@@ -7786,10 +7827,11 @@ static void body(jsi::Runtime &rt,
7786
7827
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_salt,
7787
7828
  js_uniffiFutureCallback, js_uniffiCallbackData);
7788
7829
 
7830
+ // return type is MutReference(Struct("ForeignFuture"))
7789
7831
  // Finally, we need to copy the return value back into the Rust pointer.
7790
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7791
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7792
- uniffiResult);
7832
+ *rs_uniffiOutReturn =
7833
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7834
+ rt, callInvoker, uniffiResult);
7793
7835
  } catch (const jsi::JSError &error) {
7794
7836
  std::cout << "Error in callback "
7795
7837
  "UniffiCallbackInterfacePasskeyPrfProviderMethod0: "
@@ -7928,10 +7970,11 @@ static void body(jsi::Runtime &rt,
7928
7970
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
7929
7971
  js_uniffiCallbackData);
7930
7972
 
7973
+ // return type is MutReference(Struct("ForeignFuture"))
7931
7974
  // Finally, we need to copy the return value back into the Rust pointer.
7932
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
7933
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
7934
- uniffiResult);
7975
+ *rs_uniffiOutReturn =
7976
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
7977
+ rt, callInvoker, uniffiResult);
7935
7978
  } catch (const jsi::JSError &error) {
7936
7979
  std::cout << "Error in callback "
7937
7980
  "UniffiCallbackInterfacePasskeyPrfProviderMethod1: "
@@ -8069,10 +8112,11 @@ static void body(jsi::Runtime &rt,
8069
8112
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_payments,
8070
8113
  js_uniffiFutureCallback, js_uniffiCallbackData);
8071
8114
 
8115
+ // return type is MutReference(Struct("ForeignFuture"))
8072
8116
  // Finally, we need to copy the return value back into the Rust pointer.
8073
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8074
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8075
- uniffiResult);
8117
+ *rs_uniffiOutReturn =
8118
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8119
+ rt, callInvoker, uniffiResult);
8076
8120
  } catch (const jsi::JSError &error) {
8077
8121
  std::cout
8078
8122
  << "Error in callback UniffiCallbackInterfacePaymentObserverMethod0: "
@@ -8215,10 +8259,11 @@ static void body(jsi::Runtime &rt,
8215
8259
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_url, js_headers,
8216
8260
  js_uniffiFutureCallback, js_uniffiCallbackData);
8217
8261
 
8262
+ // return type is MutReference(Struct("ForeignFuture"))
8218
8263
  // Finally, we need to copy the return value back into the Rust pointer.
8219
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8220
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8221
- uniffiResult);
8264
+ *rs_uniffiOutReturn =
8265
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8266
+ rt, callInvoker, uniffiResult);
8222
8267
  } catch (const jsi::JSError &error) {
8223
8268
  std::cout << "Error in callback UniffiCallbackInterfaceRestClientMethod0: "
8224
8269
  << error.what() << std::endl;
@@ -8364,10 +8409,11 @@ static void body(jsi::Runtime &rt,
8364
8409
  cb.call(rt, js_uniffiHandle, js_url, js_headers, js_body,
8365
8410
  js_uniffiFutureCallback, js_uniffiCallbackData);
8366
8411
 
8412
+ // return type is MutReference(Struct("ForeignFuture"))
8367
8413
  // Finally, we need to copy the return value back into the Rust pointer.
8368
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8369
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8370
- uniffiResult);
8414
+ *rs_uniffiOutReturn =
8415
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8416
+ rt, callInvoker, uniffiResult);
8371
8417
  } catch (const jsi::JSError &error) {
8372
8418
  std::cout << "Error in callback UniffiCallbackInterfaceRestClientMethod1: "
8373
8419
  << error.what() << std::endl;
@@ -8514,10 +8560,11 @@ static void body(jsi::Runtime &rt,
8514
8560
  cb.call(rt, js_uniffiHandle, js_url, js_headers, js_body,
8515
8561
  js_uniffiFutureCallback, js_uniffiCallbackData);
8516
8562
 
8563
+ // return type is MutReference(Struct("ForeignFuture"))
8517
8564
  // Finally, we need to copy the return value back into the Rust pointer.
8518
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8519
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8520
- uniffiResult);
8565
+ *rs_uniffiOutReturn =
8566
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8567
+ rt, callInvoker, uniffiResult);
8521
8568
  } catch (const jsi::JSError &error) {
8522
8569
  std::cout << "Error in callback UniffiCallbackInterfaceRestClientMethod2: "
8523
8570
  << error.what() << std::endl;
@@ -8657,10 +8704,11 @@ static void body(jsi::Runtime &rt,
8657
8704
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_key,
8658
8705
  js_uniffiFutureCallback, js_uniffiCallbackData);
8659
8706
 
8707
+ // return type is MutReference(Struct("ForeignFuture"))
8660
8708
  // Finally, we need to copy the return value back into the Rust pointer.
8661
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8662
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8663
- uniffiResult);
8709
+ *rs_uniffiOutReturn =
8710
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8711
+ rt, callInvoker, uniffiResult);
8664
8712
  } catch (const jsi::JSError &error) {
8665
8713
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod0: "
8666
8714
  << error.what() << std::endl;
@@ -8798,10 +8846,11 @@ static void body(jsi::Runtime &rt,
8798
8846
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_key,
8799
8847
  js_uniffiFutureCallback, js_uniffiCallbackData);
8800
8848
 
8849
+ // return type is MutReference(Struct("ForeignFuture"))
8801
8850
  // Finally, we need to copy the return value back into the Rust pointer.
8802
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8803
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8804
- uniffiResult);
8851
+ *rs_uniffiOutReturn =
8852
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8853
+ rt, callInvoker, uniffiResult);
8805
8854
  } catch (const jsi::JSError &error) {
8806
8855
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod1: "
8807
8856
  << error.what() << std::endl;
@@ -8943,10 +8992,11 @@ static void body(jsi::Runtime &rt,
8943
8992
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_key, js_value,
8944
8993
  js_uniffiFutureCallback, js_uniffiCallbackData);
8945
8994
 
8995
+ // return type is MutReference(Struct("ForeignFuture"))
8946
8996
  // Finally, we need to copy the return value back into the Rust pointer.
8947
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
8948
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
8949
- uniffiResult);
8997
+ *rs_uniffiOutReturn =
8998
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
8999
+ rt, callInvoker, uniffiResult);
8950
9000
  } catch (const jsi::JSError &error) {
8951
9001
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod2: "
8952
9002
  << error.what() << std::endl;
@@ -9086,10 +9136,11 @@ static void body(jsi::Runtime &rt,
9086
9136
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_request,
9087
9137
  js_uniffiFutureCallback, js_uniffiCallbackData);
9088
9138
 
9139
+ // return type is MutReference(Struct("ForeignFuture"))
9089
9140
  // Finally, we need to copy the return value back into the Rust pointer.
9090
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9091
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9092
- uniffiResult);
9141
+ *rs_uniffiOutReturn =
9142
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
9143
+ rt, callInvoker, uniffiResult);
9093
9144
  } catch (const jsi::JSError &error) {
9094
9145
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod3: "
9095
9146
  << error.what() << std::endl;
@@ -9227,10 +9278,11 @@ static void body(jsi::Runtime &rt,
9227
9278
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_payment,
9228
9279
  js_uniffiFutureCallback, js_uniffiCallbackData);
9229
9280
 
9281
+ // return type is MutReference(Struct("ForeignFuture"))
9230
9282
  // Finally, we need to copy the return value back into the Rust pointer.
9231
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9232
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9233
- uniffiResult);
9283
+ *rs_uniffiOutReturn =
9284
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
9285
+ rt, callInvoker, uniffiResult);
9234
9286
  } catch (const jsi::JSError &error) {
9235
9287
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod4: "
9236
9288
  << error.what() << std::endl;
@@ -9371,10 +9423,11 @@ static void body(jsi::Runtime &rt,
9371
9423
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_paymentId, js_metadata,
9372
9424
  js_uniffiFutureCallback, js_uniffiCallbackData);
9373
9425
 
9426
+ // return type is MutReference(Struct("ForeignFuture"))
9374
9427
  // Finally, we need to copy the return value back into the Rust pointer.
9375
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9376
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9377
- uniffiResult);
9428
+ *rs_uniffiOutReturn =
9429
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
9430
+ rt, callInvoker, uniffiResult);
9378
9431
  } catch (const jsi::JSError &error) {
9379
9432
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod5: "
9380
9433
  << error.what() << std::endl;
@@ -9514,10 +9567,11 @@ static void body(jsi::Runtime &rt,
9514
9567
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_id,
9515
9568
  js_uniffiFutureCallback, js_uniffiCallbackData);
9516
9569
 
9570
+ // return type is MutReference(Struct("ForeignFuture"))
9517
9571
  // Finally, we need to copy the return value back into the Rust pointer.
9518
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9519
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9520
- uniffiResult);
9572
+ *rs_uniffiOutReturn =
9573
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
9574
+ rt, callInvoker, uniffiResult);
9521
9575
  } catch (const jsi::JSError &error) {
9522
9576
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod6: "
9523
9577
  << error.what() << std::endl;
@@ -9656,10 +9710,11 @@ static void body(jsi::Runtime &rt,
9656
9710
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_invoice,
9657
9711
  js_uniffiFutureCallback, js_uniffiCallbackData);
9658
9712
 
9713
+ // return type is MutReference(Struct("ForeignFuture"))
9659
9714
  // Finally, we need to copy the return value back into the Rust pointer.
9660
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9661
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9662
- uniffiResult);
9715
+ *rs_uniffiOutReturn =
9716
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
9717
+ rt, callInvoker, uniffiResult);
9663
9718
  } catch (const jsi::JSError &error) {
9664
9719
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod7: "
9665
9720
  << error.what() << std::endl;
@@ -9799,10 +9854,11 @@ static void body(jsi::Runtime &rt,
9799
9854
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_parentPaymentIds,
9800
9855
  js_uniffiFutureCallback, js_uniffiCallbackData);
9801
9856
 
9857
+ // return type is MutReference(Struct("ForeignFuture"))
9802
9858
  // Finally, we need to copy the return value back into the Rust pointer.
9803
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9804
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9805
- uniffiResult);
9859
+ *rs_uniffiOutReturn =
9860
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
9861
+ rt, callInvoker, uniffiResult);
9806
9862
  } catch (const jsi::JSError &error) {
9807
9863
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod8: "
9808
9864
  << error.what() << std::endl;
@@ -9905,7 +9961,7 @@ using namespace facebook;
9905
9961
 
9906
9962
  // We need to store a lambda in a global so we can call it from
9907
9963
  // a function pointer. The function pointer is passed to Rust.
9908
- static std::function<void(uint64_t, RustBuffer, uint32_t, uint64_t,
9964
+ static std::function<void(uint64_t, RustBuffer, uint32_t, uint64_t, int8_t,
9909
9965
  UniffiForeignFutureCompleteVoid, uint64_t,
9910
9966
  UniffiForeignFuture *)>
9911
9967
  rsLambda = nullptr;
@@ -9916,7 +9972,7 @@ static void body(jsi::Runtime &rt,
9916
9972
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
9917
9973
  std::shared_ptr<jsi::Value> callbackValue,
9918
9974
  uint64_t rs_uniffiHandle, RustBuffer rs_txid, uint32_t rs_vout,
9919
- uint64_t rs_amountSats,
9975
+ uint64_t rs_amountSats, int8_t rs_isMature,
9920
9976
  UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback,
9921
9977
  uint64_t rs_uniffiCallbackData,
9922
9978
  UniffiForeignFuture *rs_uniffiOutReturn) {
@@ -9930,6 +9986,8 @@ static void body(jsi::Runtime &rt,
9930
9986
  auto js_vout = uniffi_jsi::Bridging<uint32_t>::toJs(rt, callInvoker, rs_vout);
9931
9987
  auto js_amountSats =
9932
9988
  uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_amountSats);
9989
+ auto js_isMature =
9990
+ uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, rs_isMature);
9933
9991
  auto js_uniffiFutureCallback =
9934
9992
  uniffi::breez_sdk_spark::Bridging<UniffiForeignFutureCompleteVoid>::toJs(
9935
9993
  rt, callInvoker, rs_uniffiFutureCallback);
@@ -9944,12 +10002,13 @@ static void body(jsi::Runtime &rt,
9944
10002
  auto cb = callbackValue->asObject(rt).asFunction(rt);
9945
10003
  auto uniffiResult =
9946
10004
  cb.call(rt, js_uniffiHandle, js_txid, js_vout, js_amountSats,
9947
- js_uniffiFutureCallback, js_uniffiCallbackData);
10005
+ js_isMature, js_uniffiFutureCallback, js_uniffiCallbackData);
9948
10006
 
10007
+ // return type is MutReference(Struct("ForeignFuture"))
9949
10008
  // Finally, we need to copy the return value back into the Rust pointer.
9950
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
9951
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
9952
- uniffiResult);
10009
+ *rs_uniffiOutReturn =
10010
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10011
+ rt, callInvoker, uniffiResult);
9953
10012
  } catch (const jsi::JSError &error) {
9954
10013
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod9: "
9955
10014
  << error.what() << std::endl;
@@ -9959,6 +10018,7 @@ static void body(jsi::Runtime &rt,
9959
10018
 
9960
10019
  static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_txid,
9961
10020
  uint32_t rs_vout, uint64_t rs_amountSats,
10021
+ int8_t rs_isMature,
9962
10022
  UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback,
9963
10023
  uint64_t rs_uniffiCallbackData,
9964
10024
  UniffiForeignFuture *rs_uniffiOutReturn) {
@@ -9977,7 +10037,7 @@ static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_txid,
9977
10037
 
9978
10038
  // The runtime, the actual callback jsi::funtion, and the callInvoker
9979
10039
  // are all in the lambda.
9980
- rsLambda(rs_uniffiHandle, rs_txid, rs_vout, rs_amountSats,
10040
+ rsLambda(rs_uniffiHandle, rs_txid, rs_vout, rs_amountSats, rs_isMature,
9981
10041
  rs_uniffiFutureCallback, rs_uniffiCallbackData, rs_uniffiOutReturn);
9982
10042
  }
9983
10043
 
@@ -10002,7 +10062,7 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfacestorageme
10002
10062
  auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
10003
10063
  rsLambda = [&rt, callInvoker, callbackValue](
10004
10064
  uint64_t rs_uniffiHandle, RustBuffer rs_txid, uint32_t rs_vout,
10005
- uint64_t rs_amountSats,
10065
+ uint64_t rs_amountSats, int8_t rs_isMature,
10006
10066
  UniffiForeignFutureCompleteVoid rs_uniffiFutureCallback,
10007
10067
  uint64_t rs_uniffiCallbackData,
10008
10068
  UniffiForeignFuture *rs_uniffiOutReturn) {
@@ -10010,10 +10070,10 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfacestorageme
10010
10070
  // arguments into JSI values and calling the callback.
10011
10071
  uniffi_runtime::UniffiCallFunc jsLambda =
10012
10072
  [callInvoker, callbackValue, rs_uniffiHandle, rs_txid, rs_vout,
10013
- rs_amountSats, rs_uniffiFutureCallback, rs_uniffiCallbackData,
10014
- rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
10073
+ rs_amountSats, rs_isMature, rs_uniffiFutureCallback,
10074
+ rs_uniffiCallbackData, rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
10015
10075
  body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_txid,
10016
- rs_vout, rs_amountSats, rs_uniffiFutureCallback,
10076
+ rs_vout, rs_amountSats, rs_isMature, rs_uniffiFutureCallback,
10017
10077
  rs_uniffiCallbackData, rs_uniffiOutReturn);
10018
10078
  };
10019
10079
  // We'll then call that lambda from the callInvoker which will
@@ -10090,10 +10150,11 @@ static void body(jsi::Runtime &rt,
10090
10150
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_txid, js_vout,
10091
10151
  js_uniffiFutureCallback, js_uniffiCallbackData);
10092
10152
 
10153
+ // return type is MutReference(Struct("ForeignFuture"))
10093
10154
  // Finally, we need to copy the return value back into the Rust pointer.
10094
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10095
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10096
- uniffiResult);
10155
+ *rs_uniffiOutReturn =
10156
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10157
+ rt, callInvoker, uniffiResult);
10097
10158
  } catch (const jsi::JSError &error) {
10098
10159
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod10: "
10099
10160
  << error.what() << std::endl;
@@ -10229,10 +10290,11 @@ static void body(jsi::Runtime &rt,
10229
10290
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
10230
10291
  js_uniffiCallbackData);
10231
10292
 
10293
+ // return type is MutReference(Struct("ForeignFuture"))
10232
10294
  // Finally, we need to copy the return value back into the Rust pointer.
10233
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10234
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10235
- uniffiResult);
10295
+ *rs_uniffiOutReturn =
10296
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10297
+ rt, callInvoker, uniffiResult);
10236
10298
  } catch (const jsi::JSError &error) {
10237
10299
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod11: "
10238
10300
  << error.what() << std::endl;
@@ -10375,10 +10437,11 @@ static void body(jsi::Runtime &rt,
10375
10437
  cb.call(rt, js_uniffiHandle, js_txid, js_vout, js_payload,
10376
10438
  js_uniffiFutureCallback, js_uniffiCallbackData);
10377
10439
 
10440
+ // return type is MutReference(Struct("ForeignFuture"))
10378
10441
  // Finally, we need to copy the return value back into the Rust pointer.
10379
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10380
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10381
- uniffiResult);
10442
+ *rs_uniffiOutReturn =
10443
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10444
+ rt, callInvoker, uniffiResult);
10382
10445
  } catch (const jsi::JSError &error) {
10383
10446
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod12: "
10384
10447
  << error.what() << std::endl;
@@ -10517,10 +10580,11 @@ static void body(jsi::Runtime &rt,
10517
10580
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_metadata,
10518
10581
  js_uniffiFutureCallback, js_uniffiCallbackData);
10519
10582
 
10583
+ // return type is MutReference(Struct("ForeignFuture"))
10520
10584
  // Finally, we need to copy the return value back into the Rust pointer.
10521
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10522
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10523
- uniffiResult);
10585
+ *rs_uniffiOutReturn =
10586
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10587
+ rt, callInvoker, uniffiResult);
10524
10588
  } catch (const jsi::JSError &error) {
10525
10589
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod13: "
10526
10590
  << error.what() << std::endl;
@@ -10658,10 +10722,11 @@ static void body(jsi::Runtime &rt,
10658
10722
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_request,
10659
10723
  js_uniffiFutureCallback, js_uniffiCallbackData);
10660
10724
 
10725
+ // return type is MutReference(Struct("ForeignFuture"))
10661
10726
  // Finally, we need to copy the return value back into the Rust pointer.
10662
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10663
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10664
- uniffiResult);
10727
+ *rs_uniffiOutReturn =
10728
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10729
+ rt, callInvoker, uniffiResult);
10665
10730
  } catch (const jsi::JSError &error) {
10666
10731
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod14: "
10667
10732
  << error.what() << std::endl;
@@ -10800,10 +10865,11 @@ static void body(jsi::Runtime &rt,
10800
10865
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_id,
10801
10866
  js_uniffiFutureCallback, js_uniffiCallbackData);
10802
10867
 
10868
+ // return type is MutReference(Struct("ForeignFuture"))
10803
10869
  // Finally, we need to copy the return value back into the Rust pointer.
10804
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10805
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10806
- uniffiResult);
10870
+ *rs_uniffiOutReturn =
10871
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
10872
+ rt, callInvoker, uniffiResult);
10807
10873
  } catch (const jsi::JSError &error) {
10808
10874
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod15: "
10809
10875
  << error.what() << std::endl;
@@ -10941,10 +11007,11 @@ static void body(jsi::Runtime &rt,
10941
11007
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_contact,
10942
11008
  js_uniffiFutureCallback, js_uniffiCallbackData);
10943
11009
 
11010
+ // return type is MutReference(Struct("ForeignFuture"))
10944
11011
  // Finally, we need to copy the return value back into the Rust pointer.
10945
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
10946
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
10947
- uniffiResult);
11012
+ *rs_uniffiOutReturn =
11013
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11014
+ rt, callInvoker, uniffiResult);
10948
11015
  } catch (const jsi::JSError &error) {
10949
11016
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod16: "
10950
11017
  << error.what() << std::endl;
@@ -11081,10 +11148,11 @@ static void body(jsi::Runtime &rt,
11081
11148
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_id,
11082
11149
  js_uniffiFutureCallback, js_uniffiCallbackData);
11083
11150
 
11151
+ // return type is MutReference(Struct("ForeignFuture"))
11084
11152
  // Finally, we need to copy the return value back into the Rust pointer.
11085
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11086
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11087
- uniffiResult);
11153
+ *rs_uniffiOutReturn =
11154
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11155
+ rt, callInvoker, uniffiResult);
11088
11156
  } catch (const jsi::JSError &error) {
11089
11157
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod17: "
11090
11158
  << error.what() << std::endl;
@@ -11221,10 +11289,11 @@ static void body(jsi::Runtime &rt,
11221
11289
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_record,
11222
11290
  js_uniffiFutureCallback, js_uniffiCallbackData);
11223
11291
 
11292
+ // return type is MutReference(Struct("ForeignFuture"))
11224
11293
  // Finally, we need to copy the return value back into the Rust pointer.
11225
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11226
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11227
- uniffiResult);
11294
+ *rs_uniffiOutReturn =
11295
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11296
+ rt, callInvoker, uniffiResult);
11228
11297
  } catch (const jsi::JSError &error) {
11229
11298
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod18: "
11230
11299
  << error.what() << std::endl;
@@ -11366,10 +11435,11 @@ static void body(jsi::Runtime &rt,
11366
11435
  cb.call(rt, js_uniffiHandle, js_record, js_localRevision,
11367
11436
  js_uniffiFutureCallback, js_uniffiCallbackData);
11368
11437
 
11438
+ // return type is MutReference(Struct("ForeignFuture"))
11369
11439
  // Finally, we need to copy the return value back into the Rust pointer.
11370
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11371
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11372
- uniffiResult);
11440
+ *rs_uniffiOutReturn =
11441
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11442
+ rt, callInvoker, uniffiResult);
11373
11443
  } catch (const jsi::JSError &error) {
11374
11444
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod19: "
11375
11445
  << error.what() << std::endl;
@@ -11509,10 +11579,11 @@ static void body(jsi::Runtime &rt,
11509
11579
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_limit,
11510
11580
  js_uniffiFutureCallback, js_uniffiCallbackData);
11511
11581
 
11582
+ // return type is MutReference(Struct("ForeignFuture"))
11512
11583
  // Finally, we need to copy the return value back into the Rust pointer.
11513
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11514
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11515
- uniffiResult);
11584
+ *rs_uniffiOutReturn =
11585
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11586
+ rt, callInvoker, uniffiResult);
11516
11587
  } catch (const jsi::JSError &error) {
11517
11588
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod20: "
11518
11589
  << error.what() << std::endl;
@@ -11648,10 +11719,11 @@ static void body(jsi::Runtime &rt,
11648
11719
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
11649
11720
  js_uniffiCallbackData);
11650
11721
 
11722
+ // return type is MutReference(Struct("ForeignFuture"))
11651
11723
  // Finally, we need to copy the return value back into the Rust pointer.
11652
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11653
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11654
- uniffiResult);
11724
+ *rs_uniffiOutReturn =
11725
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11726
+ rt, callInvoker, uniffiResult);
11655
11727
  } catch (const jsi::JSError &error) {
11656
11728
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod21: "
11657
11729
  << error.what() << std::endl;
@@ -11787,10 +11859,11 @@ static void body(jsi::Runtime &rt,
11787
11859
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_records,
11788
11860
  js_uniffiFutureCallback, js_uniffiCallbackData);
11789
11861
 
11862
+ // return type is MutReference(Struct("ForeignFuture"))
11790
11863
  // Finally, we need to copy the return value back into the Rust pointer.
11791
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11792
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11793
- uniffiResult);
11864
+ *rs_uniffiOutReturn =
11865
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
11866
+ rt, callInvoker, uniffiResult);
11794
11867
  } catch (const jsi::JSError &error) {
11795
11868
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod22: "
11796
11869
  << error.what() << std::endl;
@@ -11927,10 +12000,11 @@ static void body(jsi::Runtime &rt,
11927
12000
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_record,
11928
12001
  js_uniffiFutureCallback, js_uniffiCallbackData);
11929
12002
 
12003
+ // return type is MutReference(Struct("ForeignFuture"))
11930
12004
  // Finally, we need to copy the return value back into the Rust pointer.
11931
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
11932
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
11933
- uniffiResult);
12005
+ *rs_uniffiOutReturn =
12006
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
12007
+ rt, callInvoker, uniffiResult);
11934
12008
  } catch (const jsi::JSError &error) {
11935
12009
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod23: "
11936
12010
  << error.what() << std::endl;
@@ -12068,10 +12142,11 @@ static void body(jsi::Runtime &rt,
12068
12142
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_limit,
12069
12143
  js_uniffiFutureCallback, js_uniffiCallbackData);
12070
12144
 
12145
+ // return type is MutReference(Struct("ForeignFuture"))
12071
12146
  // Finally, we need to copy the return value back into the Rust pointer.
12072
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
12073
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
12074
- uniffiResult);
12147
+ *rs_uniffiOutReturn =
12148
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
12149
+ rt, callInvoker, uniffiResult);
12075
12150
  } catch (const jsi::JSError &error) {
12076
12151
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod24: "
12077
12152
  << error.what() << std::endl;
@@ -12207,10 +12282,11 @@ static void body(jsi::Runtime &rt,
12207
12282
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
12208
12283
  js_uniffiCallbackData);
12209
12284
 
12285
+ // return type is MutReference(Struct("ForeignFuture"))
12210
12286
  // Finally, we need to copy the return value back into the Rust pointer.
12211
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
12212
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
12213
- uniffiResult);
12287
+ *rs_uniffiOutReturn =
12288
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
12289
+ rt, callInvoker, uniffiResult);
12214
12290
  } catch (const jsi::JSError &error) {
12215
12291
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod25: "
12216
12292
  << error.what() << std::endl;
@@ -12347,10 +12423,11 @@ static void body(jsi::Runtime &rt,
12347
12423
  auto uniffiResult = cb.call(rt, js_uniffiHandle, js_record,
12348
12424
  js_uniffiFutureCallback, js_uniffiCallbackData);
12349
12425
 
12426
+ // return type is MutReference(Struct("ForeignFuture"))
12350
12427
  // Finally, we need to copy the return value back into the Rust pointer.
12351
- *rs_uniffiOutReturn = uniffi::breez_sdk_spark::Bridging<
12352
- ReferenceHolder<UniffiForeignFuture>>::fromJs(rt, callInvoker,
12353
- uniffiResult);
12428
+ *rs_uniffiOutReturn =
12429
+ uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
12430
+ rt, callInvoker, uniffiResult);
12354
12431
  } catch (const jsi::JSError &error) {
12355
12432
  std::cout << "Error in callback UniffiCallbackInterfaceStorageMethod26: "
12356
12433
  << error.what() << std::endl;
@@ -12989,6 +13066,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
12989
13066
  return this->cpp_uniffi_breez_sdk_spark_fn_free_bitcoinchainservice(
12990
13067
  rt, thisVal, args, count);
12991
13068
  });
13069
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_"
13070
+ "bitcoinchainservice"] = jsi::Function::createFromHostFunction(
13071
+ rt,
13072
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
13073
+ "callback_vtable_bitcoinchainservice"),
13074
+ 1,
13075
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
13076
+ const jsi::Value *args, size_t count) -> jsi::Value {
13077
+ return this
13078
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
13079
+ rt, thisVal, args, count);
13080
+ });
12992
13081
  props["ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_address_"
12993
13082
  "utxos"] = jsi::Function::createFromHostFunction(
12994
13083
  rt,
@@ -13367,6 +13456,19 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
13367
13456
  ->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_list_unclaimed_deposits(
13368
13457
  rt, thisVal, args, count);
13369
13458
  });
13459
+ props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_webhooks"] =
13460
+ jsi::Function::createFromHostFunction(
13461
+ rt,
13462
+ jsi::PropNameID::forAscii(
13463
+ rt,
13464
+ "ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_webhooks"),
13465
+ 1,
13466
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
13467
+ const jsi::Value *args, size_t count) -> jsi::Value {
13468
+ return this
13469
+ ->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_list_webhooks(
13470
+ rt, thisVal, args, count);
13471
+ });
13370
13472
  props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth"] =
13371
13473
  jsi::Function::createFromHostFunction(
13372
13474
  rt,
@@ -13489,6 +13591,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
13489
13591
  ->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_register_lightning_address(
13490
13592
  rt, thisVal, args, count);
13491
13593
  });
13594
+ props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_register_webhook"] =
13595
+ jsi::Function::createFromHostFunction(
13596
+ rt,
13597
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
13598
+ "breezsdk_register_webhook"),
13599
+ 2,
13600
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
13601
+ const jsi::Value *args, size_t count) -> jsi::Value {
13602
+ return this
13603
+ ->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_register_webhook(
13604
+ rt, thisVal, args, count);
13605
+ });
13492
13606
  props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_"
13493
13607
  "listener"] = jsi::Function::createFromHostFunction(
13494
13608
  rt,
@@ -13551,6 +13665,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
13551
13665
  ->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
13552
13666
  rt, thisVal, args, count);
13553
13667
  });
13668
+ props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_unregister_webhook"] =
13669
+ jsi::Function::createFromHostFunction(
13670
+ rt,
13671
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
13672
+ "breezsdk_unregister_webhook"),
13673
+ 2,
13674
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
13675
+ const jsi::Value *args, size_t count) -> jsi::Value {
13676
+ return this
13677
+ ->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_unregister_webhook(
13678
+ rt, thisVal, args, count);
13679
+ });
13554
13680
  props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_update_contact"] =
13555
13681
  jsi::Function::createFromHostFunction(
13556
13682
  rt,
@@ -13598,6 +13724,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
13598
13724
  return this->cpp_uniffi_breez_sdk_spark_fn_free_externalsigner(
13599
13725
  rt, thisVal, args, count);
13600
13726
  });
13727
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner"] =
13728
+ jsi::Function::createFromHostFunction(
13729
+ rt,
13730
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
13731
+ "callback_vtable_externalsigner"),
13732
+ 1,
13733
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
13734
+ const jsi::Value *args, size_t count) -> jsi::Value {
13735
+ return this
13736
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
13737
+ rt, thisVal, args, count);
13738
+ });
13601
13739
  props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_identity_public_"
13602
13740
  "key"] = jsi::Function::createFromHostFunction(
13603
13741
  rt,
@@ -13864,6 +14002,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
13864
14002
  return this->cpp_uniffi_breez_sdk_spark_fn_free_fiatservice(
13865
14003
  rt, thisVal, args, count);
13866
14004
  });
14005
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice"] =
14006
+ jsi::Function::createFromHostFunction(
14007
+ rt,
14008
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
14009
+ "callback_vtable_fiatservice"),
14010
+ 1,
14011
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14012
+ const jsi::Value *args, size_t count) -> jsi::Value {
14013
+ return this
14014
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
14015
+ rt, thisVal, args, count);
14016
+ });
13867
14017
  props["ubrn_uniffi_breez_sdk_spark_fn_method_fiatservice_fetch_fiat_"
13868
14018
  "currencies"] = jsi::Function::createFromHostFunction(
13869
14019
  rt,
@@ -13991,6 +14141,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
13991
14141
  return this->cpp_uniffi_breez_sdk_spark_fn_free_passkeyprfprovider(
13992
14142
  rt, thisVal, args, count);
13993
14143
  });
14144
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_"
14145
+ "passkeyprfprovider"] = jsi::Function::createFromHostFunction(
14146
+ rt,
14147
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
14148
+ "callback_vtable_passkeyprfprovider"),
14149
+ 1,
14150
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14151
+ const jsi::Value *args, size_t count) -> jsi::Value {
14152
+ return this
14153
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
14154
+ rt, thisVal, args, count);
14155
+ });
13994
14156
  props["ubrn_uniffi_breez_sdk_spark_fn_method_passkeyprfprovider_derive_prf_"
13995
14157
  "seed"] = jsi::Function::createFromHostFunction(
13996
14158
  rt,
@@ -14037,6 +14199,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14037
14199
  return this->cpp_uniffi_breez_sdk_spark_fn_free_paymentobserver(
14038
14200
  rt, thisVal, args, count);
14039
14201
  });
14202
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver"] =
14203
+ jsi::Function::createFromHostFunction(
14204
+ rt,
14205
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
14206
+ "callback_vtable_paymentobserver"),
14207
+ 1,
14208
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14209
+ const jsi::Value *args, size_t count) -> jsi::Value {
14210
+ return this
14211
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
14212
+ rt, thisVal, args, count);
14213
+ });
14040
14214
  props["ubrn_uniffi_breez_sdk_spark_fn_method_paymentobserver_before_send"] =
14041
14215
  jsi::Function::createFromHostFunction(
14042
14216
  rt,
@@ -14071,6 +14245,19 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14071
14245
  return this->cpp_uniffi_breez_sdk_spark_fn_free_restclient(
14072
14246
  rt, thisVal, args, count);
14073
14247
  });
14248
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient"] =
14249
+ jsi::Function::createFromHostFunction(
14250
+ rt,
14251
+ jsi::PropNameID::forAscii(
14252
+ rt,
14253
+ "ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient"),
14254
+ 1,
14255
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14256
+ const jsi::Value *args, size_t count) -> jsi::Value {
14257
+ return this
14258
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
14259
+ rt, thisVal, args, count);
14260
+ });
14074
14261
  props["ubrn_uniffi_breez_sdk_spark_fn_method_restclient_get_request"] =
14075
14262
  jsi::Function::createFromHostFunction(
14076
14263
  rt,
@@ -14274,6 +14461,19 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14274
14461
  return this->cpp_uniffi_breez_sdk_spark_fn_free_storage(
14275
14462
  rt, thisVal, args, count);
14276
14463
  });
14464
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage"] =
14465
+ jsi::Function::createFromHostFunction(
14466
+ rt,
14467
+ jsi::PropNameID::forAscii(
14468
+ rt,
14469
+ "ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage"),
14470
+ 1,
14471
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14472
+ const jsi::Value *args, size_t count) -> jsi::Value {
14473
+ return this
14474
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
14475
+ rt, thisVal, args, count);
14476
+ });
14277
14477
  props["ubrn_uniffi_breez_sdk_spark_fn_method_storage_delete_cached_item"] =
14278
14478
  jsi::Function::createFromHostFunction(
14279
14479
  rt,
@@ -14391,7 +14591,7 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14391
14591
  rt,
14392
14592
  jsi::PropNameID::forAscii(
14393
14593
  rt, "ubrn_uniffi_breez_sdk_spark_fn_method_storage_add_deposit"),
14394
- 4,
14594
+ 5,
14395
14595
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14396
14596
  const jsi::Value *args, size_t count) -> jsi::Value {
14397
14597
  return this
@@ -14714,18 +14914,42 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14714
14914
  ->cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_unfreeze_issuer_token(
14715
14915
  rt, thisVal, args, count);
14716
14916
  });
14717
- props["ubrn_uniffi_breez_sdk_spark_fn_func_connect"] =
14917
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener"] =
14718
14918
  jsi::Function::createFromHostFunction(
14719
14919
  rt,
14720
- jsi::PropNameID::forAscii(
14721
- rt, "ubrn_uniffi_breez_sdk_spark_fn_func_connect"),
14920
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
14921
+ "callback_vtable_eventlistener"),
14722
14922
  1,
14723
14923
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14724
14924
  const jsi::Value *args, size_t count) -> jsi::Value {
14725
- return this->cpp_uniffi_breez_sdk_spark_fn_func_connect(
14726
- rt, thisVal, args, count);
14727
- });
14728
- props["ubrn_uniffi_breez_sdk_spark_fn_func_connect_with_signer"] =
14925
+ return this
14926
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
14927
+ rt, thisVal, args, count);
14928
+ });
14929
+ props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger"] =
14930
+ jsi::Function::createFromHostFunction(
14931
+ rt,
14932
+ jsi::PropNameID::forAscii(
14933
+ rt, "ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger"),
14934
+ 1,
14935
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14936
+ const jsi::Value *args, size_t count) -> jsi::Value {
14937
+ return this
14938
+ ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
14939
+ rt, thisVal, args, count);
14940
+ });
14941
+ props["ubrn_uniffi_breez_sdk_spark_fn_func_connect"] =
14942
+ jsi::Function::createFromHostFunction(
14943
+ rt,
14944
+ jsi::PropNameID::forAscii(
14945
+ rt, "ubrn_uniffi_breez_sdk_spark_fn_func_connect"),
14946
+ 1,
14947
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14948
+ const jsi::Value *args, size_t count) -> jsi::Value {
14949
+ return this->cpp_uniffi_breez_sdk_spark_fn_func_connect(
14950
+ rt, thisVal, args, count);
14951
+ });
14952
+ props["ubrn_uniffi_breez_sdk_spark_fn_func_connect_with_signer"] =
14729
14953
  jsi::Function::createFromHostFunction(
14730
14954
  rt,
14731
14955
  jsi::PropNameID::forAscii(
@@ -15782,6 +16006,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
15782
16006
  ->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits(
15783
16007
  rt, thisVal, args, count);
15784
16008
  });
16009
+ props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks"] =
16010
+ jsi::Function::createFromHostFunction(
16011
+ rt,
16012
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
16013
+ "method_breezsdk_list_webhooks"),
16014
+ 0,
16015
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
16016
+ const jsi::Value *args, size_t count) -> jsi::Value {
16017
+ return this
16018
+ ->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks(
16019
+ rt, thisVal, args, count);
16020
+ });
15785
16021
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth"] =
15786
16022
  jsi::Function::createFromHostFunction(
15787
16023
  rt,
@@ -15904,6 +16140,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
15904
16140
  ->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address(
15905
16141
  rt, thisVal, args, count);
15906
16142
  });
16143
+ props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_"
16144
+ "webhook"] = jsi::Function::createFromHostFunction(
16145
+ rt,
16146
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
16147
+ "method_breezsdk_register_webhook"),
16148
+ 0,
16149
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
16150
+ const jsi::Value *args, size_t count) -> jsi::Value {
16151
+ return this
16152
+ ->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook(
16153
+ rt, thisVal, args, count);
16154
+ });
15907
16155
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_"
15908
16156
  "listener"] = jsi::Function::createFromHostFunction(
15909
16157
  rt,
@@ -15964,6 +16212,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
15964
16212
  ->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(
15965
16213
  rt, thisVal, args, count);
15966
16214
  });
16215
+ props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_"
16216
+ "webhook"] = jsi::Function::createFromHostFunction(
16217
+ rt,
16218
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
16219
+ "method_breezsdk_unregister_webhook"),
16220
+ 0,
16221
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
16222
+ const jsi::Value *args, size_t count) -> jsi::Value {
16223
+ return this
16224
+ ->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook(
16225
+ rt, thisVal, args, count);
16226
+ });
15967
16227
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact"] =
15968
16228
  jsi::Function::createFromHostFunction(
15969
16229
  rt,
@@ -16969,116 +17229,6 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
16969
17229
  return this->cpp_ffi_breez_sdk_spark_uniffi_contract_version(
16970
17230
  rt, thisVal, args, count);
16971
17231
  });
16972
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener"] =
16973
- jsi::Function::createFromHostFunction(
16974
- rt,
16975
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
16976
- "callback_vtable_eventlistener"),
16977
- 1,
16978
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
16979
- const jsi::Value *args, size_t count) -> jsi::Value {
16980
- return this
16981
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
16982
- rt, thisVal, args, count);
16983
- });
16984
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger"] =
16985
- jsi::Function::createFromHostFunction(
16986
- rt,
16987
- jsi::PropNameID::forAscii(
16988
- rt, "ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger"),
16989
- 1,
16990
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
16991
- const jsi::Value *args, size_t count) -> jsi::Value {
16992
- return this
16993
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
16994
- rt, thisVal, args, count);
16995
- });
16996
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_"
16997
- "bitcoinchainservice"] = jsi::Function::createFromHostFunction(
16998
- rt,
16999
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
17000
- "callback_vtable_bitcoinchainservice"),
17001
- 1,
17002
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17003
- const jsi::Value *args, size_t count) -> jsi::Value {
17004
- return this
17005
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
17006
- rt, thisVal, args, count);
17007
- });
17008
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner"] =
17009
- jsi::Function::createFromHostFunction(
17010
- rt,
17011
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
17012
- "callback_vtable_externalsigner"),
17013
- 1,
17014
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17015
- const jsi::Value *args, size_t count) -> jsi::Value {
17016
- return this
17017
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
17018
- rt, thisVal, args, count);
17019
- });
17020
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice"] =
17021
- jsi::Function::createFromHostFunction(
17022
- rt,
17023
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
17024
- "callback_vtable_fiatservice"),
17025
- 1,
17026
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17027
- const jsi::Value *args, size_t count) -> jsi::Value {
17028
- return this
17029
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
17030
- rt, thisVal, args, count);
17031
- });
17032
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_"
17033
- "passkeyprfprovider"] = jsi::Function::createFromHostFunction(
17034
- rt,
17035
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
17036
- "callback_vtable_passkeyprfprovider"),
17037
- 1,
17038
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17039
- const jsi::Value *args, size_t count) -> jsi::Value {
17040
- return this
17041
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
17042
- rt, thisVal, args, count);
17043
- });
17044
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver"] =
17045
- jsi::Function::createFromHostFunction(
17046
- rt,
17047
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_init_"
17048
- "callback_vtable_paymentobserver"),
17049
- 1,
17050
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17051
- const jsi::Value *args, size_t count) -> jsi::Value {
17052
- return this
17053
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
17054
- rt, thisVal, args, count);
17055
- });
17056
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient"] =
17057
- jsi::Function::createFromHostFunction(
17058
- rt,
17059
- jsi::PropNameID::forAscii(
17060
- rt,
17061
- "ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient"),
17062
- 1,
17063
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17064
- const jsi::Value *args, size_t count) -> jsi::Value {
17065
- return this
17066
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
17067
- rt, thisVal, args, count);
17068
- });
17069
- props["ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage"] =
17070
- jsi::Function::createFromHostFunction(
17071
- rt,
17072
- jsi::PropNameID::forAscii(
17073
- rt,
17074
- "ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage"),
17075
- 1,
17076
- [this](jsi::Runtime &rt, const jsi::Value &thisVal,
17077
- const jsi::Value *args, size_t count) -> jsi::Value {
17078
- return this
17079
- ->cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
17080
- rt, thisVal, args, count);
17081
- });
17082
17232
  props["ubrn_uniffi_internal_fn_method_bitcoinchainservice_ffi__bless_"
17083
17233
  "pointer"] = jsi::Function::createFromHostFunction(
17084
17234
  rt,
@@ -17655,6 +17805,21 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_bitcoinchainservice(
17655
17805
 
17656
17806
  return jsi::Value::undefined();
17657
17807
  }
17808
+ jsi::Value NativeBreezSdkSpark::
17809
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
17810
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
17811
+ size_t count) {
17812
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
17813
+ UniffiVTableCallbackInterfaceBitcoinChainService>::fromJs(rt, callInvoker,
17814
+ args[0]);
17815
+
17816
+ std::lock_guard<std::mutex> lock(
17817
+ uniffi::breez_sdk_spark::registry::vtableMutex);
17818
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
17819
+ uniffi::breez_sdk_spark::registry::putTable(
17820
+ "UniffiVTableCallbackInterfaceBitcoinChainService", vtableInstance));
17821
+ return jsi::Value::undefined();
17822
+ }
17658
17823
  jsi::Value NativeBreezSdkSpark::
17659
17824
  cpp_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_address_utxos(
17660
17825
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18025,6 +18190,16 @@ jsi::Value NativeBreezSdkSpark::
18025
18190
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18026
18191
  value);
18027
18192
  }
18193
+ jsi::Value NativeBreezSdkSpark::
18194
+ cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_list_webhooks(
18195
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18196
+ size_t count) {
18197
+ auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_list_webhooks(
18198
+ uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]));
18199
+
18200
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18201
+ value);
18202
+ }
18028
18203
  jsi::Value
18029
18204
  NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth(
18030
18205
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18144,6 +18319,18 @@ jsi::Value NativeBreezSdkSpark::
18144
18319
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18145
18320
  value);
18146
18321
  }
18322
+ jsi::Value NativeBreezSdkSpark::
18323
+ cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_register_webhook(
18324
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18325
+ size_t count) {
18326
+ auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_register_webhook(
18327
+ uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
18328
+ uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
18329
+ args[1]));
18330
+
18331
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18332
+ value);
18333
+ }
18147
18334
  jsi::Value NativeBreezSdkSpark::
18148
18335
  cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(
18149
18336
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18184,14 +18371,12 @@ jsi::Value NativeBreezSdkSpark::
18184
18371
  cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(
18185
18372
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18186
18373
  size_t count) {
18187
- RustCallStatus status =
18188
- uniffi::breez_sdk_spark::Bridging<RustCallStatus>::rustSuccess(rt);
18189
- uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(
18190
- uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), &status);
18191
- uniffi::breez_sdk_spark::Bridging<RustCallStatus>::copyIntoJs(
18192
- rt, callInvoker, status, args[count - 1]);
18374
+ auto value =
18375
+ uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(
18376
+ uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]));
18193
18377
 
18194
- return jsi::Value::undefined();
18378
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18379
+ value);
18195
18380
  }
18196
18381
  jsi::Value
18197
18382
  NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
@@ -18205,6 +18390,18 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
18205
18390
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18206
18391
  value);
18207
18392
  }
18393
+ jsi::Value NativeBreezSdkSpark::
18394
+ cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_unregister_webhook(
18395
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18396
+ size_t count) {
18397
+ auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_unregister_webhook(
18398
+ uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
18399
+ uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
18400
+ args[1]));
18401
+
18402
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
18403
+ value);
18404
+ }
18208
18405
  jsi::Value NativeBreezSdkSpark::
18209
18406
  cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_update_contact(
18210
18407
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18255,6 +18452,21 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_externalsigner(
18255
18452
 
18256
18453
  return jsi::Value::undefined();
18257
18454
  }
18455
+ jsi::Value NativeBreezSdkSpark::
18456
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
18457
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18458
+ size_t count) {
18459
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
18460
+ UniffiVTableCallbackInterfaceExternalSigner>::fromJs(rt, callInvoker,
18461
+ args[0]);
18462
+
18463
+ std::lock_guard<std::mutex> lock(
18464
+ uniffi::breez_sdk_spark::registry::vtableMutex);
18465
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
18466
+ uniffi::breez_sdk_spark::registry::putTable(
18467
+ "UniffiVTableCallbackInterfaceExternalSigner", vtableInstance));
18468
+ return jsi::Value::undefined();
18469
+ }
18258
18470
  jsi::Value NativeBreezSdkSpark::
18259
18471
  cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_identity_public_key(
18260
18472
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18546,6 +18758,21 @@ jsi::Value NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_fiatservice(
18546
18758
 
18547
18759
  return jsi::Value::undefined();
18548
18760
  }
18761
+ jsi::Value NativeBreezSdkSpark::
18762
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
18763
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18764
+ size_t count) {
18765
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
18766
+ UniffiVTableCallbackInterfaceFiatService>::fromJs(rt, callInvoker,
18767
+ args[0]);
18768
+
18769
+ std::lock_guard<std::mutex> lock(
18770
+ uniffi::breez_sdk_spark::registry::vtableMutex);
18771
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
18772
+ uniffi::breez_sdk_spark::registry::putTable(
18773
+ "UniffiVTableCallbackInterfaceFiatService", vtableInstance));
18774
+ return jsi::Value::undefined();
18775
+ }
18549
18776
  jsi::Value NativeBreezSdkSpark::
18550
18777
  cpp_uniffi_breez_sdk_spark_fn_method_fiatservice_fetch_fiat_currencies(
18551
18778
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18677,6 +18904,21 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_passkeyprfprovider(
18677
18904
 
18678
18905
  return jsi::Value::undefined();
18679
18906
  }
18907
+ jsi::Value NativeBreezSdkSpark::
18908
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
18909
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18910
+ size_t count) {
18911
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
18912
+ UniffiVTableCallbackInterfacePasskeyPrfProvider>::fromJs(rt, callInvoker,
18913
+ args[0]);
18914
+
18915
+ std::lock_guard<std::mutex> lock(
18916
+ uniffi::breez_sdk_spark::registry::vtableMutex);
18917
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
18918
+ uniffi::breez_sdk_spark::registry::putTable(
18919
+ "UniffiVTableCallbackInterfacePasskeyPrfProvider", vtableInstance));
18920
+ return jsi::Value::undefined();
18921
+ }
18680
18922
  jsi::Value NativeBreezSdkSpark::
18681
18923
  cpp_uniffi_breez_sdk_spark_fn_method_passkeyprfprovider_derive_prf_seed(
18682
18924
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18727,6 +18969,21 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_paymentobserver(
18727
18969
 
18728
18970
  return jsi::Value::undefined();
18729
18971
  }
18972
+ jsi::Value NativeBreezSdkSpark::
18973
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
18974
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18975
+ size_t count) {
18976
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
18977
+ UniffiVTableCallbackInterfacePaymentObserver>::fromJs(rt, callInvoker,
18978
+ args[0]);
18979
+
18980
+ std::lock_guard<std::mutex> lock(
18981
+ uniffi::breez_sdk_spark::registry::vtableMutex);
18982
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
18983
+ uniffi::breez_sdk_spark::registry::putTable(
18984
+ "UniffiVTableCallbackInterfacePaymentObserver", vtableInstance));
18985
+ return jsi::Value::undefined();
18986
+ }
18730
18987
  jsi::Value NativeBreezSdkSpark::
18731
18988
  cpp_uniffi_breez_sdk_spark_fn_method_paymentobserver_before_send(
18732
18989
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18763,6 +19020,21 @@ jsi::Value NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_restclient(
18763
19020
 
18764
19021
  return jsi::Value::undefined();
18765
19022
  }
19023
+ jsi::Value NativeBreezSdkSpark::
19024
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
19025
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19026
+ size_t count) {
19027
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
19028
+ UniffiVTableCallbackInterfaceRestClient>::fromJs(rt, callInvoker,
19029
+ args[0]);
19030
+
19031
+ std::lock_guard<std::mutex> lock(
19032
+ uniffi::breez_sdk_spark::registry::vtableMutex);
19033
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
19034
+ uniffi::breez_sdk_spark::registry::putTable(
19035
+ "UniffiVTableCallbackInterfaceRestClient", vtableInstance));
19036
+ return jsi::Value::undefined();
19037
+ }
18766
19038
  jsi::Value NativeBreezSdkSpark::
18767
19039
  cpp_uniffi_breez_sdk_spark_fn_method_restclient_get_request(
18768
19040
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -18981,6 +19253,20 @@ jsi::Value NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_storage(
18981
19253
 
18982
19254
  return jsi::Value::undefined();
18983
19255
  }
19256
+ jsi::Value
19257
+ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
19258
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19259
+ size_t count) {
19260
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
19261
+ UniffiVTableCallbackInterfaceStorage>::fromJs(rt, callInvoker, args[0]);
19262
+
19263
+ std::lock_guard<std::mutex> lock(
19264
+ uniffi::breez_sdk_spark::registry::vtableMutex);
19265
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
19266
+ uniffi::breez_sdk_spark::registry::putTable(
19267
+ "UniffiVTableCallbackInterfaceStorage", vtableInstance));
19268
+ return jsi::Value::undefined();
19269
+ }
18984
19270
  jsi::Value NativeBreezSdkSpark::
18985
19271
  cpp_uniffi_breez_sdk_spark_fn_method_storage_delete_cached_item(
18986
19272
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -19103,7 +19389,8 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_storage_add_deposit(
19103
19389
  uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
19104
19390
  args[1]),
19105
19391
  uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[2]),
19106
- uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[3]));
19392
+ uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[3]),
19393
+ uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[4]));
19107
19394
 
19108
19395
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
19109
19396
  value);
@@ -19419,6 +19706,35 @@ jsi::Value NativeBreezSdkSpark::
19419
19706
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
19420
19707
  value);
19421
19708
  }
19709
+ jsi::Value NativeBreezSdkSpark::
19710
+ cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
19711
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19712
+ size_t count) {
19713
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
19714
+ UniffiVTableCallbackInterfaceEventListener>::fromJs(rt, callInvoker,
19715
+ args[0]);
19716
+
19717
+ std::lock_guard<std::mutex> lock(
19718
+ uniffi::breez_sdk_spark::registry::vtableMutex);
19719
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
19720
+ uniffi::breez_sdk_spark::registry::putTable(
19721
+ "UniffiVTableCallbackInterfaceEventListener", vtableInstance));
19722
+ return jsi::Value::undefined();
19723
+ }
19724
+ jsi::Value
19725
+ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
19726
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19727
+ size_t count) {
19728
+ auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
19729
+ UniffiVTableCallbackInterfaceLogger>::fromJs(rt, callInvoker, args[0]);
19730
+
19731
+ std::lock_guard<std::mutex> lock(
19732
+ uniffi::breez_sdk_spark::registry::vtableMutex);
19733
+ uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
19734
+ uniffi::breez_sdk_spark::registry::putTable(
19735
+ "UniffiVTableCallbackInterfaceLogger", vtableInstance));
19736
+ return jsi::Value::undefined();
19737
+ }
19422
19738
  jsi::Value NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_func_connect(
19423
19739
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19424
19740
  size_t count) {
@@ -20419,6 +20735,14 @@ jsi::Value NativeBreezSdkSpark::
20419
20735
 
20420
20736
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
20421
20737
  }
20738
+ jsi::Value NativeBreezSdkSpark::
20739
+ cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks(
20740
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
20741
+ size_t count) {
20742
+ auto value = uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks();
20743
+
20744
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
20745
+ }
20422
20746
  jsi::Value NativeBreezSdkSpark::
20423
20747
  cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth(
20424
20748
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -20504,6 +20828,15 @@ jsi::Value NativeBreezSdkSpark::
20504
20828
 
20505
20829
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
20506
20830
  }
20831
+ jsi::Value NativeBreezSdkSpark::
20832
+ cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook(
20833
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
20834
+ size_t count) {
20835
+ auto value =
20836
+ uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook();
20837
+
20838
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
20839
+ }
20507
20840
  jsi::Value NativeBreezSdkSpark::
20508
20841
  cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener(
20509
20842
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -20546,6 +20879,15 @@ jsi::Value NativeBreezSdkSpark::
20546
20879
 
20547
20880
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
20548
20881
  }
20882
+ jsi::Value NativeBreezSdkSpark::
20883
+ cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook(
20884
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
20885
+ size_t count) {
20886
+ auto value =
20887
+ uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook();
20888
+
20889
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
20890
+ }
20549
20891
  jsi::Value NativeBreezSdkSpark::
20550
20892
  cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact(
20551
20893
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -21255,137 +21597,4 @@ jsi::Value NativeBreezSdkSpark::cpp_ffi_breez_sdk_spark_uniffi_contract_version(
21255
21597
  auto value = ffi_breez_sdk_spark_uniffi_contract_version();
21256
21598
 
21257
21599
  return uniffi_jsi::Bridging<uint32_t>::toJs(rt, callInvoker, value);
21258
- }
21259
- jsi::Value NativeBreezSdkSpark::
21260
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
21261
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21262
- size_t count) {
21263
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21264
- UniffiVTableCallbackInterfaceEventListener>::fromJs(rt, callInvoker,
21265
- args[0]);
21266
-
21267
- std::lock_guard<std::mutex> lock(
21268
- uniffi::breez_sdk_spark::registry::vtableMutex);
21269
- uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
21270
- uniffi::breez_sdk_spark::registry::putTable(
21271
- "UniffiVTableCallbackInterfaceEventListener", vtableInstance));
21272
- return jsi::Value::undefined();
21273
- }
21274
- jsi::Value
21275
- NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
21276
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21277
- size_t count) {
21278
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21279
- UniffiVTableCallbackInterfaceLogger>::fromJs(rt, callInvoker, args[0]);
21280
-
21281
- std::lock_guard<std::mutex> lock(
21282
- uniffi::breez_sdk_spark::registry::vtableMutex);
21283
- uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
21284
- uniffi::breez_sdk_spark::registry::putTable(
21285
- "UniffiVTableCallbackInterfaceLogger", vtableInstance));
21286
- return jsi::Value::undefined();
21287
- }
21288
- jsi::Value NativeBreezSdkSpark::
21289
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
21290
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21291
- size_t count) {
21292
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21293
- UniffiVTableCallbackInterfaceBitcoinChainService>::fromJs(rt, callInvoker,
21294
- args[0]);
21295
-
21296
- std::lock_guard<std::mutex> lock(
21297
- uniffi::breez_sdk_spark::registry::vtableMutex);
21298
- uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
21299
- uniffi::breez_sdk_spark::registry::putTable(
21300
- "UniffiVTableCallbackInterfaceBitcoinChainService", vtableInstance));
21301
- return jsi::Value::undefined();
21302
- }
21303
- jsi::Value NativeBreezSdkSpark::
21304
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
21305
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21306
- size_t count) {
21307
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21308
- UniffiVTableCallbackInterfaceExternalSigner>::fromJs(rt, callInvoker,
21309
- args[0]);
21310
-
21311
- std::lock_guard<std::mutex> lock(
21312
- uniffi::breez_sdk_spark::registry::vtableMutex);
21313
- uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
21314
- uniffi::breez_sdk_spark::registry::putTable(
21315
- "UniffiVTableCallbackInterfaceExternalSigner", vtableInstance));
21316
- return jsi::Value::undefined();
21317
- }
21318
- jsi::Value NativeBreezSdkSpark::
21319
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
21320
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21321
- size_t count) {
21322
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21323
- UniffiVTableCallbackInterfaceFiatService>::fromJs(rt, callInvoker,
21324
- args[0]);
21325
-
21326
- std::lock_guard<std::mutex> lock(
21327
- uniffi::breez_sdk_spark::registry::vtableMutex);
21328
- uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
21329
- uniffi::breez_sdk_spark::registry::putTable(
21330
- "UniffiVTableCallbackInterfaceFiatService", vtableInstance));
21331
- return jsi::Value::undefined();
21332
- }
21333
- jsi::Value NativeBreezSdkSpark::
21334
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
21335
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21336
- size_t count) {
21337
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21338
- UniffiVTableCallbackInterfacePasskeyPrfProvider>::fromJs(rt, callInvoker,
21339
- args[0]);
21340
-
21341
- std::lock_guard<std::mutex> lock(
21342
- uniffi::breez_sdk_spark::registry::vtableMutex);
21343
- uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
21344
- uniffi::breez_sdk_spark::registry::putTable(
21345
- "UniffiVTableCallbackInterfacePasskeyPrfProvider", vtableInstance));
21346
- return jsi::Value::undefined();
21347
- }
21348
- jsi::Value NativeBreezSdkSpark::
21349
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
21350
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21351
- size_t count) {
21352
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21353
- UniffiVTableCallbackInterfacePaymentObserver>::fromJs(rt, callInvoker,
21354
- args[0]);
21355
-
21356
- std::lock_guard<std::mutex> lock(
21357
- uniffi::breez_sdk_spark::registry::vtableMutex);
21358
- uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
21359
- uniffi::breez_sdk_spark::registry::putTable(
21360
- "UniffiVTableCallbackInterfacePaymentObserver", vtableInstance));
21361
- return jsi::Value::undefined();
21362
- }
21363
- jsi::Value NativeBreezSdkSpark::
21364
- cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
21365
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21366
- size_t count) {
21367
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21368
- UniffiVTableCallbackInterfaceRestClient>::fromJs(rt, callInvoker,
21369
- args[0]);
21370
-
21371
- std::lock_guard<std::mutex> lock(
21372
- uniffi::breez_sdk_spark::registry::vtableMutex);
21373
- uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
21374
- uniffi::breez_sdk_spark::registry::putTable(
21375
- "UniffiVTableCallbackInterfaceRestClient", vtableInstance));
21376
- return jsi::Value::undefined();
21377
- }
21378
- jsi::Value
21379
- NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
21380
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21381
- size_t count) {
21382
- auto vtableInstance = uniffi::breez_sdk_spark::Bridging<
21383
- UniffiVTableCallbackInterfaceStorage>::fromJs(rt, callInvoker, args[0]);
21384
-
21385
- std::lock_guard<std::mutex> lock(
21386
- uniffi::breez_sdk_spark::registry::vtableMutex);
21387
- uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
21388
- uniffi::breez_sdk_spark::registry::putTable(
21389
- "UniffiVTableCallbackInterfaceStorage", vtableInstance));
21390
- return jsi::Value::undefined();
21391
21600
  }