breez-sdk-spark 0.1.0rc8__cp310-cp310-macosx_11_0_universal2.whl → 0.3.5rc1__cp310-cp310-macosx_11_0_universal2.whl

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.

Potentially problematic release.


This version of breez-sdk-spark might be problematic. Click here for more details.

@@ -461,9 +461,35 @@ def _uniffi_check_contract_api_version(lib):
461
461
  raise InternalError("UniFFI contract version mismatch: try cleaning and rebuilding your project")
462
462
 
463
463
  def _uniffi_check_api_checksums(lib):
464
- if lib.uniffi_breez_sdk_common_checksum_method_restclient_get() != 32450:
464
+ if lib.uniffi_breez_sdk_common_checksum_method_fiatservice_fetch_fiat_currencies() != 63089:
465
465
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
466
- if lib.uniffi_breez_sdk_common_checksum_method_restclient_post() != 14213:
466
+ if lib.uniffi_breez_sdk_common_checksum_method_fiatservice_fetch_fiat_rates() != 48636:
467
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
468
+ if lib.uniffi_breez_sdk_common_checksum_method_restclient_get_request() != 1702:
469
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
470
+ if lib.uniffi_breez_sdk_common_checksum_method_restclient_post_request() != 38998:
471
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
472
+ if lib.uniffi_breez_sdk_common_checksum_method_restclient_delete_request() != 26893:
473
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
474
+ if lib.uniffi_breez_sdk_common_checksum_method_syncstorage_add_outgoing_change() != 18302:
475
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
476
+ if lib.uniffi_breez_sdk_common_checksum_method_syncstorage_complete_outgoing_sync() != 1608:
477
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
478
+ if lib.uniffi_breez_sdk_common_checksum_method_syncstorage_get_pending_outgoing_changes() != 43350:
479
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
480
+ if lib.uniffi_breez_sdk_common_checksum_method_syncstorage_get_last_revision() != 11560:
481
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
482
+ if lib.uniffi_breez_sdk_common_checksum_method_syncstorage_insert_incoming_records() != 65359:
483
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
484
+ if lib.uniffi_breez_sdk_common_checksum_method_syncstorage_delete_incoming_record() != 6222:
485
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
486
+ if lib.uniffi_breez_sdk_common_checksum_method_syncstorage_rebase_pending_outgoing_records() != 49312:
487
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
488
+ if lib.uniffi_breez_sdk_common_checksum_method_syncstorage_get_incoming_records() != 39529:
489
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
490
+ if lib.uniffi_breez_sdk_common_checksum_method_syncstorage_get_latest_outgoing_change() != 13979:
491
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
492
+ if lib.uniffi_breez_sdk_common_checksum_method_syncstorage_update_record_from_incoming() != 63333:
467
493
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
468
494
 
469
495
  # A ctypes library to expose the extern-C FFI definitions.
@@ -571,16 +597,85 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure):
571
597
  ]
572
598
  _UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiForeignFutureStructVoid,
573
599
  )
600
+ _UNIFFI_CALLBACK_INTERFACE_FIAT_SERVICE_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
601
+ )
602
+ _UNIFFI_CALLBACK_INTERFACE_FIAT_SERVICE_METHOD1 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
603
+ )
574
604
  _UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
575
605
  )
576
606
  _UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD1 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
577
607
  )
608
+ _UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD2 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
609
+ )
610
+ _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_U64,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
611
+ )
612
+ _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD1 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
613
+ )
614
+ _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD2 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,ctypes.c_uint32,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
615
+ )
616
+ _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD3 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_U64,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
617
+ )
618
+ _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD4 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
619
+ )
620
+ _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD5 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
621
+ )
622
+ _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD6 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
623
+ )
624
+ _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD7 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,ctypes.c_uint32,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
625
+ )
626
+ _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD8 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
627
+ )
628
+ _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD9 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
629
+ )
630
+ class _UniffiVTableCallbackInterfaceFiatService(ctypes.Structure):
631
+ _fields_ = [
632
+ ("fetch_fiat_currencies", _UNIFFI_CALLBACK_INTERFACE_FIAT_SERVICE_METHOD0),
633
+ ("fetch_fiat_rates", _UNIFFI_CALLBACK_INTERFACE_FIAT_SERVICE_METHOD1),
634
+ ("uniffi_free", _UNIFFI_CALLBACK_INTERFACE_FREE),
635
+ ]
578
636
  class _UniffiVTableCallbackInterfaceRestClient(ctypes.Structure):
579
637
  _fields_ = [
580
- ("get", _UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD0),
581
- ("post", _UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD1),
638
+ ("get_request", _UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD0),
639
+ ("post_request", _UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD1),
640
+ ("delete_request", _UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD2),
641
+ ("uniffi_free", _UNIFFI_CALLBACK_INTERFACE_FREE),
642
+ ]
643
+ class _UniffiVTableCallbackInterfaceSyncStorage(ctypes.Structure):
644
+ _fields_ = [
645
+ ("add_outgoing_change", _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD0),
646
+ ("complete_outgoing_sync", _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD1),
647
+ ("get_pending_outgoing_changes", _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD2),
648
+ ("get_last_revision", _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD3),
649
+ ("insert_incoming_records", _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD4),
650
+ ("delete_incoming_record", _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD5),
651
+ ("rebase_pending_outgoing_records", _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD6),
652
+ ("get_incoming_records", _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD7),
653
+ ("get_latest_outgoing_change", _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD8),
654
+ ("update_record_from_incoming", _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD9),
582
655
  ("uniffi_free", _UNIFFI_CALLBACK_INTERFACE_FREE),
583
656
  ]
657
+ _UniffiLib.uniffi_breez_sdk_common_fn_clone_fiatservice.argtypes = (
658
+ ctypes.c_void_p,
659
+ ctypes.POINTER(_UniffiRustCallStatus),
660
+ )
661
+ _UniffiLib.uniffi_breez_sdk_common_fn_clone_fiatservice.restype = ctypes.c_void_p
662
+ _UniffiLib.uniffi_breez_sdk_common_fn_free_fiatservice.argtypes = (
663
+ ctypes.c_void_p,
664
+ ctypes.POINTER(_UniffiRustCallStatus),
665
+ )
666
+ _UniffiLib.uniffi_breez_sdk_common_fn_free_fiatservice.restype = None
667
+ _UniffiLib.uniffi_breez_sdk_common_fn_init_callback_vtable_fiatservice.argtypes = (
668
+ ctypes.POINTER(_UniffiVTableCallbackInterfaceFiatService),
669
+ )
670
+ _UniffiLib.uniffi_breez_sdk_common_fn_init_callback_vtable_fiatservice.restype = None
671
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_fiatservice_fetch_fiat_currencies.argtypes = (
672
+ ctypes.c_void_p,
673
+ )
674
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_fiatservice_fetch_fiat_currencies.restype = ctypes.c_uint64
675
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_fiatservice_fetch_fiat_rates.argtypes = (
676
+ ctypes.c_void_p,
677
+ )
678
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_fiatservice_fetch_fiat_rates.restype = ctypes.c_uint64
584
679
  _UniffiLib.uniffi_breez_sdk_common_fn_clone_restclient.argtypes = (
585
680
  ctypes.c_void_p,
586
681
  ctypes.POINTER(_UniffiRustCallStatus),
@@ -595,19 +690,88 @@ _UniffiLib.uniffi_breez_sdk_common_fn_init_callback_vtable_restclient.argtypes =
595
690
  ctypes.POINTER(_UniffiVTableCallbackInterfaceRestClient),
596
691
  )
597
692
  _UniffiLib.uniffi_breez_sdk_common_fn_init_callback_vtable_restclient.restype = None
598
- _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_get.argtypes = (
693
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_get_request.argtypes = (
694
+ ctypes.c_void_p,
695
+ _UniffiRustBuffer,
696
+ _UniffiRustBuffer,
697
+ )
698
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_get_request.restype = ctypes.c_uint64
699
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_post_request.argtypes = (
700
+ ctypes.c_void_p,
701
+ _UniffiRustBuffer,
702
+ _UniffiRustBuffer,
703
+ _UniffiRustBuffer,
704
+ )
705
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_post_request.restype = ctypes.c_uint64
706
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_delete_request.argtypes = (
707
+ ctypes.c_void_p,
708
+ _UniffiRustBuffer,
709
+ _UniffiRustBuffer,
710
+ _UniffiRustBuffer,
711
+ )
712
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_delete_request.restype = ctypes.c_uint64
713
+ _UniffiLib.uniffi_breez_sdk_common_fn_clone_syncstorage.argtypes = (
714
+ ctypes.c_void_p,
715
+ ctypes.POINTER(_UniffiRustCallStatus),
716
+ )
717
+ _UniffiLib.uniffi_breez_sdk_common_fn_clone_syncstorage.restype = ctypes.c_void_p
718
+ _UniffiLib.uniffi_breez_sdk_common_fn_free_syncstorage.argtypes = (
719
+ ctypes.c_void_p,
720
+ ctypes.POINTER(_UniffiRustCallStatus),
721
+ )
722
+ _UniffiLib.uniffi_breez_sdk_common_fn_free_syncstorage.restype = None
723
+ _UniffiLib.uniffi_breez_sdk_common_fn_init_callback_vtable_syncstorage.argtypes = (
724
+ ctypes.POINTER(_UniffiVTableCallbackInterfaceSyncStorage),
725
+ )
726
+ _UniffiLib.uniffi_breez_sdk_common_fn_init_callback_vtable_syncstorage.restype = None
727
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_add_outgoing_change.argtypes = (
599
728
  ctypes.c_void_p,
600
729
  _UniffiRustBuffer,
730
+ )
731
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_add_outgoing_change.restype = ctypes.c_uint64
732
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_complete_outgoing_sync.argtypes = (
733
+ ctypes.c_void_p,
601
734
  _UniffiRustBuffer,
602
735
  )
603
- _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_get.restype = ctypes.c_uint64
604
- _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_post.argtypes = (
736
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_complete_outgoing_sync.restype = ctypes.c_uint64
737
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_get_pending_outgoing_changes.argtypes = (
738
+ ctypes.c_void_p,
739
+ ctypes.c_uint32,
740
+ )
741
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_get_pending_outgoing_changes.restype = ctypes.c_uint64
742
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_get_last_revision.argtypes = (
743
+ ctypes.c_void_p,
744
+ )
745
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_get_last_revision.restype = ctypes.c_uint64
746
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_insert_incoming_records.argtypes = (
605
747
  ctypes.c_void_p,
606
748
  _UniffiRustBuffer,
749
+ )
750
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_insert_incoming_records.restype = ctypes.c_uint64
751
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_delete_incoming_record.argtypes = (
752
+ ctypes.c_void_p,
607
753
  _UniffiRustBuffer,
754
+ )
755
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_delete_incoming_record.restype = ctypes.c_uint64
756
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_rebase_pending_outgoing_records.argtypes = (
757
+ ctypes.c_void_p,
758
+ ctypes.c_uint64,
759
+ )
760
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_rebase_pending_outgoing_records.restype = ctypes.c_uint64
761
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_get_incoming_records.argtypes = (
762
+ ctypes.c_void_p,
763
+ ctypes.c_uint32,
764
+ )
765
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_get_incoming_records.restype = ctypes.c_uint64
766
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_get_latest_outgoing_change.argtypes = (
767
+ ctypes.c_void_p,
768
+ )
769
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_get_latest_outgoing_change.restype = ctypes.c_uint64
770
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_update_record_from_incoming.argtypes = (
771
+ ctypes.c_void_p,
608
772
  _UniffiRustBuffer,
609
773
  )
610
- _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_post.restype = ctypes.c_uint64
774
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_update_record_from_incoming.restype = ctypes.c_uint64
611
775
  _UniffiLib.ffi_breez_sdk_common_rustbuffer_alloc.argtypes = (
612
776
  ctypes.c_uint64,
613
777
  ctypes.POINTER(_UniffiRustCallStatus),
@@ -876,12 +1040,51 @@ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_void.argtypes = (
876
1040
  ctypes.POINTER(_UniffiRustCallStatus),
877
1041
  )
878
1042
  _UniffiLib.ffi_breez_sdk_common_rust_future_complete_void.restype = None
879
- _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_get.argtypes = (
1043
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_fiatservice_fetch_fiat_currencies.argtypes = (
1044
+ )
1045
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_fiatservice_fetch_fiat_currencies.restype = ctypes.c_uint16
1046
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_fiatservice_fetch_fiat_rates.argtypes = (
1047
+ )
1048
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_fiatservice_fetch_fiat_rates.restype = ctypes.c_uint16
1049
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_get_request.argtypes = (
1050
+ )
1051
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_get_request.restype = ctypes.c_uint16
1052
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_post_request.argtypes = (
1053
+ )
1054
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_post_request.restype = ctypes.c_uint16
1055
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_delete_request.argtypes = (
1056
+ )
1057
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_delete_request.restype = ctypes.c_uint16
1058
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_add_outgoing_change.argtypes = (
1059
+ )
1060
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_add_outgoing_change.restype = ctypes.c_uint16
1061
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_complete_outgoing_sync.argtypes = (
1062
+ )
1063
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_complete_outgoing_sync.restype = ctypes.c_uint16
1064
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_get_pending_outgoing_changes.argtypes = (
880
1065
  )
881
- _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_get.restype = ctypes.c_uint16
882
- _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_post.argtypes = (
1066
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_get_pending_outgoing_changes.restype = ctypes.c_uint16
1067
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_get_last_revision.argtypes = (
883
1068
  )
884
- _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_post.restype = ctypes.c_uint16
1069
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_get_last_revision.restype = ctypes.c_uint16
1070
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_insert_incoming_records.argtypes = (
1071
+ )
1072
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_insert_incoming_records.restype = ctypes.c_uint16
1073
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_delete_incoming_record.argtypes = (
1074
+ )
1075
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_delete_incoming_record.restype = ctypes.c_uint16
1076
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_rebase_pending_outgoing_records.argtypes = (
1077
+ )
1078
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_rebase_pending_outgoing_records.restype = ctypes.c_uint16
1079
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_get_incoming_records.argtypes = (
1080
+ )
1081
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_get_incoming_records.restype = ctypes.c_uint16
1082
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_get_latest_outgoing_change.argtypes = (
1083
+ )
1084
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_get_latest_outgoing_change.restype = ctypes.c_uint16
1085
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_update_record_from_incoming.argtypes = (
1086
+ )
1087
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_syncstorage_update_record_from_incoming.restype = ctypes.c_uint16
885
1088
  _UniffiLib.ffi_breez_sdk_common_uniffi_contract_version.argtypes = (
886
1089
  )
887
1090
  _UniffiLib.ffi_breez_sdk_common_uniffi_contract_version.restype = ctypes.c_uint32
@@ -995,29 +1198,30 @@ class _UniffiConverterString:
995
1198
 
996
1199
 
997
1200
 
998
- class RestClient(typing.Protocol):
999
- def get(self, url: "str",headers: "typing.Optional[dict[str, str]]"):
1201
+ class FiatService(typing.Protocol):
1202
+ """
1203
+ Trait covering fiat-related functionality
1204
+ """
1205
+
1206
+ def fetch_fiat_currencies(self, ):
1000
1207
  """
1001
- Makes a GET request and logs on DEBUG.
1002
- ### Arguments
1003
- - `url`: the URL on which GET will be called
1004
- - `headers`: optional headers that will be set on the request
1208
+ List all supported fiat currencies for which there is a known exchange rate.
1005
1209
  """
1006
1210
 
1007
1211
  raise NotImplementedError
1008
- def post(self, url: "str",headers: "typing.Optional[dict[str, str]]",body: "typing.Optional[str]"):
1212
+ def fetch_fiat_rates(self, ):
1009
1213
  """
1010
- Makes a POST request, and logs on DEBUG.
1011
- ### Arguments
1012
- - `url`: the URL on which POST will be called
1013
- - `headers`: the optional POST headers
1014
- - `body`: the optional POST body
1214
+ Get the live rates from the server.
1015
1215
  """
1016
1216
 
1017
1217
  raise NotImplementedError
1018
1218
 
1019
1219
 
1020
- class RestClientImpl:
1220
+ class FiatServiceImpl:
1221
+ """
1222
+ Trait covering fiat-related functionality
1223
+ """
1224
+
1021
1225
  _pointer: ctypes.c_void_p
1022
1226
 
1023
1227
  def __init__(self, *args, **kwargs):
@@ -1027,10 +1231,10 @@ class RestClientImpl:
1027
1231
  # In case of partial initialization of instances.
1028
1232
  pointer = getattr(self, "_pointer", None)
1029
1233
  if pointer is not None:
1030
- _uniffi_rust_call(_UniffiLib.uniffi_breez_sdk_common_fn_free_restclient, pointer)
1234
+ _uniffi_rust_call(_UniffiLib.uniffi_breez_sdk_common_fn_free_fiatservice, pointer)
1031
1235
 
1032
1236
  def _uniffi_clone_pointer(self):
1033
- return _uniffi_rust_call(_UniffiLib.uniffi_breez_sdk_common_fn_clone_restclient, self._pointer)
1237
+ return _uniffi_rust_call(_UniffiLib.uniffi_breez_sdk_common_fn_clone_fiatservice, self._pointer)
1034
1238
 
1035
1239
  # Used by alternative constructors or any methods which return this type.
1036
1240
  @classmethod
@@ -1041,29 +1245,20 @@ class RestClientImpl:
1041
1245
  inst._pointer = pointer
1042
1246
  return inst
1043
1247
 
1044
- async def get(self, url: "str",headers: "typing.Optional[dict[str, str]]") -> "RestResponse":
1248
+ async def fetch_fiat_currencies(self, ) -> "typing.List[FiatCurrency]":
1045
1249
  """
1046
- Makes a GET request and logs on DEBUG.
1047
- ### Arguments
1048
- - `url`: the URL on which GET will be called
1049
- - `headers`: optional headers that will be set on the request
1250
+ List all supported fiat currencies for which there is a known exchange rate.
1050
1251
  """
1051
1252
 
1052
- _UniffiConverterString.check_lower(url)
1053
-
1054
- _UniffiConverterOptionalMapStringString.check_lower(headers)
1055
-
1056
1253
  return await _uniffi_rust_call_async(
1057
- _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_get(
1254
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_fiatservice_fetch_fiat_currencies(
1058
1255
  self._uniffi_clone_pointer(),
1059
- _UniffiConverterString.lower(url),
1060
- _UniffiConverterOptionalMapStringString.lower(headers)
1061
1256
  ),
1062
1257
  _UniffiLib.ffi_breez_sdk_common_rust_future_poll_rust_buffer,
1063
1258
  _UniffiLib.ffi_breez_sdk_common_rust_future_complete_rust_buffer,
1064
1259
  _UniffiLib.ffi_breez_sdk_common_rust_future_free_rust_buffer,
1065
1260
  # lift function
1066
- _UniffiConverterTypeRestResponse.lift,
1261
+ _UniffiConverterSequenceTypeFiatCurrency.lift,
1067
1262
 
1068
1263
  # Error FFI converter
1069
1264
  _UniffiConverterTypeServiceConnectivityError,
@@ -1072,33 +1267,20 @@ _UniffiConverterTypeServiceConnectivityError,
1072
1267
 
1073
1268
 
1074
1269
 
1075
- async def post(self, url: "str",headers: "typing.Optional[dict[str, str]]",body: "typing.Optional[str]") -> "RestResponse":
1270
+ async def fetch_fiat_rates(self, ) -> "typing.List[Rate]":
1076
1271
  """
1077
- Makes a POST request, and logs on DEBUG.
1078
- ### Arguments
1079
- - `url`: the URL on which POST will be called
1080
- - `headers`: the optional POST headers
1081
- - `body`: the optional POST body
1272
+ Get the live rates from the server.
1082
1273
  """
1083
1274
 
1084
- _UniffiConverterString.check_lower(url)
1085
-
1086
- _UniffiConverterOptionalMapStringString.check_lower(headers)
1087
-
1088
- _UniffiConverterOptionalString.check_lower(body)
1089
-
1090
1275
  return await _uniffi_rust_call_async(
1091
- _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_post(
1276
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_fiatservice_fetch_fiat_rates(
1092
1277
  self._uniffi_clone_pointer(),
1093
- _UniffiConverterString.lower(url),
1094
- _UniffiConverterOptionalMapStringString.lower(headers),
1095
- _UniffiConverterOptionalString.lower(body)
1096
1278
  ),
1097
1279
  _UniffiLib.ffi_breez_sdk_common_rust_future_poll_rust_buffer,
1098
1280
  _UniffiLib.ffi_breez_sdk_common_rust_future_complete_rust_buffer,
1099
1281
  _UniffiLib.ffi_breez_sdk_common_rust_future_free_rust_buffer,
1100
1282
  # lift function
1101
- _UniffiConverterTypeRestResponse.lift,
1283
+ _UniffiConverterSequenceTypeRate.lift,
1102
1284
 
1103
1285
  # Error FFI converter
1104
1286
  _UniffiConverterTypeServiceConnectivityError,
@@ -1140,22 +1322,20 @@ class _UniffiCallbackInterfaceFfiConverter:
1140
1322
  buf.write_u64(cls.lower(cb))
1141
1323
 
1142
1324
  # Put all the bits inside a class to keep the top-level namespace clean
1143
- class _UniffiTraitImplRestClient:
1325
+ class _UniffiTraitImplFiatService:
1144
1326
  # For each method, generate a callback function to pass to Rust
1145
1327
 
1146
- @_UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD0
1147
- def get(
1328
+ @_UNIFFI_CALLBACK_INTERFACE_FIAT_SERVICE_METHOD0
1329
+ def fetch_fiat_currencies(
1148
1330
  uniffi_handle,
1149
- url,
1150
- headers,
1151
1331
  uniffi_future_callback,
1152
1332
  uniffi_callback_data,
1153
1333
  uniffi_out_return,
1154
1334
  ):
1155
- uniffi_obj = _UniffiConverterTypeRestClient._handle_map.get(uniffi_handle)
1335
+ uniffi_obj = _UniffiConverterTypeFiatService._handle_map.get(uniffi_handle)
1156
1336
  def make_call():
1157
- args = (_UniffiConverterString.lift(url), _UniffiConverterOptionalMapStringString.lift(headers), )
1158
- method = uniffi_obj.get
1337
+ args = ()
1338
+ method = uniffi_obj.fetch_fiat_currencies
1159
1339
  return method(*args)
1160
1340
 
1161
1341
 
@@ -1163,7 +1343,7 @@ class _UniffiTraitImplRestClient:
1163
1343
  uniffi_future_callback(
1164
1344
  uniffi_callback_data,
1165
1345
  _UniffiForeignFutureStructRustBuffer(
1166
- _UniffiConverterTypeRestResponse.lower(return_value),
1346
+ _UniffiConverterSequenceTypeFiatCurrency.lower(return_value),
1167
1347
  _UniffiRustCallStatus.default()
1168
1348
  )
1169
1349
  )
@@ -1178,20 +1358,17 @@ class _UniffiTraitImplRestClient:
1178
1358
  )
1179
1359
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, ServiceConnectivityError, _UniffiConverterTypeServiceConnectivityError.lower)
1180
1360
 
1181
- @_UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD1
1182
- def post(
1361
+ @_UNIFFI_CALLBACK_INTERFACE_FIAT_SERVICE_METHOD1
1362
+ def fetch_fiat_rates(
1183
1363
  uniffi_handle,
1184
- url,
1185
- headers,
1186
- body,
1187
1364
  uniffi_future_callback,
1188
1365
  uniffi_callback_data,
1189
1366
  uniffi_out_return,
1190
1367
  ):
1191
- uniffi_obj = _UniffiConverterTypeRestClient._handle_map.get(uniffi_handle)
1368
+ uniffi_obj = _UniffiConverterTypeFiatService._handle_map.get(uniffi_handle)
1192
1369
  def make_call():
1193
- args = (_UniffiConverterString.lift(url), _UniffiConverterOptionalMapStringString.lift(headers), _UniffiConverterOptionalString.lift(body), )
1194
- method = uniffi_obj.post
1370
+ args = ()
1371
+ method = uniffi_obj.fetch_fiat_rates
1195
1372
  return method(*args)
1196
1373
 
1197
1374
 
@@ -1199,7 +1376,7 @@ class _UniffiTraitImplRestClient:
1199
1376
  uniffi_future_callback(
1200
1377
  uniffi_callback_data,
1201
1378
  _UniffiForeignFutureStructRustBuffer(
1202
- _UniffiConverterTypeRestResponse.lower(return_value),
1379
+ _UniffiConverterSequenceTypeRate.lower(return_value),
1203
1380
  _UniffiRustCallStatus.default()
1204
1381
  )
1205
1382
  )
@@ -1216,34 +1393,34 @@ class _UniffiTraitImplRestClient:
1216
1393
 
1217
1394
  @_UNIFFI_CALLBACK_INTERFACE_FREE
1218
1395
  def _uniffi_free(uniffi_handle):
1219
- _UniffiConverterTypeRestClient._handle_map.remove(uniffi_handle)
1396
+ _UniffiConverterTypeFiatService._handle_map.remove(uniffi_handle)
1220
1397
 
1221
1398
  # Generate the FFI VTable. This has a field for each callback interface method.
1222
- _uniffi_vtable = _UniffiVTableCallbackInterfaceRestClient(
1223
- get,
1224
- post,
1399
+ _uniffi_vtable = _UniffiVTableCallbackInterfaceFiatService(
1400
+ fetch_fiat_currencies,
1401
+ fetch_fiat_rates,
1225
1402
  _uniffi_free
1226
1403
  )
1227
1404
  # Send Rust a pointer to the VTable. Note: this means we need to keep the struct alive forever,
1228
1405
  # or else bad things will happen when Rust tries to access it.
1229
- _UniffiLib.uniffi_breez_sdk_common_fn_init_callback_vtable_restclient(ctypes.byref(_uniffi_vtable))
1406
+ _UniffiLib.uniffi_breez_sdk_common_fn_init_callback_vtable_fiatservice(ctypes.byref(_uniffi_vtable))
1230
1407
 
1231
1408
 
1232
1409
 
1233
- class _UniffiConverterTypeRestClient:
1410
+ class _UniffiConverterTypeFiatService:
1234
1411
  _handle_map = _UniffiHandleMap()
1235
1412
 
1236
1413
  @staticmethod
1237
1414
  def lift(value: int):
1238
- return RestClientImpl._make_instance_(value)
1415
+ return FiatServiceImpl._make_instance_(value)
1239
1416
 
1240
1417
  @staticmethod
1241
- def check_lower(value: RestClient):
1418
+ def check_lower(value: FiatService):
1242
1419
  pass
1243
1420
 
1244
1421
  @staticmethod
1245
- def lower(value: RestClient):
1246
- return _UniffiConverterTypeRestClient._handle_map.insert(value)
1422
+ def lower(value: FiatService):
1423
+ return _UniffiConverterTypeFiatService._handle_map.insert(value)
1247
1424
 
1248
1425
  @classmethod
1249
1426
  def read(cls, buf: _UniffiRustBuffer):
@@ -1253,74 +1430,1090 @@ class _UniffiConverterTypeRestClient:
1253
1430
  return cls.lift(ptr)
1254
1431
 
1255
1432
  @classmethod
1256
- def write(cls, value: RestClient, buf: _UniffiRustBuffer):
1433
+ def write(cls, value: FiatService, buf: _UniffiRustBuffer):
1257
1434
  buf.write_u64(cls.lower(value))
1258
1435
 
1259
1436
 
1260
- class AesSuccessActionData:
1261
- """
1262
- Payload of the AES success action, as received from the LNURL endpoint
1263
-
1264
- See [`AesSuccessActionDataDecrypted`] for a similar wrapper containing the decrypted payload
1265
- """
1266
-
1267
- description: "str"
1268
- """
1269
- Contents description, up to 144 characters
1270
- """
1271
1437
 
1272
- ciphertext: "str"
1273
- """
1274
- Base64, AES-encrypted data where encryption key is payment preimage, up to 4kb of characters
1275
- """
1438
+ class RestClient(typing.Protocol):
1439
+ def get_request(self, url: "str",headers: "typing.Optional[dict[str, str]]"):
1440
+ """
1441
+ Makes a GET request and logs on DEBUG.
1442
+ ### Arguments
1443
+ - `url`: the URL on which GET will be called
1444
+ - `headers`: optional headers that will be set on the request
1445
+ """
1276
1446
 
1277
- iv: "str"
1278
- """
1279
- Base64, initialization vector, exactly 24 characters
1280
- """
1447
+ raise NotImplementedError
1448
+ def post_request(self, url: "str",headers: "typing.Optional[dict[str, str]]",body: "typing.Optional[str]"):
1449
+ """
1450
+ Makes a POST request, and logs on DEBUG.
1451
+ ### Arguments
1452
+ - `url`: the URL on which POST will be called
1453
+ - `headers`: the optional POST headers
1454
+ - `body`: the optional POST body
1455
+ """
1281
1456
 
1282
- def __init__(self, *, description: "str", ciphertext: "str", iv: "str"):
1283
- self.description = description
1284
- self.ciphertext = ciphertext
1285
- self.iv = iv
1457
+ raise NotImplementedError
1458
+ def delete_request(self, url: "str",headers: "typing.Optional[dict[str, str]]",body: "typing.Optional[str]"):
1459
+ """
1460
+ Makes a DELETE request, and logs on DEBUG.
1461
+ ### Arguments
1462
+ - `url`: the URL on which DELETE will be called
1463
+ - `headers`: the optional DELETE headers
1464
+ - `body`: the optional DELETE body
1465
+ """
1286
1466
 
1287
- def __str__(self):
1288
- return "AesSuccessActionData(description={}, ciphertext={}, iv={})".format(self.description, self.ciphertext, self.iv)
1467
+ raise NotImplementedError
1289
1468
 
1290
- def __eq__(self, other):
1291
- if self.description != other.description:
1292
- return False
1293
- if self.ciphertext != other.ciphertext:
1294
- return False
1295
- if self.iv != other.iv:
1296
- return False
1297
- return True
1298
1469
 
1299
- class _UniffiConverterTypeAesSuccessActionData(_UniffiConverterRustBuffer):
1300
- @staticmethod
1301
- def read(buf):
1302
- return AesSuccessActionData(
1303
- description=_UniffiConverterString.read(buf),
1304
- ciphertext=_UniffiConverterString.read(buf),
1305
- iv=_UniffiConverterString.read(buf),
1306
- )
1470
+ class RestClientImpl:
1471
+ _pointer: ctypes.c_void_p
1472
+
1473
+ def __init__(self, *args, **kwargs):
1474
+ raise ValueError("This class has no default constructor")
1307
1475
 
1308
- @staticmethod
1309
- def check_lower(value):
1310
- _UniffiConverterString.check_lower(value.description)
1311
- _UniffiConverterString.check_lower(value.ciphertext)
1312
- _UniffiConverterString.check_lower(value.iv)
1476
+ def __del__(self):
1477
+ # In case of partial initialization of instances.
1478
+ pointer = getattr(self, "_pointer", None)
1479
+ if pointer is not None:
1480
+ _uniffi_rust_call(_UniffiLib.uniffi_breez_sdk_common_fn_free_restclient, pointer)
1313
1481
 
1314
- @staticmethod
1315
- def write(value, buf):
1316
- _UniffiConverterString.write(value.description, buf)
1317
- _UniffiConverterString.write(value.ciphertext, buf)
1318
- _UniffiConverterString.write(value.iv, buf)
1482
+ def _uniffi_clone_pointer(self):
1483
+ return _uniffi_rust_call(_UniffiLib.uniffi_breez_sdk_common_fn_clone_restclient, self._pointer)
1319
1484
 
1485
+ # Used by alternative constructors or any methods which return this type.
1486
+ @classmethod
1487
+ def _make_instance_(cls, pointer):
1488
+ # Lightly yucky way to bypass the usual __init__ logic
1489
+ # and just create a new instance with the required pointer.
1490
+ inst = cls.__new__(cls)
1491
+ inst._pointer = pointer
1492
+ return inst
1320
1493
 
1321
- class AesSuccessActionDataDecrypted:
1322
- """
1323
- Wrapper for the decrypted [`AesSuccessActionData`] payload
1494
+ async def get_request(self, url: "str",headers: "typing.Optional[dict[str, str]]") -> "RestResponse":
1495
+ """
1496
+ Makes a GET request and logs on DEBUG.
1497
+ ### Arguments
1498
+ - `url`: the URL on which GET will be called
1499
+ - `headers`: optional headers that will be set on the request
1500
+ """
1501
+
1502
+ _UniffiConverterString.check_lower(url)
1503
+
1504
+ _UniffiConverterOptionalMapStringString.check_lower(headers)
1505
+
1506
+ return await _uniffi_rust_call_async(
1507
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_get_request(
1508
+ self._uniffi_clone_pointer(),
1509
+ _UniffiConverterString.lower(url),
1510
+ _UniffiConverterOptionalMapStringString.lower(headers)
1511
+ ),
1512
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_rust_buffer,
1513
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_rust_buffer,
1514
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_rust_buffer,
1515
+ # lift function
1516
+ _UniffiConverterTypeRestResponse.lift,
1517
+
1518
+ # Error FFI converter
1519
+ _UniffiConverterTypeServiceConnectivityError,
1520
+
1521
+ )
1522
+
1523
+
1524
+
1525
+ async def post_request(self, url: "str",headers: "typing.Optional[dict[str, str]]",body: "typing.Optional[str]") -> "RestResponse":
1526
+ """
1527
+ Makes a POST request, and logs on DEBUG.
1528
+ ### Arguments
1529
+ - `url`: the URL on which POST will be called
1530
+ - `headers`: the optional POST headers
1531
+ - `body`: the optional POST body
1532
+ """
1533
+
1534
+ _UniffiConverterString.check_lower(url)
1535
+
1536
+ _UniffiConverterOptionalMapStringString.check_lower(headers)
1537
+
1538
+ _UniffiConverterOptionalString.check_lower(body)
1539
+
1540
+ return await _uniffi_rust_call_async(
1541
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_post_request(
1542
+ self._uniffi_clone_pointer(),
1543
+ _UniffiConverterString.lower(url),
1544
+ _UniffiConverterOptionalMapStringString.lower(headers),
1545
+ _UniffiConverterOptionalString.lower(body)
1546
+ ),
1547
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_rust_buffer,
1548
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_rust_buffer,
1549
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_rust_buffer,
1550
+ # lift function
1551
+ _UniffiConverterTypeRestResponse.lift,
1552
+
1553
+ # Error FFI converter
1554
+ _UniffiConverterTypeServiceConnectivityError,
1555
+
1556
+ )
1557
+
1558
+
1559
+
1560
+ async def delete_request(self, url: "str",headers: "typing.Optional[dict[str, str]]",body: "typing.Optional[str]") -> "RestResponse":
1561
+ """
1562
+ Makes a DELETE request, and logs on DEBUG.
1563
+ ### Arguments
1564
+ - `url`: the URL on which DELETE will be called
1565
+ - `headers`: the optional DELETE headers
1566
+ - `body`: the optional DELETE body
1567
+ """
1568
+
1569
+ _UniffiConverterString.check_lower(url)
1570
+
1571
+ _UniffiConverterOptionalMapStringString.check_lower(headers)
1572
+
1573
+ _UniffiConverterOptionalString.check_lower(body)
1574
+
1575
+ return await _uniffi_rust_call_async(
1576
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_delete_request(
1577
+ self._uniffi_clone_pointer(),
1578
+ _UniffiConverterString.lower(url),
1579
+ _UniffiConverterOptionalMapStringString.lower(headers),
1580
+ _UniffiConverterOptionalString.lower(body)
1581
+ ),
1582
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_rust_buffer,
1583
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_rust_buffer,
1584
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_rust_buffer,
1585
+ # lift function
1586
+ _UniffiConverterTypeRestResponse.lift,
1587
+
1588
+ # Error FFI converter
1589
+ _UniffiConverterTypeServiceConnectivityError,
1590
+
1591
+ )
1592
+
1593
+
1594
+
1595
+
1596
+ # Put all the bits inside a class to keep the top-level namespace clean
1597
+ class _UniffiTraitImplRestClient:
1598
+ # For each method, generate a callback function to pass to Rust
1599
+
1600
+ @_UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD0
1601
+ def get_request(
1602
+ uniffi_handle,
1603
+ url,
1604
+ headers,
1605
+ uniffi_future_callback,
1606
+ uniffi_callback_data,
1607
+ uniffi_out_return,
1608
+ ):
1609
+ uniffi_obj = _UniffiConverterTypeRestClient._handle_map.get(uniffi_handle)
1610
+ def make_call():
1611
+ args = (_UniffiConverterString.lift(url), _UniffiConverterOptionalMapStringString.lift(headers), )
1612
+ method = uniffi_obj.get_request
1613
+ return method(*args)
1614
+
1615
+
1616
+ def handle_success(return_value):
1617
+ uniffi_future_callback(
1618
+ uniffi_callback_data,
1619
+ _UniffiForeignFutureStructRustBuffer(
1620
+ _UniffiConverterTypeRestResponse.lower(return_value),
1621
+ _UniffiRustCallStatus.default()
1622
+ )
1623
+ )
1624
+
1625
+ def handle_error(status_code, rust_buffer):
1626
+ uniffi_future_callback(
1627
+ uniffi_callback_data,
1628
+ _UniffiForeignFutureStructRustBuffer(
1629
+ _UniffiRustBuffer.default(),
1630
+ _UniffiRustCallStatus(status_code, rust_buffer),
1631
+ )
1632
+ )
1633
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, ServiceConnectivityError, _UniffiConverterTypeServiceConnectivityError.lower)
1634
+
1635
+ @_UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD1
1636
+ def post_request(
1637
+ uniffi_handle,
1638
+ url,
1639
+ headers,
1640
+ body,
1641
+ uniffi_future_callback,
1642
+ uniffi_callback_data,
1643
+ uniffi_out_return,
1644
+ ):
1645
+ uniffi_obj = _UniffiConverterTypeRestClient._handle_map.get(uniffi_handle)
1646
+ def make_call():
1647
+ args = (_UniffiConverterString.lift(url), _UniffiConverterOptionalMapStringString.lift(headers), _UniffiConverterOptionalString.lift(body), )
1648
+ method = uniffi_obj.post_request
1649
+ return method(*args)
1650
+
1651
+
1652
+ def handle_success(return_value):
1653
+ uniffi_future_callback(
1654
+ uniffi_callback_data,
1655
+ _UniffiForeignFutureStructRustBuffer(
1656
+ _UniffiConverterTypeRestResponse.lower(return_value),
1657
+ _UniffiRustCallStatus.default()
1658
+ )
1659
+ )
1660
+
1661
+ def handle_error(status_code, rust_buffer):
1662
+ uniffi_future_callback(
1663
+ uniffi_callback_data,
1664
+ _UniffiForeignFutureStructRustBuffer(
1665
+ _UniffiRustBuffer.default(),
1666
+ _UniffiRustCallStatus(status_code, rust_buffer),
1667
+ )
1668
+ )
1669
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, ServiceConnectivityError, _UniffiConverterTypeServiceConnectivityError.lower)
1670
+
1671
+ @_UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD2
1672
+ def delete_request(
1673
+ uniffi_handle,
1674
+ url,
1675
+ headers,
1676
+ body,
1677
+ uniffi_future_callback,
1678
+ uniffi_callback_data,
1679
+ uniffi_out_return,
1680
+ ):
1681
+ uniffi_obj = _UniffiConverterTypeRestClient._handle_map.get(uniffi_handle)
1682
+ def make_call():
1683
+ args = (_UniffiConverterString.lift(url), _UniffiConverterOptionalMapStringString.lift(headers), _UniffiConverterOptionalString.lift(body), )
1684
+ method = uniffi_obj.delete_request
1685
+ return method(*args)
1686
+
1687
+
1688
+ def handle_success(return_value):
1689
+ uniffi_future_callback(
1690
+ uniffi_callback_data,
1691
+ _UniffiForeignFutureStructRustBuffer(
1692
+ _UniffiConverterTypeRestResponse.lower(return_value),
1693
+ _UniffiRustCallStatus.default()
1694
+ )
1695
+ )
1696
+
1697
+ def handle_error(status_code, rust_buffer):
1698
+ uniffi_future_callback(
1699
+ uniffi_callback_data,
1700
+ _UniffiForeignFutureStructRustBuffer(
1701
+ _UniffiRustBuffer.default(),
1702
+ _UniffiRustCallStatus(status_code, rust_buffer),
1703
+ )
1704
+ )
1705
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, ServiceConnectivityError, _UniffiConverterTypeServiceConnectivityError.lower)
1706
+
1707
+ @_UNIFFI_CALLBACK_INTERFACE_FREE
1708
+ def _uniffi_free(uniffi_handle):
1709
+ _UniffiConverterTypeRestClient._handle_map.remove(uniffi_handle)
1710
+
1711
+ # Generate the FFI VTable. This has a field for each callback interface method.
1712
+ _uniffi_vtable = _UniffiVTableCallbackInterfaceRestClient(
1713
+ get_request,
1714
+ post_request,
1715
+ delete_request,
1716
+ _uniffi_free
1717
+ )
1718
+ # Send Rust a pointer to the VTable. Note: this means we need to keep the struct alive forever,
1719
+ # or else bad things will happen when Rust tries to access it.
1720
+ _UniffiLib.uniffi_breez_sdk_common_fn_init_callback_vtable_restclient(ctypes.byref(_uniffi_vtable))
1721
+
1722
+
1723
+
1724
+ class _UniffiConverterTypeRestClient:
1725
+ _handle_map = _UniffiHandleMap()
1726
+
1727
+ @staticmethod
1728
+ def lift(value: int):
1729
+ return RestClientImpl._make_instance_(value)
1730
+
1731
+ @staticmethod
1732
+ def check_lower(value: RestClient):
1733
+ pass
1734
+
1735
+ @staticmethod
1736
+ def lower(value: RestClient):
1737
+ return _UniffiConverterTypeRestClient._handle_map.insert(value)
1738
+
1739
+ @classmethod
1740
+ def read(cls, buf: _UniffiRustBuffer):
1741
+ ptr = buf.read_u64()
1742
+ if ptr == 0:
1743
+ raise InternalError("Raw pointer value was null")
1744
+ return cls.lift(ptr)
1745
+
1746
+ @classmethod
1747
+ def write(cls, value: RestClient, buf: _UniffiRustBuffer):
1748
+ buf.write_u64(cls.lower(value))
1749
+
1750
+
1751
+
1752
+ class SyncStorage(typing.Protocol):
1753
+ def add_outgoing_change(self, record: "UnversionedRecordChange"):
1754
+ raise NotImplementedError
1755
+ def complete_outgoing_sync(self, record: "Record"):
1756
+ raise NotImplementedError
1757
+ def get_pending_outgoing_changes(self, limit: "int"):
1758
+ raise NotImplementedError
1759
+ def get_last_revision(self, ):
1760
+ """
1761
+ Get the revision number of the last synchronized record
1762
+ """
1763
+
1764
+ raise NotImplementedError
1765
+ def insert_incoming_records(self, records: "typing.List[Record]"):
1766
+ """
1767
+ Insert incoming records from remote sync
1768
+ """
1769
+
1770
+ raise NotImplementedError
1771
+ def delete_incoming_record(self, record: "Record"):
1772
+ """
1773
+ Delete an incoming record after it has been processed
1774
+ """
1775
+
1776
+ raise NotImplementedError
1777
+ def rebase_pending_outgoing_records(self, revision: "int"):
1778
+ """
1779
+ Update revision numbers of pending outgoing records to be higher than the given revision
1780
+ """
1781
+
1782
+ raise NotImplementedError
1783
+ def get_incoming_records(self, limit: "int"):
1784
+ """
1785
+ Get incoming records that need to be processed, up to the specified limit
1786
+ """
1787
+
1788
+ raise NotImplementedError
1789
+ def get_latest_outgoing_change(self, ):
1790
+ """
1791
+ Get the latest outgoing record if any exists
1792
+ """
1793
+
1794
+ raise NotImplementedError
1795
+ def update_record_from_incoming(self, record: "Record"):
1796
+ """
1797
+ Update the sync state record from an incoming record
1798
+ """
1799
+
1800
+ raise NotImplementedError
1801
+
1802
+
1803
+ class SyncStorageImpl:
1804
+ _pointer: ctypes.c_void_p
1805
+
1806
+ def __init__(self, *args, **kwargs):
1807
+ raise ValueError("This class has no default constructor")
1808
+
1809
+ def __del__(self):
1810
+ # In case of partial initialization of instances.
1811
+ pointer = getattr(self, "_pointer", None)
1812
+ if pointer is not None:
1813
+ _uniffi_rust_call(_UniffiLib.uniffi_breez_sdk_common_fn_free_syncstorage, pointer)
1814
+
1815
+ def _uniffi_clone_pointer(self):
1816
+ return _uniffi_rust_call(_UniffiLib.uniffi_breez_sdk_common_fn_clone_syncstorage, self._pointer)
1817
+
1818
+ # Used by alternative constructors or any methods which return this type.
1819
+ @classmethod
1820
+ def _make_instance_(cls, pointer):
1821
+ # Lightly yucky way to bypass the usual __init__ logic
1822
+ # and just create a new instance with the required pointer.
1823
+ inst = cls.__new__(cls)
1824
+ inst._pointer = pointer
1825
+ return inst
1826
+
1827
+ async def add_outgoing_change(self, record: "UnversionedRecordChange") -> "int":
1828
+ _UniffiConverterTypeUnversionedRecordChange.check_lower(record)
1829
+
1830
+ return await _uniffi_rust_call_async(
1831
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_add_outgoing_change(
1832
+ self._uniffi_clone_pointer(),
1833
+ _UniffiConverterTypeUnversionedRecordChange.lower(record)
1834
+ ),
1835
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_u64,
1836
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_u64,
1837
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_u64,
1838
+ # lift function
1839
+ _UniffiConverterUInt64.lift,
1840
+
1841
+ # Error FFI converter
1842
+ _UniffiConverterTypeSyncStorageError,
1843
+
1844
+ )
1845
+
1846
+
1847
+
1848
+ async def complete_outgoing_sync(self, record: "Record") -> None:
1849
+
1850
+ _UniffiConverterTypeRecord.check_lower(record)
1851
+
1852
+ return await _uniffi_rust_call_async(
1853
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_complete_outgoing_sync(
1854
+ self._uniffi_clone_pointer(),
1855
+ _UniffiConverterTypeRecord.lower(record)
1856
+ ),
1857
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_void,
1858
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_void,
1859
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_void,
1860
+ # lift function
1861
+ lambda val: None,
1862
+
1863
+
1864
+ # Error FFI converter
1865
+ _UniffiConverterTypeSyncStorageError,
1866
+
1867
+ )
1868
+
1869
+
1870
+
1871
+ async def get_pending_outgoing_changes(self, limit: "int") -> "typing.List[OutgoingChange]":
1872
+ _UniffiConverterUInt32.check_lower(limit)
1873
+
1874
+ return await _uniffi_rust_call_async(
1875
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_get_pending_outgoing_changes(
1876
+ self._uniffi_clone_pointer(),
1877
+ _UniffiConverterUInt32.lower(limit)
1878
+ ),
1879
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_rust_buffer,
1880
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_rust_buffer,
1881
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_rust_buffer,
1882
+ # lift function
1883
+ _UniffiConverterSequenceTypeOutgoingChange.lift,
1884
+
1885
+ # Error FFI converter
1886
+ _UniffiConverterTypeSyncStorageError,
1887
+
1888
+ )
1889
+
1890
+
1891
+
1892
+ async def get_last_revision(self, ) -> "int":
1893
+ """
1894
+ Get the revision number of the last synchronized record
1895
+ """
1896
+
1897
+ return await _uniffi_rust_call_async(
1898
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_get_last_revision(
1899
+ self._uniffi_clone_pointer(),
1900
+ ),
1901
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_u64,
1902
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_u64,
1903
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_u64,
1904
+ # lift function
1905
+ _UniffiConverterUInt64.lift,
1906
+
1907
+ # Error FFI converter
1908
+ _UniffiConverterTypeSyncStorageError,
1909
+
1910
+ )
1911
+
1912
+
1913
+
1914
+ async def insert_incoming_records(self, records: "typing.List[Record]") -> None:
1915
+
1916
+ """
1917
+ Insert incoming records from remote sync
1918
+ """
1919
+
1920
+ _UniffiConverterSequenceTypeRecord.check_lower(records)
1921
+
1922
+ return await _uniffi_rust_call_async(
1923
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_insert_incoming_records(
1924
+ self._uniffi_clone_pointer(),
1925
+ _UniffiConverterSequenceTypeRecord.lower(records)
1926
+ ),
1927
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_void,
1928
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_void,
1929
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_void,
1930
+ # lift function
1931
+ lambda val: None,
1932
+
1933
+
1934
+ # Error FFI converter
1935
+ _UniffiConverterTypeSyncStorageError,
1936
+
1937
+ )
1938
+
1939
+
1940
+
1941
+ async def delete_incoming_record(self, record: "Record") -> None:
1942
+
1943
+ """
1944
+ Delete an incoming record after it has been processed
1945
+ """
1946
+
1947
+ _UniffiConverterTypeRecord.check_lower(record)
1948
+
1949
+ return await _uniffi_rust_call_async(
1950
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_delete_incoming_record(
1951
+ self._uniffi_clone_pointer(),
1952
+ _UniffiConverterTypeRecord.lower(record)
1953
+ ),
1954
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_void,
1955
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_void,
1956
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_void,
1957
+ # lift function
1958
+ lambda val: None,
1959
+
1960
+
1961
+ # Error FFI converter
1962
+ _UniffiConverterTypeSyncStorageError,
1963
+
1964
+ )
1965
+
1966
+
1967
+
1968
+ async def rebase_pending_outgoing_records(self, revision: "int") -> None:
1969
+
1970
+ """
1971
+ Update revision numbers of pending outgoing records to be higher than the given revision
1972
+ """
1973
+
1974
+ _UniffiConverterUInt64.check_lower(revision)
1975
+
1976
+ return await _uniffi_rust_call_async(
1977
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_rebase_pending_outgoing_records(
1978
+ self._uniffi_clone_pointer(),
1979
+ _UniffiConverterUInt64.lower(revision)
1980
+ ),
1981
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_void,
1982
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_void,
1983
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_void,
1984
+ # lift function
1985
+ lambda val: None,
1986
+
1987
+
1988
+ # Error FFI converter
1989
+ _UniffiConverterTypeSyncStorageError,
1990
+
1991
+ )
1992
+
1993
+
1994
+
1995
+ async def get_incoming_records(self, limit: "int") -> "typing.List[IncomingChange]":
1996
+ """
1997
+ Get incoming records that need to be processed, up to the specified limit
1998
+ """
1999
+
2000
+ _UniffiConverterUInt32.check_lower(limit)
2001
+
2002
+ return await _uniffi_rust_call_async(
2003
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_get_incoming_records(
2004
+ self._uniffi_clone_pointer(),
2005
+ _UniffiConverterUInt32.lower(limit)
2006
+ ),
2007
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_rust_buffer,
2008
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_rust_buffer,
2009
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_rust_buffer,
2010
+ # lift function
2011
+ _UniffiConverterSequenceTypeIncomingChange.lift,
2012
+
2013
+ # Error FFI converter
2014
+ _UniffiConverterTypeSyncStorageError,
2015
+
2016
+ )
2017
+
2018
+
2019
+
2020
+ async def get_latest_outgoing_change(self, ) -> "typing.Optional[OutgoingChange]":
2021
+ """
2022
+ Get the latest outgoing record if any exists
2023
+ """
2024
+
2025
+ return await _uniffi_rust_call_async(
2026
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_get_latest_outgoing_change(
2027
+ self._uniffi_clone_pointer(),
2028
+ ),
2029
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_rust_buffer,
2030
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_rust_buffer,
2031
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_rust_buffer,
2032
+ # lift function
2033
+ _UniffiConverterOptionalTypeOutgoingChange.lift,
2034
+
2035
+ # Error FFI converter
2036
+ _UniffiConverterTypeSyncStorageError,
2037
+
2038
+ )
2039
+
2040
+
2041
+
2042
+ async def update_record_from_incoming(self, record: "Record") -> None:
2043
+
2044
+ """
2045
+ Update the sync state record from an incoming record
2046
+ """
2047
+
2048
+ _UniffiConverterTypeRecord.check_lower(record)
2049
+
2050
+ return await _uniffi_rust_call_async(
2051
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_syncstorage_update_record_from_incoming(
2052
+ self._uniffi_clone_pointer(),
2053
+ _UniffiConverterTypeRecord.lower(record)
2054
+ ),
2055
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_void,
2056
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_void,
2057
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_void,
2058
+ # lift function
2059
+ lambda val: None,
2060
+
2061
+
2062
+ # Error FFI converter
2063
+ _UniffiConverterTypeSyncStorageError,
2064
+
2065
+ )
2066
+
2067
+
2068
+
2069
+
2070
+ # Put all the bits inside a class to keep the top-level namespace clean
2071
+ class _UniffiTraitImplSyncStorage:
2072
+ # For each method, generate a callback function to pass to Rust
2073
+
2074
+ @_UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD0
2075
+ def add_outgoing_change(
2076
+ uniffi_handle,
2077
+ record,
2078
+ uniffi_future_callback,
2079
+ uniffi_callback_data,
2080
+ uniffi_out_return,
2081
+ ):
2082
+ uniffi_obj = _UniffiConverterTypeSyncStorage._handle_map.get(uniffi_handle)
2083
+ def make_call():
2084
+ args = (_UniffiConverterTypeUnversionedRecordChange.lift(record), )
2085
+ method = uniffi_obj.add_outgoing_change
2086
+ return method(*args)
2087
+
2088
+
2089
+ def handle_success(return_value):
2090
+ uniffi_future_callback(
2091
+ uniffi_callback_data,
2092
+ _UniffiForeignFutureStructU64(
2093
+ _UniffiConverterUInt64.lower(return_value),
2094
+ _UniffiRustCallStatus.default()
2095
+ )
2096
+ )
2097
+
2098
+ def handle_error(status_code, rust_buffer):
2099
+ uniffi_future_callback(
2100
+ uniffi_callback_data,
2101
+ _UniffiForeignFutureStructU64(
2102
+ 0,
2103
+ _UniffiRustCallStatus(status_code, rust_buffer),
2104
+ )
2105
+ )
2106
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SyncStorageError, _UniffiConverterTypeSyncStorageError.lower)
2107
+
2108
+ @_UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD1
2109
+ def complete_outgoing_sync(
2110
+ uniffi_handle,
2111
+ record,
2112
+ uniffi_future_callback,
2113
+ uniffi_callback_data,
2114
+ uniffi_out_return,
2115
+ ):
2116
+ uniffi_obj = _UniffiConverterTypeSyncStorage._handle_map.get(uniffi_handle)
2117
+ def make_call():
2118
+ args = (_UniffiConverterTypeRecord.lift(record), )
2119
+ method = uniffi_obj.complete_outgoing_sync
2120
+ return method(*args)
2121
+
2122
+
2123
+ def handle_success(return_value):
2124
+ uniffi_future_callback(
2125
+ uniffi_callback_data,
2126
+ _UniffiForeignFutureStructVoid(
2127
+ _UniffiRustCallStatus.default()
2128
+ )
2129
+ )
2130
+
2131
+ def handle_error(status_code, rust_buffer):
2132
+ uniffi_future_callback(
2133
+ uniffi_callback_data,
2134
+ _UniffiForeignFutureStructVoid(
2135
+ _UniffiRustCallStatus(status_code, rust_buffer),
2136
+ )
2137
+ )
2138
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SyncStorageError, _UniffiConverterTypeSyncStorageError.lower)
2139
+
2140
+ @_UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD2
2141
+ def get_pending_outgoing_changes(
2142
+ uniffi_handle,
2143
+ limit,
2144
+ uniffi_future_callback,
2145
+ uniffi_callback_data,
2146
+ uniffi_out_return,
2147
+ ):
2148
+ uniffi_obj = _UniffiConverterTypeSyncStorage._handle_map.get(uniffi_handle)
2149
+ def make_call():
2150
+ args = (_UniffiConverterUInt32.lift(limit), )
2151
+ method = uniffi_obj.get_pending_outgoing_changes
2152
+ return method(*args)
2153
+
2154
+
2155
+ def handle_success(return_value):
2156
+ uniffi_future_callback(
2157
+ uniffi_callback_data,
2158
+ _UniffiForeignFutureStructRustBuffer(
2159
+ _UniffiConverterSequenceTypeOutgoingChange.lower(return_value),
2160
+ _UniffiRustCallStatus.default()
2161
+ )
2162
+ )
2163
+
2164
+ def handle_error(status_code, rust_buffer):
2165
+ uniffi_future_callback(
2166
+ uniffi_callback_data,
2167
+ _UniffiForeignFutureStructRustBuffer(
2168
+ _UniffiRustBuffer.default(),
2169
+ _UniffiRustCallStatus(status_code, rust_buffer),
2170
+ )
2171
+ )
2172
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SyncStorageError, _UniffiConverterTypeSyncStorageError.lower)
2173
+
2174
+ @_UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD3
2175
+ def get_last_revision(
2176
+ uniffi_handle,
2177
+ uniffi_future_callback,
2178
+ uniffi_callback_data,
2179
+ uniffi_out_return,
2180
+ ):
2181
+ uniffi_obj = _UniffiConverterTypeSyncStorage._handle_map.get(uniffi_handle)
2182
+ def make_call():
2183
+ args = ()
2184
+ method = uniffi_obj.get_last_revision
2185
+ return method(*args)
2186
+
2187
+
2188
+ def handle_success(return_value):
2189
+ uniffi_future_callback(
2190
+ uniffi_callback_data,
2191
+ _UniffiForeignFutureStructU64(
2192
+ _UniffiConverterUInt64.lower(return_value),
2193
+ _UniffiRustCallStatus.default()
2194
+ )
2195
+ )
2196
+
2197
+ def handle_error(status_code, rust_buffer):
2198
+ uniffi_future_callback(
2199
+ uniffi_callback_data,
2200
+ _UniffiForeignFutureStructU64(
2201
+ 0,
2202
+ _UniffiRustCallStatus(status_code, rust_buffer),
2203
+ )
2204
+ )
2205
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SyncStorageError, _UniffiConverterTypeSyncStorageError.lower)
2206
+
2207
+ @_UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD4
2208
+ def insert_incoming_records(
2209
+ uniffi_handle,
2210
+ records,
2211
+ uniffi_future_callback,
2212
+ uniffi_callback_data,
2213
+ uniffi_out_return,
2214
+ ):
2215
+ uniffi_obj = _UniffiConverterTypeSyncStorage._handle_map.get(uniffi_handle)
2216
+ def make_call():
2217
+ args = (_UniffiConverterSequenceTypeRecord.lift(records), )
2218
+ method = uniffi_obj.insert_incoming_records
2219
+ return method(*args)
2220
+
2221
+
2222
+ def handle_success(return_value):
2223
+ uniffi_future_callback(
2224
+ uniffi_callback_data,
2225
+ _UniffiForeignFutureStructVoid(
2226
+ _UniffiRustCallStatus.default()
2227
+ )
2228
+ )
2229
+
2230
+ def handle_error(status_code, rust_buffer):
2231
+ uniffi_future_callback(
2232
+ uniffi_callback_data,
2233
+ _UniffiForeignFutureStructVoid(
2234
+ _UniffiRustCallStatus(status_code, rust_buffer),
2235
+ )
2236
+ )
2237
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SyncStorageError, _UniffiConverterTypeSyncStorageError.lower)
2238
+
2239
+ @_UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD5
2240
+ def delete_incoming_record(
2241
+ uniffi_handle,
2242
+ record,
2243
+ uniffi_future_callback,
2244
+ uniffi_callback_data,
2245
+ uniffi_out_return,
2246
+ ):
2247
+ uniffi_obj = _UniffiConverterTypeSyncStorage._handle_map.get(uniffi_handle)
2248
+ def make_call():
2249
+ args = (_UniffiConverterTypeRecord.lift(record), )
2250
+ method = uniffi_obj.delete_incoming_record
2251
+ return method(*args)
2252
+
2253
+
2254
+ def handle_success(return_value):
2255
+ uniffi_future_callback(
2256
+ uniffi_callback_data,
2257
+ _UniffiForeignFutureStructVoid(
2258
+ _UniffiRustCallStatus.default()
2259
+ )
2260
+ )
2261
+
2262
+ def handle_error(status_code, rust_buffer):
2263
+ uniffi_future_callback(
2264
+ uniffi_callback_data,
2265
+ _UniffiForeignFutureStructVoid(
2266
+ _UniffiRustCallStatus(status_code, rust_buffer),
2267
+ )
2268
+ )
2269
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SyncStorageError, _UniffiConverterTypeSyncStorageError.lower)
2270
+
2271
+ @_UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD6
2272
+ def rebase_pending_outgoing_records(
2273
+ uniffi_handle,
2274
+ revision,
2275
+ uniffi_future_callback,
2276
+ uniffi_callback_data,
2277
+ uniffi_out_return,
2278
+ ):
2279
+ uniffi_obj = _UniffiConverterTypeSyncStorage._handle_map.get(uniffi_handle)
2280
+ def make_call():
2281
+ args = (_UniffiConverterUInt64.lift(revision), )
2282
+ method = uniffi_obj.rebase_pending_outgoing_records
2283
+ return method(*args)
2284
+
2285
+
2286
+ def handle_success(return_value):
2287
+ uniffi_future_callback(
2288
+ uniffi_callback_data,
2289
+ _UniffiForeignFutureStructVoid(
2290
+ _UniffiRustCallStatus.default()
2291
+ )
2292
+ )
2293
+
2294
+ def handle_error(status_code, rust_buffer):
2295
+ uniffi_future_callback(
2296
+ uniffi_callback_data,
2297
+ _UniffiForeignFutureStructVoid(
2298
+ _UniffiRustCallStatus(status_code, rust_buffer),
2299
+ )
2300
+ )
2301
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SyncStorageError, _UniffiConverterTypeSyncStorageError.lower)
2302
+
2303
+ @_UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD7
2304
+ def get_incoming_records(
2305
+ uniffi_handle,
2306
+ limit,
2307
+ uniffi_future_callback,
2308
+ uniffi_callback_data,
2309
+ uniffi_out_return,
2310
+ ):
2311
+ uniffi_obj = _UniffiConverterTypeSyncStorage._handle_map.get(uniffi_handle)
2312
+ def make_call():
2313
+ args = (_UniffiConverterUInt32.lift(limit), )
2314
+ method = uniffi_obj.get_incoming_records
2315
+ return method(*args)
2316
+
2317
+
2318
+ def handle_success(return_value):
2319
+ uniffi_future_callback(
2320
+ uniffi_callback_data,
2321
+ _UniffiForeignFutureStructRustBuffer(
2322
+ _UniffiConverterSequenceTypeIncomingChange.lower(return_value),
2323
+ _UniffiRustCallStatus.default()
2324
+ )
2325
+ )
2326
+
2327
+ def handle_error(status_code, rust_buffer):
2328
+ uniffi_future_callback(
2329
+ uniffi_callback_data,
2330
+ _UniffiForeignFutureStructRustBuffer(
2331
+ _UniffiRustBuffer.default(),
2332
+ _UniffiRustCallStatus(status_code, rust_buffer),
2333
+ )
2334
+ )
2335
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SyncStorageError, _UniffiConverterTypeSyncStorageError.lower)
2336
+
2337
+ @_UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD8
2338
+ def get_latest_outgoing_change(
2339
+ uniffi_handle,
2340
+ uniffi_future_callback,
2341
+ uniffi_callback_data,
2342
+ uniffi_out_return,
2343
+ ):
2344
+ uniffi_obj = _UniffiConverterTypeSyncStorage._handle_map.get(uniffi_handle)
2345
+ def make_call():
2346
+ args = ()
2347
+ method = uniffi_obj.get_latest_outgoing_change
2348
+ return method(*args)
2349
+
2350
+
2351
+ def handle_success(return_value):
2352
+ uniffi_future_callback(
2353
+ uniffi_callback_data,
2354
+ _UniffiForeignFutureStructRustBuffer(
2355
+ _UniffiConverterOptionalTypeOutgoingChange.lower(return_value),
2356
+ _UniffiRustCallStatus.default()
2357
+ )
2358
+ )
2359
+
2360
+ def handle_error(status_code, rust_buffer):
2361
+ uniffi_future_callback(
2362
+ uniffi_callback_data,
2363
+ _UniffiForeignFutureStructRustBuffer(
2364
+ _UniffiRustBuffer.default(),
2365
+ _UniffiRustCallStatus(status_code, rust_buffer),
2366
+ )
2367
+ )
2368
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SyncStorageError, _UniffiConverterTypeSyncStorageError.lower)
2369
+
2370
+ @_UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD9
2371
+ def update_record_from_incoming(
2372
+ uniffi_handle,
2373
+ record,
2374
+ uniffi_future_callback,
2375
+ uniffi_callback_data,
2376
+ uniffi_out_return,
2377
+ ):
2378
+ uniffi_obj = _UniffiConverterTypeSyncStorage._handle_map.get(uniffi_handle)
2379
+ def make_call():
2380
+ args = (_UniffiConverterTypeRecord.lift(record), )
2381
+ method = uniffi_obj.update_record_from_incoming
2382
+ return method(*args)
2383
+
2384
+
2385
+ def handle_success(return_value):
2386
+ uniffi_future_callback(
2387
+ uniffi_callback_data,
2388
+ _UniffiForeignFutureStructVoid(
2389
+ _UniffiRustCallStatus.default()
2390
+ )
2391
+ )
2392
+
2393
+ def handle_error(status_code, rust_buffer):
2394
+ uniffi_future_callback(
2395
+ uniffi_callback_data,
2396
+ _UniffiForeignFutureStructVoid(
2397
+ _UniffiRustCallStatus(status_code, rust_buffer),
2398
+ )
2399
+ )
2400
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SyncStorageError, _UniffiConverterTypeSyncStorageError.lower)
2401
+
2402
+ @_UNIFFI_CALLBACK_INTERFACE_FREE
2403
+ def _uniffi_free(uniffi_handle):
2404
+ _UniffiConverterTypeSyncStorage._handle_map.remove(uniffi_handle)
2405
+
2406
+ # Generate the FFI VTable. This has a field for each callback interface method.
2407
+ _uniffi_vtable = _UniffiVTableCallbackInterfaceSyncStorage(
2408
+ add_outgoing_change,
2409
+ complete_outgoing_sync,
2410
+ get_pending_outgoing_changes,
2411
+ get_last_revision,
2412
+ insert_incoming_records,
2413
+ delete_incoming_record,
2414
+ rebase_pending_outgoing_records,
2415
+ get_incoming_records,
2416
+ get_latest_outgoing_change,
2417
+ update_record_from_incoming,
2418
+ _uniffi_free
2419
+ )
2420
+ # Send Rust a pointer to the VTable. Note: this means we need to keep the struct alive forever,
2421
+ # or else bad things will happen when Rust tries to access it.
2422
+ _UniffiLib.uniffi_breez_sdk_common_fn_init_callback_vtable_syncstorage(ctypes.byref(_uniffi_vtable))
2423
+
2424
+
2425
+
2426
+ class _UniffiConverterTypeSyncStorage:
2427
+ _handle_map = _UniffiHandleMap()
2428
+
2429
+ @staticmethod
2430
+ def lift(value: int):
2431
+ return SyncStorageImpl._make_instance_(value)
2432
+
2433
+ @staticmethod
2434
+ def check_lower(value: SyncStorage):
2435
+ pass
2436
+
2437
+ @staticmethod
2438
+ def lower(value: SyncStorage):
2439
+ return _UniffiConverterTypeSyncStorage._handle_map.insert(value)
2440
+
2441
+ @classmethod
2442
+ def read(cls, buf: _UniffiRustBuffer):
2443
+ ptr = buf.read_u64()
2444
+ if ptr == 0:
2445
+ raise InternalError("Raw pointer value was null")
2446
+ return cls.lift(ptr)
2447
+
2448
+ @classmethod
2449
+ def write(cls, value: SyncStorage, buf: _UniffiRustBuffer):
2450
+ buf.write_u64(cls.lower(value))
2451
+
2452
+
2453
+ class AesSuccessActionData:
2454
+ """
2455
+ Payload of the AES success action, as received from the LNURL endpoint
2456
+
2457
+ See [`AesSuccessActionDataDecrypted`] for a similar wrapper containing the decrypted payload
2458
+ """
2459
+
2460
+ description: "str"
2461
+ """
2462
+ Contents description, up to 144 characters
2463
+ """
2464
+
2465
+ ciphertext: "str"
2466
+ """
2467
+ Base64, AES-encrypted data where encryption key is payment preimage, up to 4kb of characters
2468
+ """
2469
+
2470
+ iv: "str"
2471
+ """
2472
+ Base64, initialization vector, exactly 24 characters
2473
+ """
2474
+
2475
+ def __init__(self, *, description: "str", ciphertext: "str", iv: "str"):
2476
+ self.description = description
2477
+ self.ciphertext = ciphertext
2478
+ self.iv = iv
2479
+
2480
+ def __str__(self):
2481
+ return "AesSuccessActionData(description={}, ciphertext={}, iv={})".format(self.description, self.ciphertext, self.iv)
2482
+
2483
+ def __eq__(self, other):
2484
+ if self.description != other.description:
2485
+ return False
2486
+ if self.ciphertext != other.ciphertext:
2487
+ return False
2488
+ if self.iv != other.iv:
2489
+ return False
2490
+ return True
2491
+
2492
+ class _UniffiConverterTypeAesSuccessActionData(_UniffiConverterRustBuffer):
2493
+ @staticmethod
2494
+ def read(buf):
2495
+ return AesSuccessActionData(
2496
+ description=_UniffiConverterString.read(buf),
2497
+ ciphertext=_UniffiConverterString.read(buf),
2498
+ iv=_UniffiConverterString.read(buf),
2499
+ )
2500
+
2501
+ @staticmethod
2502
+ def check_lower(value):
2503
+ _UniffiConverterString.check_lower(value.description)
2504
+ _UniffiConverterString.check_lower(value.ciphertext)
2505
+ _UniffiConverterString.check_lower(value.iv)
2506
+
2507
+ @staticmethod
2508
+ def write(value, buf):
2509
+ _UniffiConverterString.write(value.description, buf)
2510
+ _UniffiConverterString.write(value.ciphertext, buf)
2511
+ _UniffiConverterString.write(value.iv, buf)
2512
+
2513
+
2514
+ class AesSuccessActionDataDecrypted:
2515
+ """
2516
+ Wrapper for the decrypted [`AesSuccessActionData`] payload
1324
2517
  """
1325
2518
 
1326
2519
  description: "str"
@@ -2095,6 +3288,66 @@ class _UniffiConverterTypeCurrencyInfo(_UniffiConverterRustBuffer):
2095
3288
  _UniffiConverterSequenceTypeLocaleOverrides.write(value.locale_overrides, buf)
2096
3289
 
2097
3290
 
3291
+ class ExternalInputParser:
3292
+ """
3293
+ Configuration for an external input parser
3294
+ """
3295
+
3296
+ provider_id: "str"
3297
+ """
3298
+ An arbitrary parser provider id
3299
+ """
3300
+
3301
+ input_regex: "str"
3302
+ """
3303
+ The external parser will be used when an input conforms to this regex
3304
+ """
3305
+
3306
+ parser_url: "str"
3307
+ """
3308
+ The URL of the parser containing a placeholder `<input>` that will be replaced with the
3309
+ input to be parsed. The input is sanitized using percent encoding.
3310
+ """
3311
+
3312
+ def __init__(self, *, provider_id: "str", input_regex: "str", parser_url: "str"):
3313
+ self.provider_id = provider_id
3314
+ self.input_regex = input_regex
3315
+ self.parser_url = parser_url
3316
+
3317
+ def __str__(self):
3318
+ return "ExternalInputParser(provider_id={}, input_regex={}, parser_url={})".format(self.provider_id, self.input_regex, self.parser_url)
3319
+
3320
+ def __eq__(self, other):
3321
+ if self.provider_id != other.provider_id:
3322
+ return False
3323
+ if self.input_regex != other.input_regex:
3324
+ return False
3325
+ if self.parser_url != other.parser_url:
3326
+ return False
3327
+ return True
3328
+
3329
+ class _UniffiConverterTypeExternalInputParser(_UniffiConverterRustBuffer):
3330
+ @staticmethod
3331
+ def read(buf):
3332
+ return ExternalInputParser(
3333
+ provider_id=_UniffiConverterString.read(buf),
3334
+ input_regex=_UniffiConverterString.read(buf),
3335
+ parser_url=_UniffiConverterString.read(buf),
3336
+ )
3337
+
3338
+ @staticmethod
3339
+ def check_lower(value):
3340
+ _UniffiConverterString.check_lower(value.provider_id)
3341
+ _UniffiConverterString.check_lower(value.input_regex)
3342
+ _UniffiConverterString.check_lower(value.parser_url)
3343
+
3344
+ @staticmethod
3345
+ def write(value, buf):
3346
+ _UniffiConverterString.write(value.provider_id, buf)
3347
+ _UniffiConverterString.write(value.input_regex, buf)
3348
+ _UniffiConverterString.write(value.parser_url, buf)
3349
+
3350
+
2098
3351
  class FiatCurrency:
2099
3352
  """
2100
3353
  Wrapper around the [`CurrencyInfo`] of a fiat currency
@@ -2135,6 +3388,42 @@ class _UniffiConverterTypeFiatCurrency(_UniffiConverterRustBuffer):
2135
3388
  _UniffiConverterTypeCurrencyInfo.write(value.info, buf)
2136
3389
 
2137
3390
 
3391
+ class IncomingChange:
3392
+ new_state: "Record"
3393
+ old_state: "typing.Optional[Record]"
3394
+ def __init__(self, *, new_state: "Record", old_state: "typing.Optional[Record]"):
3395
+ self.new_state = new_state
3396
+ self.old_state = old_state
3397
+
3398
+ def __str__(self):
3399
+ return "IncomingChange(new_state={}, old_state={})".format(self.new_state, self.old_state)
3400
+
3401
+ def __eq__(self, other):
3402
+ if self.new_state != other.new_state:
3403
+ return False
3404
+ if self.old_state != other.old_state:
3405
+ return False
3406
+ return True
3407
+
3408
+ class _UniffiConverterTypeIncomingChange(_UniffiConverterRustBuffer):
3409
+ @staticmethod
3410
+ def read(buf):
3411
+ return IncomingChange(
3412
+ new_state=_UniffiConverterTypeRecord.read(buf),
3413
+ old_state=_UniffiConverterOptionalTypeRecord.read(buf),
3414
+ )
3415
+
3416
+ @staticmethod
3417
+ def check_lower(value):
3418
+ _UniffiConverterTypeRecord.check_lower(value.new_state)
3419
+ _UniffiConverterOptionalTypeRecord.check_lower(value.old_state)
3420
+
3421
+ @staticmethod
3422
+ def write(value, buf):
3423
+ _UniffiConverterTypeRecord.write(value.new_state, buf)
3424
+ _UniffiConverterOptionalTypeRecord.write(value.old_state, buf)
3425
+
3426
+
2138
3427
  class LightningAddressDetails:
2139
3428
  address: "str"
2140
3429
  pay_request: "LnurlPayRequestDetails"
@@ -2319,7 +3608,7 @@ class LnurlPayRequestDetails:
2319
3608
  Optional lightning address if that was used to resolve the lnurl.
2320
3609
  """
2321
3610
 
2322
- allows_nostr: "bool"
3611
+ allows_nostr: "typing.Optional[bool]"
2323
3612
  """
2324
3613
  Value indicating whether the recipient supports Nostr Zaps through NIP-57.
2325
3614
 
@@ -2335,7 +3624,7 @@ class LnurlPayRequestDetails:
2335
3624
  See <https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki>
2336
3625
  """
2337
3626
 
2338
- def __init__(self, *, callback: "str", min_sendable: "int", max_sendable: "int", metadata_str: "str", comment_allowed: "int", domain: "str", url: "str", address: "typing.Optional[str]", allows_nostr: "bool", nostr_pubkey: "typing.Optional[str]"):
3627
+ def __init__(self, *, callback: "str", min_sendable: "int", max_sendable: "int", metadata_str: "str", comment_allowed: "int", domain: "str", url: "str", address: "typing.Optional[str]", allows_nostr: "typing.Optional[bool]", nostr_pubkey: "typing.Optional[str]"):
2339
3628
  self.callback = callback
2340
3629
  self.min_sendable = min_sendable
2341
3630
  self.max_sendable = max_sendable
@@ -2385,7 +3674,7 @@ class _UniffiConverterTypeLnurlPayRequestDetails(_UniffiConverterRustBuffer):
2385
3674
  domain=_UniffiConverterString.read(buf),
2386
3675
  url=_UniffiConverterString.read(buf),
2387
3676
  address=_UniffiConverterOptionalString.read(buf),
2388
- allows_nostr=_UniffiConverterBool.read(buf),
3677
+ allows_nostr=_UniffiConverterOptionalBool.read(buf),
2389
3678
  nostr_pubkey=_UniffiConverterOptionalString.read(buf),
2390
3679
  )
2391
3680
 
@@ -2399,7 +3688,7 @@ class _UniffiConverterTypeLnurlPayRequestDetails(_UniffiConverterRustBuffer):
2399
3688
  _UniffiConverterString.check_lower(value.domain)
2400
3689
  _UniffiConverterString.check_lower(value.url)
2401
3690
  _UniffiConverterOptionalString.check_lower(value.address)
2402
- _UniffiConverterBool.check_lower(value.allows_nostr)
3691
+ _UniffiConverterOptionalBool.check_lower(value.allows_nostr)
2403
3692
  _UniffiConverterOptionalString.check_lower(value.nostr_pubkey)
2404
3693
 
2405
3694
  @staticmethod
@@ -2412,7 +3701,7 @@ class _UniffiConverterTypeLnurlPayRequestDetails(_UniffiConverterRustBuffer):
2412
3701
  _UniffiConverterString.write(value.domain, buf)
2413
3702
  _UniffiConverterString.write(value.url, buf)
2414
3703
  _UniffiConverterOptionalString.write(value.address, buf)
2415
- _UniffiConverterBool.write(value.allows_nostr, buf)
3704
+ _UniffiConverterOptionalBool.write(value.allows_nostr, buf)
2416
3705
  _UniffiConverterOptionalString.write(value.nostr_pubkey, buf)
2417
3706
 
2418
3707
 
@@ -2597,6 +3886,42 @@ class _UniffiConverterTypeMessageSuccessActionData(_UniffiConverterRustBuffer):
2597
3886
  _UniffiConverterString.write(value.message, buf)
2598
3887
 
2599
3888
 
3889
+ class OutgoingChange:
3890
+ change: "RecordChange"
3891
+ parent: "typing.Optional[Record]"
3892
+ def __init__(self, *, change: "RecordChange", parent: "typing.Optional[Record]"):
3893
+ self.change = change
3894
+ self.parent = parent
3895
+
3896
+ def __str__(self):
3897
+ return "OutgoingChange(change={}, parent={})".format(self.change, self.parent)
3898
+
3899
+ def __eq__(self, other):
3900
+ if self.change != other.change:
3901
+ return False
3902
+ if self.parent != other.parent:
3903
+ return False
3904
+ return True
3905
+
3906
+ class _UniffiConverterTypeOutgoingChange(_UniffiConverterRustBuffer):
3907
+ @staticmethod
3908
+ def read(buf):
3909
+ return OutgoingChange(
3910
+ change=_UniffiConverterTypeRecordChange.read(buf),
3911
+ parent=_UniffiConverterOptionalTypeRecord.read(buf),
3912
+ )
3913
+
3914
+ @staticmethod
3915
+ def check_lower(value):
3916
+ _UniffiConverterTypeRecordChange.check_lower(value.change)
3917
+ _UniffiConverterOptionalTypeRecord.check_lower(value.parent)
3918
+
3919
+ @staticmethod
3920
+ def write(value, buf):
3921
+ _UniffiConverterTypeRecordChange.write(value.change, buf)
3922
+ _UniffiConverterOptionalTypeRecord.write(value.parent, buf)
3923
+
3924
+
2600
3925
  class PaymentRequestSource:
2601
3926
  bip_21_uri: "typing.Optional[str]"
2602
3927
  bip_353_address: "typing.Optional[str]"
@@ -2673,6 +3998,142 @@ class _UniffiConverterTypeRate(_UniffiConverterRustBuffer):
2673
3998
  _UniffiConverterDouble.write(value.value, buf)
2674
3999
 
2675
4000
 
4001
+ class Record:
4002
+ id: "RecordId"
4003
+ revision: "int"
4004
+ schema_version: "str"
4005
+ data: "dict[str, str]"
4006
+ def __init__(self, *, id: "RecordId", revision: "int", schema_version: "str", data: "dict[str, str]"):
4007
+ self.id = id
4008
+ self.revision = revision
4009
+ self.schema_version = schema_version
4010
+ self.data = data
4011
+
4012
+ def __str__(self):
4013
+ return "Record(id={}, revision={}, schema_version={}, data={})".format(self.id, self.revision, self.schema_version, self.data)
4014
+
4015
+ def __eq__(self, other):
4016
+ if self.id != other.id:
4017
+ return False
4018
+ if self.revision != other.revision:
4019
+ return False
4020
+ if self.schema_version != other.schema_version:
4021
+ return False
4022
+ if self.data != other.data:
4023
+ return False
4024
+ return True
4025
+
4026
+ class _UniffiConverterTypeRecord(_UniffiConverterRustBuffer):
4027
+ @staticmethod
4028
+ def read(buf):
4029
+ return Record(
4030
+ id=_UniffiConverterTypeRecordId.read(buf),
4031
+ revision=_UniffiConverterUInt64.read(buf),
4032
+ schema_version=_UniffiConverterString.read(buf),
4033
+ data=_UniffiConverterMapStringString.read(buf),
4034
+ )
4035
+
4036
+ @staticmethod
4037
+ def check_lower(value):
4038
+ _UniffiConverterTypeRecordId.check_lower(value.id)
4039
+ _UniffiConverterUInt64.check_lower(value.revision)
4040
+ _UniffiConverterString.check_lower(value.schema_version)
4041
+ _UniffiConverterMapStringString.check_lower(value.data)
4042
+
4043
+ @staticmethod
4044
+ def write(value, buf):
4045
+ _UniffiConverterTypeRecordId.write(value.id, buf)
4046
+ _UniffiConverterUInt64.write(value.revision, buf)
4047
+ _UniffiConverterString.write(value.schema_version, buf)
4048
+ _UniffiConverterMapStringString.write(value.data, buf)
4049
+
4050
+
4051
+ class RecordChange:
4052
+ id: "RecordId"
4053
+ schema_version: "str"
4054
+ updated_fields: "dict[str, str]"
4055
+ revision: "int"
4056
+ def __init__(self, *, id: "RecordId", schema_version: "str", updated_fields: "dict[str, str]", revision: "int"):
4057
+ self.id = id
4058
+ self.schema_version = schema_version
4059
+ self.updated_fields = updated_fields
4060
+ self.revision = revision
4061
+
4062
+ def __str__(self):
4063
+ return "RecordChange(id={}, schema_version={}, updated_fields={}, revision={})".format(self.id, self.schema_version, self.updated_fields, self.revision)
4064
+
4065
+ def __eq__(self, other):
4066
+ if self.id != other.id:
4067
+ return False
4068
+ if self.schema_version != other.schema_version:
4069
+ return False
4070
+ if self.updated_fields != other.updated_fields:
4071
+ return False
4072
+ if self.revision != other.revision:
4073
+ return False
4074
+ return True
4075
+
4076
+ class _UniffiConverterTypeRecordChange(_UniffiConverterRustBuffer):
4077
+ @staticmethod
4078
+ def read(buf):
4079
+ return RecordChange(
4080
+ id=_UniffiConverterTypeRecordId.read(buf),
4081
+ schema_version=_UniffiConverterString.read(buf),
4082
+ updated_fields=_UniffiConverterMapStringString.read(buf),
4083
+ revision=_UniffiConverterUInt64.read(buf),
4084
+ )
4085
+
4086
+ @staticmethod
4087
+ def check_lower(value):
4088
+ _UniffiConverterTypeRecordId.check_lower(value.id)
4089
+ _UniffiConverterString.check_lower(value.schema_version)
4090
+ _UniffiConverterMapStringString.check_lower(value.updated_fields)
4091
+ _UniffiConverterUInt64.check_lower(value.revision)
4092
+
4093
+ @staticmethod
4094
+ def write(value, buf):
4095
+ _UniffiConverterTypeRecordId.write(value.id, buf)
4096
+ _UniffiConverterString.write(value.schema_version, buf)
4097
+ _UniffiConverterMapStringString.write(value.updated_fields, buf)
4098
+ _UniffiConverterUInt64.write(value.revision, buf)
4099
+
4100
+
4101
+ class RecordId:
4102
+ type: "str"
4103
+ data_id: "str"
4104
+ def __init__(self, *, type: "str", data_id: "str"):
4105
+ self.type = type
4106
+ self.data_id = data_id
4107
+
4108
+ def __str__(self):
4109
+ return "RecordId(type={}, data_id={})".format(self.type, self.data_id)
4110
+
4111
+ def __eq__(self, other):
4112
+ if self.type != other.type:
4113
+ return False
4114
+ if self.data_id != other.data_id:
4115
+ return False
4116
+ return True
4117
+
4118
+ class _UniffiConverterTypeRecordId(_UniffiConverterRustBuffer):
4119
+ @staticmethod
4120
+ def read(buf):
4121
+ return RecordId(
4122
+ type=_UniffiConverterString.read(buf),
4123
+ data_id=_UniffiConverterString.read(buf),
4124
+ )
4125
+
4126
+ @staticmethod
4127
+ def check_lower(value):
4128
+ _UniffiConverterString.check_lower(value.type)
4129
+ _UniffiConverterString.check_lower(value.data_id)
4130
+
4131
+ @staticmethod
4132
+ def write(value, buf):
4133
+ _UniffiConverterString.write(value.type, buf)
4134
+ _UniffiConverterString.write(value.data_id, buf)
4135
+
4136
+
2676
4137
  class RestResponse:
2677
4138
  status: "int"
2678
4139
  body: "str"
@@ -2681,60 +4142,116 @@ class RestResponse:
2681
4142
  self.body = body
2682
4143
 
2683
4144
  def __str__(self):
2684
- return "RestResponse(status={}, body={})".format(self.status, self.body)
4145
+ return "RestResponse(status={}, body={})".format(self.status, self.body)
4146
+
4147
+ def __eq__(self, other):
4148
+ if self.status != other.status:
4149
+ return False
4150
+ if self.body != other.body:
4151
+ return False
4152
+ return True
4153
+
4154
+ class _UniffiConverterTypeRestResponse(_UniffiConverterRustBuffer):
4155
+ @staticmethod
4156
+ def read(buf):
4157
+ return RestResponse(
4158
+ status=_UniffiConverterUInt16.read(buf),
4159
+ body=_UniffiConverterString.read(buf),
4160
+ )
4161
+
4162
+ @staticmethod
4163
+ def check_lower(value):
4164
+ _UniffiConverterUInt16.check_lower(value.status)
4165
+ _UniffiConverterString.check_lower(value.body)
4166
+
4167
+ @staticmethod
4168
+ def write(value, buf):
4169
+ _UniffiConverterUInt16.write(value.status, buf)
4170
+ _UniffiConverterString.write(value.body, buf)
4171
+
4172
+
4173
+ class SilentPaymentAddressDetails:
4174
+ address: "str"
4175
+ network: "BitcoinNetwork"
4176
+ source: "PaymentRequestSource"
4177
+ def __init__(self, *, address: "str", network: "BitcoinNetwork", source: "PaymentRequestSource"):
4178
+ self.address = address
4179
+ self.network = network
4180
+ self.source = source
4181
+
4182
+ def __str__(self):
4183
+ return "SilentPaymentAddressDetails(address={}, network={}, source={})".format(self.address, self.network, self.source)
2685
4184
 
2686
4185
  def __eq__(self, other):
2687
- if self.status != other.status:
4186
+ if self.address != other.address:
2688
4187
  return False
2689
- if self.body != other.body:
4188
+ if self.network != other.network:
4189
+ return False
4190
+ if self.source != other.source:
2690
4191
  return False
2691
4192
  return True
2692
4193
 
2693
- class _UniffiConverterTypeRestResponse(_UniffiConverterRustBuffer):
4194
+ class _UniffiConverterTypeSilentPaymentAddressDetails(_UniffiConverterRustBuffer):
2694
4195
  @staticmethod
2695
4196
  def read(buf):
2696
- return RestResponse(
2697
- status=_UniffiConverterUInt16.read(buf),
2698
- body=_UniffiConverterString.read(buf),
4197
+ return SilentPaymentAddressDetails(
4198
+ address=_UniffiConverterString.read(buf),
4199
+ network=_UniffiConverterTypeBitcoinNetwork.read(buf),
4200
+ source=_UniffiConverterTypePaymentRequestSource.read(buf),
2699
4201
  )
2700
4202
 
2701
4203
  @staticmethod
2702
4204
  def check_lower(value):
2703
- _UniffiConverterUInt16.check_lower(value.status)
2704
- _UniffiConverterString.check_lower(value.body)
4205
+ _UniffiConverterString.check_lower(value.address)
4206
+ _UniffiConverterTypeBitcoinNetwork.check_lower(value.network)
4207
+ _UniffiConverterTypePaymentRequestSource.check_lower(value.source)
2705
4208
 
2706
4209
  @staticmethod
2707
4210
  def write(value, buf):
2708
- _UniffiConverterUInt16.write(value.status, buf)
2709
- _UniffiConverterString.write(value.body, buf)
4211
+ _UniffiConverterString.write(value.address, buf)
4212
+ _UniffiConverterTypeBitcoinNetwork.write(value.network, buf)
4213
+ _UniffiConverterTypePaymentRequestSource.write(value.source, buf)
2710
4214
 
2711
4215
 
2712
- class SilentPaymentAddressDetails:
4216
+ class SparkAddressDetails:
2713
4217
  address: "str"
4218
+ """
4219
+ The raw address string
4220
+ """
4221
+
4222
+ identity_public_key: "str"
4223
+ """
4224
+ The identity public key of the address owner
4225
+ """
4226
+
2714
4227
  network: "BitcoinNetwork"
2715
4228
  source: "PaymentRequestSource"
2716
- def __init__(self, *, address: "str", network: "BitcoinNetwork", source: "PaymentRequestSource"):
4229
+ def __init__(self, *, address: "str", identity_public_key: "str", network: "BitcoinNetwork", source: "PaymentRequestSource"):
2717
4230
  self.address = address
4231
+ self.identity_public_key = identity_public_key
2718
4232
  self.network = network
2719
4233
  self.source = source
2720
4234
 
2721
4235
  def __str__(self):
2722
- return "SilentPaymentAddressDetails(address={}, network={}, source={})".format(self.address, self.network, self.source)
4236
+ return "SparkAddressDetails(address={}, identity_public_key={}, network={}, source={})".format(self.address, self.identity_public_key, self.network, self.source)
2723
4237
 
2724
4238
  def __eq__(self, other):
2725
4239
  if self.address != other.address:
2726
4240
  return False
4241
+ if self.identity_public_key != other.identity_public_key:
4242
+ return False
2727
4243
  if self.network != other.network:
2728
4244
  return False
2729
4245
  if self.source != other.source:
2730
4246
  return False
2731
4247
  return True
2732
4248
 
2733
- class _UniffiConverterTypeSilentPaymentAddressDetails(_UniffiConverterRustBuffer):
4249
+ class _UniffiConverterTypeSparkAddressDetails(_UniffiConverterRustBuffer):
2734
4250
  @staticmethod
2735
4251
  def read(buf):
2736
- return SilentPaymentAddressDetails(
4252
+ return SparkAddressDetails(
2737
4253
  address=_UniffiConverterString.read(buf),
4254
+ identity_public_key=_UniffiConverterString.read(buf),
2738
4255
  network=_UniffiConverterTypeBitcoinNetwork.read(buf),
2739
4256
  source=_UniffiConverterTypePaymentRequestSource.read(buf),
2740
4257
  )
@@ -2742,16 +4259,124 @@ class _UniffiConverterTypeSilentPaymentAddressDetails(_UniffiConverterRustBuffer
2742
4259
  @staticmethod
2743
4260
  def check_lower(value):
2744
4261
  _UniffiConverterString.check_lower(value.address)
4262
+ _UniffiConverterString.check_lower(value.identity_public_key)
2745
4263
  _UniffiConverterTypeBitcoinNetwork.check_lower(value.network)
2746
4264
  _UniffiConverterTypePaymentRequestSource.check_lower(value.source)
2747
4265
 
2748
4266
  @staticmethod
2749
4267
  def write(value, buf):
2750
4268
  _UniffiConverterString.write(value.address, buf)
4269
+ _UniffiConverterString.write(value.identity_public_key, buf)
2751
4270
  _UniffiConverterTypeBitcoinNetwork.write(value.network, buf)
2752
4271
  _UniffiConverterTypePaymentRequestSource.write(value.source, buf)
2753
4272
 
2754
4273
 
4274
+ class SparkInvoiceDetails:
4275
+ invoice: "str"
4276
+ """
4277
+ The raw invoice string
4278
+ """
4279
+
4280
+ identity_public_key: "str"
4281
+ """
4282
+ The identity public key of the invoice issuer
4283
+ """
4284
+
4285
+ network: "BitcoinNetwork"
4286
+ amount: "typing.Optional[CommonU128]"
4287
+ """
4288
+ Optional amount denominated in sats if `token_identifier` is absent, otherwise in the token base units
4289
+ """
4290
+
4291
+ token_identifier: "typing.Optional[str]"
4292
+ """
4293
+ The token identifier of the token payment. Absence indicates a Bitcoin payment.
4294
+ """
4295
+
4296
+ expiry_time: "typing.Optional[int]"
4297
+ """
4298
+ Optional expiry time. If not provided, the invoice will never expire.
4299
+ """
4300
+
4301
+ description: "typing.Optional[str]"
4302
+ """
4303
+ Optional description.
4304
+ """
4305
+
4306
+ sender_public_key: "typing.Optional[str]"
4307
+ """
4308
+ If set, the invoice may only be fulfilled by a payer with this public key.
4309
+ """
4310
+
4311
+ def __init__(self, *, invoice: "str", identity_public_key: "str", network: "BitcoinNetwork", amount: "typing.Optional[CommonU128]", token_identifier: "typing.Optional[str]", expiry_time: "typing.Optional[int]", description: "typing.Optional[str]", sender_public_key: "typing.Optional[str]"):
4312
+ self.invoice = invoice
4313
+ self.identity_public_key = identity_public_key
4314
+ self.network = network
4315
+ self.amount = amount
4316
+ self.token_identifier = token_identifier
4317
+ self.expiry_time = expiry_time
4318
+ self.description = description
4319
+ self.sender_public_key = sender_public_key
4320
+
4321
+ def __str__(self):
4322
+ return "SparkInvoiceDetails(invoice={}, identity_public_key={}, network={}, amount={}, token_identifier={}, expiry_time={}, description={}, sender_public_key={})".format(self.invoice, self.identity_public_key, self.network, self.amount, self.token_identifier, self.expiry_time, self.description, self.sender_public_key)
4323
+
4324
+ def __eq__(self, other):
4325
+ if self.invoice != other.invoice:
4326
+ return False
4327
+ if self.identity_public_key != other.identity_public_key:
4328
+ return False
4329
+ if self.network != other.network:
4330
+ return False
4331
+ if self.amount != other.amount:
4332
+ return False
4333
+ if self.token_identifier != other.token_identifier:
4334
+ return False
4335
+ if self.expiry_time != other.expiry_time:
4336
+ return False
4337
+ if self.description != other.description:
4338
+ return False
4339
+ if self.sender_public_key != other.sender_public_key:
4340
+ return False
4341
+ return True
4342
+
4343
+ class _UniffiConverterTypeSparkInvoiceDetails(_UniffiConverterRustBuffer):
4344
+ @staticmethod
4345
+ def read(buf):
4346
+ return SparkInvoiceDetails(
4347
+ invoice=_UniffiConverterString.read(buf),
4348
+ identity_public_key=_UniffiConverterString.read(buf),
4349
+ network=_UniffiConverterTypeBitcoinNetwork.read(buf),
4350
+ amount=_UniffiConverterOptionalTypeCommonU128.read(buf),
4351
+ token_identifier=_UniffiConverterOptionalString.read(buf),
4352
+ expiry_time=_UniffiConverterOptionalUInt64.read(buf),
4353
+ description=_UniffiConverterOptionalString.read(buf),
4354
+ sender_public_key=_UniffiConverterOptionalString.read(buf),
4355
+ )
4356
+
4357
+ @staticmethod
4358
+ def check_lower(value):
4359
+ _UniffiConverterString.check_lower(value.invoice)
4360
+ _UniffiConverterString.check_lower(value.identity_public_key)
4361
+ _UniffiConverterTypeBitcoinNetwork.check_lower(value.network)
4362
+ _UniffiConverterOptionalTypeCommonU128.check_lower(value.amount)
4363
+ _UniffiConverterOptionalString.check_lower(value.token_identifier)
4364
+ _UniffiConverterOptionalUInt64.check_lower(value.expiry_time)
4365
+ _UniffiConverterOptionalString.check_lower(value.description)
4366
+ _UniffiConverterOptionalString.check_lower(value.sender_public_key)
4367
+
4368
+ @staticmethod
4369
+ def write(value, buf):
4370
+ _UniffiConverterString.write(value.invoice, buf)
4371
+ _UniffiConverterString.write(value.identity_public_key, buf)
4372
+ _UniffiConverterTypeBitcoinNetwork.write(value.network, buf)
4373
+ _UniffiConverterOptionalTypeCommonU128.write(value.amount, buf)
4374
+ _UniffiConverterOptionalString.write(value.token_identifier, buf)
4375
+ _UniffiConverterOptionalUInt64.write(value.expiry_time, buf)
4376
+ _UniffiConverterOptionalString.write(value.description, buf)
4377
+ _UniffiConverterOptionalString.write(value.sender_public_key, buf)
4378
+
4379
+
2755
4380
  class Symbol:
2756
4381
  """
2757
4382
  Settings for the symbol representation of a currency
@@ -2806,6 +4431,49 @@ class _UniffiConverterTypeSymbol(_UniffiConverterRustBuffer):
2806
4431
  _UniffiConverterOptionalUInt32.write(value.position, buf)
2807
4432
 
2808
4433
 
4434
+ class UnversionedRecordChange:
4435
+ id: "RecordId"
4436
+ schema_version: "str"
4437
+ updated_fields: "dict[str, str]"
4438
+ def __init__(self, *, id: "RecordId", schema_version: "str", updated_fields: "dict[str, str]"):
4439
+ self.id = id
4440
+ self.schema_version = schema_version
4441
+ self.updated_fields = updated_fields
4442
+
4443
+ def __str__(self):
4444
+ return "UnversionedRecordChange(id={}, schema_version={}, updated_fields={})".format(self.id, self.schema_version, self.updated_fields)
4445
+
4446
+ def __eq__(self, other):
4447
+ if self.id != other.id:
4448
+ return False
4449
+ if self.schema_version != other.schema_version:
4450
+ return False
4451
+ if self.updated_fields != other.updated_fields:
4452
+ return False
4453
+ return True
4454
+
4455
+ class _UniffiConverterTypeUnversionedRecordChange(_UniffiConverterRustBuffer):
4456
+ @staticmethod
4457
+ def read(buf):
4458
+ return UnversionedRecordChange(
4459
+ id=_UniffiConverterTypeRecordId.read(buf),
4460
+ schema_version=_UniffiConverterString.read(buf),
4461
+ updated_fields=_UniffiConverterMapStringString.read(buf),
4462
+ )
4463
+
4464
+ @staticmethod
4465
+ def check_lower(value):
4466
+ _UniffiConverterTypeRecordId.check_lower(value.id)
4467
+ _UniffiConverterString.check_lower(value.schema_version)
4468
+ _UniffiConverterMapStringString.check_lower(value.updated_fields)
4469
+
4470
+ @staticmethod
4471
+ def write(value, buf):
4472
+ _UniffiConverterTypeRecordId.write(value.id, buf)
4473
+ _UniffiConverterString.write(value.schema_version, buf)
4474
+ _UniffiConverterMapStringString.write(value.updated_fields, buf)
4475
+
4476
+
2809
4477
  class UrlSuccessActionData:
2810
4478
  description: "str"
2811
4479
  """
@@ -3366,6 +5034,42 @@ class InputType:
3366
5034
  if not other.is_lnurl_withdraw():
3367
5035
  return False
3368
5036
  return self._values == other._values
5037
+ class SPARK_ADDRESS:
5038
+ def __init__(self, *values):
5039
+ if len(values) != 1:
5040
+ raise TypeError(f"Expected 1 arguments, found {len(values)}")
5041
+ if not isinstance(values[0], SparkAddressDetails):
5042
+ raise TypeError(f"unexpected type for tuple element 0 - expected 'SparkAddressDetails', got '{type(values[0])}'")
5043
+ self._values = values
5044
+
5045
+ def __getitem__(self, index):
5046
+ return self._values[index]
5047
+
5048
+ def __str__(self):
5049
+ return f"InputType.SPARK_ADDRESS{self._values!r}"
5050
+
5051
+ def __eq__(self, other):
5052
+ if not other.is_spark_address():
5053
+ return False
5054
+ return self._values == other._values
5055
+ class SPARK_INVOICE:
5056
+ def __init__(self, *values):
5057
+ if len(values) != 1:
5058
+ raise TypeError(f"Expected 1 arguments, found {len(values)}")
5059
+ if not isinstance(values[0], SparkInvoiceDetails):
5060
+ raise TypeError(f"unexpected type for tuple element 0 - expected 'SparkInvoiceDetails', got '{type(values[0])}'")
5061
+ self._values = values
5062
+
5063
+ def __getitem__(self, index):
5064
+ return self._values[index]
5065
+
5066
+ def __str__(self):
5067
+ return f"InputType.SPARK_INVOICE{self._values!r}"
5068
+
5069
+ def __eq__(self, other):
5070
+ if not other.is_spark_invoice():
5071
+ return False
5072
+ return self._values == other._values
3369
5073
 
3370
5074
 
3371
5075
  # For each variant, we have an `is_NAME` method for easily checking
@@ -3394,6 +5098,10 @@ class InputType:
3394
5098
  return isinstance(self, InputType.BOLT12_INVOICE_REQUEST)
3395
5099
  def is_lnurl_withdraw(self) -> bool:
3396
5100
  return isinstance(self, InputType.LNURL_WITHDRAW)
5101
+ def is_spark_address(self) -> bool:
5102
+ return isinstance(self, InputType.SPARK_ADDRESS)
5103
+ def is_spark_invoice(self) -> bool:
5104
+ return isinstance(self, InputType.SPARK_INVOICE)
3397
5105
 
3398
5106
 
3399
5107
  # Now, a little trick - we make each nested variant class be a subclass of the main
@@ -3411,6 +5119,8 @@ InputType.URL = type("InputType.URL", (InputType.URL, InputType,), {}) # type:
3411
5119
  InputType.BIP21 = type("InputType.BIP21", (InputType.BIP21, InputType,), {}) # type: ignore
3412
5120
  InputType.BOLT12_INVOICE_REQUEST = type("InputType.BOLT12_INVOICE_REQUEST", (InputType.BOLT12_INVOICE_REQUEST, InputType,), {}) # type: ignore
3413
5121
  InputType.LNURL_WITHDRAW = type("InputType.LNURL_WITHDRAW", (InputType.LNURL_WITHDRAW, InputType,), {}) # type: ignore
5122
+ InputType.SPARK_ADDRESS = type("InputType.SPARK_ADDRESS", (InputType.SPARK_ADDRESS, InputType,), {}) # type: ignore
5123
+ InputType.SPARK_INVOICE = type("InputType.SPARK_INVOICE", (InputType.SPARK_INVOICE, InputType,), {}) # type: ignore
3414
5124
 
3415
5125
 
3416
5126
 
@@ -3467,6 +5177,14 @@ class _UniffiConverterTypeInputType(_UniffiConverterRustBuffer):
3467
5177
  return InputType.LNURL_WITHDRAW(
3468
5178
  _UniffiConverterTypeLnurlWithdrawRequestDetails.read(buf),
3469
5179
  )
5180
+ if variant == 13:
5181
+ return InputType.SPARK_ADDRESS(
5182
+ _UniffiConverterTypeSparkAddressDetails.read(buf),
5183
+ )
5184
+ if variant == 14:
5185
+ return InputType.SPARK_INVOICE(
5186
+ _UniffiConverterTypeSparkInvoiceDetails.read(buf),
5187
+ )
3470
5188
  raise InternalError("Raw enum value doesn't match any cases")
3471
5189
 
3472
5190
  @staticmethod
@@ -3507,6 +5225,12 @@ class _UniffiConverterTypeInputType(_UniffiConverterRustBuffer):
3507
5225
  if value.is_lnurl_withdraw():
3508
5226
  _UniffiConverterTypeLnurlWithdrawRequestDetails.check_lower(value._values[0])
3509
5227
  return
5228
+ if value.is_spark_address():
5229
+ _UniffiConverterTypeSparkAddressDetails.check_lower(value._values[0])
5230
+ return
5231
+ if value.is_spark_invoice():
5232
+ _UniffiConverterTypeSparkInvoiceDetails.check_lower(value._values[0])
5233
+ return
3510
5234
  raise ValueError(value)
3511
5235
 
3512
5236
  @staticmethod
@@ -3547,6 +5271,12 @@ class _UniffiConverterTypeInputType(_UniffiConverterRustBuffer):
3547
5271
  if value.is_lnurl_withdraw():
3548
5272
  buf.write_i32(12)
3549
5273
  _UniffiConverterTypeLnurlWithdrawRequestDetails.write(value._values[0], buf)
5274
+ if value.is_spark_address():
5275
+ buf.write_i32(13)
5276
+ _UniffiConverterTypeSparkAddressDetails.write(value._values[0], buf)
5277
+ if value.is_spark_invoice():
5278
+ buf.write_i32(14)
5279
+ _UniffiConverterTypeSparkInvoiceDetails.write(value._values[0], buf)
3550
5280
 
3551
5281
 
3552
5282
 
@@ -4161,70 +5891,187 @@ class SuccessActionProcessed:
4161
5891
 
4162
5892
 
4163
5893
 
4164
- # For each variant, we have an `is_NAME` method for easily checking
4165
- # whether an instance is that variant.
4166
- def is_aes(self) -> bool:
4167
- return isinstance(self, SuccessActionProcessed.AES)
4168
- def is_message(self) -> bool:
4169
- return isinstance(self, SuccessActionProcessed.MESSAGE)
4170
- def is_url(self) -> bool:
4171
- return isinstance(self, SuccessActionProcessed.URL)
4172
-
5894
+ # For each variant, we have an `is_NAME` method for easily checking
5895
+ # whether an instance is that variant.
5896
+ def is_aes(self) -> bool:
5897
+ return isinstance(self, SuccessActionProcessed.AES)
5898
+ def is_message(self) -> bool:
5899
+ return isinstance(self, SuccessActionProcessed.MESSAGE)
5900
+ def is_url(self) -> bool:
5901
+ return isinstance(self, SuccessActionProcessed.URL)
5902
+
5903
+
5904
+ # Now, a little trick - we make each nested variant class be a subclass of the main
5905
+ # enum class, so that method calls and instance checks etc will work intuitively.
5906
+ # We might be able to do this a little more neatly with a metaclass, but this'll do.
5907
+ SuccessActionProcessed.AES = type("SuccessActionProcessed.AES", (SuccessActionProcessed.AES, SuccessActionProcessed,), {}) # type: ignore
5908
+ SuccessActionProcessed.MESSAGE = type("SuccessActionProcessed.MESSAGE", (SuccessActionProcessed.MESSAGE, SuccessActionProcessed,), {}) # type: ignore
5909
+ SuccessActionProcessed.URL = type("SuccessActionProcessed.URL", (SuccessActionProcessed.URL, SuccessActionProcessed,), {}) # type: ignore
5910
+
5911
+
5912
+
5913
+
5914
+ class _UniffiConverterTypeSuccessActionProcessed(_UniffiConverterRustBuffer):
5915
+ @staticmethod
5916
+ def read(buf):
5917
+ variant = buf.read_i32()
5918
+ if variant == 1:
5919
+ return SuccessActionProcessed.AES(
5920
+ _UniffiConverterTypeAesSuccessActionDataResult.read(buf),
5921
+ )
5922
+ if variant == 2:
5923
+ return SuccessActionProcessed.MESSAGE(
5924
+ _UniffiConverterTypeMessageSuccessActionData.read(buf),
5925
+ )
5926
+ if variant == 3:
5927
+ return SuccessActionProcessed.URL(
5928
+ _UniffiConverterTypeUrlSuccessActionData.read(buf),
5929
+ )
5930
+ raise InternalError("Raw enum value doesn't match any cases")
5931
+
5932
+ @staticmethod
5933
+ def check_lower(value):
5934
+ if value.is_aes():
5935
+ _UniffiConverterTypeAesSuccessActionDataResult.check_lower(value.result)
5936
+ return
5937
+ if value.is_message():
5938
+ _UniffiConverterTypeMessageSuccessActionData.check_lower(value.data)
5939
+ return
5940
+ if value.is_url():
5941
+ _UniffiConverterTypeUrlSuccessActionData.check_lower(value.data)
5942
+ return
5943
+ raise ValueError(value)
5944
+
5945
+ @staticmethod
5946
+ def write(value, buf):
5947
+ if value.is_aes():
5948
+ buf.write_i32(1)
5949
+ _UniffiConverterTypeAesSuccessActionDataResult.write(value.result, buf)
5950
+ if value.is_message():
5951
+ buf.write_i32(2)
5952
+ _UniffiConverterTypeMessageSuccessActionData.write(value.data, buf)
5953
+ if value.is_url():
5954
+ buf.write_i32(3)
5955
+ _UniffiConverterTypeUrlSuccessActionData.write(value.data, buf)
5956
+
5957
+
5958
+
5959
+
5960
+ # SyncStorageError
5961
+ # We want to define each variant as a nested class that's also a subclass,
5962
+ # which is tricky in Python. To accomplish this we're going to create each
5963
+ # class separately, then manually add the child classes to the base class's
5964
+ # __dict__. All of this happens in dummy class to avoid polluting the module
5965
+ # namespace.
5966
+ class SyncStorageError(Exception):
5967
+ """
5968
+ Errors that can occur during storage operations
5969
+ """
5970
+
5971
+ pass
5972
+
5973
+ _UniffiTempSyncStorageError = SyncStorageError
5974
+
5975
+ class SyncStorageError: # type: ignore
5976
+ """
5977
+ Errors that can occur during storage operations
5978
+ """
5979
+
5980
+ class Implementation(_UniffiTempSyncStorageError):
5981
+ def __init__(self, *values):
5982
+ if len(values) != 1:
5983
+ raise TypeError(f"Expected 1 arguments, found {len(values)}")
5984
+ if not isinstance(values[0], str):
5985
+ raise TypeError(f"unexpected type for tuple element 0 - expected 'str', got '{type(values[0])}'")
5986
+ super().__init__(", ".join(map(repr, values)))
5987
+ self._values = values
5988
+
5989
+ def __getitem__(self, index):
5990
+ return self._values[index]
5991
+
5992
+ def __repr__(self):
5993
+ return "SyncStorageError.Implementation({})".format(str(self))
5994
+ _UniffiTempSyncStorageError.Implementation = Implementation # type: ignore
5995
+ class InitializationError(_UniffiTempSyncStorageError):
5996
+ """
5997
+ Database initialization error
5998
+ """
5999
+
6000
+ def __init__(self, *values):
6001
+ if len(values) != 1:
6002
+ raise TypeError(f"Expected 1 arguments, found {len(values)}")
6003
+ if not isinstance(values[0], str):
6004
+ raise TypeError(f"unexpected type for tuple element 0 - expected 'str', got '{type(values[0])}'")
6005
+ super().__init__(", ".join(map(repr, values)))
6006
+ self._values = values
6007
+
6008
+ def __getitem__(self, index):
6009
+ return self._values[index]
4173
6010
 
4174
- # Now, a little trick - we make each nested variant class be a subclass of the main
4175
- # enum class, so that method calls and instance checks etc will work intuitively.
4176
- # We might be able to do this a little more neatly with a metaclass, but this'll do.
4177
- SuccessActionProcessed.AES = type("SuccessActionProcessed.AES", (SuccessActionProcessed.AES, SuccessActionProcessed,), {}) # type: ignore
4178
- SuccessActionProcessed.MESSAGE = type("SuccessActionProcessed.MESSAGE", (SuccessActionProcessed.MESSAGE, SuccessActionProcessed,), {}) # type: ignore
4179
- SuccessActionProcessed.URL = type("SuccessActionProcessed.URL", (SuccessActionProcessed.URL, SuccessActionProcessed,), {}) # type: ignore
6011
+ def __repr__(self):
6012
+ return "SyncStorageError.InitializationError({})".format(str(self))
6013
+ _UniffiTempSyncStorageError.InitializationError = InitializationError # type: ignore
6014
+ class Serialization(_UniffiTempSyncStorageError):
6015
+ def __init__(self, *values):
6016
+ if len(values) != 1:
6017
+ raise TypeError(f"Expected 1 arguments, found {len(values)}")
6018
+ if not isinstance(values[0], str):
6019
+ raise TypeError(f"unexpected type for tuple element 0 - expected 'str', got '{type(values[0])}'")
6020
+ super().__init__(", ".join(map(repr, values)))
6021
+ self._values = values
6022
+
6023
+ def __getitem__(self, index):
6024
+ return self._values[index]
4180
6025
 
6026
+ def __repr__(self):
6027
+ return "SyncStorageError.Serialization({})".format(str(self))
6028
+ _UniffiTempSyncStorageError.Serialization = Serialization # type: ignore
4181
6029
 
6030
+ SyncStorageError = _UniffiTempSyncStorageError # type: ignore
6031
+ del _UniffiTempSyncStorageError
4182
6032
 
4183
6033
 
4184
- class _UniffiConverterTypeSuccessActionProcessed(_UniffiConverterRustBuffer):
6034
+ class _UniffiConverterTypeSyncStorageError(_UniffiConverterRustBuffer):
4185
6035
  @staticmethod
4186
6036
  def read(buf):
4187
6037
  variant = buf.read_i32()
4188
6038
  if variant == 1:
4189
- return SuccessActionProcessed.AES(
4190
- _UniffiConverterTypeAesSuccessActionDataResult.read(buf),
6039
+ return SyncStorageError.Implementation(
6040
+ _UniffiConverterString.read(buf),
4191
6041
  )
4192
6042
  if variant == 2:
4193
- return SuccessActionProcessed.MESSAGE(
4194
- _UniffiConverterTypeMessageSuccessActionData.read(buf),
6043
+ return SyncStorageError.InitializationError(
6044
+ _UniffiConverterString.read(buf),
4195
6045
  )
4196
6046
  if variant == 3:
4197
- return SuccessActionProcessed.URL(
4198
- _UniffiConverterTypeUrlSuccessActionData.read(buf),
6047
+ return SyncStorageError.Serialization(
6048
+ _UniffiConverterString.read(buf),
4199
6049
  )
4200
6050
  raise InternalError("Raw enum value doesn't match any cases")
4201
6051
 
4202
6052
  @staticmethod
4203
6053
  def check_lower(value):
4204
- if value.is_aes():
4205
- _UniffiConverterTypeAesSuccessActionDataResult.check_lower(value.result)
6054
+ if isinstance(value, SyncStorageError.Implementation):
6055
+ _UniffiConverterString.check_lower(value._values[0])
4206
6056
  return
4207
- if value.is_message():
4208
- _UniffiConverterTypeMessageSuccessActionData.check_lower(value.data)
6057
+ if isinstance(value, SyncStorageError.InitializationError):
6058
+ _UniffiConverterString.check_lower(value._values[0])
4209
6059
  return
4210
- if value.is_url():
4211
- _UniffiConverterTypeUrlSuccessActionData.check_lower(value.data)
6060
+ if isinstance(value, SyncStorageError.Serialization):
6061
+ _UniffiConverterString.check_lower(value._values[0])
4212
6062
  return
4213
- raise ValueError(value)
4214
6063
 
4215
6064
  @staticmethod
4216
6065
  def write(value, buf):
4217
- if value.is_aes():
6066
+ if isinstance(value, SyncStorageError.Implementation):
4218
6067
  buf.write_i32(1)
4219
- _UniffiConverterTypeAesSuccessActionDataResult.write(value.result, buf)
4220
- if value.is_message():
6068
+ _UniffiConverterString.write(value._values[0], buf)
6069
+ if isinstance(value, SyncStorageError.InitializationError):
4221
6070
  buf.write_i32(2)
4222
- _UniffiConverterTypeMessageSuccessActionData.write(value.data, buf)
4223
- if value.is_url():
6071
+ _UniffiConverterString.write(value._values[0], buf)
6072
+ if isinstance(value, SyncStorageError.Serialization):
4224
6073
  buf.write_i32(3)
4225
- _UniffiConverterTypeUrlSuccessActionData.write(value.data, buf)
4226
-
4227
-
6074
+ _UniffiConverterString.write(value._values[0], buf)
4228
6075
 
4229
6076
 
4230
6077
 
@@ -4336,6 +6183,60 @@ class _UniffiConverterOptionalString(_UniffiConverterRustBuffer):
4336
6183
 
4337
6184
 
4338
6185
 
6186
+ class _UniffiConverterOptionalTypeOutgoingChange(_UniffiConverterRustBuffer):
6187
+ @classmethod
6188
+ def check_lower(cls, value):
6189
+ if value is not None:
6190
+ _UniffiConverterTypeOutgoingChange.check_lower(value)
6191
+
6192
+ @classmethod
6193
+ def write(cls, value, buf):
6194
+ if value is None:
6195
+ buf.write_u8(0)
6196
+ return
6197
+
6198
+ buf.write_u8(1)
6199
+ _UniffiConverterTypeOutgoingChange.write(value, buf)
6200
+
6201
+ @classmethod
6202
+ def read(cls, buf):
6203
+ flag = buf.read_u8()
6204
+ if flag == 0:
6205
+ return None
6206
+ elif flag == 1:
6207
+ return _UniffiConverterTypeOutgoingChange.read(buf)
6208
+ else:
6209
+ raise InternalError("Unexpected flag byte for optional type")
6210
+
6211
+
6212
+
6213
+ class _UniffiConverterOptionalTypeRecord(_UniffiConverterRustBuffer):
6214
+ @classmethod
6215
+ def check_lower(cls, value):
6216
+ if value is not None:
6217
+ _UniffiConverterTypeRecord.check_lower(value)
6218
+
6219
+ @classmethod
6220
+ def write(cls, value, buf):
6221
+ if value is None:
6222
+ buf.write_u8(0)
6223
+ return
6224
+
6225
+ buf.write_u8(1)
6226
+ _UniffiConverterTypeRecord.write(value, buf)
6227
+
6228
+ @classmethod
6229
+ def read(cls, buf):
6230
+ flag = buf.read_u8()
6231
+ if flag == 0:
6232
+ return None
6233
+ elif flag == 1:
6234
+ return _UniffiConverterTypeRecord.read(buf)
6235
+ else:
6236
+ raise InternalError("Unexpected flag byte for optional type")
6237
+
6238
+
6239
+
4339
6240
  class _UniffiConverterOptionalTypeSymbol(_UniffiConverterRustBuffer):
4340
6241
  @classmethod
4341
6242
  def check_lower(cls, value):
@@ -4417,6 +6318,33 @@ class _UniffiConverterOptionalMapStringString(_UniffiConverterRustBuffer):
4417
6318
 
4418
6319
 
4419
6320
 
6321
+ class _UniffiConverterOptionalTypeCommonU128(_UniffiConverterRustBuffer):
6322
+ @classmethod
6323
+ def check_lower(cls, value):
6324
+ if value is not None:
6325
+ _UniffiConverterTypeCommonU128.check_lower(value)
6326
+
6327
+ @classmethod
6328
+ def write(cls, value, buf):
6329
+ if value is None:
6330
+ buf.write_u8(0)
6331
+ return
6332
+
6333
+ buf.write_u8(1)
6334
+ _UniffiConverterTypeCommonU128.write(value, buf)
6335
+
6336
+ @classmethod
6337
+ def read(cls, buf):
6338
+ flag = buf.read_u8()
6339
+ if flag == 0:
6340
+ return None
6341
+ elif flag == 1:
6342
+ return _UniffiConverterTypeCommonU128.read(buf)
6343
+ else:
6344
+ raise InternalError("Unexpected flag byte for optional type")
6345
+
6346
+
6347
+
4420
6348
  class _UniffiConverterSequenceString(_UniffiConverterRustBuffer):
4421
6349
  @classmethod
4422
6350
  def check_lower(cls, value):
@@ -4542,6 +6470,56 @@ class _UniffiConverterSequenceTypeBolt12OfferBlindedPath(_UniffiConverterRustBuf
4542
6470
 
4543
6471
 
4544
6472
 
6473
+ class _UniffiConverterSequenceTypeFiatCurrency(_UniffiConverterRustBuffer):
6474
+ @classmethod
6475
+ def check_lower(cls, value):
6476
+ for item in value:
6477
+ _UniffiConverterTypeFiatCurrency.check_lower(item)
6478
+
6479
+ @classmethod
6480
+ def write(cls, value, buf):
6481
+ items = len(value)
6482
+ buf.write_i32(items)
6483
+ for item in value:
6484
+ _UniffiConverterTypeFiatCurrency.write(item, buf)
6485
+
6486
+ @classmethod
6487
+ def read(cls, buf):
6488
+ count = buf.read_i32()
6489
+ if count < 0:
6490
+ raise InternalError("Unexpected negative sequence length")
6491
+
6492
+ return [
6493
+ _UniffiConverterTypeFiatCurrency.read(buf) for i in range(count)
6494
+ ]
6495
+
6496
+
6497
+
6498
+ class _UniffiConverterSequenceTypeIncomingChange(_UniffiConverterRustBuffer):
6499
+ @classmethod
6500
+ def check_lower(cls, value):
6501
+ for item in value:
6502
+ _UniffiConverterTypeIncomingChange.check_lower(item)
6503
+
6504
+ @classmethod
6505
+ def write(cls, value, buf):
6506
+ items = len(value)
6507
+ buf.write_i32(items)
6508
+ for item in value:
6509
+ _UniffiConverterTypeIncomingChange.write(item, buf)
6510
+
6511
+ @classmethod
6512
+ def read(cls, buf):
6513
+ count = buf.read_i32()
6514
+ if count < 0:
6515
+ raise InternalError("Unexpected negative sequence length")
6516
+
6517
+ return [
6518
+ _UniffiConverterTypeIncomingChange.read(buf) for i in range(count)
6519
+ ]
6520
+
6521
+
6522
+
4545
6523
  class _UniffiConverterSequenceTypeLocaleOverrides(_UniffiConverterRustBuffer):
4546
6524
  @classmethod
4547
6525
  def check_lower(cls, value):
@@ -4592,6 +6570,81 @@ class _UniffiConverterSequenceTypeLocalizedName(_UniffiConverterRustBuffer):
4592
6570
 
4593
6571
 
4594
6572
 
6573
+ class _UniffiConverterSequenceTypeOutgoingChange(_UniffiConverterRustBuffer):
6574
+ @classmethod
6575
+ def check_lower(cls, value):
6576
+ for item in value:
6577
+ _UniffiConverterTypeOutgoingChange.check_lower(item)
6578
+
6579
+ @classmethod
6580
+ def write(cls, value, buf):
6581
+ items = len(value)
6582
+ buf.write_i32(items)
6583
+ for item in value:
6584
+ _UniffiConverterTypeOutgoingChange.write(item, buf)
6585
+
6586
+ @classmethod
6587
+ def read(cls, buf):
6588
+ count = buf.read_i32()
6589
+ if count < 0:
6590
+ raise InternalError("Unexpected negative sequence length")
6591
+
6592
+ return [
6593
+ _UniffiConverterTypeOutgoingChange.read(buf) for i in range(count)
6594
+ ]
6595
+
6596
+
6597
+
6598
+ class _UniffiConverterSequenceTypeRate(_UniffiConverterRustBuffer):
6599
+ @classmethod
6600
+ def check_lower(cls, value):
6601
+ for item in value:
6602
+ _UniffiConverterTypeRate.check_lower(item)
6603
+
6604
+ @classmethod
6605
+ def write(cls, value, buf):
6606
+ items = len(value)
6607
+ buf.write_i32(items)
6608
+ for item in value:
6609
+ _UniffiConverterTypeRate.write(item, buf)
6610
+
6611
+ @classmethod
6612
+ def read(cls, buf):
6613
+ count = buf.read_i32()
6614
+ if count < 0:
6615
+ raise InternalError("Unexpected negative sequence length")
6616
+
6617
+ return [
6618
+ _UniffiConverterTypeRate.read(buf) for i in range(count)
6619
+ ]
6620
+
6621
+
6622
+
6623
+ class _UniffiConverterSequenceTypeRecord(_UniffiConverterRustBuffer):
6624
+ @classmethod
6625
+ def check_lower(cls, value):
6626
+ for item in value:
6627
+ _UniffiConverterTypeRecord.check_lower(item)
6628
+
6629
+ @classmethod
6630
+ def write(cls, value, buf):
6631
+ items = len(value)
6632
+ buf.write_i32(items)
6633
+ for item in value:
6634
+ _UniffiConverterTypeRecord.write(item, buf)
6635
+
6636
+ @classmethod
6637
+ def read(cls, buf):
6638
+ count = buf.read_i32()
6639
+ if count < 0:
6640
+ raise InternalError("Unexpected negative sequence length")
6641
+
6642
+ return [
6643
+ _UniffiConverterTypeRecord.read(buf) for i in range(count)
6644
+ ]
6645
+
6646
+
6647
+
4595
6648
  class _UniffiConverterSequenceTypeInputType(_UniffiConverterRustBuffer):
4596
6649
  @classmethod
4597
6650
  def check_lower(cls, value):
@@ -4648,6 +6701,34 @@ class _UniffiConverterMapStringString(_UniffiConverterRustBuffer):
4648
6701
  d[key] = val
4649
6702
  return d
4650
6703
 
6704
+
6705
+ class _UniffiConverterTypeCommonU128:
6706
+ @staticmethod
6707
+ def write(value, buf):
6708
+ builtin_value = str(value)
6709
+ _UniffiConverterString.write(builtin_value, buf)
6710
+
6711
+ @staticmethod
6712
+ def read(buf):
6713
+ builtin_value = _UniffiConverterString.read(buf)
6714
+ return int(builtin_value)
6715
+
6716
+ @staticmethod
6717
+ def lift(value):
6718
+ builtin_value = _UniffiConverterString.lift(value)
6719
+ return int(builtin_value)
6720
+
6721
+ @staticmethod
6722
+ def check_lower(value):
6723
+ builtin_value = str(value)
6724
+ return _UniffiConverterString.check_lower(builtin_value)
6725
+
6726
+ @staticmethod
6727
+ def lower(value):
6728
+ builtin_value = str(value)
6729
+ return _UniffiConverterString.lower(builtin_value)
6730
+ CommonU128 = str
6731
+
4651
6732
  # Async support# RustFuturePoll values
4652
6733
  _UNIFFI_RUST_FUTURE_POLL_READY = 0
4653
6734
  _UNIFFI_RUST_FUTURE_POLL_MAYBE_READY = 1
@@ -4770,6 +6851,7 @@ __all__ = [
4770
6851
  "ServiceConnectivityError",
4771
6852
  "SuccessAction",
4772
6853
  "SuccessActionProcessed",
6854
+ "SyncStorageError",
4773
6855
  "AesSuccessActionData",
4774
6856
  "AesSuccessActionDataDecrypted",
4775
6857
  "Bip21Details",
@@ -4786,7 +6868,9 @@ __all__ = [
4786
6868
  "Bolt12OfferBlindedPath",
4787
6869
  "Bolt12OfferDetails",
4788
6870
  "CurrencyInfo",
6871
+ "ExternalInputParser",
4789
6872
  "FiatCurrency",
6873
+ "IncomingChange",
4790
6874
  "LightningAddressDetails",
4791
6875
  "LnurlAuthRequestDetails",
4792
6876
  "LnurlErrorDetails",
@@ -4795,12 +6879,21 @@ __all__ = [
4795
6879
  "LocaleOverrides",
4796
6880
  "LocalizedName",
4797
6881
  "MessageSuccessActionData",
6882
+ "OutgoingChange",
4798
6883
  "PaymentRequestSource",
4799
6884
  "Rate",
6885
+ "Record",
6886
+ "RecordChange",
6887
+ "RecordId",
4800
6888
  "RestResponse",
4801
6889
  "SilentPaymentAddressDetails",
6890
+ "SparkAddressDetails",
6891
+ "SparkInvoiceDetails",
4802
6892
  "Symbol",
6893
+ "UnversionedRecordChange",
4803
6894
  "UrlSuccessActionData",
6895
+ "FiatService",
4804
6896
  "RestClient",
6897
+ "SyncStorage",
4805
6898
  ]
4806
6899