breez-sdk-spark 0.1.7__cp310-cp310-win32.whl → 0.1.8.dev1__cp310-cp310-win32.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.
@@ -465,6 +465,8 @@ def _uniffi_check_api_checksums(lib):
465
465
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
466
466
  if lib.uniffi_breez_sdk_common_checksum_method_restclient_post() != 14213:
467
467
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
468
+ if lib.uniffi_breez_sdk_common_checksum_method_restclient_delete() != 56210:
469
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
468
470
 
469
471
  # A ctypes library to expose the extern-C FFI definitions.
470
472
  # This is an implementation detail which will be called internally by the public API.
@@ -575,10 +577,13 @@ _UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_
575
577
  )
576
578
  _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
579
  )
580
+ _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),
581
+ )
578
582
  class _UniffiVTableCallbackInterfaceRestClient(ctypes.Structure):
579
583
  _fields_ = [
580
584
  ("get", _UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD0),
581
585
  ("post", _UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD1),
586
+ ("delete", _UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD2),
582
587
  ("uniffi_free", _UNIFFI_CALLBACK_INTERFACE_FREE),
583
588
  ]
584
589
  _UniffiLib.uniffi_breez_sdk_common_fn_clone_restclient.argtypes = (
@@ -608,6 +613,13 @@ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_post.argtypes = (
608
613
  _UniffiRustBuffer,
609
614
  )
610
615
  _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_post.restype = ctypes.c_uint64
616
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_delete.argtypes = (
617
+ ctypes.c_void_p,
618
+ _UniffiRustBuffer,
619
+ _UniffiRustBuffer,
620
+ _UniffiRustBuffer,
621
+ )
622
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_delete.restype = ctypes.c_uint64
611
623
  _UniffiLib.ffi_breez_sdk_common_rustbuffer_alloc.argtypes = (
612
624
  ctypes.c_uint64,
613
625
  ctypes.POINTER(_UniffiRustCallStatus),
@@ -882,6 +894,9 @@ _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_get.restype = ctyp
882
894
  _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_post.argtypes = (
883
895
  )
884
896
  _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_post.restype = ctypes.c_uint16
897
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_delete.argtypes = (
898
+ )
899
+ _UniffiLib.uniffi_breez_sdk_common_checksum_method_restclient_delete.restype = ctypes.c_uint16
885
900
  _UniffiLib.ffi_breez_sdk_common_uniffi_contract_version.argtypes = (
886
901
  )
887
902
  _UniffiLib.ffi_breez_sdk_common_uniffi_contract_version.restype = ctypes.c_uint32
@@ -1015,6 +1030,16 @@ class RestClient(typing.Protocol):
1015
1030
  """
1016
1031
 
1017
1032
  raise NotImplementedError
1033
+ def delete(self, url: "str",headers: "typing.Optional[dict[str, str]]",body: "typing.Optional[str]"):
1034
+ """
1035
+ Makes a DELETE request, and logs on DEBUG.
1036
+ ### Arguments
1037
+ - `url`: the URL on which DELETE will be called
1038
+ - `headers`: the optional DELETE headers
1039
+ - `body`: the optional DELETE body
1040
+ """
1041
+
1042
+ raise NotImplementedError
1018
1043
 
1019
1044
 
1020
1045
  class RestClientImpl:
@@ -1106,6 +1131,41 @@ _UniffiConverterTypeServiceConnectivityError,
1106
1131
  )
1107
1132
 
1108
1133
 
1134
+
1135
+ async def delete(self, url: "str",headers: "typing.Optional[dict[str, str]]",body: "typing.Optional[str]") -> "RestResponse":
1136
+ """
1137
+ Makes a DELETE request, and logs on DEBUG.
1138
+ ### Arguments
1139
+ - `url`: the URL on which DELETE will be called
1140
+ - `headers`: the optional DELETE headers
1141
+ - `body`: the optional DELETE body
1142
+ """
1143
+
1144
+ _UniffiConverterString.check_lower(url)
1145
+
1146
+ _UniffiConverterOptionalMapStringString.check_lower(headers)
1147
+
1148
+ _UniffiConverterOptionalString.check_lower(body)
1149
+
1150
+ return await _uniffi_rust_call_async(
1151
+ _UniffiLib.uniffi_breez_sdk_common_fn_method_restclient_delete(
1152
+ self._uniffi_clone_pointer(),
1153
+ _UniffiConverterString.lower(url),
1154
+ _UniffiConverterOptionalMapStringString.lower(headers),
1155
+ _UniffiConverterOptionalString.lower(body)
1156
+ ),
1157
+ _UniffiLib.ffi_breez_sdk_common_rust_future_poll_rust_buffer,
1158
+ _UniffiLib.ffi_breez_sdk_common_rust_future_complete_rust_buffer,
1159
+ _UniffiLib.ffi_breez_sdk_common_rust_future_free_rust_buffer,
1160
+ # lift function
1161
+ _UniffiConverterTypeRestResponse.lift,
1162
+
1163
+ # Error FFI converter
1164
+ _UniffiConverterTypeServiceConnectivityError,
1165
+
1166
+ )
1167
+
1168
+
1109
1169
  # Magic number for the Rust proxy to call using the same mechanism as every other method,
1110
1170
  # to free the callback once it's dropped by Rust.
1111
1171
  _UNIFFI_IDX_CALLBACK_FREE = 0
@@ -1214,6 +1274,42 @@ class _UniffiTraitImplRestClient:
1214
1274
  )
1215
1275
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, ServiceConnectivityError, _UniffiConverterTypeServiceConnectivityError.lower)
1216
1276
 
1277
+ @_UNIFFI_CALLBACK_INTERFACE_REST_CLIENT_METHOD2
1278
+ def delete(
1279
+ uniffi_handle,
1280
+ url,
1281
+ headers,
1282
+ body,
1283
+ uniffi_future_callback,
1284
+ uniffi_callback_data,
1285
+ uniffi_out_return,
1286
+ ):
1287
+ uniffi_obj = _UniffiConverterTypeRestClient._handle_map.get(uniffi_handle)
1288
+ def make_call():
1289
+ args = (_UniffiConverterString.lift(url), _UniffiConverterOptionalMapStringString.lift(headers), _UniffiConverterOptionalString.lift(body), )
1290
+ method = uniffi_obj.delete
1291
+ return method(*args)
1292
+
1293
+
1294
+ def handle_success(return_value):
1295
+ uniffi_future_callback(
1296
+ uniffi_callback_data,
1297
+ _UniffiForeignFutureStructRustBuffer(
1298
+ _UniffiConverterTypeRestResponse.lower(return_value),
1299
+ _UniffiRustCallStatus.default()
1300
+ )
1301
+ )
1302
+
1303
+ def handle_error(status_code, rust_buffer):
1304
+ uniffi_future_callback(
1305
+ uniffi_callback_data,
1306
+ _UniffiForeignFutureStructRustBuffer(
1307
+ _UniffiRustBuffer.default(),
1308
+ _UniffiRustCallStatus(status_code, rust_buffer),
1309
+ )
1310
+ )
1311
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, ServiceConnectivityError, _UniffiConverterTypeServiceConnectivityError.lower)
1312
+
1217
1313
  @_UNIFFI_CALLBACK_INTERFACE_FREE
1218
1314
  def _uniffi_free(uniffi_handle):
1219
1315
  _UniffiConverterTypeRestClient._handle_map.remove(uniffi_handle)
@@ -1222,6 +1318,7 @@ class _UniffiTraitImplRestClient:
1222
1318
  _uniffi_vtable = _UniffiVTableCallbackInterfaceRestClient(
1223
1319
  get,
1224
1320
  post,
1321
+ delete,
1225
1322
  _uniffi_free
1226
1323
  )
1227
1324
  # Send Rust a pointer to the VTable. Note: this means we need to keep the struct alive forever,
@@ -500,12 +500,18 @@ def _uniffi_check_api_checksums(lib):
500
500
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
501
501
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener() != 61844:
502
502
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
503
+ if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available() != 31624:
504
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
503
505
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit() != 43529:
504
506
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
507
+ if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address() != 44132:
508
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
505
509
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect() != 30986:
506
510
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
507
511
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info() != 6771:
508
512
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
513
+ if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address() != 36552:
514
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
509
515
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment() != 11540:
510
516
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
511
517
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments() != 16156:
@@ -522,8 +528,12 @@ def _uniffi_check_api_checksums(lib):
522
528
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
523
529
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment() != 36984:
524
530
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
531
+ if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_recover_lightning_address() != 43367:
532
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
525
533
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit() != 33646:
526
534
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
535
+ if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address() != 530:
536
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
527
537
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener() != 60980:
528
538
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
529
539
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment() != 54349:
@@ -540,25 +550,27 @@ def _uniffi_check_api_checksums(lib):
540
550
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
541
551
  if lib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service() != 56288:
542
552
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
543
- if lib.uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item() != 11423:
553
+ if lib.uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item() != 6883:
544
554
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
545
- if lib.uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item() != 17965:
555
+ if lib.uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item() != 30248:
546
556
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
547
- if lib.uniffi_breez_sdk_spark_checksum_method_storage_list_payments() != 55103:
557
+ if lib.uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item() != 7970:
548
558
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
549
- if lib.uniffi_breez_sdk_spark_checksum_method_storage_insert_payment() != 35649:
559
+ if lib.uniffi_breez_sdk_spark_checksum_method_storage_list_payments() != 35678:
550
560
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
551
- if lib.uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata() != 780:
561
+ if lib.uniffi_breez_sdk_spark_checksum_method_storage_insert_payment() != 28075:
552
562
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
553
- if lib.uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id() != 32084:
563
+ if lib.uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata() != 45500:
554
564
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
555
- if lib.uniffi_breez_sdk_spark_checksum_method_storage_add_deposit() != 31647:
565
+ if lib.uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id() != 35394:
556
566
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
557
- if lib.uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit() != 19211:
567
+ if lib.uniffi_breez_sdk_spark_checksum_method_storage_add_deposit() != 55082:
558
568
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
559
- if lib.uniffi_breez_sdk_spark_checksum_method_storage_list_deposits() != 11262:
569
+ if lib.uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit() != 13111:
560
570
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
561
- if lib.uniffi_breez_sdk_spark_checksum_method_storage_update_deposit() != 58400:
571
+ if lib.uniffi_breez_sdk_spark_checksum_method_storage_list_deposits() != 22806:
572
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
573
+ if lib.uniffi_breez_sdk_spark_checksum_method_storage_update_deposit() != 48478:
562
574
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
563
575
  if lib.uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new() != 52744:
564
576
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
@@ -684,25 +696,27 @@ _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD1 = ctypes.CFUNCTYPE(None
684
696
  )
685
697
  _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD2 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
686
698
  )
687
- _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
699
+ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
700
+ )
701
+ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD1 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
688
702
  )
689
- _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD1 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
703
+ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD2 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
690
704
  )
691
- _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD2 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
705
+ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD3 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
692
706
  )
693
- _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD3 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
707
+ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD4 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
694
708
  )
695
- _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD4 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
709
+ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD5 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
696
710
  )
697
- _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD5 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
711
+ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD6 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
698
712
  )
699
- _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD6 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.c_uint32,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
713
+ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD7 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.c_uint32,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
700
714
  )
701
- _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD7 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.c_uint32,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
715
+ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD8 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.c_uint32,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
702
716
  )
703
- _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD8 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
717
+ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD9 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
704
718
  )
705
- _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD9 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.c_uint32,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
719
+ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD10 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.c_uint32,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
706
720
  )
707
721
  class _UniffiVTableCallbackInterfaceEventListener(ctypes.Structure):
708
722
  _fields_ = [
@@ -723,16 +737,17 @@ class _UniffiVTableCallbackInterfaceBitcoinChainService(ctypes.Structure):
723
737
  ]
724
738
  class _UniffiVTableCallbackInterfaceStorage(ctypes.Structure):
725
739
  _fields_ = [
726
- ("get_cached_item", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD0),
727
- ("set_cached_item", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD1),
728
- ("list_payments", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD2),
729
- ("insert_payment", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD3),
730
- ("set_payment_metadata", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD4),
731
- ("get_payment_by_id", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD5),
732
- ("add_deposit", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD6),
733
- ("delete_deposit", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD7),
734
- ("list_deposits", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD8),
735
- ("update_deposit", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD9),
740
+ ("delete_cached_item", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD0),
741
+ ("get_cached_item", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD1),
742
+ ("set_cached_item", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD2),
743
+ ("list_payments", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD3),
744
+ ("insert_payment", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD4),
745
+ ("set_payment_metadata", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD5),
746
+ ("get_payment_by_id", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD6),
747
+ ("add_deposit", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD7),
748
+ ("delete_deposit", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD8),
749
+ ("list_deposits", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD9),
750
+ ("update_deposit", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD10),
736
751
  ("uniffi_free", _UNIFFI_CALLBACK_INTERFACE_FREE),
737
752
  ]
738
753
  _UniffiLib.uniffi_breez_sdk_spark_fn_clone_bitcoinchainservice.argtypes = (
@@ -780,11 +795,20 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener.argtypes
780
795
  ctypes.POINTER(_UniffiRustCallStatus),
781
796
  )
782
797
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener.restype = _UniffiRustBuffer
798
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_check_lightning_address_available.argtypes = (
799
+ ctypes.c_void_p,
800
+ _UniffiRustBuffer,
801
+ )
802
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_check_lightning_address_available.restype = ctypes.c_uint64
783
803
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit.argtypes = (
784
804
  ctypes.c_void_p,
785
805
  _UniffiRustBuffer,
786
806
  )
787
807
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit.restype = ctypes.c_uint64
808
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_delete_lightning_address.argtypes = (
809
+ ctypes.c_void_p,
810
+ )
811
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_delete_lightning_address.restype = ctypes.c_uint64
788
812
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect.argtypes = (
789
813
  ctypes.c_void_p,
790
814
  ctypes.POINTER(_UniffiRustCallStatus),
@@ -795,6 +819,10 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_info.argtypes = (
795
819
  _UniffiRustBuffer,
796
820
  )
797
821
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_info.restype = ctypes.c_uint64
822
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_lightning_address.argtypes = (
823
+ ctypes.c_void_p,
824
+ )
825
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_lightning_address.restype = ctypes.c_uint64
798
826
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_payment.argtypes = (
799
827
  ctypes.c_void_p,
800
828
  _UniffiRustBuffer,
@@ -836,11 +864,20 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_receive_payment.argtypes =
836
864
  _UniffiRustBuffer,
837
865
  )
838
866
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_receive_payment.restype = ctypes.c_uint64
867
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_recover_lightning_address.argtypes = (
868
+ ctypes.c_void_p,
869
+ )
870
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_recover_lightning_address.restype = ctypes.c_uint64
839
871
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_refund_deposit.argtypes = (
840
872
  ctypes.c_void_p,
841
873
  _UniffiRustBuffer,
842
874
  )
843
875
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_refund_deposit.restype = ctypes.c_uint64
876
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_register_lightning_address.argtypes = (
877
+ ctypes.c_void_p,
878
+ _UniffiRustBuffer,
879
+ )
880
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_register_lightning_address.restype = ctypes.c_uint64
844
881
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener.argtypes = (
845
882
  ctypes.c_void_p,
846
883
  _UniffiRustBuffer,
@@ -915,6 +952,11 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_init_callback_vtable_storage.argtypes = (
915
952
  ctypes.POINTER(_UniffiVTableCallbackInterfaceStorage),
916
953
  )
917
954
  _UniffiLib.uniffi_breez_sdk_spark_fn_init_callback_vtable_storage.restype = None
955
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_delete_cached_item.argtypes = (
956
+ ctypes.c_void_p,
957
+ _UniffiRustBuffer,
958
+ )
959
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_delete_cached_item.restype = ctypes.c_uint64
918
960
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_get_cached_item.argtypes = (
919
961
  ctypes.c_void_p,
920
962
  _UniffiRustBuffer,
@@ -1299,15 +1341,24 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_
1299
1341
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener.argtypes = (
1300
1342
  )
1301
1343
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener.restype = ctypes.c_uint16
1344
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available.argtypes = (
1345
+ )
1346
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available.restype = ctypes.c_uint16
1302
1347
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit.argtypes = (
1303
1348
  )
1304
1349
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit.restype = ctypes.c_uint16
1350
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address.argtypes = (
1351
+ )
1352
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address.restype = ctypes.c_uint16
1305
1353
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect.argtypes = (
1306
1354
  )
1307
1355
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect.restype = ctypes.c_uint16
1308
1356
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info.argtypes = (
1309
1357
  )
1310
1358
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info.restype = ctypes.c_uint16
1359
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address.argtypes = (
1360
+ )
1361
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address.restype = ctypes.c_uint16
1311
1362
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment.argtypes = (
1312
1363
  )
1313
1364
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment.restype = ctypes.c_uint16
@@ -1332,9 +1383,15 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment.
1332
1383
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment.argtypes = (
1333
1384
  )
1334
1385
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment.restype = ctypes.c_uint16
1386
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_recover_lightning_address.argtypes = (
1387
+ )
1388
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_recover_lightning_address.restype = ctypes.c_uint16
1335
1389
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit.argtypes = (
1336
1390
  )
1337
1391
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit.restype = ctypes.c_uint16
1392
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address.argtypes = (
1393
+ )
1394
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address.restype = ctypes.c_uint16
1338
1395
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener.argtypes = (
1339
1396
  )
1340
1397
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener.restype = ctypes.c_uint16
@@ -1359,6 +1416,9 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client.r
1359
1416
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service.argtypes = (
1360
1417
  )
1361
1418
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service.restype = ctypes.c_uint16
1419
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item.argtypes = (
1420
+ )
1421
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item.restype = ctypes.c_uint16
1362
1422
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item.argtypes = (
1363
1423
  )
1364
1424
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item.restype = ctypes.c_uint16
@@ -1787,9 +1847,13 @@ class BreezSdkProtocol(typing.Protocol):
1787
1847
  A unique identifier for the listener, which can be used to remove it later
1788
1848
  """
1789
1849
 
1850
+ raise NotImplementedError
1851
+ def check_lightning_address_available(self, req: "CheckLightningAddressRequest"):
1790
1852
  raise NotImplementedError
1791
1853
  def claim_deposit(self, request: "ClaimDepositRequest"):
1792
1854
  raise NotImplementedError
1855
+ def delete_lightning_address(self, ):
1856
+ raise NotImplementedError
1793
1857
  def disconnect(self, ):
1794
1858
  """
1795
1859
  Stops the SDK's background tasks
@@ -1808,6 +1872,8 @@ class BreezSdkProtocol(typing.Protocol):
1808
1872
  Returns the balance of the wallet in satoshis
1809
1873
  """
1810
1874
 
1875
+ raise NotImplementedError
1876
+ def get_lightning_address(self, ):
1811
1877
  raise NotImplementedError
1812
1878
  def get_payment(self, request: "GetPaymentRequest"):
1813
1879
  raise NotImplementedError
@@ -1841,9 +1907,17 @@ class BreezSdkProtocol(typing.Protocol):
1841
1907
  def prepare_send_payment(self, request: "PrepareSendPaymentRequest"):
1842
1908
  raise NotImplementedError
1843
1909
  def receive_payment(self, request: "ReceivePaymentRequest"):
1910
+ raise NotImplementedError
1911
+ def recover_lightning_address(self, ):
1912
+ """
1913
+ Attempts to recover a lightning address from the lnurl server.
1914
+ """
1915
+
1844
1916
  raise NotImplementedError
1845
1917
  def refund_deposit(self, request: "RefundDepositRequest"):
1846
1918
  raise NotImplementedError
1919
+ def register_lightning_address(self, request: "RegisterLightningAddressRequest"):
1920
+ raise NotImplementedError
1847
1921
  def remove_event_listener(self, id: "str"):
1848
1922
  """
1849
1923
  Removes a previously registered event listener
@@ -1923,6 +1997,27 @@ class BreezSdk:
1923
1997
 
1924
1998
 
1925
1999
 
2000
+ async def check_lightning_address_available(self, req: "CheckLightningAddressRequest") -> "bool":
2001
+ _UniffiConverterTypeCheckLightningAddressRequest.check_lower(req)
2002
+
2003
+ return await _uniffi_rust_call_async(
2004
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_check_lightning_address_available(
2005
+ self._uniffi_clone_pointer(),
2006
+ _UniffiConverterTypeCheckLightningAddressRequest.lower(req)
2007
+ ),
2008
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_i8,
2009
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_i8,
2010
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_i8,
2011
+ # lift function
2012
+ _UniffiConverterBool.lift,
2013
+
2014
+ # Error FFI converter
2015
+ _UniffiConverterTypeSdkError,
2016
+
2017
+ )
2018
+
2019
+
2020
+
1926
2021
  async def claim_deposit(self, request: "ClaimDepositRequest") -> "ClaimDepositResponse":
1927
2022
  _UniffiConverterTypeClaimDepositRequest.check_lower(request)
1928
2023
 
@@ -1944,6 +2039,26 @@ _UniffiConverterTypeSdkError,
1944
2039
 
1945
2040
 
1946
2041
 
2042
+ async def delete_lightning_address(self, ) -> None:
2043
+
2044
+ return await _uniffi_rust_call_async(
2045
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_delete_lightning_address(
2046
+ self._uniffi_clone_pointer(),
2047
+ ),
2048
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_void,
2049
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_void,
2050
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_void,
2051
+ # lift function
2052
+ lambda val: None,
2053
+
2054
+
2055
+ # Error FFI converter
2056
+ _UniffiConverterTypeSdkError,
2057
+
2058
+ )
2059
+
2060
+
2061
+
1947
2062
 
1948
2063
  def disconnect(self, ) -> None:
1949
2064
  """
@@ -1988,6 +2103,24 @@ _UniffiConverterTypeSdkError,
1988
2103
 
1989
2104
 
1990
2105
 
2106
+ async def get_lightning_address(self, ) -> "typing.Optional[LightningAddressInfo]":
2107
+ return await _uniffi_rust_call_async(
2108
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_lightning_address(
2109
+ self._uniffi_clone_pointer(),
2110
+ ),
2111
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
2112
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
2113
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
2114
+ # lift function
2115
+ _UniffiConverterOptionalTypeLightningAddressInfo.lift,
2116
+
2117
+ # Error FFI converter
2118
+ _UniffiConverterTypeSdkError,
2119
+
2120
+ )
2121
+
2122
+
2123
+
1991
2124
  async def get_payment(self, request: "GetPaymentRequest") -> "GetPaymentResponse":
1992
2125
  _UniffiConverterTypeGetPaymentRequest.check_lower(request)
1993
2126
 
@@ -2163,6 +2296,28 @@ _UniffiConverterTypeSdkError,
2163
2296
 
2164
2297
 
2165
2298
 
2299
+ async def recover_lightning_address(self, ) -> "typing.Optional[LightningAddressInfo]":
2300
+ """
2301
+ Attempts to recover a lightning address from the lnurl server.
2302
+ """
2303
+
2304
+ return await _uniffi_rust_call_async(
2305
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_recover_lightning_address(
2306
+ self._uniffi_clone_pointer(),
2307
+ ),
2308
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
2309
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
2310
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
2311
+ # lift function
2312
+ _UniffiConverterOptionalTypeLightningAddressInfo.lift,
2313
+
2314
+ # Error FFI converter
2315
+ _UniffiConverterTypeSdkError,
2316
+
2317
+ )
2318
+
2319
+
2320
+
2166
2321
  async def refund_deposit(self, request: "RefundDepositRequest") -> "RefundDepositResponse":
2167
2322
  _UniffiConverterTypeRefundDepositRequest.check_lower(request)
2168
2323
 
@@ -2184,6 +2339,27 @@ _UniffiConverterTypeSdkError,
2184
2339
 
2185
2340
 
2186
2341
 
2342
+ async def register_lightning_address(self, request: "RegisterLightningAddressRequest") -> "LightningAddressInfo":
2343
+ _UniffiConverterTypeRegisterLightningAddressRequest.check_lower(request)
2344
+
2345
+ return await _uniffi_rust_call_async(
2346
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_register_lightning_address(
2347
+ self._uniffi_clone_pointer(),
2348
+ _UniffiConverterTypeRegisterLightningAddressRequest.lower(request)
2349
+ ),
2350
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
2351
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
2352
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
2353
+ # lift function
2354
+ _UniffiConverterTypeLightningAddressInfo.lift,
2355
+
2356
+ # Error FFI converter
2357
+ _UniffiConverterTypeSdkError,
2358
+
2359
+ )
2360
+
2361
+
2362
+
2187
2363
 
2188
2364
  def remove_event_listener(self, id: "str") -> "bool":
2189
2365
  """
@@ -2524,6 +2700,8 @@ class Storage(typing.Protocol):
2524
2700
  Trait for persistent storage
2525
2701
  """
2526
2702
 
2703
+ def delete_cached_item(self, key: "str"):
2704
+ raise NotImplementedError
2527
2705
  def get_cached_item(self, key: "str"):
2528
2706
  raise NotImplementedError
2529
2707
  def set_cached_item(self, key: "str",value: "str"):
@@ -2668,6 +2846,29 @@ class StorageImpl:
2668
2846
  inst._pointer = pointer
2669
2847
  return inst
2670
2848
 
2849
+ async def delete_cached_item(self, key: "str") -> None:
2850
+
2851
+ _UniffiConverterString.check_lower(key)
2852
+
2853
+ return await _uniffi_rust_call_async(
2854
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_delete_cached_item(
2855
+ self._uniffi_clone_pointer(),
2856
+ _UniffiConverterString.lower(key)
2857
+ ),
2858
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_void,
2859
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_void,
2860
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_void,
2861
+ # lift function
2862
+ lambda val: None,
2863
+
2864
+
2865
+ # Error FFI converter
2866
+ _UniffiConverterTypeStorageError,
2867
+
2868
+ )
2869
+
2870
+
2871
+
2671
2872
  async def get_cached_item(self, key: "str") -> "typing.Optional[str]":
2672
2873
  _UniffiConverterString.check_lower(key)
2673
2874
 
@@ -3011,6 +3212,38 @@ class _UniffiTraitImplStorage:
3011
3212
  # For each method, generate a callback function to pass to Rust
3012
3213
 
3013
3214
  @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD0
3215
+ def delete_cached_item(
3216
+ uniffi_handle,
3217
+ key,
3218
+ uniffi_future_callback,
3219
+ uniffi_callback_data,
3220
+ uniffi_out_return,
3221
+ ):
3222
+ uniffi_obj = _UniffiConverterTypeStorage._handle_map.get(uniffi_handle)
3223
+ def make_call():
3224
+ args = (_UniffiConverterString.lift(key), )
3225
+ method = uniffi_obj.delete_cached_item
3226
+ return method(*args)
3227
+
3228
+
3229
+ def handle_success(return_value):
3230
+ uniffi_future_callback(
3231
+ uniffi_callback_data,
3232
+ _UniffiForeignFutureStructVoid(
3233
+ _UniffiRustCallStatus.default()
3234
+ )
3235
+ )
3236
+
3237
+ def handle_error(status_code, rust_buffer):
3238
+ uniffi_future_callback(
3239
+ uniffi_callback_data,
3240
+ _UniffiForeignFutureStructVoid(
3241
+ _UniffiRustCallStatus(status_code, rust_buffer),
3242
+ )
3243
+ )
3244
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3245
+
3246
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD1
3014
3247
  def get_cached_item(
3015
3248
  uniffi_handle,
3016
3249
  key,
@@ -3044,7 +3277,7 @@ class _UniffiTraitImplStorage:
3044
3277
  )
3045
3278
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3046
3279
 
3047
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD1
3280
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD2
3048
3281
  def set_cached_item(
3049
3282
  uniffi_handle,
3050
3283
  key,
@@ -3077,7 +3310,7 @@ class _UniffiTraitImplStorage:
3077
3310
  )
3078
3311
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3079
3312
 
3080
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD2
3313
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD3
3081
3314
  def list_payments(
3082
3315
  uniffi_handle,
3083
3316
  offset,
@@ -3112,7 +3345,7 @@ class _UniffiTraitImplStorage:
3112
3345
  )
3113
3346
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3114
3347
 
3115
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD3
3348
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD4
3116
3349
  def insert_payment(
3117
3350
  uniffi_handle,
3118
3351
  payment,
@@ -3144,7 +3377,7 @@ class _UniffiTraitImplStorage:
3144
3377
  )
3145
3378
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3146
3379
 
3147
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD4
3380
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD5
3148
3381
  def set_payment_metadata(
3149
3382
  uniffi_handle,
3150
3383
  payment_id,
@@ -3177,7 +3410,7 @@ class _UniffiTraitImplStorage:
3177
3410
  )
3178
3411
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3179
3412
 
3180
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD5
3413
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD6
3181
3414
  def get_payment_by_id(
3182
3415
  uniffi_handle,
3183
3416
  id,
@@ -3211,7 +3444,7 @@ class _UniffiTraitImplStorage:
3211
3444
  )
3212
3445
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3213
3446
 
3214
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD6
3447
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD7
3215
3448
  def add_deposit(
3216
3449
  uniffi_handle,
3217
3450
  txid,
@@ -3245,7 +3478,7 @@ class _UniffiTraitImplStorage:
3245
3478
  )
3246
3479
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3247
3480
 
3248
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD7
3481
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD8
3249
3482
  def delete_deposit(
3250
3483
  uniffi_handle,
3251
3484
  txid,
@@ -3278,7 +3511,7 @@ class _UniffiTraitImplStorage:
3278
3511
  )
3279
3512
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3280
3513
 
3281
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD8
3514
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD9
3282
3515
  def list_deposits(
3283
3516
  uniffi_handle,
3284
3517
  uniffi_future_callback,
@@ -3311,7 +3544,7 @@ class _UniffiTraitImplStorage:
3311
3544
  )
3312
3545
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3313
3546
 
3314
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD9
3547
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD10
3315
3548
  def update_deposit(
3316
3549
  uniffi_handle,
3317
3550
  txid,
@@ -3351,6 +3584,7 @@ class _UniffiTraitImplStorage:
3351
3584
 
3352
3585
  # Generate the FFI VTable. This has a field for each callback interface method.
3353
3586
  _uniffi_vtable = _UniffiVTableCallbackInterfaceStorage(
3587
+ delete_cached_item,
3354
3588
  get_cached_item,
3355
3589
  set_cached_item,
3356
3590
  list_payments,
@@ -3396,6 +3630,35 @@ class _UniffiConverterTypeStorage:
3396
3630
  buf.write_u64(cls.lower(value))
3397
3631
 
3398
3632
 
3633
+ class CheckLightningAddressRequest:
3634
+ username: "str"
3635
+ def __init__(self, *, username: "str"):
3636
+ self.username = username
3637
+
3638
+ def __str__(self):
3639
+ return "CheckLightningAddressRequest(username={})".format(self.username)
3640
+
3641
+ def __eq__(self, other):
3642
+ if self.username != other.username:
3643
+ return False
3644
+ return True
3645
+
3646
+ class _UniffiConverterTypeCheckLightningAddressRequest(_UniffiConverterRustBuffer):
3647
+ @staticmethod
3648
+ def read(buf):
3649
+ return CheckLightningAddressRequest(
3650
+ username=_UniffiConverterString.read(buf),
3651
+ )
3652
+
3653
+ @staticmethod
3654
+ def check_lower(value):
3655
+ _UniffiConverterString.check_lower(value.username)
3656
+
3657
+ @staticmethod
3658
+ def write(value, buf):
3659
+ _UniffiConverterString.write(value.username, buf)
3660
+
3661
+
3399
3662
  class ClaimDepositRequest:
3400
3663
  txid: "str"
3401
3664
  vout: "int"
@@ -3476,14 +3739,20 @@ class Config:
3476
3739
  network: "Network"
3477
3740
  sync_interval_secs: "int"
3478
3741
  max_deposit_claim_fee: "typing.Optional[Fee]"
3479
- def __init__(self, *, api_key: "typing.Optional[str]", network: "Network", sync_interval_secs: "int", max_deposit_claim_fee: "typing.Optional[Fee]"):
3742
+ lnurl_domain: "typing.Optional[str]"
3743
+ """
3744
+ The domain used for receiving through lnurl-pay and lightning address.
3745
+ """
3746
+
3747
+ def __init__(self, *, api_key: "typing.Optional[str]", network: "Network", sync_interval_secs: "int", max_deposit_claim_fee: "typing.Optional[Fee]", lnurl_domain: "typing.Optional[str]"):
3480
3748
  self.api_key = api_key
3481
3749
  self.network = network
3482
3750
  self.sync_interval_secs = sync_interval_secs
3483
3751
  self.max_deposit_claim_fee = max_deposit_claim_fee
3752
+ self.lnurl_domain = lnurl_domain
3484
3753
 
3485
3754
  def __str__(self):
3486
- return "Config(api_key={}, network={}, sync_interval_secs={}, max_deposit_claim_fee={})".format(self.api_key, self.network, self.sync_interval_secs, self.max_deposit_claim_fee)
3755
+ return "Config(api_key={}, network={}, sync_interval_secs={}, max_deposit_claim_fee={}, lnurl_domain={})".format(self.api_key, self.network, self.sync_interval_secs, self.max_deposit_claim_fee, self.lnurl_domain)
3487
3756
 
3488
3757
  def __eq__(self, other):
3489
3758
  if self.api_key != other.api_key:
@@ -3494,6 +3763,8 @@ class Config:
3494
3763
  return False
3495
3764
  if self.max_deposit_claim_fee != other.max_deposit_claim_fee:
3496
3765
  return False
3766
+ if self.lnurl_domain != other.lnurl_domain:
3767
+ return False
3497
3768
  return True
3498
3769
 
3499
3770
  class _UniffiConverterTypeConfig(_UniffiConverterRustBuffer):
@@ -3504,6 +3775,7 @@ class _UniffiConverterTypeConfig(_UniffiConverterRustBuffer):
3504
3775
  network=_UniffiConverterTypeNetwork.read(buf),
3505
3776
  sync_interval_secs=_UniffiConverterUInt32.read(buf),
3506
3777
  max_deposit_claim_fee=_UniffiConverterOptionalTypeFee.read(buf),
3778
+ lnurl_domain=_UniffiConverterOptionalString.read(buf),
3507
3779
  )
3508
3780
 
3509
3781
  @staticmethod
@@ -3512,6 +3784,7 @@ class _UniffiConverterTypeConfig(_UniffiConverterRustBuffer):
3512
3784
  _UniffiConverterTypeNetwork.check_lower(value.network)
3513
3785
  _UniffiConverterUInt32.check_lower(value.sync_interval_secs)
3514
3786
  _UniffiConverterOptionalTypeFee.check_lower(value.max_deposit_claim_fee)
3787
+ _UniffiConverterOptionalString.check_lower(value.lnurl_domain)
3515
3788
 
3516
3789
  @staticmethod
3517
3790
  def write(value, buf):
@@ -3519,6 +3792,7 @@ class _UniffiConverterTypeConfig(_UniffiConverterRustBuffer):
3519
3792
  _UniffiConverterTypeNetwork.write(value.network, buf)
3520
3793
  _UniffiConverterUInt32.write(value.sync_interval_secs, buf)
3521
3794
  _UniffiConverterOptionalTypeFee.write(value.max_deposit_claim_fee, buf)
3795
+ _UniffiConverterOptionalString.write(value.lnurl_domain, buf)
3522
3796
 
3523
3797
 
3524
3798
  class ConnectRequest:
@@ -3786,6 +4060,56 @@ class _UniffiConverterTypeGetPaymentResponse(_UniffiConverterRustBuffer):
3786
4060
  _UniffiConverterTypePayment.write(value.payment, buf)
3787
4061
 
3788
4062
 
4063
+ class LightningAddressInfo:
4064
+ description: "str"
4065
+ lightning_address: "str"
4066
+ lnurl: "str"
4067
+ username: "str"
4068
+ def __init__(self, *, description: "str", lightning_address: "str", lnurl: "str", username: "str"):
4069
+ self.description = description
4070
+ self.lightning_address = lightning_address
4071
+ self.lnurl = lnurl
4072
+ self.username = username
4073
+
4074
+ def __str__(self):
4075
+ return "LightningAddressInfo(description={}, lightning_address={}, lnurl={}, username={})".format(self.description, self.lightning_address, self.lnurl, self.username)
4076
+
4077
+ def __eq__(self, other):
4078
+ if self.description != other.description:
4079
+ return False
4080
+ if self.lightning_address != other.lightning_address:
4081
+ return False
4082
+ if self.lnurl != other.lnurl:
4083
+ return False
4084
+ if self.username != other.username:
4085
+ return False
4086
+ return True
4087
+
4088
+ class _UniffiConverterTypeLightningAddressInfo(_UniffiConverterRustBuffer):
4089
+ @staticmethod
4090
+ def read(buf):
4091
+ return LightningAddressInfo(
4092
+ description=_UniffiConverterString.read(buf),
4093
+ lightning_address=_UniffiConverterString.read(buf),
4094
+ lnurl=_UniffiConverterString.read(buf),
4095
+ username=_UniffiConverterString.read(buf),
4096
+ )
4097
+
4098
+ @staticmethod
4099
+ def check_lower(value):
4100
+ _UniffiConverterString.check_lower(value.description)
4101
+ _UniffiConverterString.check_lower(value.lightning_address)
4102
+ _UniffiConverterString.check_lower(value.lnurl)
4103
+ _UniffiConverterString.check_lower(value.username)
4104
+
4105
+ @staticmethod
4106
+ def write(value, buf):
4107
+ _UniffiConverterString.write(value.description, buf)
4108
+ _UniffiConverterString.write(value.lightning_address, buf)
4109
+ _UniffiConverterString.write(value.lnurl, buf)
4110
+ _UniffiConverterString.write(value.username, buf)
4111
+
4112
+
3789
4113
  class ListPaymentsRequest:
3790
4114
  """
3791
4115
  Request to list payments with pagination
@@ -4592,6 +4916,42 @@ class _UniffiConverterTypeRefundDepositResponse(_UniffiConverterRustBuffer):
4592
4916
  _UniffiConverterString.write(value.tx_hex, buf)
4593
4917
 
4594
4918
 
4919
+ class RegisterLightningAddressRequest:
4920
+ username: "str"
4921
+ description: "str"
4922
+ def __init__(self, *, username: "str", description: "str"):
4923
+ self.username = username
4924
+ self.description = description
4925
+
4926
+ def __str__(self):
4927
+ return "RegisterLightningAddressRequest(username={}, description={})".format(self.username, self.description)
4928
+
4929
+ def __eq__(self, other):
4930
+ if self.username != other.username:
4931
+ return False
4932
+ if self.description != other.description:
4933
+ return False
4934
+ return True
4935
+
4936
+ class _UniffiConverterTypeRegisterLightningAddressRequest(_UniffiConverterRustBuffer):
4937
+ @staticmethod
4938
+ def read(buf):
4939
+ return RegisterLightningAddressRequest(
4940
+ username=_UniffiConverterString.read(buf),
4941
+ description=_UniffiConverterString.read(buf),
4942
+ )
4943
+
4944
+ @staticmethod
4945
+ def check_lower(value):
4946
+ _UniffiConverterString.check_lower(value.username)
4947
+ _UniffiConverterString.check_lower(value.description)
4948
+
4949
+ @staticmethod
4950
+ def write(value, buf):
4951
+ _UniffiConverterString.write(value.username, buf)
4952
+ _UniffiConverterString.write(value.description, buf)
4953
+
4954
+
4595
4955
  class SendOnchainFeeQuote:
4596
4956
  id: "str"
4597
4957
  expires_at: "int"
@@ -7012,6 +7372,33 @@ class _UniffiConverterOptionalTypeCredentials(_UniffiConverterRustBuffer):
7012
7372
 
7013
7373
 
7014
7374
 
7375
+ class _UniffiConverterOptionalTypeLightningAddressInfo(_UniffiConverterRustBuffer):
7376
+ @classmethod
7377
+ def check_lower(cls, value):
7378
+ if value is not None:
7379
+ _UniffiConverterTypeLightningAddressInfo.check_lower(value)
7380
+
7381
+ @classmethod
7382
+ def write(cls, value, buf):
7383
+ if value is None:
7384
+ buf.write_u8(0)
7385
+ return
7386
+
7387
+ buf.write_u8(1)
7388
+ _UniffiConverterTypeLightningAddressInfo.write(value, buf)
7389
+
7390
+ @classmethod
7391
+ def read(cls, buf):
7392
+ flag = buf.read_u8()
7393
+ if flag == 0:
7394
+ return None
7395
+ elif flag == 1:
7396
+ return _UniffiConverterTypeLightningAddressInfo.read(buf)
7397
+ else:
7398
+ raise InternalError("Unexpected flag byte for optional type")
7399
+
7400
+
7401
+
7015
7402
  class _UniffiConverterOptionalTypeLnurlPayInfo(_UniffiConverterRustBuffer):
7016
7403
  @classmethod
7017
7404
  def check_lower(cls, value):
@@ -7549,6 +7936,7 @@ __all__ = [
7549
7936
  "SendPaymentOptions",
7550
7937
  "StorageError",
7551
7938
  "UpdateDepositPayload",
7939
+ "CheckLightningAddressRequest",
7552
7940
  "ClaimDepositRequest",
7553
7941
  "ClaimDepositResponse",
7554
7942
  "Config",
@@ -7559,6 +7947,7 @@ __all__ = [
7559
7947
  "GetInfoResponse",
7560
7948
  "GetPaymentRequest",
7561
7949
  "GetPaymentResponse",
7950
+ "LightningAddressInfo",
7562
7951
  "ListPaymentsRequest",
7563
7952
  "ListPaymentsResponse",
7564
7953
  "ListUnclaimedDepositsRequest",
@@ -7577,6 +7966,7 @@ __all__ = [
7577
7966
  "ReceivePaymentResponse",
7578
7967
  "RefundDepositRequest",
7579
7968
  "RefundDepositResponse",
7969
+ "RegisterLightningAddressRequest",
7580
7970
  "SendOnchainFeeQuote",
7581
7971
  "SendOnchainSpeedFeeQuote",
7582
7972
  "SendPaymentRequest",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: breez_sdk_spark
3
- Version: 0.1.7
3
+ Version: 0.1.8.dev1
4
4
  Summary: Python language bindings for the Breez Spark SDK
5
5
  Home-page: https://github.com/breez/spark-sdk
6
6
  Author: Breez <contact@breez.technology>
@@ -0,0 +1,11 @@
1
+ breez_sdk_spark/__init__.py,sha256=YcEpqfQeZ0Yc8lRjKv0b5M19vH3VyMiZjV5hHWdz6wE,151
2
+ breez_sdk_spark/breez_sdk_common.py,sha256=gS3hvzeFjIGNrSREOlzdVqfdYnoPGpfJm20EOnibhso,191457
3
+ breez_sdk_spark/breez_sdk_spark.py,sha256=4raf2zE-ntNbW91SkiNt1nOIMNoTIlEjksF6-iiOumE,287591
4
+ breez_sdk_spark/breez_sdk_spark_bindings.dll,sha256=0itKV13udn0U_d7AcSTTeZMq48DF6PMS97CCbB6qC8Q,10875904
5
+ breez_sdk_spark/breez_sdk_spark_bindings.py,sha256=ysAJqyrIhXUjJIBj856CADqim5MR38CgNEIdG1Fj4qg,32901
6
+ breez_sdk_spark/msvcp140.dll,sha256=l-caPGl_sas693fbOQCeRgJSXow6_wg37McDHLoYgWU,447616
7
+ breez_sdk_spark/vcruntime140.dll,sha256=qddzKjw94J8GAaf6JVUJPctJ8I4vxiqGCRRh8PODk-0,91216
8
+ breez_sdk_spark-0.1.8.dev1.dist-info/METADATA,sha256=MniNn7TajJcJxWg4OS9bqtPyXVq0KGXese6MjKKhMi0,573
9
+ breez_sdk_spark-0.1.8.dev1.dist-info/WHEEL,sha256=GWZF0cboiU4MhsG0baPl8rrtCaXFSLW25384gp3vddM,97
10
+ breez_sdk_spark-0.1.8.dev1.dist-info/top_level.txt,sha256=EWjZB7jCSH5bjyOrFhpRFW4Jfo8ykKdxJ7tqAOytwDU,16
11
+ breez_sdk_spark-0.1.8.dev1.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- breez_sdk_spark/__init__.py,sha256=YcEpqfQeZ0Yc8lRjKv0b5M19vH3VyMiZjV5hHWdz6wE,151
2
- breez_sdk_spark/breez_sdk_common.py,sha256=u-heuhIaouzAFwtC6BdCMheihQ3WS1u7YkIL4bng-Tk,187341
3
- breez_sdk_spark/breez_sdk_spark.py,sha256=URzB4ZePDypFc0DuJ_1X0pl6eJJg9v-zK3CY2b6xzO4,271895
4
- breez_sdk_spark/breez_sdk_spark_bindings.dll,sha256=ttC5rcbA7egE8ajBelB6u-9--F9_I0h-NqdYrctb70E,10805248
5
- breez_sdk_spark/breez_sdk_spark_bindings.py,sha256=ysAJqyrIhXUjJIBj856CADqim5MR38CgNEIdG1Fj4qg,32901
6
- breez_sdk_spark/msvcp140.dll,sha256=l-caPGl_sas693fbOQCeRgJSXow6_wg37McDHLoYgWU,447616
7
- breez_sdk_spark/vcruntime140.dll,sha256=qddzKjw94J8GAaf6JVUJPctJ8I4vxiqGCRRh8PODk-0,91216
8
- breez_sdk_spark-0.1.7.dist-info/METADATA,sha256=bAAkB0Vaytc-xnRirMa6Z7NVnOSfwttns4yfZS99fek,568
9
- breez_sdk_spark-0.1.7.dist-info/WHEEL,sha256=GWZF0cboiU4MhsG0baPl8rrtCaXFSLW25384gp3vddM,97
10
- breez_sdk_spark-0.1.7.dist-info/top_level.txt,sha256=EWjZB7jCSH5bjyOrFhpRFW4Jfo8ykKdxJ7tqAOytwDU,16
11
- breez_sdk_spark-0.1.7.dist-info/RECORD,,