@breeztech/breez-sdk-spark-react-native 0.13.11-dev1 → 0.14.0
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.
- package/cpp/generated/breez_sdk_spark.cpp +1244 -100
- package/cpp/generated/breez_sdk_spark.hpp +88 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +152 -3
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +151 -2
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +33 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +390 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +33 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +390 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/generated/breez_sdk_spark-ffi.ts +100 -0
- package/src/generated/breez_sdk_spark.ts +1112 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breeztech/breez-sdk-spark-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "React Native bindings for the Breez SDK - Nodeless (Spark Implementation)",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
"version": "0.49.0"
|
|
198
198
|
},
|
|
199
199
|
"checksums": {
|
|
200
|
-
"android": "
|
|
201
|
-
"ios": "
|
|
200
|
+
"android": "82b045915ff5664cfe03f5001640236ef90a1e4f671ef791473e23888115b37e",
|
|
201
|
+
"ios": "4c9df5b7fa00a753cada469b0e50376f65e9ca0691d8de6b5299144fd63e1a03"
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -227,6 +227,14 @@ interface NativeModuleInterface {
|
|
|
227
227
|
ptr: bigint,
|
|
228
228
|
request: Uint8Array
|
|
229
229
|
): bigint;
|
|
230
|
+
ubrn_uniffi_breez_sdk_spark_fn_clone_connectionmanager(
|
|
231
|
+
ptr: bigint,
|
|
232
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
233
|
+
): bigint;
|
|
234
|
+
ubrn_uniffi_breez_sdk_spark_fn_free_connectionmanager(
|
|
235
|
+
ptr: bigint,
|
|
236
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
237
|
+
): void;
|
|
230
238
|
ubrn_uniffi_breez_sdk_spark_fn_clone_externalsigner(
|
|
231
239
|
ptr: bigint,
|
|
232
240
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -449,6 +457,10 @@ interface NativeModuleInterface {
|
|
|
449
457
|
ptr: bigint,
|
|
450
458
|
chainService: bigint
|
|
451
459
|
): bigint;
|
|
460
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_connection_manager(
|
|
461
|
+
ptr: bigint,
|
|
462
|
+
connectionManager: bigint
|
|
463
|
+
): bigint;
|
|
452
464
|
ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_default_storage(
|
|
453
465
|
ptr: bigint,
|
|
454
466
|
storageDir: Uint8Array
|
|
@@ -475,10 +487,46 @@ interface NativeModuleInterface {
|
|
|
475
487
|
apiType: Uint8Array,
|
|
476
488
|
credentials: Uint8Array
|
|
477
489
|
): bigint;
|
|
490
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_session_manager(
|
|
491
|
+
ptr: bigint,
|
|
492
|
+
sessionManager: bigint
|
|
493
|
+
): bigint;
|
|
494
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_ssp_connection_manager(
|
|
495
|
+
ptr: bigint,
|
|
496
|
+
manager: bigint
|
|
497
|
+
): bigint;
|
|
478
498
|
ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_storage(
|
|
479
499
|
ptr: bigint,
|
|
480
500
|
storage: bigint
|
|
481
501
|
): bigint;
|
|
502
|
+
ubrn_uniffi_breez_sdk_spark_fn_clone_sessionmanager(
|
|
503
|
+
ptr: bigint,
|
|
504
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
505
|
+
): bigint;
|
|
506
|
+
ubrn_uniffi_breez_sdk_spark_fn_free_sessionmanager(
|
|
507
|
+
ptr: bigint,
|
|
508
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
509
|
+
): void;
|
|
510
|
+
ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_sessionmanager(
|
|
511
|
+
vtable: UniffiVTableCallbackInterfaceSessionManager
|
|
512
|
+
): void;
|
|
513
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_sessionmanager_get_session(
|
|
514
|
+
ptr: bigint,
|
|
515
|
+
serviceIdentityKey: Uint8Array
|
|
516
|
+
): bigint;
|
|
517
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_sessionmanager_set_session(
|
|
518
|
+
ptr: bigint,
|
|
519
|
+
serviceIdentityKey: Uint8Array,
|
|
520
|
+
session: Uint8Array
|
|
521
|
+
): bigint;
|
|
522
|
+
ubrn_uniffi_breez_sdk_spark_fn_clone_sspconnectionmanager(
|
|
523
|
+
ptr: bigint,
|
|
524
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
525
|
+
): bigint;
|
|
526
|
+
ubrn_uniffi_breez_sdk_spark_fn_free_sspconnectionmanager(
|
|
527
|
+
ptr: bigint,
|
|
528
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
529
|
+
): void;
|
|
482
530
|
ubrn_uniffi_breez_sdk_spark_fn_clone_storage(
|
|
483
531
|
ptr: bigint,
|
|
484
532
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -666,6 +714,20 @@ interface NativeModuleInterface {
|
|
|
666
714
|
logFilter: Uint8Array,
|
|
667
715
|
uniffi_out_err: UniffiRustCallStatus
|
|
668
716
|
): void;
|
|
717
|
+
ubrn_uniffi_breez_sdk_spark_fn_func_new_connection_manager(
|
|
718
|
+
connectionsPerOperator: Uint8Array,
|
|
719
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
720
|
+
): bigint;
|
|
721
|
+
ubrn_uniffi_breez_sdk_spark_fn_func_new_rest_chain_service(
|
|
722
|
+
url: Uint8Array,
|
|
723
|
+
network: Uint8Array,
|
|
724
|
+
apiType: Uint8Array,
|
|
725
|
+
credentials: Uint8Array
|
|
726
|
+
): bigint;
|
|
727
|
+
ubrn_uniffi_breez_sdk_spark_fn_func_new_ssp_connection_manager(
|
|
728
|
+
userAgent: Uint8Array,
|
|
729
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
730
|
+
): bigint;
|
|
669
731
|
ubrn_ffi_breez_sdk_spark_rust_future_poll_u8(
|
|
670
732
|
handle: bigint,
|
|
671
733
|
callback: UniffiRustFutureContinuationCallback,
|
|
@@ -815,6 +877,9 @@ interface NativeModuleInterface {
|
|
|
815
877
|
ubrn_uniffi_breez_sdk_spark_checksum_func_default_external_signer(): number;
|
|
816
878
|
ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status(): number;
|
|
817
879
|
ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging(): number;
|
|
880
|
+
ubrn_uniffi_breez_sdk_spark_checksum_func_new_connection_manager(): number;
|
|
881
|
+
ubrn_uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service(): number;
|
|
882
|
+
ubrn_uniffi_breez_sdk_spark_checksum_func_new_ssp_connection_manager(): number;
|
|
818
883
|
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos(): number;
|
|
819
884
|
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status(): number;
|
|
820
885
|
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex(): number;
|
|
@@ -898,13 +963,18 @@ interface NativeModuleInterface {
|
|
|
898
963
|
ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request(): number;
|
|
899
964
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build(): number;
|
|
900
965
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service(): number;
|
|
966
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_connection_manager(): number;
|
|
901
967
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage(): number;
|
|
902
968
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service(): number;
|
|
903
969
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set(): number;
|
|
904
970
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client(): number;
|
|
905
971
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer(): number;
|
|
906
972
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service(): number;
|
|
973
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_manager(): number;
|
|
974
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_ssp_connection_manager(): number;
|
|
907
975
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage(): number;
|
|
976
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_sessionmanager_get_session(): number;
|
|
977
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_sessionmanager_set_session(): number;
|
|
908
978
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item(): number;
|
|
909
979
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item(): number;
|
|
910
980
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item(): number;
|
|
@@ -952,6 +1022,10 @@ interface NativeModuleInterface {
|
|
|
952
1022
|
pointer: bigint,
|
|
953
1023
|
uniffi_out_err: UniffiRustCallStatus
|
|
954
1024
|
): UniffiRustArcPtr;
|
|
1025
|
+
ubrn_uniffi_internal_fn_method_connectionmanager_ffi__bless_pointer(
|
|
1026
|
+
pointer: bigint,
|
|
1027
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
1028
|
+
): UniffiRustArcPtr;
|
|
955
1029
|
ubrn_uniffi_internal_fn_method_externalsigner_ffi__bless_pointer(
|
|
956
1030
|
pointer: bigint,
|
|
957
1031
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -980,6 +1054,14 @@ interface NativeModuleInterface {
|
|
|
980
1054
|
pointer: bigint,
|
|
981
1055
|
uniffi_out_err: UniffiRustCallStatus
|
|
982
1056
|
): UniffiRustArcPtr;
|
|
1057
|
+
ubrn_uniffi_internal_fn_method_sessionmanager_ffi__bless_pointer(
|
|
1058
|
+
pointer: bigint,
|
|
1059
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
1060
|
+
): UniffiRustArcPtr;
|
|
1061
|
+
ubrn_uniffi_internal_fn_method_sspconnectionmanager_ffi__bless_pointer(
|
|
1062
|
+
pointer: bigint,
|
|
1063
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
1064
|
+
): UniffiRustArcPtr;
|
|
983
1065
|
ubrn_uniffi_internal_fn_method_storage_ffi__bless_pointer(
|
|
984
1066
|
pointer: bigint,
|
|
985
1067
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -1327,6 +1409,19 @@ type UniffiCallbackInterfaceRestClientMethod2 = (
|
|
|
1327
1409
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1328
1410
|
uniffiCallbackData: bigint
|
|
1329
1411
|
) => UniffiForeignFuture;
|
|
1412
|
+
type UniffiCallbackInterfaceSessionManagerMethod0 = (
|
|
1413
|
+
uniffiHandle: bigint,
|
|
1414
|
+
serviceIdentityKey: Uint8Array,
|
|
1415
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1416
|
+
uniffiCallbackData: bigint
|
|
1417
|
+
) => UniffiForeignFuture;
|
|
1418
|
+
type UniffiCallbackInterfaceSessionManagerMethod1 = (
|
|
1419
|
+
uniffiHandle: bigint,
|
|
1420
|
+
serviceIdentityKey: Uint8Array,
|
|
1421
|
+
session: Uint8Array,
|
|
1422
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
1423
|
+
uniffiCallbackData: bigint
|
|
1424
|
+
) => UniffiForeignFuture;
|
|
1330
1425
|
type UniffiCallbackInterfaceStorageMethod0 = (
|
|
1331
1426
|
uniffiHandle: bigint,
|
|
1332
1427
|
key: Uint8Array,
|
|
@@ -1554,6 +1649,11 @@ export type UniffiVTableCallbackInterfaceRestClient = {
|
|
|
1554
1649
|
deleteRequest: UniffiCallbackInterfaceRestClientMethod2;
|
|
1555
1650
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
1556
1651
|
};
|
|
1652
|
+
export type UniffiVTableCallbackInterfaceSessionManager = {
|
|
1653
|
+
getSession: UniffiCallbackInterfaceSessionManagerMethod0;
|
|
1654
|
+
setSession: UniffiCallbackInterfaceSessionManagerMethod1;
|
|
1655
|
+
uniffiFree: UniffiCallbackInterfaceFree;
|
|
1656
|
+
};
|
|
1557
1657
|
export type UniffiVTableCallbackInterfaceStorage = {
|
|
1558
1658
|
deleteCachedItem: UniffiCallbackInterfaceStorageMethod0;
|
|
1559
1659
|
getCachedItem: UniffiCallbackInterfaceStorageMethod1;
|