@breeztech/breez-sdk-spark-react-native 0.9.0 → 0.10.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/lib/commonjs/generated/breez_sdk_spark.js +44 -9
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +43 -8
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +224 -4
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +224 -4
- 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.ts +427 -9
|
@@ -785,6 +785,17 @@ export type Config = {
|
|
|
785
785
|
* once the balance exceeds the threshold.
|
|
786
786
|
*/
|
|
787
787
|
stableBalanceConfig: StableBalanceConfig | undefined;
|
|
788
|
+
/**
|
|
789
|
+
* Maximum number of concurrent transfer claims.
|
|
790
|
+
*
|
|
791
|
+
* Default is 4. Increase for server environments with high incoming payment volume.
|
|
792
|
+
*/
|
|
793
|
+
maxConcurrentClaims: number;
|
|
794
|
+
/**
|
|
795
|
+
* When true, enables LNURL verify support (LUD-21) and zap receipts (NIP-57).
|
|
796
|
+
* When false (default), these features are disabled for privacy.
|
|
797
|
+
*/
|
|
798
|
+
supportLnurlVerify: boolean;
|
|
788
799
|
};
|
|
789
800
|
/**
|
|
790
801
|
* Generated factory for {@link Config} record objects.
|
|
@@ -2845,11 +2856,15 @@ export type OptimizationConfig = {
|
|
|
2845
2856
|
*/
|
|
2846
2857
|
autoEnabled: boolean;
|
|
2847
2858
|
/**
|
|
2848
|
-
* The desired multiplicity for the leaf set.
|
|
2859
|
+
* The desired multiplicity for the leaf set.
|
|
2849
2860
|
*
|
|
2850
2861
|
* Setting this to 0 will optimize for maximizing unilateral exit.
|
|
2851
2862
|
* Higher values will optimize for minimizing transfer swaps, with higher values
|
|
2852
|
-
* being more aggressive.
|
|
2863
|
+
* being more aggressive and allowing better TPS rates.
|
|
2864
|
+
*
|
|
2865
|
+
* For end-user wallets, values of 1-5 are recommended. Values above 5 are
|
|
2866
|
+
* intended for high-throughput server environments and are not recommended
|
|
2867
|
+
* for end-user wallets due to significantly higher unilateral exit costs.
|
|
2853
2868
|
*
|
|
2854
2869
|
* Default value is 1.
|
|
2855
2870
|
*/
|
|
@@ -3701,6 +3716,7 @@ export type SetLnurlMetadataItem = {
|
|
|
3701
3716
|
senderComment: string | undefined;
|
|
3702
3717
|
nostrZapRequest: string | undefined;
|
|
3703
3718
|
nostrZapReceipt: string | undefined;
|
|
3719
|
+
preimage: string | undefined;
|
|
3704
3720
|
};
|
|
3705
3721
|
/**
|
|
3706
3722
|
* Generated factory for {@link SetLnurlMetadataItem} record objects.
|
|
@@ -4064,6 +4080,40 @@ export declare const StableBalanceConfig: Readonly<{
|
|
|
4064
4080
|
*/
|
|
4065
4081
|
defaults: () => Partial<StableBalanceConfig>;
|
|
4066
4082
|
}>;
|
|
4083
|
+
/**
|
|
4084
|
+
* Storage-internal variant of [`ListPaymentsRequest`] that uses
|
|
4085
|
+
* [`StoragePaymentDetailsFilter`] instead of the public [`PaymentDetailsFilter`].
|
|
4086
|
+
*/
|
|
4087
|
+
export type StorageListPaymentsRequest = {
|
|
4088
|
+
typeFilter: Array<PaymentType> | undefined;
|
|
4089
|
+
statusFilter: Array<PaymentStatus> | undefined;
|
|
4090
|
+
assetFilter: AssetFilter | undefined;
|
|
4091
|
+
paymentDetailsFilter: Array<StoragePaymentDetailsFilter> | undefined;
|
|
4092
|
+
fromTimestamp: /*u64*/ bigint | undefined;
|
|
4093
|
+
toTimestamp: /*u64*/ bigint | undefined;
|
|
4094
|
+
offset: /*u32*/ number | undefined;
|
|
4095
|
+
limit: /*u32*/ number | undefined;
|
|
4096
|
+
sortAscending: boolean | undefined;
|
|
4097
|
+
};
|
|
4098
|
+
/**
|
|
4099
|
+
* Generated factory for {@link StorageListPaymentsRequest} record objects.
|
|
4100
|
+
*/
|
|
4101
|
+
export declare const StorageListPaymentsRequest: Readonly<{
|
|
4102
|
+
/**
|
|
4103
|
+
* Create a frozen instance of {@link StorageListPaymentsRequest}, with defaults specified
|
|
4104
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
4105
|
+
*/
|
|
4106
|
+
create: (partial: Partial<StorageListPaymentsRequest> & Required<Omit<StorageListPaymentsRequest, "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "offset" | "limit" | "sortAscending">>) => StorageListPaymentsRequest;
|
|
4107
|
+
/**
|
|
4108
|
+
* Create a frozen instance of {@link StorageListPaymentsRequest}, with defaults specified
|
|
4109
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
4110
|
+
*/
|
|
4111
|
+
new: (partial: Partial<StorageListPaymentsRequest> & Required<Omit<StorageListPaymentsRequest, "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "offset" | "limit" | "sortAscending">>) => StorageListPaymentsRequest;
|
|
4112
|
+
/**
|
|
4113
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
4114
|
+
*/
|
|
4115
|
+
defaults: () => Partial<StorageListPaymentsRequest>;
|
|
4116
|
+
}>;
|
|
4067
4117
|
/**
|
|
4068
4118
|
* Settings for the symbol representation of a currency
|
|
4069
4119
|
*/
|
|
@@ -10760,6 +10810,162 @@ export declare const StorageError: Readonly<{
|
|
|
10760
10810
|
* Errors that can occur during storage operations
|
|
10761
10811
|
*/
|
|
10762
10812
|
export type StorageError = InstanceType<(typeof StorageError)[keyof Omit<typeof StorageError, 'instanceOf'>]>;
|
|
10813
|
+
export declare enum StoragePaymentDetailsFilter_Tags {
|
|
10814
|
+
Spark = "Spark",
|
|
10815
|
+
Token = "Token",
|
|
10816
|
+
Lightning = "Lightning"
|
|
10817
|
+
}
|
|
10818
|
+
/**
|
|
10819
|
+
* Storage-internal variant of [`PaymentDetailsFilter`] that includes the
|
|
10820
|
+
* `has_lnurl_preimage` field on the `Lightning` variant, which is not exposed
|
|
10821
|
+
* in the public API.
|
|
10822
|
+
*/
|
|
10823
|
+
export declare const StoragePaymentDetailsFilter: Readonly<{
|
|
10824
|
+
instanceOf: (obj: any) => obj is StoragePaymentDetailsFilter;
|
|
10825
|
+
Spark: {
|
|
10826
|
+
new (inner: {
|
|
10827
|
+
htlcStatus: Array<SparkHtlcStatus> | undefined;
|
|
10828
|
+
conversionRefundNeeded: boolean | undefined;
|
|
10829
|
+
}): {
|
|
10830
|
+
readonly tag: StoragePaymentDetailsFilter_Tags.Spark;
|
|
10831
|
+
readonly inner: Readonly<{
|
|
10832
|
+
htlcStatus: Array<SparkHtlcStatus> | undefined;
|
|
10833
|
+
conversionRefundNeeded: boolean | undefined;
|
|
10834
|
+
}>;
|
|
10835
|
+
/**
|
|
10836
|
+
* @private
|
|
10837
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10838
|
+
*/
|
|
10839
|
+
readonly [uniffiTypeNameSymbol]: "StoragePaymentDetailsFilter";
|
|
10840
|
+
};
|
|
10841
|
+
"new"(inner: {
|
|
10842
|
+
htlcStatus: Array<SparkHtlcStatus> | undefined;
|
|
10843
|
+
conversionRefundNeeded: boolean | undefined;
|
|
10844
|
+
}): {
|
|
10845
|
+
readonly tag: StoragePaymentDetailsFilter_Tags.Spark;
|
|
10846
|
+
readonly inner: Readonly<{
|
|
10847
|
+
htlcStatus: Array<SparkHtlcStatus> | undefined;
|
|
10848
|
+
conversionRefundNeeded: boolean | undefined;
|
|
10849
|
+
}>;
|
|
10850
|
+
/**
|
|
10851
|
+
* @private
|
|
10852
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10853
|
+
*/
|
|
10854
|
+
readonly [uniffiTypeNameSymbol]: "StoragePaymentDetailsFilter";
|
|
10855
|
+
};
|
|
10856
|
+
instanceOf(obj: any): obj is {
|
|
10857
|
+
readonly tag: StoragePaymentDetailsFilter_Tags.Spark;
|
|
10858
|
+
readonly inner: Readonly<{
|
|
10859
|
+
htlcStatus: Array<SparkHtlcStatus> | undefined;
|
|
10860
|
+
conversionRefundNeeded: boolean | undefined;
|
|
10861
|
+
}>;
|
|
10862
|
+
/**
|
|
10863
|
+
* @private
|
|
10864
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10865
|
+
*/
|
|
10866
|
+
readonly [uniffiTypeNameSymbol]: "StoragePaymentDetailsFilter";
|
|
10867
|
+
};
|
|
10868
|
+
};
|
|
10869
|
+
Token: {
|
|
10870
|
+
new (inner: {
|
|
10871
|
+
conversionRefundNeeded: boolean | undefined;
|
|
10872
|
+
txHash: string | undefined;
|
|
10873
|
+
txType: TokenTransactionType | undefined;
|
|
10874
|
+
}): {
|
|
10875
|
+
readonly tag: StoragePaymentDetailsFilter_Tags.Token;
|
|
10876
|
+
readonly inner: Readonly<{
|
|
10877
|
+
conversionRefundNeeded: boolean | undefined;
|
|
10878
|
+
txHash: string | undefined;
|
|
10879
|
+
txType: TokenTransactionType | undefined;
|
|
10880
|
+
}>;
|
|
10881
|
+
/**
|
|
10882
|
+
* @private
|
|
10883
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10884
|
+
*/
|
|
10885
|
+
readonly [uniffiTypeNameSymbol]: "StoragePaymentDetailsFilter";
|
|
10886
|
+
};
|
|
10887
|
+
"new"(inner: {
|
|
10888
|
+
conversionRefundNeeded: boolean | undefined;
|
|
10889
|
+
txHash: string | undefined;
|
|
10890
|
+
txType: TokenTransactionType | undefined;
|
|
10891
|
+
}): {
|
|
10892
|
+
readonly tag: StoragePaymentDetailsFilter_Tags.Token;
|
|
10893
|
+
readonly inner: Readonly<{
|
|
10894
|
+
conversionRefundNeeded: boolean | undefined;
|
|
10895
|
+
txHash: string | undefined;
|
|
10896
|
+
txType: TokenTransactionType | undefined;
|
|
10897
|
+
}>;
|
|
10898
|
+
/**
|
|
10899
|
+
* @private
|
|
10900
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10901
|
+
*/
|
|
10902
|
+
readonly [uniffiTypeNameSymbol]: "StoragePaymentDetailsFilter";
|
|
10903
|
+
};
|
|
10904
|
+
instanceOf(obj: any): obj is {
|
|
10905
|
+
readonly tag: StoragePaymentDetailsFilter_Tags.Token;
|
|
10906
|
+
readonly inner: Readonly<{
|
|
10907
|
+
conversionRefundNeeded: boolean | undefined;
|
|
10908
|
+
txHash: string | undefined;
|
|
10909
|
+
txType: TokenTransactionType | undefined;
|
|
10910
|
+
}>;
|
|
10911
|
+
/**
|
|
10912
|
+
* @private
|
|
10913
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10914
|
+
*/
|
|
10915
|
+
readonly [uniffiTypeNameSymbol]: "StoragePaymentDetailsFilter";
|
|
10916
|
+
};
|
|
10917
|
+
};
|
|
10918
|
+
Lightning: {
|
|
10919
|
+
new (inner: {
|
|
10920
|
+
htlcStatus: Array<SparkHtlcStatus> | undefined;
|
|
10921
|
+
hasLnurlPreimage: boolean | undefined;
|
|
10922
|
+
}): {
|
|
10923
|
+
readonly tag: StoragePaymentDetailsFilter_Tags.Lightning;
|
|
10924
|
+
readonly inner: Readonly<{
|
|
10925
|
+
htlcStatus: Array<SparkHtlcStatus> | undefined;
|
|
10926
|
+
hasLnurlPreimage: boolean | undefined;
|
|
10927
|
+
}>;
|
|
10928
|
+
/**
|
|
10929
|
+
* @private
|
|
10930
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10931
|
+
*/
|
|
10932
|
+
readonly [uniffiTypeNameSymbol]: "StoragePaymentDetailsFilter";
|
|
10933
|
+
};
|
|
10934
|
+
"new"(inner: {
|
|
10935
|
+
htlcStatus: Array<SparkHtlcStatus> | undefined;
|
|
10936
|
+
hasLnurlPreimage: boolean | undefined;
|
|
10937
|
+
}): {
|
|
10938
|
+
readonly tag: StoragePaymentDetailsFilter_Tags.Lightning;
|
|
10939
|
+
readonly inner: Readonly<{
|
|
10940
|
+
htlcStatus: Array<SparkHtlcStatus> | undefined;
|
|
10941
|
+
hasLnurlPreimage: boolean | undefined;
|
|
10942
|
+
}>;
|
|
10943
|
+
/**
|
|
10944
|
+
* @private
|
|
10945
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10946
|
+
*/
|
|
10947
|
+
readonly [uniffiTypeNameSymbol]: "StoragePaymentDetailsFilter";
|
|
10948
|
+
};
|
|
10949
|
+
instanceOf(obj: any): obj is {
|
|
10950
|
+
readonly tag: StoragePaymentDetailsFilter_Tags.Lightning;
|
|
10951
|
+
readonly inner: Readonly<{
|
|
10952
|
+
htlcStatus: Array<SparkHtlcStatus> | undefined;
|
|
10953
|
+
hasLnurlPreimage: boolean | undefined;
|
|
10954
|
+
}>;
|
|
10955
|
+
/**
|
|
10956
|
+
* @private
|
|
10957
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10958
|
+
*/
|
|
10959
|
+
readonly [uniffiTypeNameSymbol]: "StoragePaymentDetailsFilter";
|
|
10960
|
+
};
|
|
10961
|
+
};
|
|
10962
|
+
}>;
|
|
10963
|
+
/**
|
|
10964
|
+
* Storage-internal variant of [`PaymentDetailsFilter`] that includes the
|
|
10965
|
+
* `has_lnurl_preimage` field on the `Lightning` variant, which is not exposed
|
|
10966
|
+
* in the public API.
|
|
10967
|
+
*/
|
|
10968
|
+
export type StoragePaymentDetailsFilter = InstanceType<(typeof StoragePaymentDetailsFilter)[keyof Omit<typeof StoragePaymentDetailsFilter, 'instanceOf'>]>;
|
|
10763
10969
|
export declare enum SuccessAction_Tags {
|
|
10764
10970
|
Aes = "Aes",
|
|
10765
10971
|
Message = "Message",
|
|
@@ -12681,7 +12887,7 @@ export interface Storage {
|
|
|
12681
12887
|
*
|
|
12682
12888
|
* A vector of payments or a `StorageError`
|
|
12683
12889
|
*/
|
|
12684
|
-
listPayments(request:
|
|
12890
|
+
listPayments(request: StorageListPaymentsRequest, asyncOpts_?: {
|
|
12685
12891
|
signal: AbortSignal;
|
|
12686
12892
|
}): Promise<Array<Payment>>;
|
|
12687
12893
|
/**
|
|
@@ -12888,7 +13094,7 @@ export declare class StorageImpl extends UniffiAbstractObject implements Storage
|
|
|
12888
13094
|
*
|
|
12889
13095
|
* A vector of payments or a `StorageError`
|
|
12890
13096
|
*/
|
|
12891
|
-
listPayments(request:
|
|
13097
|
+
listPayments(request: StorageListPaymentsRequest, asyncOpts_?: {
|
|
12892
13098
|
signal: AbortSignal;
|
|
12893
13099
|
}): Promise<Array<Payment>>;
|
|
12894
13100
|
/**
|
|
@@ -14491,6 +14697,20 @@ declare const _default: Readonly<{
|
|
|
14491
14697
|
lower(value: StableBalanceConfig): UniffiByteArray;
|
|
14492
14698
|
};
|
|
14493
14699
|
FfiConverterTypeStorage: FfiConverterObjectWithCallbacks<Storage>;
|
|
14700
|
+
FfiConverterTypeStorageListPaymentsRequest: {
|
|
14701
|
+
read(from: RustBuffer): StorageListPaymentsRequest;
|
|
14702
|
+
write(value: StorageListPaymentsRequest, into: RustBuffer): void;
|
|
14703
|
+
allocationSize(value: StorageListPaymentsRequest): number;
|
|
14704
|
+
lift(value: UniffiByteArray): StorageListPaymentsRequest;
|
|
14705
|
+
lower(value: StorageListPaymentsRequest): UniffiByteArray;
|
|
14706
|
+
};
|
|
14707
|
+
FfiConverterTypeStoragePaymentDetailsFilter: {
|
|
14708
|
+
read(from: RustBuffer): StoragePaymentDetailsFilter;
|
|
14709
|
+
write(value: StoragePaymentDetailsFilter, into: RustBuffer): void;
|
|
14710
|
+
allocationSize(value: StoragePaymentDetailsFilter): number;
|
|
14711
|
+
lift(value: UniffiByteArray): StoragePaymentDetailsFilter;
|
|
14712
|
+
lower(value: StoragePaymentDetailsFilter): UniffiByteArray;
|
|
14713
|
+
};
|
|
14494
14714
|
FfiConverterTypeSuccessAction: {
|
|
14495
14715
|
read(from: RustBuffer): SuccessAction;
|
|
14496
14716
|
write(value: SuccessAction, into: RustBuffer): void;
|