@breeztech/breez-sdk-spark-react-native 0.3.5-rc1 → 0.4.0-dev3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/android/CMakeLists.txt +0 -1
  2. package/cpp/breeztech-breez-sdk-spark-react-native.cpp +0 -2
  3. package/cpp/generated/breez_sdk_spark.cpp +4802 -907
  4. package/cpp/generated/breez_sdk_spark.hpp +175 -10
  5. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  6. package/lib/commonjs/generated/breez_sdk_spark.js +1240 -7403
  7. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  8. package/lib/commonjs/index.js +0 -14
  9. package/lib/commonjs/index.js.map +1 -1
  10. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  11. package/lib/module/generated/breez_sdk_spark.js +1241 -7387
  12. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  13. package/lib/module/index.js +0 -4
  14. package/lib/module/index.js.map +1 -1
  15. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +90 -5
  16. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  17. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +5010 -1276
  18. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  19. package/lib/typescript/commonjs/src/index.d.ts +0 -3
  20. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  21. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +90 -5
  22. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  23. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +5010 -1276
  24. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  25. package/lib/typescript/module/src/index.d.ts +0 -3
  26. package/lib/typescript/module/src/index.d.ts.map +1 -1
  27. package/package.json +1 -1
  28. package/src/generated/breez_sdk_spark-ffi.ts +255 -11
  29. package/src/generated/breez_sdk_spark.ts +14470 -7146
  30. package/src/index.tsx +0 -4
  31. package/cpp/generated/breez_sdk_common.cpp +0 -6758
  32. package/cpp/generated/breez_sdk_common.hpp +0 -372
  33. package/lib/commonjs/generated/breez_sdk_common-ffi.js +0 -44
  34. package/lib/commonjs/generated/breez_sdk_common-ffi.js.map +0 -1
  35. package/lib/commonjs/generated/breez_sdk_common.js +0 -4993
  36. package/lib/commonjs/generated/breez_sdk_common.js.map +0 -1
  37. package/lib/module/generated/breez_sdk_common-ffi.js +0 -43
  38. package/lib/module/generated/breez_sdk_common-ffi.js.map +0 -1
  39. package/lib/module/generated/breez_sdk_common.js +0 -4985
  40. package/lib/module/generated/breez_sdk_common.js.map +0 -1
  41. package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts +0 -214
  42. package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts.map +0 -1
  43. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +0 -3720
  44. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +0 -1
  45. package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts +0 -214
  46. package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts.map +0 -1
  47. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +0 -3720
  48. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +0 -1
  49. package/src/generated/breez_sdk_common-ffi.ts +0 -566
  50. package/src/generated/breez_sdk_common.ts +0 -7412
@@ -92,6 +92,9 @@ interface NativeModuleInterface {
92
92
  ptr: bigint,
93
93
  request: Uint8Array
94
94
  ): bigint;
95
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_user_settings(
96
+ ptr: bigint
97
+ ): bigint;
95
98
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_fiat_currencies(
96
99
  ptr: bigint
97
100
  ): bigint;
@@ -154,10 +157,28 @@ interface NativeModuleInterface {
154
157
  ptr: bigint,
155
158
  request: Uint8Array
156
159
  ): bigint;
160
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_update_user_settings(
161
+ ptr: bigint,
162
+ request: Uint8Array
163
+ ): bigint;
157
164
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_wait_for_payment(
158
165
  ptr: bigint,
159
166
  request: Uint8Array
160
167
  ): bigint;
168
+ ubrn_uniffi_breez_sdk_spark_fn_clone_fiatservice(
169
+ ptr: bigint,
170
+ uniffi_out_err: UniffiRustCallStatus
171
+ ): bigint;
172
+ ubrn_uniffi_breez_sdk_spark_fn_free_fiatservice(
173
+ ptr: bigint,
174
+ uniffi_out_err: UniffiRustCallStatus
175
+ ): void;
176
+ ubrn_uniffi_breez_sdk_spark_fn_method_fiatservice_fetch_fiat_currencies(
177
+ ptr: bigint
178
+ ): bigint;
179
+ ubrn_uniffi_breez_sdk_spark_fn_method_fiatservice_fetch_fiat_rates(
180
+ ptr: bigint
181
+ ): bigint;
161
182
  ubrn_uniffi_breez_sdk_spark_fn_clone_paymentobserver(
162
183
  ptr: bigint,
163
184
  uniffi_out_err: UniffiRustCallStatus
@@ -170,6 +191,31 @@ interface NativeModuleInterface {
170
191
  ptr: bigint,
171
192
  payments: Uint8Array
172
193
  ): bigint;
194
+ ubrn_uniffi_breez_sdk_spark_fn_clone_restclient(
195
+ ptr: bigint,
196
+ uniffi_out_err: UniffiRustCallStatus
197
+ ): bigint;
198
+ ubrn_uniffi_breez_sdk_spark_fn_free_restclient(
199
+ ptr: bigint,
200
+ uniffi_out_err: UniffiRustCallStatus
201
+ ): void;
202
+ ubrn_uniffi_breez_sdk_spark_fn_method_restclient_get_request(
203
+ ptr: bigint,
204
+ url: Uint8Array,
205
+ headers: Uint8Array
206
+ ): bigint;
207
+ ubrn_uniffi_breez_sdk_spark_fn_method_restclient_post_request(
208
+ ptr: bigint,
209
+ url: Uint8Array,
210
+ headers: Uint8Array,
211
+ body: Uint8Array
212
+ ): bigint;
213
+ ubrn_uniffi_breez_sdk_spark_fn_method_restclient_delete_request(
214
+ ptr: bigint,
215
+ url: Uint8Array,
216
+ headers: Uint8Array,
217
+ body: Uint8Array
218
+ ): bigint;
173
219
  ubrn_uniffi_breez_sdk_spark_fn_clone_sdkbuilder(
174
220
  ptr: bigint,
175
221
  uniffi_out_err: UniffiRustCallStatus
@@ -181,7 +227,6 @@ interface NativeModuleInterface {
181
227
  ubrn_uniffi_breez_sdk_spark_fn_constructor_sdkbuilder_new(
182
228
  config: Uint8Array,
183
229
  seed: Uint8Array,
184
- storage: bigint,
185
230
  uniffi_out_err: UniffiRustCallStatus
186
231
  ): bigint;
187
232
  ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_build(ptr: bigint): bigint;
@@ -189,6 +234,10 @@ interface NativeModuleInterface {
189
234
  ptr: bigint,
190
235
  chainService: bigint
191
236
  ): bigint;
237
+ ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_default_storage(
238
+ ptr: bigint,
239
+ storageDir: Uint8Array
240
+ ): bigint;
192
241
  ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_fiat_service(
193
242
  ptr: bigint,
194
243
  fiatService: bigint
@@ -216,6 +265,10 @@ interface NativeModuleInterface {
216
265
  url: Uint8Array,
217
266
  credentials: Uint8Array
218
267
  ): bigint;
268
+ ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_storage(
269
+ ptr: bigint,
270
+ storage: bigint
271
+ ): bigint;
219
272
  ubrn_uniffi_breez_sdk_spark_fn_clone_storage(
220
273
  ptr: bigint,
221
274
  uniffi_out_err: UniffiRustCallStatus
@@ -278,19 +331,57 @@ interface NativeModuleInterface {
278
331
  vout: number,
279
332
  payload: Uint8Array
280
333
  ): bigint;
334
+ ubrn_uniffi_breez_sdk_spark_fn_clone_syncstorage(
335
+ ptr: bigint,
336
+ uniffi_out_err: UniffiRustCallStatus
337
+ ): bigint;
338
+ ubrn_uniffi_breez_sdk_spark_fn_free_syncstorage(
339
+ ptr: bigint,
340
+ uniffi_out_err: UniffiRustCallStatus
341
+ ): void;
342
+ ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_add_outgoing_change(
343
+ ptr: bigint,
344
+ record: Uint8Array
345
+ ): bigint;
346
+ ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_complete_outgoing_sync(
347
+ ptr: bigint,
348
+ record: Uint8Array
349
+ ): bigint;
350
+ ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_get_pending_outgoing_changes(
351
+ ptr: bigint,
352
+ limit: number
353
+ ): bigint;
354
+ ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_get_last_revision(
355
+ ptr: bigint
356
+ ): bigint;
357
+ ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_insert_incoming_records(
358
+ ptr: bigint,
359
+ records: Uint8Array
360
+ ): bigint;
361
+ ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_delete_incoming_record(
362
+ ptr: bigint,
363
+ record: Uint8Array
364
+ ): bigint;
365
+ ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_rebase_pending_outgoing_records(
366
+ ptr: bigint,
367
+ revision: bigint
368
+ ): bigint;
369
+ ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_get_incoming_records(
370
+ ptr: bigint,
371
+ limit: number
372
+ ): bigint;
373
+ ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_get_latest_outgoing_change(
374
+ ptr: bigint
375
+ ): bigint;
376
+ ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_update_record_from_incoming(
377
+ ptr: bigint,
378
+ record: Uint8Array
379
+ ): bigint;
281
380
  ubrn_uniffi_breez_sdk_spark_fn_func_connect(request: Uint8Array): bigint;
282
381
  ubrn_uniffi_breez_sdk_spark_fn_func_default_config(
283
382
  network: Uint8Array,
284
383
  uniffi_out_err: UniffiRustCallStatus
285
384
  ): Uint8Array;
286
- ubrn_uniffi_breez_sdk_spark_fn_func_default_storage(
287
- dataDir: Uint8Array,
288
- uniffi_out_err: UniffiRustCallStatus
289
- ): bigint;
290
- ubrn_uniffi_breez_sdk_spark_fn_func_default_sync_storage(
291
- dataDir: Uint8Array,
292
- uniffi_out_err: UniffiRustCallStatus
293
- ): bigint;
294
385
  ubrn_uniffi_breez_sdk_spark_fn_func_init_logging(
295
386
  logDir: Uint8Array,
296
387
  appLogger: Uint8Array,
@@ -442,8 +533,6 @@ interface NativeModuleInterface {
442
533
  ): void;
443
534
  ubrn_uniffi_breez_sdk_spark_checksum_func_connect(): number;
444
535
  ubrn_uniffi_breez_sdk_spark_checksum_func_default_config(): number;
445
- ubrn_uniffi_breez_sdk_spark_checksum_func_default_storage(): number;
446
- ubrn_uniffi_breez_sdk_spark_checksum_func_default_sync_storage(): number;
447
536
  ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging(): number;
448
537
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos(): number;
449
538
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status(): number;
@@ -459,6 +548,7 @@ interface NativeModuleInterface {
459
548
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address(): number;
460
549
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment(): number;
461
550
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata(): number;
551
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings(): number;
462
552
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies(): number;
463
553
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates(): number;
464
554
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments(): number;
@@ -475,16 +565,24 @@ interface NativeModuleInterface {
475
565
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(): number;
476
566
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message(): number;
477
567
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(): number;
568
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings(): number;
478
569
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_wait_for_payment(): number;
570
+ ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies(): number;
571
+ ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates(): number;
479
572
  ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send(): number;
573
+ ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request(): number;
574
+ ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request(): number;
575
+ ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request(): number;
480
576
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build(): number;
481
577
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service(): number;
578
+ ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage(): number;
482
579
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service(): number;
483
580
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set(): number;
484
581
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client(): number;
485
582
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer(): number;
486
583
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_real_time_sync_storage(): number;
487
584
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service(): number;
585
+ ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage(): number;
488
586
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item(): number;
489
587
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item(): number;
490
588
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item(): number;
@@ -497,6 +595,16 @@ interface NativeModuleInterface {
497
595
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit(): number;
498
596
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits(): number;
499
597
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit(): number;
598
+ ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change(): number;
599
+ ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync(): number;
600
+ ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes(): number;
601
+ ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision(): number;
602
+ ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records(): number;
603
+ ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record(): number;
604
+ ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records(): number;
605
+ ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records(): number;
606
+ ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change(): number;
607
+ ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming(): number;
500
608
  ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new(): number;
501
609
  ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event(): number;
502
610
  ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log(): number;
@@ -510,12 +618,21 @@ interface NativeModuleInterface {
510
618
  ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
511
619
  vtable: UniffiVTableCallbackInterfaceBitcoinChainService
512
620
  ): void;
621
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
622
+ vtable: UniffiVTableCallbackInterfaceFiatService
623
+ ): void;
513
624
  ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
514
625
  vtable: UniffiVTableCallbackInterfacePaymentObserver
515
626
  ): void;
627
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
628
+ vtable: UniffiVTableCallbackInterfaceRestClient
629
+ ): void;
516
630
  ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
517
631
  vtable: UniffiVTableCallbackInterfaceStorage
518
632
  ): void;
633
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_syncstorage(
634
+ vtable: UniffiVTableCallbackInterfaceSyncStorage
635
+ ): void;
519
636
  ubrn_uniffi_internal_fn_method_bitcoinchainservice_ffi__bless_pointer(
520
637
  pointer: bigint,
521
638
  uniffi_out_err: UniffiRustCallStatus
@@ -524,10 +641,18 @@ interface NativeModuleInterface {
524
641
  pointer: bigint,
525
642
  uniffi_out_err: UniffiRustCallStatus
526
643
  ): UniffiRustArcPtr;
644
+ ubrn_uniffi_internal_fn_method_fiatservice_ffi__bless_pointer(
645
+ pointer: bigint,
646
+ uniffi_out_err: UniffiRustCallStatus
647
+ ): UniffiRustArcPtr;
527
648
  ubrn_uniffi_internal_fn_method_paymentobserver_ffi__bless_pointer(
528
649
  pointer: bigint,
529
650
  uniffi_out_err: UniffiRustCallStatus
530
651
  ): UniffiRustArcPtr;
652
+ ubrn_uniffi_internal_fn_method_restclient_ffi__bless_pointer(
653
+ pointer: bigint,
654
+ uniffi_out_err: UniffiRustCallStatus
655
+ ): UniffiRustArcPtr;
531
656
  ubrn_uniffi_internal_fn_method_sdkbuilder_ffi__bless_pointer(
532
657
  pointer: bigint,
533
658
  uniffi_out_err: UniffiRustCallStatus
@@ -536,6 +661,10 @@ interface NativeModuleInterface {
536
661
  pointer: bigint,
537
662
  uniffi_out_err: UniffiRustCallStatus
538
663
  ): UniffiRustArcPtr;
664
+ ubrn_uniffi_internal_fn_method_syncstorage_ffi__bless_pointer(
665
+ pointer: bigint,
666
+ uniffi_out_err: UniffiRustCallStatus
667
+ ): UniffiRustArcPtr;
539
668
  }
540
669
 
541
670
  // Casting globalThis to any allows us to look for `NativeBreezSdkSpark`
@@ -695,12 +824,45 @@ type UniffiCallbackInterfaceBitcoinChainServiceMethod3 = (
695
824
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
696
825
  uniffiCallbackData: bigint
697
826
  ) => UniffiResult<UniffiForeignFuture>;
827
+ type UniffiCallbackInterfaceFiatServiceMethod0 = (
828
+ uniffiHandle: bigint,
829
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
830
+ uniffiCallbackData: bigint
831
+ ) => UniffiResult<UniffiForeignFuture>;
832
+ type UniffiCallbackInterfaceFiatServiceMethod1 = (
833
+ uniffiHandle: bigint,
834
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
835
+ uniffiCallbackData: bigint
836
+ ) => UniffiResult<UniffiForeignFuture>;
698
837
  type UniffiCallbackInterfacePaymentObserverMethod0 = (
699
838
  uniffiHandle: bigint,
700
839
  payments: Uint8Array,
701
840
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
702
841
  uniffiCallbackData: bigint
703
842
  ) => UniffiResult<UniffiForeignFuture>;
843
+ type UniffiCallbackInterfaceRestClientMethod0 = (
844
+ uniffiHandle: bigint,
845
+ url: Uint8Array,
846
+ headers: Uint8Array,
847
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
848
+ uniffiCallbackData: bigint
849
+ ) => UniffiResult<UniffiForeignFuture>;
850
+ type UniffiCallbackInterfaceRestClientMethod1 = (
851
+ uniffiHandle: bigint,
852
+ url: Uint8Array,
853
+ headers: Uint8Array,
854
+ body: Uint8Array,
855
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
856
+ uniffiCallbackData: bigint
857
+ ) => UniffiResult<UniffiForeignFuture>;
858
+ type UniffiCallbackInterfaceRestClientMethod2 = (
859
+ uniffiHandle: bigint,
860
+ url: Uint8Array,
861
+ headers: Uint8Array,
862
+ body: Uint8Array,
863
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
864
+ uniffiCallbackData: bigint
865
+ ) => UniffiResult<UniffiForeignFuture>;
704
866
  type UniffiCallbackInterfaceStorageMethod0 = (
705
867
  uniffiHandle: bigint,
706
868
  key: Uint8Array,
@@ -779,6 +941,64 @@ type UniffiCallbackInterfaceStorageMethod11 = (
779
941
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
780
942
  uniffiCallbackData: bigint
781
943
  ) => UniffiResult<UniffiForeignFuture>;
944
+ type UniffiCallbackInterfaceSyncStorageMethod0 = (
945
+ uniffiHandle: bigint,
946
+ record: Uint8Array,
947
+ uniffiFutureCallback: UniffiForeignFutureCompleteU64,
948
+ uniffiCallbackData: bigint
949
+ ) => UniffiResult<UniffiForeignFuture>;
950
+ type UniffiCallbackInterfaceSyncStorageMethod1 = (
951
+ uniffiHandle: bigint,
952
+ record: Uint8Array,
953
+ uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
954
+ uniffiCallbackData: bigint
955
+ ) => UniffiResult<UniffiForeignFuture>;
956
+ type UniffiCallbackInterfaceSyncStorageMethod2 = (
957
+ uniffiHandle: bigint,
958
+ limit: number,
959
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
960
+ uniffiCallbackData: bigint
961
+ ) => UniffiResult<UniffiForeignFuture>;
962
+ type UniffiCallbackInterfaceSyncStorageMethod3 = (
963
+ uniffiHandle: bigint,
964
+ uniffiFutureCallback: UniffiForeignFutureCompleteU64,
965
+ uniffiCallbackData: bigint
966
+ ) => UniffiResult<UniffiForeignFuture>;
967
+ type UniffiCallbackInterfaceSyncStorageMethod4 = (
968
+ uniffiHandle: bigint,
969
+ records: Uint8Array,
970
+ uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
971
+ uniffiCallbackData: bigint
972
+ ) => UniffiResult<UniffiForeignFuture>;
973
+ type UniffiCallbackInterfaceSyncStorageMethod5 = (
974
+ uniffiHandle: bigint,
975
+ record: Uint8Array,
976
+ uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
977
+ uniffiCallbackData: bigint
978
+ ) => UniffiResult<UniffiForeignFuture>;
979
+ type UniffiCallbackInterfaceSyncStorageMethod6 = (
980
+ uniffiHandle: bigint,
981
+ revision: bigint,
982
+ uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
983
+ uniffiCallbackData: bigint
984
+ ) => UniffiResult<UniffiForeignFuture>;
985
+ type UniffiCallbackInterfaceSyncStorageMethod7 = (
986
+ uniffiHandle: bigint,
987
+ limit: number,
988
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
989
+ uniffiCallbackData: bigint
990
+ ) => UniffiResult<UniffiForeignFuture>;
991
+ type UniffiCallbackInterfaceSyncStorageMethod8 = (
992
+ uniffiHandle: bigint,
993
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
994
+ uniffiCallbackData: bigint
995
+ ) => UniffiResult<UniffiForeignFuture>;
996
+ type UniffiCallbackInterfaceSyncStorageMethod9 = (
997
+ uniffiHandle: bigint,
998
+ record: Uint8Array,
999
+ uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1000
+ uniffiCallbackData: bigint
1001
+ ) => UniffiResult<UniffiForeignFuture>;
782
1002
  export type UniffiVTableCallbackInterfaceEventListener = {
783
1003
  onEvent: UniffiCallbackInterfaceEventListenerMethod0;
784
1004
  uniffiFree: UniffiCallbackInterfaceFree;
@@ -794,10 +1014,21 @@ export type UniffiVTableCallbackInterfaceBitcoinChainService = {
794
1014
  broadcastTransaction: UniffiCallbackInterfaceBitcoinChainServiceMethod3;
795
1015
  uniffiFree: UniffiCallbackInterfaceFree;
796
1016
  };
1017
+ export type UniffiVTableCallbackInterfaceFiatService = {
1018
+ fetchFiatCurrencies: UniffiCallbackInterfaceFiatServiceMethod0;
1019
+ fetchFiatRates: UniffiCallbackInterfaceFiatServiceMethod1;
1020
+ uniffiFree: UniffiCallbackInterfaceFree;
1021
+ };
797
1022
  export type UniffiVTableCallbackInterfacePaymentObserver = {
798
1023
  beforeSend: UniffiCallbackInterfacePaymentObserverMethod0;
799
1024
  uniffiFree: UniffiCallbackInterfaceFree;
800
1025
  };
1026
+ export type UniffiVTableCallbackInterfaceRestClient = {
1027
+ getRequest: UniffiCallbackInterfaceRestClientMethod0;
1028
+ postRequest: UniffiCallbackInterfaceRestClientMethod1;
1029
+ deleteRequest: UniffiCallbackInterfaceRestClientMethod2;
1030
+ uniffiFree: UniffiCallbackInterfaceFree;
1031
+ };
801
1032
  export type UniffiVTableCallbackInterfaceStorage = {
802
1033
  deleteCachedItem: UniffiCallbackInterfaceStorageMethod0;
803
1034
  getCachedItem: UniffiCallbackInterfaceStorageMethod1;
@@ -813,6 +1044,19 @@ export type UniffiVTableCallbackInterfaceStorage = {
813
1044
  updateDeposit: UniffiCallbackInterfaceStorageMethod11;
814
1045
  uniffiFree: UniffiCallbackInterfaceFree;
815
1046
  };
1047
+ export type UniffiVTableCallbackInterfaceSyncStorage = {
1048
+ addOutgoingChange: UniffiCallbackInterfaceSyncStorageMethod0;
1049
+ completeOutgoingSync: UniffiCallbackInterfaceSyncStorageMethod1;
1050
+ getPendingOutgoingChanges: UniffiCallbackInterfaceSyncStorageMethod2;
1051
+ getLastRevision: UniffiCallbackInterfaceSyncStorageMethod3;
1052
+ insertIncomingRecords: UniffiCallbackInterfaceSyncStorageMethod4;
1053
+ deleteIncomingRecord: UniffiCallbackInterfaceSyncStorageMethod5;
1054
+ rebasePendingOutgoingRecords: UniffiCallbackInterfaceSyncStorageMethod6;
1055
+ getIncomingRecords: UniffiCallbackInterfaceSyncStorageMethod7;
1056
+ getLatestOutgoingChange: UniffiCallbackInterfaceSyncStorageMethod8;
1057
+ updateRecordFromIncoming: UniffiCallbackInterfaceSyncStorageMethod9;
1058
+ uniffiFree: UniffiCallbackInterfaceFree;
1059
+ };
816
1060
 
817
1061
  // UniffiRustFutureContinuationCallback is generated as part of the component interface's
818
1062
  // ffi_definitions. However, we need it in the runtime.