breez-sdk-spark 0.1.6__cp312-cp312-win32.whl → 0.1.8.dev1__cp312-cp312-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,
@@ -2319,7 +2416,7 @@ class LnurlPayRequestDetails:
2319
2416
  Optional lightning address if that was used to resolve the lnurl.
2320
2417
  """
2321
2418
 
2322
- allows_nostr: "bool"
2419
+ allows_nostr: "typing.Optional[bool]"
2323
2420
  """
2324
2421
  Value indicating whether the recipient supports Nostr Zaps through NIP-57.
2325
2422
 
@@ -2335,7 +2432,7 @@ class LnurlPayRequestDetails:
2335
2432
  See <https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki>
2336
2433
  """
2337
2434
 
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]"):
2435
+ 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
2436
  self.callback = callback
2340
2437
  self.min_sendable = min_sendable
2341
2438
  self.max_sendable = max_sendable
@@ -2385,7 +2482,7 @@ class _UniffiConverterTypeLnurlPayRequestDetails(_UniffiConverterRustBuffer):
2385
2482
  domain=_UniffiConverterString.read(buf),
2386
2483
  url=_UniffiConverterString.read(buf),
2387
2484
  address=_UniffiConverterOptionalString.read(buf),
2388
- allows_nostr=_UniffiConverterBool.read(buf),
2485
+ allows_nostr=_UniffiConverterOptionalBool.read(buf),
2389
2486
  nostr_pubkey=_UniffiConverterOptionalString.read(buf),
2390
2487
  )
2391
2488
 
@@ -2399,7 +2496,7 @@ class _UniffiConverterTypeLnurlPayRequestDetails(_UniffiConverterRustBuffer):
2399
2496
  _UniffiConverterString.check_lower(value.domain)
2400
2497
  _UniffiConverterString.check_lower(value.url)
2401
2498
  _UniffiConverterOptionalString.check_lower(value.address)
2402
- _UniffiConverterBool.check_lower(value.allows_nostr)
2499
+ _UniffiConverterOptionalBool.check_lower(value.allows_nostr)
2403
2500
  _UniffiConverterOptionalString.check_lower(value.nostr_pubkey)
2404
2501
 
2405
2502
  @staticmethod
@@ -2412,7 +2509,7 @@ class _UniffiConverterTypeLnurlPayRequestDetails(_UniffiConverterRustBuffer):
2412
2509
  _UniffiConverterString.write(value.domain, buf)
2413
2510
  _UniffiConverterString.write(value.url, buf)
2414
2511
  _UniffiConverterOptionalString.write(value.address, buf)
2415
- _UniffiConverterBool.write(value.allows_nostr, buf)
2512
+ _UniffiConverterOptionalBool.write(value.allows_nostr, buf)
2416
2513
  _UniffiConverterOptionalString.write(value.nostr_pubkey, buf)
2417
2514
 
2418
2515
 
@@ -486,7 +486,7 @@ def _uniffi_check_api_checksums(lib):
486
486
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
487
487
  if lib.uniffi_breez_sdk_spark_checksum_func_default_config() != 62194:
488
488
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
489
- if lib.uniffi_breez_sdk_spark_checksum_func_default_storage() != 46285:
489
+ if lib.uniffi_breez_sdk_spark_checksum_func_default_storage() != 30804:
490
490
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
491
491
  if lib.uniffi_breez_sdk_spark_checksum_func_init_logging() != 8518:
492
492
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
@@ -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,
@@ -991,9 +1033,8 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_func_default_config.argtypes = (
991
1033
  _UniffiLib.uniffi_breez_sdk_spark_fn_func_default_config.restype = _UniffiRustBuffer
992
1034
  _UniffiLib.uniffi_breez_sdk_spark_fn_func_default_storage.argtypes = (
993
1035
  _UniffiRustBuffer,
994
- ctypes.POINTER(_UniffiRustCallStatus),
995
1036
  )
996
- _UniffiLib.uniffi_breez_sdk_spark_fn_func_default_storage.restype = ctypes.c_void_p
1037
+ _UniffiLib.uniffi_breez_sdk_spark_fn_func_default_storage.restype = ctypes.c_uint64
997
1038
  _UniffiLib.uniffi_breez_sdk_spark_fn_func_init_logging.argtypes = (
998
1039
  _UniffiRustBuffer,
999
1040
  _UniffiRustBuffer,
@@ -1300,15 +1341,24 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_
1300
1341
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener.argtypes = (
1301
1342
  )
1302
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
1303
1347
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit.argtypes = (
1304
1348
  )
1305
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
1306
1353
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect.argtypes = (
1307
1354
  )
1308
1355
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect.restype = ctypes.c_uint16
1309
1356
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info.argtypes = (
1310
1357
  )
1311
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
1312
1362
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment.argtypes = (
1313
1363
  )
1314
1364
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment.restype = ctypes.c_uint16
@@ -1333,9 +1383,15 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment.
1333
1383
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment.argtypes = (
1334
1384
  )
1335
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
1336
1389
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit.argtypes = (
1337
1390
  )
1338
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
1339
1395
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener.argtypes = (
1340
1396
  )
1341
1397
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener.restype = ctypes.c_uint16
@@ -1360,6 +1416,9 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client.r
1360
1416
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service.argtypes = (
1361
1417
  )
1362
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
1363
1422
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item.argtypes = (
1364
1423
  )
1365
1424
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item.restype = ctypes.c_uint16
@@ -1788,9 +1847,13 @@ class BreezSdkProtocol(typing.Protocol):
1788
1847
  A unique identifier for the listener, which can be used to remove it later
1789
1848
  """
1790
1849
 
1850
+ raise NotImplementedError
1851
+ def check_lightning_address_available(self, req: "CheckLightningAddressRequest"):
1791
1852
  raise NotImplementedError
1792
1853
  def claim_deposit(self, request: "ClaimDepositRequest"):
1793
1854
  raise NotImplementedError
1855
+ def delete_lightning_address(self, ):
1856
+ raise NotImplementedError
1794
1857
  def disconnect(self, ):
1795
1858
  """
1796
1859
  Stops the SDK's background tasks
@@ -1809,6 +1872,8 @@ class BreezSdkProtocol(typing.Protocol):
1809
1872
  Returns the balance of the wallet in satoshis
1810
1873
  """
1811
1874
 
1875
+ raise NotImplementedError
1876
+ def get_lightning_address(self, ):
1812
1877
  raise NotImplementedError
1813
1878
  def get_payment(self, request: "GetPaymentRequest"):
1814
1879
  raise NotImplementedError
@@ -1842,9 +1907,17 @@ class BreezSdkProtocol(typing.Protocol):
1842
1907
  def prepare_send_payment(self, request: "PrepareSendPaymentRequest"):
1843
1908
  raise NotImplementedError
1844
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
+
1845
1916
  raise NotImplementedError
1846
1917
  def refund_deposit(self, request: "RefundDepositRequest"):
1847
1918
  raise NotImplementedError
1919
+ def register_lightning_address(self, request: "RegisterLightningAddressRequest"):
1920
+ raise NotImplementedError
1848
1921
  def remove_event_listener(self, id: "str"):
1849
1922
  """
1850
1923
  Removes a previously registered event listener
@@ -1924,6 +1997,27 @@ class BreezSdk:
1924
1997
 
1925
1998
 
1926
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
+
1927
2021
  async def claim_deposit(self, request: "ClaimDepositRequest") -> "ClaimDepositResponse":
1928
2022
  _UniffiConverterTypeClaimDepositRequest.check_lower(request)
1929
2023
 
@@ -1945,6 +2039,26 @@ _UniffiConverterTypeSdkError,
1945
2039
 
1946
2040
 
1947
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
+
1948
2062
 
1949
2063
  def disconnect(self, ) -> None:
1950
2064
  """
@@ -1989,6 +2103,24 @@ _UniffiConverterTypeSdkError,
1989
2103
 
1990
2104
 
1991
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
+
1992
2124
  async def get_payment(self, request: "GetPaymentRequest") -> "GetPaymentResponse":
1993
2125
  _UniffiConverterTypeGetPaymentRequest.check_lower(request)
1994
2126
 
@@ -2164,6 +2296,28 @@ _UniffiConverterTypeSdkError,
2164
2296
 
2165
2297
 
2166
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
+
2167
2321
  async def refund_deposit(self, request: "RefundDepositRequest") -> "RefundDepositResponse":
2168
2322
  _UniffiConverterTypeRefundDepositRequest.check_lower(request)
2169
2323
 
@@ -2185,6 +2339,27 @@ _UniffiConverterTypeSdkError,
2185
2339
 
2186
2340
 
2187
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
+
2188
2363
 
2189
2364
  def remove_event_listener(self, id: "str") -> "bool":
2190
2365
  """
@@ -2525,6 +2700,8 @@ class Storage(typing.Protocol):
2525
2700
  Trait for persistent storage
2526
2701
  """
2527
2702
 
2703
+ def delete_cached_item(self, key: "str"):
2704
+ raise NotImplementedError
2528
2705
  def get_cached_item(self, key: "str"):
2529
2706
  raise NotImplementedError
2530
2707
  def set_cached_item(self, key: "str",value: "str"):
@@ -2669,6 +2846,29 @@ class StorageImpl:
2669
2846
  inst._pointer = pointer
2670
2847
  return inst
2671
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
+
2672
2872
  async def get_cached_item(self, key: "str") -> "typing.Optional[str]":
2673
2873
  _UniffiConverterString.check_lower(key)
2674
2874
 
@@ -3012,6 +3212,38 @@ class _UniffiTraitImplStorage:
3012
3212
  # For each method, generate a callback function to pass to Rust
3013
3213
 
3014
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
3015
3247
  def get_cached_item(
3016
3248
  uniffi_handle,
3017
3249
  key,
@@ -3045,7 +3277,7 @@ class _UniffiTraitImplStorage:
3045
3277
  )
3046
3278
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3047
3279
 
3048
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD1
3280
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD2
3049
3281
  def set_cached_item(
3050
3282
  uniffi_handle,
3051
3283
  key,
@@ -3078,7 +3310,7 @@ class _UniffiTraitImplStorage:
3078
3310
  )
3079
3311
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3080
3312
 
3081
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD2
3313
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD3
3082
3314
  def list_payments(
3083
3315
  uniffi_handle,
3084
3316
  offset,
@@ -3113,7 +3345,7 @@ class _UniffiTraitImplStorage:
3113
3345
  )
3114
3346
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3115
3347
 
3116
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD3
3348
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD4
3117
3349
  def insert_payment(
3118
3350
  uniffi_handle,
3119
3351
  payment,
@@ -3145,7 +3377,7 @@ class _UniffiTraitImplStorage:
3145
3377
  )
3146
3378
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3147
3379
 
3148
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD4
3380
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD5
3149
3381
  def set_payment_metadata(
3150
3382
  uniffi_handle,
3151
3383
  payment_id,
@@ -3178,7 +3410,7 @@ class _UniffiTraitImplStorage:
3178
3410
  )
3179
3411
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3180
3412
 
3181
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD5
3413
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD6
3182
3414
  def get_payment_by_id(
3183
3415
  uniffi_handle,
3184
3416
  id,
@@ -3212,7 +3444,7 @@ class _UniffiTraitImplStorage:
3212
3444
  )
3213
3445
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3214
3446
 
3215
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD6
3447
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD7
3216
3448
  def add_deposit(
3217
3449
  uniffi_handle,
3218
3450
  txid,
@@ -3246,7 +3478,7 @@ class _UniffiTraitImplStorage:
3246
3478
  )
3247
3479
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3248
3480
 
3249
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD7
3481
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD8
3250
3482
  def delete_deposit(
3251
3483
  uniffi_handle,
3252
3484
  txid,
@@ -3279,7 +3511,7 @@ class _UniffiTraitImplStorage:
3279
3511
  )
3280
3512
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3281
3513
 
3282
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD8
3514
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD9
3283
3515
  def list_deposits(
3284
3516
  uniffi_handle,
3285
3517
  uniffi_future_callback,
@@ -3312,7 +3544,7 @@ class _UniffiTraitImplStorage:
3312
3544
  )
3313
3545
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
3314
3546
 
3315
- @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD9
3547
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD10
3316
3548
  def update_deposit(
3317
3549
  uniffi_handle,
3318
3550
  txid,
@@ -3352,6 +3584,7 @@ class _UniffiTraitImplStorage:
3352
3584
 
3353
3585
  # Generate the FFI VTable. This has a field for each callback interface method.
3354
3586
  _uniffi_vtable = _UniffiVTableCallbackInterfaceStorage(
3587
+ delete_cached_item,
3355
3588
  get_cached_item,
3356
3589
  set_cached_item,
3357
3590
  list_payments,
@@ -3397,6 +3630,35 @@ class _UniffiConverterTypeStorage:
3397
3630
  buf.write_u64(cls.lower(value))
3398
3631
 
3399
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
+
3400
3662
  class ClaimDepositRequest:
3401
3663
  txid: "str"
3402
3664
  vout: "int"
@@ -3477,14 +3739,20 @@ class Config:
3477
3739
  network: "Network"
3478
3740
  sync_interval_secs: "int"
3479
3741
  max_deposit_claim_fee: "typing.Optional[Fee]"
3480
- 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]"):
3481
3748
  self.api_key = api_key
3482
3749
  self.network = network
3483
3750
  self.sync_interval_secs = sync_interval_secs
3484
3751
  self.max_deposit_claim_fee = max_deposit_claim_fee
3752
+ self.lnurl_domain = lnurl_domain
3485
3753
 
3486
3754
  def __str__(self):
3487
- 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)
3488
3756
 
3489
3757
  def __eq__(self, other):
3490
3758
  if self.api_key != other.api_key:
@@ -3495,6 +3763,8 @@ class Config:
3495
3763
  return False
3496
3764
  if self.max_deposit_claim_fee != other.max_deposit_claim_fee:
3497
3765
  return False
3766
+ if self.lnurl_domain != other.lnurl_domain:
3767
+ return False
3498
3768
  return True
3499
3769
 
3500
3770
  class _UniffiConverterTypeConfig(_UniffiConverterRustBuffer):
@@ -3505,6 +3775,7 @@ class _UniffiConverterTypeConfig(_UniffiConverterRustBuffer):
3505
3775
  network=_UniffiConverterTypeNetwork.read(buf),
3506
3776
  sync_interval_secs=_UniffiConverterUInt32.read(buf),
3507
3777
  max_deposit_claim_fee=_UniffiConverterOptionalTypeFee.read(buf),
3778
+ lnurl_domain=_UniffiConverterOptionalString.read(buf),
3508
3779
  )
3509
3780
 
3510
3781
  @staticmethod
@@ -3513,6 +3784,7 @@ class _UniffiConverterTypeConfig(_UniffiConverterRustBuffer):
3513
3784
  _UniffiConverterTypeNetwork.check_lower(value.network)
3514
3785
  _UniffiConverterUInt32.check_lower(value.sync_interval_secs)
3515
3786
  _UniffiConverterOptionalTypeFee.check_lower(value.max_deposit_claim_fee)
3787
+ _UniffiConverterOptionalString.check_lower(value.lnurl_domain)
3516
3788
 
3517
3789
  @staticmethod
3518
3790
  def write(value, buf):
@@ -3520,6 +3792,7 @@ class _UniffiConverterTypeConfig(_UniffiConverterRustBuffer):
3520
3792
  _UniffiConverterTypeNetwork.write(value.network, buf)
3521
3793
  _UniffiConverterUInt32.write(value.sync_interval_secs, buf)
3522
3794
  _UniffiConverterOptionalTypeFee.write(value.max_deposit_claim_fee, buf)
3795
+ _UniffiConverterOptionalString.write(value.lnurl_domain, buf)
3523
3796
 
3524
3797
 
3525
3798
  class ConnectRequest:
@@ -3787,6 +4060,56 @@ class _UniffiConverterTypeGetPaymentResponse(_UniffiConverterRustBuffer):
3787
4060
  _UniffiConverterTypePayment.write(value.payment, buf)
3788
4061
 
3789
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
+
3790
4113
  class ListPaymentsRequest:
3791
4114
  """
3792
4115
  Request to list payments with pagination
@@ -4593,6 +4916,42 @@ class _UniffiConverterTypeRefundDepositResponse(_UniffiConverterRustBuffer):
4593
4916
  _UniffiConverterString.write(value.tx_hex, buf)
4594
4917
 
4595
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
+
4596
4955
  class SendOnchainFeeQuote:
4597
4956
  id: "str"
4598
4957
  expires_at: "int"
@@ -7013,6 +7372,33 @@ class _UniffiConverterOptionalTypeCredentials(_UniffiConverterRustBuffer):
7013
7372
 
7014
7373
 
7015
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
+
7016
7402
  class _UniffiConverterOptionalTypeLnurlPayInfo(_UniffiConverterRustBuffer):
7017
7403
  @classmethod
7018
7404
  def check_lower(cls, value):
@@ -7484,13 +7870,23 @@ def default_config(network: "Network") -> "Config":
7484
7870
  return _UniffiConverterTypeConfig.lift(_uniffi_rust_call(_UniffiLib.uniffi_breez_sdk_spark_fn_func_default_config,
7485
7871
  _UniffiConverterTypeNetwork.lower(network)))
7486
7872
 
7873
+ async def default_storage(data_dir: "str") -> "Storage":
7487
7874
 
7488
- def default_storage(data_dir: "str") -> "Storage":
7489
7875
  _UniffiConverterString.check_lower(data_dir)
7490
7876
 
7491
- return _UniffiConverterTypeStorage.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeSdkError,_UniffiLib.uniffi_breez_sdk_spark_fn_func_default_storage,
7492
- _UniffiConverterString.lower(data_dir)))
7877
+ return await _uniffi_rust_call_async(
7878
+ _UniffiLib.uniffi_breez_sdk_spark_fn_func_default_storage(
7879
+ _UniffiConverterString.lower(data_dir)),
7880
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_pointer,
7881
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_pointer,
7882
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_pointer,
7883
+ # lift function
7884
+ _UniffiConverterTypeStorage.lift,
7885
+
7886
+ # Error FFI converter
7887
+ _UniffiConverterTypeSdkError,
7493
7888
 
7889
+ )
7494
7890
 
7495
7891
  def init_logging(log_dir: "typing.Optional[str]",app_logger: "typing.Optional[Logger]",log_filter: "typing.Optional[str]") -> None:
7496
7892
  _UniffiConverterOptionalString.check_lower(log_dir)
@@ -7540,6 +7936,7 @@ __all__ = [
7540
7936
  "SendPaymentOptions",
7541
7937
  "StorageError",
7542
7938
  "UpdateDepositPayload",
7939
+ "CheckLightningAddressRequest",
7543
7940
  "ClaimDepositRequest",
7544
7941
  "ClaimDepositResponse",
7545
7942
  "Config",
@@ -7550,6 +7947,7 @@ __all__ = [
7550
7947
  "GetInfoResponse",
7551
7948
  "GetPaymentRequest",
7552
7949
  "GetPaymentResponse",
7950
+ "LightningAddressInfo",
7553
7951
  "ListPaymentsRequest",
7554
7952
  "ListPaymentsResponse",
7555
7953
  "ListUnclaimedDepositsRequest",
@@ -7568,6 +7966,7 @@ __all__ = [
7568
7966
  "ReceivePaymentResponse",
7569
7967
  "RefundDepositRequest",
7570
7968
  "RefundDepositResponse",
7969
+ "RegisterLightningAddressRequest",
7571
7970
  "SendOnchainFeeQuote",
7572
7971
  "SendOnchainSpeedFeeQuote",
7573
7972
  "SendPaymentRequest",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: breez_sdk_spark
3
- Version: 0.1.6
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=LwxTQZ0gyDP_uaeNCLm-ZIktY9hv6x0e22Q-hgFd-po,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=JZtaNWUOSEVfKwSGOK61lZOWxn4jkY-ChImP6GFqX_U,187283
3
- breez_sdk_spark/breez_sdk_spark.py,sha256=eFYqtynFU4DBFHQEnCfkHbQGRpgq9Ot6-M7N8hrPWRc,271648
4
- breez_sdk_spark/breez_sdk_spark_bindings.dll,sha256=Cu5-G1JJ5YnxMbMpuNQR9SecEL4D9brJLxlaeayItg8,9988608
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.6.dist-info/METADATA,sha256=q6kCOWCNtdOz7UR_FOTAqxJu30uODfS4S12KkVX1Ls0,568
9
- breez_sdk_spark-0.1.6.dist-info/WHEEL,sha256=LwxTQZ0gyDP_uaeNCLm-ZIktY9hv6x0e22Q-hgFd-po,97
10
- breez_sdk_spark-0.1.6.dist-info/top_level.txt,sha256=EWjZB7jCSH5bjyOrFhpRFW4Jfo8ykKdxJ7tqAOytwDU,16
11
- breez_sdk_spark-0.1.6.dist-info/RECORD,,