@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark-react-native",
3
- "version": "0.9.0",
3
+ "version": "0.10.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": "5733f5e014bb2fa6f7604d62f42e263ba34d8cb8c6783303ccf82b7576ac3ba4",
201
- "ios": "fc28008cb7995c273ffaebbbde96a7a120b6e54e223ea635c24d10fac445c233"
200
+ "android": "a3e810d5936a9cd59aeba1c36914ae7c235537049df80a28ae13d60dffb727f7",
201
+ "ios": "1ea8281096d244738e5dbc48cf00b3f6aa966da20703e3d72c368ba4499d9c96"
202
202
  }
203
203
  }
@@ -2070,6 +2070,17 @@ export type Config = {
2070
2070
  * once the balance exceeds the threshold.
2071
2071
  */
2072
2072
  stableBalanceConfig: StableBalanceConfig | undefined;
2073
+ /**
2074
+ * Maximum number of concurrent transfer claims.
2075
+ *
2076
+ * Default is 4. Increase for server environments with high incoming payment volume.
2077
+ */
2078
+ maxConcurrentClaims: /*u32*/ number;
2079
+ /**
2080
+ * When true, enables LNURL verify support (LUD-21) and zap receipts (NIP-57).
2081
+ * When false (default), these features are disabled for privacy.
2082
+ */
2083
+ supportLnurlVerify: boolean;
2073
2084
  };
2074
2085
 
2075
2086
  /**
@@ -2119,6 +2130,8 @@ const FfiConverterTypeConfig = (() => {
2119
2130
  optimizationConfig: FfiConverterTypeOptimizationConfig.read(from),
2120
2131
  stableBalanceConfig:
2121
2132
  FfiConverterOptionalTypeStableBalanceConfig.read(from),
2133
+ maxConcurrentClaims: FfiConverterUInt32.read(from),
2134
+ supportLnurlVerify: FfiConverterBool.read(from),
2122
2135
  };
2123
2136
  }
2124
2137
  write(value: TypeName, into: RustBuffer): void {
@@ -2140,6 +2153,8 @@ const FfiConverterTypeConfig = (() => {
2140
2153
  value.stableBalanceConfig,
2141
2154
  into
2142
2155
  );
2156
+ FfiConverterUInt32.write(value.maxConcurrentClaims, into);
2157
+ FfiConverterBool.write(value.supportLnurlVerify, into);
2143
2158
  }
2144
2159
  allocationSize(value: TypeName): number {
2145
2160
  return (
@@ -2162,7 +2177,9 @@ const FfiConverterTypeConfig = (() => {
2162
2177
  ) +
2163
2178
  FfiConverterOptionalTypeStableBalanceConfig.allocationSize(
2164
2179
  value.stableBalanceConfig
2165
- )
2180
+ ) +
2181
+ FfiConverterUInt32.allocationSize(value.maxConcurrentClaims) +
2182
+ FfiConverterBool.allocationSize(value.supportLnurlVerify)
2166
2183
  );
2167
2184
  }
2168
2185
  }
@@ -6830,11 +6847,15 @@ export type OptimizationConfig = {
6830
6847
  */
6831
6848
  autoEnabled: boolean;
6832
6849
  /**
6833
- * The desired multiplicity for the leaf set. Acceptable values are 0-5.
6850
+ * The desired multiplicity for the leaf set.
6834
6851
  *
6835
6852
  * Setting this to 0 will optimize for maximizing unilateral exit.
6836
6853
  * Higher values will optimize for minimizing transfer swaps, with higher values
6837
- * being more aggressive.
6854
+ * being more aggressive and allowing better TPS rates.
6855
+ *
6856
+ * For end-user wallets, values of 1-5 are recommended. Values above 5 are
6857
+ * intended for high-throughput server environments and are not recommended
6858
+ * for end-user wallets due to significantly higher unilateral exit costs.
6838
6859
  *
6839
6860
  * Default value is 1.
6840
6861
  */
@@ -8912,6 +8933,7 @@ export type SetLnurlMetadataItem = {
8912
8933
  senderComment: string | undefined;
8913
8934
  nostrZapRequest: string | undefined;
8914
8935
  nostrZapReceipt: string | undefined;
8936
+ preimage: string | undefined;
8915
8937
  };
8916
8938
 
8917
8939
  /**
@@ -8954,6 +8976,7 @@ const FfiConverterTypeSetLnurlMetadataItem = (() => {
8954
8976
  senderComment: FfiConverterOptionalString.read(from),
8955
8977
  nostrZapRequest: FfiConverterOptionalString.read(from),
8956
8978
  nostrZapReceipt: FfiConverterOptionalString.read(from),
8979
+ preimage: FfiConverterOptionalString.read(from),
8957
8980
  };
8958
8981
  }
8959
8982
  write(value: TypeName, into: RustBuffer): void {
@@ -8961,13 +8984,15 @@ const FfiConverterTypeSetLnurlMetadataItem = (() => {
8961
8984
  FfiConverterOptionalString.write(value.senderComment, into);
8962
8985
  FfiConverterOptionalString.write(value.nostrZapRequest, into);
8963
8986
  FfiConverterOptionalString.write(value.nostrZapReceipt, into);
8987
+ FfiConverterOptionalString.write(value.preimage, into);
8964
8988
  }
8965
8989
  allocationSize(value: TypeName): number {
8966
8990
  return (
8967
8991
  FfiConverterString.allocationSize(value.paymentHash) +
8968
8992
  FfiConverterOptionalString.allocationSize(value.senderComment) +
8969
8993
  FfiConverterOptionalString.allocationSize(value.nostrZapRequest) +
8970
- FfiConverterOptionalString.allocationSize(value.nostrZapReceipt)
8994
+ FfiConverterOptionalString.allocationSize(value.nostrZapReceipt) +
8995
+ FfiConverterOptionalString.allocationSize(value.preimage)
8971
8996
  );
8972
8997
  }
8973
8998
  }
@@ -9714,6 +9739,121 @@ const FfiConverterTypeStableBalanceConfig = (() => {
9714
9739
  return new FFIConverter();
9715
9740
  })();
9716
9741
 
9742
+ /**
9743
+ * Storage-internal variant of [`ListPaymentsRequest`] that uses
9744
+ * [`StoragePaymentDetailsFilter`] instead of the public [`PaymentDetailsFilter`].
9745
+ */
9746
+ export type StorageListPaymentsRequest = {
9747
+ typeFilter: Array<PaymentType> | undefined;
9748
+ statusFilter: Array<PaymentStatus> | undefined;
9749
+ assetFilter: AssetFilter | undefined;
9750
+ paymentDetailsFilter: Array<StoragePaymentDetailsFilter> | undefined;
9751
+ fromTimestamp: /*u64*/ bigint | undefined;
9752
+ toTimestamp: /*u64*/ bigint | undefined;
9753
+ offset: /*u32*/ number | undefined;
9754
+ limit: /*u32*/ number | undefined;
9755
+ sortAscending: boolean | undefined;
9756
+ };
9757
+
9758
+ /**
9759
+ * Generated factory for {@link StorageListPaymentsRequest} record objects.
9760
+ */
9761
+ export const StorageListPaymentsRequest = (() => {
9762
+ const defaults = () => ({
9763
+ typeFilter: undefined,
9764
+ statusFilter: undefined,
9765
+ assetFilter: undefined,
9766
+ paymentDetailsFilter: undefined,
9767
+ fromTimestamp: undefined,
9768
+ toTimestamp: undefined,
9769
+ offset: undefined,
9770
+ limit: undefined,
9771
+ sortAscending: undefined,
9772
+ });
9773
+ const create = (() => {
9774
+ return uniffiCreateRecord<
9775
+ StorageListPaymentsRequest,
9776
+ ReturnType<typeof defaults>
9777
+ >(defaults);
9778
+ })();
9779
+ return Object.freeze({
9780
+ /**
9781
+ * Create a frozen instance of {@link StorageListPaymentsRequest}, with defaults specified
9782
+ * in Rust, in the {@link breez_sdk_spark} crate.
9783
+ */
9784
+ create,
9785
+
9786
+ /**
9787
+ * Create a frozen instance of {@link StorageListPaymentsRequest}, with defaults specified
9788
+ * in Rust, in the {@link breez_sdk_spark} crate.
9789
+ */
9790
+ new: create,
9791
+
9792
+ /**
9793
+ * Defaults specified in the {@link breez_sdk_spark} crate.
9794
+ */
9795
+ defaults: () =>
9796
+ Object.freeze(defaults()) as Partial<StorageListPaymentsRequest>,
9797
+ });
9798
+ })();
9799
+
9800
+ const FfiConverterTypeStorageListPaymentsRequest = (() => {
9801
+ type TypeName = StorageListPaymentsRequest;
9802
+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
9803
+ read(from: RustBuffer): TypeName {
9804
+ return {
9805
+ typeFilter: FfiConverterOptionalArrayTypePaymentType.read(from),
9806
+ statusFilter: FfiConverterOptionalArrayTypePaymentStatus.read(from),
9807
+ assetFilter: FfiConverterOptionalTypeAssetFilter.read(from),
9808
+ paymentDetailsFilter:
9809
+ FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter.read(from),
9810
+ fromTimestamp: FfiConverterOptionalUInt64.read(from),
9811
+ toTimestamp: FfiConverterOptionalUInt64.read(from),
9812
+ offset: FfiConverterOptionalUInt32.read(from),
9813
+ limit: FfiConverterOptionalUInt32.read(from),
9814
+ sortAscending: FfiConverterOptionalBool.read(from),
9815
+ };
9816
+ }
9817
+ write(value: TypeName, into: RustBuffer): void {
9818
+ FfiConverterOptionalArrayTypePaymentType.write(value.typeFilter, into);
9819
+ FfiConverterOptionalArrayTypePaymentStatus.write(
9820
+ value.statusFilter,
9821
+ into
9822
+ );
9823
+ FfiConverterOptionalTypeAssetFilter.write(value.assetFilter, into);
9824
+ FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter.write(
9825
+ value.paymentDetailsFilter,
9826
+ into
9827
+ );
9828
+ FfiConverterOptionalUInt64.write(value.fromTimestamp, into);
9829
+ FfiConverterOptionalUInt64.write(value.toTimestamp, into);
9830
+ FfiConverterOptionalUInt32.write(value.offset, into);
9831
+ FfiConverterOptionalUInt32.write(value.limit, into);
9832
+ FfiConverterOptionalBool.write(value.sortAscending, into);
9833
+ }
9834
+ allocationSize(value: TypeName): number {
9835
+ return (
9836
+ FfiConverterOptionalArrayTypePaymentType.allocationSize(
9837
+ value.typeFilter
9838
+ ) +
9839
+ FfiConverterOptionalArrayTypePaymentStatus.allocationSize(
9840
+ value.statusFilter
9841
+ ) +
9842
+ FfiConverterOptionalTypeAssetFilter.allocationSize(value.assetFilter) +
9843
+ FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter.allocationSize(
9844
+ value.paymentDetailsFilter
9845
+ ) +
9846
+ FfiConverterOptionalUInt64.allocationSize(value.fromTimestamp) +
9847
+ FfiConverterOptionalUInt64.allocationSize(value.toTimestamp) +
9848
+ FfiConverterOptionalUInt32.allocationSize(value.offset) +
9849
+ FfiConverterOptionalUInt32.allocationSize(value.limit) +
9850
+ FfiConverterOptionalBool.allocationSize(value.sortAscending)
9851
+ );
9852
+ }
9853
+ }
9854
+ return new FFIConverter();
9855
+ })();
9856
+
9717
9857
  /**
9718
9858
  * Settings for the symbol representation of a currency
9719
9859
  */
@@ -18753,6 +18893,273 @@ const FfiConverterTypeStorageError = (() => {
18753
18893
  return new FFIConverter();
18754
18894
  })();
18755
18895
 
18896
+ // Enum: StoragePaymentDetailsFilter
18897
+ export enum StoragePaymentDetailsFilter_Tags {
18898
+ Spark = 'Spark',
18899
+ Token = 'Token',
18900
+ Lightning = 'Lightning',
18901
+ }
18902
+ /**
18903
+ * Storage-internal variant of [`PaymentDetailsFilter`] that includes the
18904
+ * `has_lnurl_preimage` field on the `Lightning` variant, which is not exposed
18905
+ * in the public API.
18906
+ */
18907
+ export const StoragePaymentDetailsFilter = (() => {
18908
+ type Spark__interface = {
18909
+ tag: StoragePaymentDetailsFilter_Tags.Spark;
18910
+ inner: Readonly<{
18911
+ htlcStatus: Array<SparkHtlcStatus> | undefined;
18912
+ conversionRefundNeeded: boolean | undefined;
18913
+ }>;
18914
+ };
18915
+
18916
+ class Spark_ extends UniffiEnum implements Spark__interface {
18917
+ /**
18918
+ * @private
18919
+ * This field is private and should not be used, use `tag` instead.
18920
+ */
18921
+ readonly [uniffiTypeNameSymbol] = 'StoragePaymentDetailsFilter';
18922
+ readonly tag = StoragePaymentDetailsFilter_Tags.Spark;
18923
+ readonly inner: Readonly<{
18924
+ htlcStatus: Array<SparkHtlcStatus> | undefined;
18925
+ conversionRefundNeeded: boolean | undefined;
18926
+ }>;
18927
+ constructor(inner: {
18928
+ htlcStatus: Array<SparkHtlcStatus> | undefined;
18929
+ conversionRefundNeeded: boolean | undefined;
18930
+ }) {
18931
+ super('StoragePaymentDetailsFilter', 'Spark');
18932
+ this.inner = Object.freeze(inner);
18933
+ }
18934
+
18935
+ static new(inner: {
18936
+ htlcStatus: Array<SparkHtlcStatus> | undefined;
18937
+ conversionRefundNeeded: boolean | undefined;
18938
+ }): Spark_ {
18939
+ return new Spark_(inner);
18940
+ }
18941
+
18942
+ static instanceOf(obj: any): obj is Spark_ {
18943
+ return obj.tag === StoragePaymentDetailsFilter_Tags.Spark;
18944
+ }
18945
+ }
18946
+
18947
+ type Token__interface = {
18948
+ tag: StoragePaymentDetailsFilter_Tags.Token;
18949
+ inner: Readonly<{
18950
+ conversionRefundNeeded: boolean | undefined;
18951
+ txHash: string | undefined;
18952
+ txType: TokenTransactionType | undefined;
18953
+ }>;
18954
+ };
18955
+
18956
+ class Token_ extends UniffiEnum implements Token__interface {
18957
+ /**
18958
+ * @private
18959
+ * This field is private and should not be used, use `tag` instead.
18960
+ */
18961
+ readonly [uniffiTypeNameSymbol] = 'StoragePaymentDetailsFilter';
18962
+ readonly tag = StoragePaymentDetailsFilter_Tags.Token;
18963
+ readonly inner: Readonly<{
18964
+ conversionRefundNeeded: boolean | undefined;
18965
+ txHash: string | undefined;
18966
+ txType: TokenTransactionType | undefined;
18967
+ }>;
18968
+ constructor(inner: {
18969
+ conversionRefundNeeded: boolean | undefined;
18970
+ txHash: string | undefined;
18971
+ txType: TokenTransactionType | undefined;
18972
+ }) {
18973
+ super('StoragePaymentDetailsFilter', 'Token');
18974
+ this.inner = Object.freeze(inner);
18975
+ }
18976
+
18977
+ static new(inner: {
18978
+ conversionRefundNeeded: boolean | undefined;
18979
+ txHash: string | undefined;
18980
+ txType: TokenTransactionType | undefined;
18981
+ }): Token_ {
18982
+ return new Token_(inner);
18983
+ }
18984
+
18985
+ static instanceOf(obj: any): obj is Token_ {
18986
+ return obj.tag === StoragePaymentDetailsFilter_Tags.Token;
18987
+ }
18988
+ }
18989
+
18990
+ type Lightning__interface = {
18991
+ tag: StoragePaymentDetailsFilter_Tags.Lightning;
18992
+ inner: Readonly<{
18993
+ htlcStatus: Array<SparkHtlcStatus> | undefined;
18994
+ hasLnurlPreimage: boolean | undefined;
18995
+ }>;
18996
+ };
18997
+
18998
+ class Lightning_ extends UniffiEnum implements Lightning__interface {
18999
+ /**
19000
+ * @private
19001
+ * This field is private and should not be used, use `tag` instead.
19002
+ */
19003
+ readonly [uniffiTypeNameSymbol] = 'StoragePaymentDetailsFilter';
19004
+ readonly tag = StoragePaymentDetailsFilter_Tags.Lightning;
19005
+ readonly inner: Readonly<{
19006
+ htlcStatus: Array<SparkHtlcStatus> | undefined;
19007
+ hasLnurlPreimage: boolean | undefined;
19008
+ }>;
19009
+ constructor(inner: {
19010
+ htlcStatus: Array<SparkHtlcStatus> | undefined;
19011
+ hasLnurlPreimage: boolean | undefined;
19012
+ }) {
19013
+ super('StoragePaymentDetailsFilter', 'Lightning');
19014
+ this.inner = Object.freeze(inner);
19015
+ }
19016
+
19017
+ static new(inner: {
19018
+ htlcStatus: Array<SparkHtlcStatus> | undefined;
19019
+ hasLnurlPreimage: boolean | undefined;
19020
+ }): Lightning_ {
19021
+ return new Lightning_(inner);
19022
+ }
19023
+
19024
+ static instanceOf(obj: any): obj is Lightning_ {
19025
+ return obj.tag === StoragePaymentDetailsFilter_Tags.Lightning;
19026
+ }
19027
+ }
19028
+
19029
+ function instanceOf(obj: any): obj is StoragePaymentDetailsFilter {
19030
+ return obj[uniffiTypeNameSymbol] === 'StoragePaymentDetailsFilter';
19031
+ }
19032
+
19033
+ return Object.freeze({
19034
+ instanceOf,
19035
+ Spark: Spark_,
19036
+ Token: Token_,
19037
+ Lightning: Lightning_,
19038
+ });
19039
+ })();
19040
+
19041
+ /**
19042
+ * Storage-internal variant of [`PaymentDetailsFilter`] that includes the
19043
+ * `has_lnurl_preimage` field on the `Lightning` variant, which is not exposed
19044
+ * in the public API.
19045
+ */
19046
+
19047
+ export type StoragePaymentDetailsFilter = InstanceType<
19048
+ (typeof StoragePaymentDetailsFilter)[keyof Omit<
19049
+ typeof StoragePaymentDetailsFilter,
19050
+ 'instanceOf'
19051
+ >]
19052
+ >;
19053
+
19054
+ // FfiConverter for enum StoragePaymentDetailsFilter
19055
+ const FfiConverterTypeStoragePaymentDetailsFilter = (() => {
19056
+ const ordinalConverter = FfiConverterInt32;
19057
+ type TypeName = StoragePaymentDetailsFilter;
19058
+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
19059
+ read(from: RustBuffer): TypeName {
19060
+ switch (ordinalConverter.read(from)) {
19061
+ case 1:
19062
+ return new StoragePaymentDetailsFilter.Spark({
19063
+ htlcStatus: FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),
19064
+ conversionRefundNeeded: FfiConverterOptionalBool.read(from),
19065
+ });
19066
+ case 2:
19067
+ return new StoragePaymentDetailsFilter.Token({
19068
+ conversionRefundNeeded: FfiConverterOptionalBool.read(from),
19069
+ txHash: FfiConverterOptionalString.read(from),
19070
+ txType: FfiConverterOptionalTypeTokenTransactionType.read(from),
19071
+ });
19072
+ case 3:
19073
+ return new StoragePaymentDetailsFilter.Lightning({
19074
+ htlcStatus: FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),
19075
+ hasLnurlPreimage: FfiConverterOptionalBool.read(from),
19076
+ });
19077
+ default:
19078
+ throw new UniffiInternalError.UnexpectedEnumCase();
19079
+ }
19080
+ }
19081
+ write(value: TypeName, into: RustBuffer): void {
19082
+ switch (value.tag) {
19083
+ case StoragePaymentDetailsFilter_Tags.Spark: {
19084
+ ordinalConverter.write(1, into);
19085
+ const inner = value.inner;
19086
+ FfiConverterOptionalArrayTypeSparkHtlcStatus.write(
19087
+ inner.htlcStatus,
19088
+ into
19089
+ );
19090
+ FfiConverterOptionalBool.write(inner.conversionRefundNeeded, into);
19091
+ return;
19092
+ }
19093
+ case StoragePaymentDetailsFilter_Tags.Token: {
19094
+ ordinalConverter.write(2, into);
19095
+ const inner = value.inner;
19096
+ FfiConverterOptionalBool.write(inner.conversionRefundNeeded, into);
19097
+ FfiConverterOptionalString.write(inner.txHash, into);
19098
+ FfiConverterOptionalTypeTokenTransactionType.write(
19099
+ inner.txType,
19100
+ into
19101
+ );
19102
+ return;
19103
+ }
19104
+ case StoragePaymentDetailsFilter_Tags.Lightning: {
19105
+ ordinalConverter.write(3, into);
19106
+ const inner = value.inner;
19107
+ FfiConverterOptionalArrayTypeSparkHtlcStatus.write(
19108
+ inner.htlcStatus,
19109
+ into
19110
+ );
19111
+ FfiConverterOptionalBool.write(inner.hasLnurlPreimage, into);
19112
+ return;
19113
+ }
19114
+ default:
19115
+ // Throwing from here means that StoragePaymentDetailsFilter_Tags hasn't matched an ordinal.
19116
+ throw new UniffiInternalError.UnexpectedEnumCase();
19117
+ }
19118
+ }
19119
+ allocationSize(value: TypeName): number {
19120
+ switch (value.tag) {
19121
+ case StoragePaymentDetailsFilter_Tags.Spark: {
19122
+ const inner = value.inner;
19123
+ let size = ordinalConverter.allocationSize(1);
19124
+ size += FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(
19125
+ inner.htlcStatus
19126
+ );
19127
+ size += FfiConverterOptionalBool.allocationSize(
19128
+ inner.conversionRefundNeeded
19129
+ );
19130
+ return size;
19131
+ }
19132
+ case StoragePaymentDetailsFilter_Tags.Token: {
19133
+ const inner = value.inner;
19134
+ let size = ordinalConverter.allocationSize(2);
19135
+ size += FfiConverterOptionalBool.allocationSize(
19136
+ inner.conversionRefundNeeded
19137
+ );
19138
+ size += FfiConverterOptionalString.allocationSize(inner.txHash);
19139
+ size += FfiConverterOptionalTypeTokenTransactionType.allocationSize(
19140
+ inner.txType
19141
+ );
19142
+ return size;
19143
+ }
19144
+ case StoragePaymentDetailsFilter_Tags.Lightning: {
19145
+ const inner = value.inner;
19146
+ let size = ordinalConverter.allocationSize(3);
19147
+ size += FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(
19148
+ inner.htlcStatus
19149
+ );
19150
+ size += FfiConverterOptionalBool.allocationSize(
19151
+ inner.hasLnurlPreimage
19152
+ );
19153
+ return size;
19154
+ }
19155
+ default:
19156
+ throw new UniffiInternalError.UnexpectedEnumCase();
19157
+ }
19158
+ }
19159
+ }
19160
+ return new FFIConverter();
19161
+ })();
19162
+
18756
19163
  // Enum: SuccessAction
18757
19164
  export enum SuccessAction_Tags {
18758
19165
  Aes = 'Aes',
@@ -25785,7 +26192,7 @@ export interface Storage {
25785
26192
  * A vector of payments or a `StorageError`
25786
26193
  */
25787
26194
  listPayments(
25788
- request: ListPaymentsRequest,
26195
+ request: StorageListPaymentsRequest,
25789
26196
  asyncOpts_?: { signal: AbortSignal }
25790
26197
  ): /*throws*/ Promise<Array<Payment>>;
25791
26198
  /**
@@ -26130,7 +26537,7 @@ export class StorageImpl extends UniffiAbstractObject implements Storage {
26130
26537
  * A vector of payments or a `StorageError`
26131
26538
  */
26132
26539
  public async listPayments(
26133
- request: ListPaymentsRequest,
26540
+ request: StorageListPaymentsRequest,
26134
26541
  asyncOpts_?: { signal: AbortSignal }
26135
26542
  ): Promise<Array<Payment>> /*throws*/ {
26136
26543
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
@@ -26140,7 +26547,7 @@ export class StorageImpl extends UniffiAbstractObject implements Storage {
26140
26547
  /*rustFutureFunc:*/ () => {
26141
26548
  return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_list_payments(
26142
26549
  uniffiTypeStorageImplObjectFactory.clonePointer(this),
26143
- FfiConverterTypeListPaymentsRequest.lower(request)
26550
+ FfiConverterTypeStorageListPaymentsRequest.lower(request)
26144
26551
  );
26145
26552
  },
26146
26553
  /*pollFunc:*/ nativeModule()
@@ -27245,7 +27652,7 @@ const uniffiCallbackInterfaceStorage: {
27245
27652
  ): Promise<Array<Payment>> => {
27246
27653
  const jsCallback = FfiConverterTypeStorage.lift(uniffiHandle);
27247
27654
  return await jsCallback.listPayments(
27248
- FfiConverterTypeListPaymentsRequest.lift(request),
27655
+ FfiConverterTypeStorageListPaymentsRequest.lift(request),
27249
27656
  { signal }
27250
27657
  );
27251
27658
  };
@@ -29027,6 +29434,11 @@ const FfiConverterArrayTypeSparkHtlcStatus = new FfiConverterArray(
29027
29434
  FfiConverterTypeSparkHtlcStatus
29028
29435
  );
29029
29436
 
29437
+ // FfiConverter for Array<StoragePaymentDetailsFilter>
29438
+ const FfiConverterArrayTypeStoragePaymentDetailsFilter = new FfiConverterArray(
29439
+ FfiConverterTypeStoragePaymentDetailsFilter
29440
+ );
29441
+
29030
29442
  // FfiConverter for Array<PaymentDetailsFilter> | undefined
29031
29443
  const FfiConverterOptionalArrayTypePaymentDetailsFilter =
29032
29444
  new FfiConverterOptional(FfiConverterArrayTypePaymentDetailsFilter);
@@ -29046,6 +29458,10 @@ const FfiConverterOptionalArrayTypeSparkHtlcStatus = new FfiConverterOptional(
29046
29458
  FfiConverterArrayTypeSparkHtlcStatus
29047
29459
  );
29048
29460
 
29461
+ // FfiConverter for Array<StoragePaymentDetailsFilter> | undefined
29462
+ const FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter =
29463
+ new FfiConverterOptional(FfiConverterArrayTypeStoragePaymentDetailsFilter);
29464
+
29049
29465
  /**
29050
29466
  * This should be called before anything else.
29051
29467
  *
@@ -29757,7 +30173,7 @@ function uniffiEnsureInitialized() {
29757
30173
  }
29758
30174
  if (
29759
30175
  nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments() !==
29760
- 19728
30176
+ 51078
29761
30177
  ) {
29762
30178
  throw new UniffiInternalError.ApiChecksumMismatch(
29763
30179
  'uniffi_breez_sdk_spark_checksum_method_storage_list_payments'
@@ -30185,6 +30601,8 @@ export default Object.freeze({
30185
30601
  FfiConverterTypeSparkStatus,
30186
30602
  FfiConverterTypeStableBalanceConfig,
30187
30603
  FfiConverterTypeStorage,
30604
+ FfiConverterTypeStorageListPaymentsRequest,
30605
+ FfiConverterTypeStoragePaymentDetailsFilter,
30188
30606
  FfiConverterTypeSuccessAction,
30189
30607
  FfiConverterTypeSuccessActionProcessed,
30190
30608
  FfiConverterTypeSymbol,