@breeztech/breez-sdk-spark-react-native 0.9.1 → 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 +212 -2
- 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 +212 -2
- 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 +412 -7
|
@@ -791,6 +791,11 @@ export type Config = {
|
|
|
791
791
|
* Default is 4. Increase for server environments with high incoming payment volume.
|
|
792
792
|
*/
|
|
793
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;
|
|
794
799
|
};
|
|
795
800
|
/**
|
|
796
801
|
* Generated factory for {@link Config} record objects.
|
|
@@ -3711,6 +3716,7 @@ export type SetLnurlMetadataItem = {
|
|
|
3711
3716
|
senderComment: string | undefined;
|
|
3712
3717
|
nostrZapRequest: string | undefined;
|
|
3713
3718
|
nostrZapReceipt: string | undefined;
|
|
3719
|
+
preimage: string | undefined;
|
|
3714
3720
|
};
|
|
3715
3721
|
/**
|
|
3716
3722
|
* Generated factory for {@link SetLnurlMetadataItem} record objects.
|
|
@@ -4074,6 +4080,40 @@ export declare const StableBalanceConfig: Readonly<{
|
|
|
4074
4080
|
*/
|
|
4075
4081
|
defaults: () => Partial<StableBalanceConfig>;
|
|
4076
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
|
+
}>;
|
|
4077
4117
|
/**
|
|
4078
4118
|
* Settings for the symbol representation of a currency
|
|
4079
4119
|
*/
|
|
@@ -10770,6 +10810,162 @@ export declare const StorageError: Readonly<{
|
|
|
10770
10810
|
* Errors that can occur during storage operations
|
|
10771
10811
|
*/
|
|
10772
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'>]>;
|
|
10773
10969
|
export declare enum SuccessAction_Tags {
|
|
10774
10970
|
Aes = "Aes",
|
|
10775
10971
|
Message = "Message",
|
|
@@ -12691,7 +12887,7 @@ export interface Storage {
|
|
|
12691
12887
|
*
|
|
12692
12888
|
* A vector of payments or a `StorageError`
|
|
12693
12889
|
*/
|
|
12694
|
-
listPayments(request:
|
|
12890
|
+
listPayments(request: StorageListPaymentsRequest, asyncOpts_?: {
|
|
12695
12891
|
signal: AbortSignal;
|
|
12696
12892
|
}): Promise<Array<Payment>>;
|
|
12697
12893
|
/**
|
|
@@ -12898,7 +13094,7 @@ export declare class StorageImpl extends UniffiAbstractObject implements Storage
|
|
|
12898
13094
|
*
|
|
12899
13095
|
* A vector of payments or a `StorageError`
|
|
12900
13096
|
*/
|
|
12901
|
-
listPayments(request:
|
|
13097
|
+
listPayments(request: StorageListPaymentsRequest, asyncOpts_?: {
|
|
12902
13098
|
signal: AbortSignal;
|
|
12903
13099
|
}): Promise<Array<Payment>>;
|
|
12904
13100
|
/**
|
|
@@ -14501,6 +14697,20 @@ declare const _default: Readonly<{
|
|
|
14501
14697
|
lower(value: StableBalanceConfig): UniffiByteArray;
|
|
14502
14698
|
};
|
|
14503
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
|
+
};
|
|
14504
14714
|
FfiConverterTypeSuccessAction: {
|
|
14505
14715
|
read(from: RustBuffer): SuccessAction;
|
|
14506
14716
|
write(value: SuccessAction, into: RustBuffer): void;
|