@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark-react-native",
3
- "version": "0.9.1",
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": "db63a1981bacf6ec143f5402ed2c8cae49a9ba70354eb8fc14419920809bbe45",
201
- "ios": "8b93c7c568f5d2006f8a75082711440edfec999b46bf9bac6d6ed44e0038beae"
200
+ "android": "a3e810d5936a9cd59aeba1c36914ae7c235537049df80a28ae13d60dffb727f7",
201
+ "ios": "1ea8281096d244738e5dbc48cf00b3f6aa966da20703e3d72c368ba4499d9c96"
202
202
  }
203
203
  }
@@ -2076,6 +2076,11 @@ export type Config = {
2076
2076
  * Default is 4. Increase for server environments with high incoming payment volume.
2077
2077
  */
2078
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;
2079
2084
  };
2080
2085
 
2081
2086
  /**
@@ -2126,6 +2131,7 @@ const FfiConverterTypeConfig = (() => {
2126
2131
  stableBalanceConfig:
2127
2132
  FfiConverterOptionalTypeStableBalanceConfig.read(from),
2128
2133
  maxConcurrentClaims: FfiConverterUInt32.read(from),
2134
+ supportLnurlVerify: FfiConverterBool.read(from),
2129
2135
  };
2130
2136
  }
2131
2137
  write(value: TypeName, into: RustBuffer): void {
@@ -2148,6 +2154,7 @@ const FfiConverterTypeConfig = (() => {
2148
2154
  into
2149
2155
  );
2150
2156
  FfiConverterUInt32.write(value.maxConcurrentClaims, into);
2157
+ FfiConverterBool.write(value.supportLnurlVerify, into);
2151
2158
  }
2152
2159
  allocationSize(value: TypeName): number {
2153
2160
  return (
@@ -2171,7 +2178,8 @@ const FfiConverterTypeConfig = (() => {
2171
2178
  FfiConverterOptionalTypeStableBalanceConfig.allocationSize(
2172
2179
  value.stableBalanceConfig
2173
2180
  ) +
2174
- FfiConverterUInt32.allocationSize(value.maxConcurrentClaims)
2181
+ FfiConverterUInt32.allocationSize(value.maxConcurrentClaims) +
2182
+ FfiConverterBool.allocationSize(value.supportLnurlVerify)
2175
2183
  );
2176
2184
  }
2177
2185
  }
@@ -8925,6 +8933,7 @@ export type SetLnurlMetadataItem = {
8925
8933
  senderComment: string | undefined;
8926
8934
  nostrZapRequest: string | undefined;
8927
8935
  nostrZapReceipt: string | undefined;
8936
+ preimage: string | undefined;
8928
8937
  };
8929
8938
 
8930
8939
  /**
@@ -8967,6 +8976,7 @@ const FfiConverterTypeSetLnurlMetadataItem = (() => {
8967
8976
  senderComment: FfiConverterOptionalString.read(from),
8968
8977
  nostrZapRequest: FfiConverterOptionalString.read(from),
8969
8978
  nostrZapReceipt: FfiConverterOptionalString.read(from),
8979
+ preimage: FfiConverterOptionalString.read(from),
8970
8980
  };
8971
8981
  }
8972
8982
  write(value: TypeName, into: RustBuffer): void {
@@ -8974,13 +8984,15 @@ const FfiConverterTypeSetLnurlMetadataItem = (() => {
8974
8984
  FfiConverterOptionalString.write(value.senderComment, into);
8975
8985
  FfiConverterOptionalString.write(value.nostrZapRequest, into);
8976
8986
  FfiConverterOptionalString.write(value.nostrZapReceipt, into);
8987
+ FfiConverterOptionalString.write(value.preimage, into);
8977
8988
  }
8978
8989
  allocationSize(value: TypeName): number {
8979
8990
  return (
8980
8991
  FfiConverterString.allocationSize(value.paymentHash) +
8981
8992
  FfiConverterOptionalString.allocationSize(value.senderComment) +
8982
8993
  FfiConverterOptionalString.allocationSize(value.nostrZapRequest) +
8983
- FfiConverterOptionalString.allocationSize(value.nostrZapReceipt)
8994
+ FfiConverterOptionalString.allocationSize(value.nostrZapReceipt) +
8995
+ FfiConverterOptionalString.allocationSize(value.preimage)
8984
8996
  );
8985
8997
  }
8986
8998
  }
@@ -9727,6 +9739,121 @@ const FfiConverterTypeStableBalanceConfig = (() => {
9727
9739
  return new FFIConverter();
9728
9740
  })();
9729
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
+
9730
9857
  /**
9731
9858
  * Settings for the symbol representation of a currency
9732
9859
  */
@@ -18766,6 +18893,273 @@ const FfiConverterTypeStorageError = (() => {
18766
18893
  return new FFIConverter();
18767
18894
  })();
18768
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
+
18769
19163
  // Enum: SuccessAction
18770
19164
  export enum SuccessAction_Tags {
18771
19165
  Aes = 'Aes',
@@ -25798,7 +26192,7 @@ export interface Storage {
25798
26192
  * A vector of payments or a `StorageError`
25799
26193
  */
25800
26194
  listPayments(
25801
- request: ListPaymentsRequest,
26195
+ request: StorageListPaymentsRequest,
25802
26196
  asyncOpts_?: { signal: AbortSignal }
25803
26197
  ): /*throws*/ Promise<Array<Payment>>;
25804
26198
  /**
@@ -26143,7 +26537,7 @@ export class StorageImpl extends UniffiAbstractObject implements Storage {
26143
26537
  * A vector of payments or a `StorageError`
26144
26538
  */
26145
26539
  public async listPayments(
26146
- request: ListPaymentsRequest,
26540
+ request: StorageListPaymentsRequest,
26147
26541
  asyncOpts_?: { signal: AbortSignal }
26148
26542
  ): Promise<Array<Payment>> /*throws*/ {
26149
26543
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
@@ -26153,7 +26547,7 @@ export class StorageImpl extends UniffiAbstractObject implements Storage {
26153
26547
  /*rustFutureFunc:*/ () => {
26154
26548
  return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_list_payments(
26155
26549
  uniffiTypeStorageImplObjectFactory.clonePointer(this),
26156
- FfiConverterTypeListPaymentsRequest.lower(request)
26550
+ FfiConverterTypeStorageListPaymentsRequest.lower(request)
26157
26551
  );
26158
26552
  },
26159
26553
  /*pollFunc:*/ nativeModule()
@@ -27258,7 +27652,7 @@ const uniffiCallbackInterfaceStorage: {
27258
27652
  ): Promise<Array<Payment>> => {
27259
27653
  const jsCallback = FfiConverterTypeStorage.lift(uniffiHandle);
27260
27654
  return await jsCallback.listPayments(
27261
- FfiConverterTypeListPaymentsRequest.lift(request),
27655
+ FfiConverterTypeStorageListPaymentsRequest.lift(request),
27262
27656
  { signal }
27263
27657
  );
27264
27658
  };
@@ -29040,6 +29434,11 @@ const FfiConverterArrayTypeSparkHtlcStatus = new FfiConverterArray(
29040
29434
  FfiConverterTypeSparkHtlcStatus
29041
29435
  );
29042
29436
 
29437
+ // FfiConverter for Array<StoragePaymentDetailsFilter>
29438
+ const FfiConverterArrayTypeStoragePaymentDetailsFilter = new FfiConverterArray(
29439
+ FfiConverterTypeStoragePaymentDetailsFilter
29440
+ );
29441
+
29043
29442
  // FfiConverter for Array<PaymentDetailsFilter> | undefined
29044
29443
  const FfiConverterOptionalArrayTypePaymentDetailsFilter =
29045
29444
  new FfiConverterOptional(FfiConverterArrayTypePaymentDetailsFilter);
@@ -29059,6 +29458,10 @@ const FfiConverterOptionalArrayTypeSparkHtlcStatus = new FfiConverterOptional(
29059
29458
  FfiConverterArrayTypeSparkHtlcStatus
29060
29459
  );
29061
29460
 
29461
+ // FfiConverter for Array<StoragePaymentDetailsFilter> | undefined
29462
+ const FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter =
29463
+ new FfiConverterOptional(FfiConverterArrayTypeStoragePaymentDetailsFilter);
29464
+
29062
29465
  /**
29063
29466
  * This should be called before anything else.
29064
29467
  *
@@ -29770,7 +30173,7 @@ function uniffiEnsureInitialized() {
29770
30173
  }
29771
30174
  if (
29772
30175
  nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments() !==
29773
- 19728
30176
+ 51078
29774
30177
  ) {
29775
30178
  throw new UniffiInternalError.ApiChecksumMismatch(
29776
30179
  'uniffi_breez_sdk_spark_checksum_method_storage_list_payments'
@@ -30198,6 +30601,8 @@ export default Object.freeze({
30198
30601
  FfiConverterTypeSparkStatus,
30199
30602
  FfiConverterTypeStableBalanceConfig,
30200
30603
  FfiConverterTypeStorage,
30604
+ FfiConverterTypeStorageListPaymentsRequest,
30605
+ FfiConverterTypeStoragePaymentDetailsFilter,
30201
30606
  FfiConverterTypeSuccessAction,
30202
30607
  FfiConverterTypeSuccessActionProcessed,
30203
30608
  FfiConverterTypeSymbol,