@breeztech/breez-sdk-spark-react-native 0.3.2 → 0.3.4

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.
Files changed (29) hide show
  1. package/android/cpp-adapter.cpp +6 -26
  2. package/cpp/generated/breez_sdk_spark.cpp +147 -0
  3. package/cpp/generated/breez_sdk_spark.hpp +18 -0
  4. package/lib/commonjs/generated/breez_sdk_common.js +64 -274
  5. package/lib/commonjs/generated/breez_sdk_common.js.map +1 -1
  6. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  7. package/lib/commonjs/generated/breez_sdk_spark.js +589 -24
  8. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  9. package/lib/module/generated/breez_sdk_common.js +63 -273
  10. package/lib/module/generated/breez_sdk_common.js.map +1 -1
  11. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  12. package/lib/module/generated/breez_sdk_spark.js +588 -23
  13. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  14. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +79 -183
  15. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +1 -1
  16. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +6 -0
  17. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  18. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +571 -19
  19. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  20. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +79 -183
  21. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +1 -1
  22. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +6 -0
  23. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  24. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +571 -19
  25. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  26. package/package.json +1 -1
  27. package/src/generated/breez_sdk_common.ts +118 -373
  28. package/src/generated/breez_sdk_spark-ffi.ts +15 -0
  29. package/src/generated/breez_sdk_spark.ts +1076 -41
@@ -15,8 +15,10 @@ const {
15
15
  FfiConverterTypeFiatService,
16
16
  FfiConverterTypeInputType,
17
17
  FfiConverterTypeLnurlPayRequestDetails,
18
+ FfiConverterTypeLnurlWithdrawRequestDetails,
18
19
  FfiConverterTypeRate,
19
20
  FfiConverterTypeRestClient,
21
+ FfiConverterTypeSparkInvoiceDetails,
20
22
  FfiConverterTypeSuccessAction,
21
23
  FfiConverterTypeSuccessActionProcessed
22
24
  } = uniffiBreezSdkCommonModule.converters;
@@ -184,6 +186,92 @@ const FfiConverterTypeCheckLightningAddressRequest = (() => {
184
186
  }
185
187
  return new FFIConverter();
186
188
  })();
189
+ /**
190
+ * Generated factory for {@link CheckMessageRequest} record objects.
191
+ */
192
+ export const CheckMessageRequest = (() => {
193
+ const defaults = () => ({});
194
+ const create = (() => {
195
+ return uniffiCreateRecord(defaults);
196
+ })();
197
+ return Object.freeze({
198
+ /**
199
+ * Create a frozen instance of {@link CheckMessageRequest}, with defaults specified
200
+ * in Rust, in the {@link breez_sdk_spark} crate.
201
+ */
202
+ create,
203
+ /**
204
+ * Create a frozen instance of {@link CheckMessageRequest}, with defaults specified
205
+ * in Rust, in the {@link breez_sdk_spark} crate.
206
+ */
207
+ new: create,
208
+ /**
209
+ * Defaults specified in the {@link breez_sdk_spark} crate.
210
+ */
211
+ defaults: () => Object.freeze(defaults())
212
+ });
213
+ })();
214
+ const FfiConverterTypeCheckMessageRequest = (() => {
215
+ class FFIConverter extends AbstractFfiConverterByteArray {
216
+ read(from) {
217
+ return {
218
+ message: FfiConverterString.read(from),
219
+ pubkey: FfiConverterString.read(from),
220
+ signature: FfiConverterString.read(from)
221
+ };
222
+ }
223
+ write(value, into) {
224
+ FfiConverterString.write(value.message, into);
225
+ FfiConverterString.write(value.pubkey, into);
226
+ FfiConverterString.write(value.signature, into);
227
+ }
228
+ allocationSize(value) {
229
+ return FfiConverterString.allocationSize(value.message) + FfiConverterString.allocationSize(value.pubkey) + FfiConverterString.allocationSize(value.signature);
230
+ }
231
+ }
232
+ return new FFIConverter();
233
+ })();
234
+ /**
235
+ * Generated factory for {@link CheckMessageResponse} record objects.
236
+ */
237
+ export const CheckMessageResponse = (() => {
238
+ const defaults = () => ({});
239
+ const create = (() => {
240
+ return uniffiCreateRecord(defaults);
241
+ })();
242
+ return Object.freeze({
243
+ /**
244
+ * Create a frozen instance of {@link CheckMessageResponse}, with defaults specified
245
+ * in Rust, in the {@link breez_sdk_spark} crate.
246
+ */
247
+ create,
248
+ /**
249
+ * Create a frozen instance of {@link CheckMessageResponse}, with defaults specified
250
+ * in Rust, in the {@link breez_sdk_spark} crate.
251
+ */
252
+ new: create,
253
+ /**
254
+ * Defaults specified in the {@link breez_sdk_spark} crate.
255
+ */
256
+ defaults: () => Object.freeze(defaults())
257
+ });
258
+ })();
259
+ const FfiConverterTypeCheckMessageResponse = (() => {
260
+ class FFIConverter extends AbstractFfiConverterByteArray {
261
+ read(from) {
262
+ return {
263
+ isValid: FfiConverterBool.read(from)
264
+ };
265
+ }
266
+ write(value, into) {
267
+ FfiConverterBool.write(value.isValid, into);
268
+ }
269
+ allocationSize(value) {
270
+ return FfiConverterBool.allocationSize(value.isValid);
271
+ }
272
+ }
273
+ return new FFIConverter();
274
+ })();
187
275
  /**
188
276
  * Generated factory for {@link ClaimDepositRequest} record objects.
189
277
  */
@@ -1196,6 +1284,142 @@ const FfiConverterTypeLnurlPayResponse = (() => {
1196
1284
  }
1197
1285
  return new FFIConverter();
1198
1286
  })();
1287
+
1288
+ /**
1289
+ * Represents the withdraw LNURL info
1290
+ */
1291
+
1292
+ /**
1293
+ * Generated factory for {@link LnurlWithdrawInfo} record objects.
1294
+ */
1295
+ export const LnurlWithdrawInfo = (() => {
1296
+ const defaults = () => ({});
1297
+ const create = (() => {
1298
+ return uniffiCreateRecord(defaults);
1299
+ })();
1300
+ return Object.freeze({
1301
+ /**
1302
+ * Create a frozen instance of {@link LnurlWithdrawInfo}, with defaults specified
1303
+ * in Rust, in the {@link breez_sdk_spark} crate.
1304
+ */
1305
+ create,
1306
+ /**
1307
+ * Create a frozen instance of {@link LnurlWithdrawInfo}, with defaults specified
1308
+ * in Rust, in the {@link breez_sdk_spark} crate.
1309
+ */
1310
+ new: create,
1311
+ /**
1312
+ * Defaults specified in the {@link breez_sdk_spark} crate.
1313
+ */
1314
+ defaults: () => Object.freeze(defaults())
1315
+ });
1316
+ })();
1317
+ const FfiConverterTypeLnurlWithdrawInfo = (() => {
1318
+ class FFIConverter extends AbstractFfiConverterByteArray {
1319
+ read(from) {
1320
+ return {
1321
+ withdrawUrl: FfiConverterString.read(from)
1322
+ };
1323
+ }
1324
+ write(value, into) {
1325
+ FfiConverterString.write(value.withdrawUrl, into);
1326
+ }
1327
+ allocationSize(value) {
1328
+ return FfiConverterString.allocationSize(value.withdrawUrl);
1329
+ }
1330
+ }
1331
+ return new FFIConverter();
1332
+ })();
1333
+ /**
1334
+ * Generated factory for {@link LnurlWithdrawRequest} record objects.
1335
+ */
1336
+ export const LnurlWithdrawRequest = (() => {
1337
+ const defaults = () => ({
1338
+ completionTimeoutSecs: undefined
1339
+ });
1340
+ const create = (() => {
1341
+ return uniffiCreateRecord(defaults);
1342
+ })();
1343
+ return Object.freeze({
1344
+ /**
1345
+ * Create a frozen instance of {@link LnurlWithdrawRequest}, with defaults specified
1346
+ * in Rust, in the {@link breez_sdk_spark} crate.
1347
+ */
1348
+ create,
1349
+ /**
1350
+ * Create a frozen instance of {@link LnurlWithdrawRequest}, with defaults specified
1351
+ * in Rust, in the {@link breez_sdk_spark} crate.
1352
+ */
1353
+ new: create,
1354
+ /**
1355
+ * Defaults specified in the {@link breez_sdk_spark} crate.
1356
+ */
1357
+ defaults: () => Object.freeze(defaults())
1358
+ });
1359
+ })();
1360
+ const FfiConverterTypeLnurlWithdrawRequest = (() => {
1361
+ class FFIConverter extends AbstractFfiConverterByteArray {
1362
+ read(from) {
1363
+ return {
1364
+ amountSats: FfiConverterUInt64.read(from),
1365
+ withdrawRequest: FfiConverterTypeLnurlWithdrawRequestDetails.read(from),
1366
+ completionTimeoutSecs: FfiConverterOptionalUInt32.read(from)
1367
+ };
1368
+ }
1369
+ write(value, into) {
1370
+ FfiConverterUInt64.write(value.amountSats, into);
1371
+ FfiConverterTypeLnurlWithdrawRequestDetails.write(value.withdrawRequest, into);
1372
+ FfiConverterOptionalUInt32.write(value.completionTimeoutSecs, into);
1373
+ }
1374
+ allocationSize(value) {
1375
+ return FfiConverterUInt64.allocationSize(value.amountSats) + FfiConverterTypeLnurlWithdrawRequestDetails.allocationSize(value.withdrawRequest) + FfiConverterOptionalUInt32.allocationSize(value.completionTimeoutSecs);
1376
+ }
1377
+ }
1378
+ return new FFIConverter();
1379
+ })();
1380
+ /**
1381
+ * Generated factory for {@link LnurlWithdrawResponse} record objects.
1382
+ */
1383
+ export const LnurlWithdrawResponse = (() => {
1384
+ const defaults = () => ({});
1385
+ const create = (() => {
1386
+ return uniffiCreateRecord(defaults);
1387
+ })();
1388
+ return Object.freeze({
1389
+ /**
1390
+ * Create a frozen instance of {@link LnurlWithdrawResponse}, with defaults specified
1391
+ * in Rust, in the {@link breez_sdk_spark} crate.
1392
+ */
1393
+ create,
1394
+ /**
1395
+ * Create a frozen instance of {@link LnurlWithdrawResponse}, with defaults specified
1396
+ * in Rust, in the {@link breez_sdk_spark} crate.
1397
+ */
1398
+ new: create,
1399
+ /**
1400
+ * Defaults specified in the {@link breez_sdk_spark} crate.
1401
+ */
1402
+ defaults: () => Object.freeze(defaults())
1403
+ });
1404
+ })();
1405
+ const FfiConverterTypeLnurlWithdrawResponse = (() => {
1406
+ class FFIConverter extends AbstractFfiConverterByteArray {
1407
+ read(from) {
1408
+ return {
1409
+ paymentRequest: FfiConverterString.read(from),
1410
+ payment: FfiConverterOptionalTypePayment.read(from)
1411
+ };
1412
+ }
1413
+ write(value, into) {
1414
+ FfiConverterString.write(value.paymentRequest, into);
1415
+ FfiConverterOptionalTypePayment.write(value.payment, into);
1416
+ }
1417
+ allocationSize(value) {
1418
+ return FfiConverterString.allocationSize(value.paymentRequest) + FfiConverterOptionalTypePayment.allocationSize(value.payment);
1419
+ }
1420
+ }
1421
+ return new FFIConverter();
1422
+ })();
1199
1423
  /**
1200
1424
  * Generated factory for {@link LogEntry} record objects.
1201
1425
  */
@@ -1334,15 +1558,17 @@ const FfiConverterTypePaymentMetadata = (() => {
1334
1558
  read(from) {
1335
1559
  return {
1336
1560
  lnurlPayInfo: FfiConverterOptionalTypeLnurlPayInfo.read(from),
1561
+ lnurlWithdrawInfo: FfiConverterOptionalTypeLnurlWithdrawInfo.read(from),
1337
1562
  lnurlDescription: FfiConverterOptionalString.read(from)
1338
1563
  };
1339
1564
  }
1340
1565
  write(value, into) {
1341
1566
  FfiConverterOptionalTypeLnurlPayInfo.write(value.lnurlPayInfo, into);
1567
+ FfiConverterOptionalTypeLnurlWithdrawInfo.write(value.lnurlWithdrawInfo, into);
1342
1568
  FfiConverterOptionalString.write(value.lnurlDescription, into);
1343
1569
  }
1344
1570
  allocationSize(value) {
1345
- return FfiConverterOptionalTypeLnurlPayInfo.allocationSize(value.lnurlPayInfo) + FfiConverterOptionalString.allocationSize(value.lnurlDescription);
1571
+ return FfiConverterOptionalTypeLnurlPayInfo.allocationSize(value.lnurlPayInfo) + FfiConverterOptionalTypeLnurlWithdrawInfo.allocationSize(value.lnurlWithdrawInfo) + FfiConverterOptionalString.allocationSize(value.lnurlDescription);
1346
1572
  }
1347
1573
  }
1348
1574
  return new FFIConverter();
@@ -1657,15 +1883,15 @@ const FfiConverterTypeReceivePaymentResponse = (() => {
1657
1883
  read(from) {
1658
1884
  return {
1659
1885
  paymentRequest: FfiConverterString.read(from),
1660
- feeSats: FfiConverterUInt64.read(from)
1886
+ fee: FfiConverterTypeu128.read(from)
1661
1887
  };
1662
1888
  }
1663
1889
  write(value, into) {
1664
1890
  FfiConverterString.write(value.paymentRequest, into);
1665
- FfiConverterUInt64.write(value.feeSats, into);
1891
+ FfiConverterTypeu128.write(value.fee, into);
1666
1892
  }
1667
1893
  allocationSize(value) {
1668
- return FfiConverterString.allocationSize(value.paymentRequest) + FfiConverterUInt64.allocationSize(value.feeSats);
1894
+ return FfiConverterString.allocationSize(value.paymentRequest) + FfiConverterTypeu128.allocationSize(value.fee);
1669
1895
  }
1670
1896
  }
1671
1897
  return new FFIConverter();
@@ -1983,6 +2209,135 @@ const FfiConverterTypeSendPaymentResponse = (() => {
1983
2209
  }
1984
2210
  return new FFIConverter();
1985
2211
  })();
2212
+ /**
2213
+ * Generated factory for {@link SignMessageRequest} record objects.
2214
+ */
2215
+ export const SignMessageRequest = (() => {
2216
+ const defaults = () => ({});
2217
+ const create = (() => {
2218
+ return uniffiCreateRecord(defaults);
2219
+ })();
2220
+ return Object.freeze({
2221
+ /**
2222
+ * Create a frozen instance of {@link SignMessageRequest}, with defaults specified
2223
+ * in Rust, in the {@link breez_sdk_spark} crate.
2224
+ */
2225
+ create,
2226
+ /**
2227
+ * Create a frozen instance of {@link SignMessageRequest}, with defaults specified
2228
+ * in Rust, in the {@link breez_sdk_spark} crate.
2229
+ */
2230
+ new: create,
2231
+ /**
2232
+ * Defaults specified in the {@link breez_sdk_spark} crate.
2233
+ */
2234
+ defaults: () => Object.freeze(defaults())
2235
+ });
2236
+ })();
2237
+ const FfiConverterTypeSignMessageRequest = (() => {
2238
+ class FFIConverter extends AbstractFfiConverterByteArray {
2239
+ read(from) {
2240
+ return {
2241
+ message: FfiConverterString.read(from),
2242
+ compact: FfiConverterBool.read(from)
2243
+ };
2244
+ }
2245
+ write(value, into) {
2246
+ FfiConverterString.write(value.message, into);
2247
+ FfiConverterBool.write(value.compact, into);
2248
+ }
2249
+ allocationSize(value) {
2250
+ return FfiConverterString.allocationSize(value.message) + FfiConverterBool.allocationSize(value.compact);
2251
+ }
2252
+ }
2253
+ return new FFIConverter();
2254
+ })();
2255
+ /**
2256
+ * Generated factory for {@link SignMessageResponse} record objects.
2257
+ */
2258
+ export const SignMessageResponse = (() => {
2259
+ const defaults = () => ({});
2260
+ const create = (() => {
2261
+ return uniffiCreateRecord(defaults);
2262
+ })();
2263
+ return Object.freeze({
2264
+ /**
2265
+ * Create a frozen instance of {@link SignMessageResponse}, with defaults specified
2266
+ * in Rust, in the {@link breez_sdk_spark} crate.
2267
+ */
2268
+ create,
2269
+ /**
2270
+ * Create a frozen instance of {@link SignMessageResponse}, with defaults specified
2271
+ * in Rust, in the {@link breez_sdk_spark} crate.
2272
+ */
2273
+ new: create,
2274
+ /**
2275
+ * Defaults specified in the {@link breez_sdk_spark} crate.
2276
+ */
2277
+ defaults: () => Object.freeze(defaults())
2278
+ });
2279
+ })();
2280
+ const FfiConverterTypeSignMessageResponse = (() => {
2281
+ class FFIConverter extends AbstractFfiConverterByteArray {
2282
+ read(from) {
2283
+ return {
2284
+ pubkey: FfiConverterString.read(from),
2285
+ signature: FfiConverterString.read(from)
2286
+ };
2287
+ }
2288
+ write(value, into) {
2289
+ FfiConverterString.write(value.pubkey, into);
2290
+ FfiConverterString.write(value.signature, into);
2291
+ }
2292
+ allocationSize(value) {
2293
+ return FfiConverterString.allocationSize(value.pubkey) + FfiConverterString.allocationSize(value.signature);
2294
+ }
2295
+ }
2296
+ return new FFIConverter();
2297
+ })();
2298
+ /**
2299
+ * Generated factory for {@link SparkInvoicePaymentDetails} record objects.
2300
+ */
2301
+ export const SparkInvoicePaymentDetails = (() => {
2302
+ const defaults = () => ({});
2303
+ const create = (() => {
2304
+ return uniffiCreateRecord(defaults);
2305
+ })();
2306
+ return Object.freeze({
2307
+ /**
2308
+ * Create a frozen instance of {@link SparkInvoicePaymentDetails}, with defaults specified
2309
+ * in Rust, in the {@link breez_sdk_spark} crate.
2310
+ */
2311
+ create,
2312
+ /**
2313
+ * Create a frozen instance of {@link SparkInvoicePaymentDetails}, with defaults specified
2314
+ * in Rust, in the {@link breez_sdk_spark} crate.
2315
+ */
2316
+ new: create,
2317
+ /**
2318
+ * Defaults specified in the {@link breez_sdk_spark} crate.
2319
+ */
2320
+ defaults: () => Object.freeze(defaults())
2321
+ });
2322
+ })();
2323
+ const FfiConverterTypeSparkInvoicePaymentDetails = (() => {
2324
+ class FFIConverter extends AbstractFfiConverterByteArray {
2325
+ read(from) {
2326
+ return {
2327
+ description: FfiConverterOptionalString.read(from),
2328
+ invoice: FfiConverterString.read(from)
2329
+ };
2330
+ }
2331
+ write(value, into) {
2332
+ FfiConverterOptionalString.write(value.description, into);
2333
+ FfiConverterString.write(value.invoice, into);
2334
+ }
2335
+ allocationSize(value) {
2336
+ return FfiConverterOptionalString.allocationSize(value.description) + FfiConverterString.allocationSize(value.invoice);
2337
+ }
2338
+ }
2339
+ return new FFIConverter();
2340
+ })();
1986
2341
 
1987
2342
  /**
1988
2343
  * Request to sync the wallet with the Spark network
@@ -3072,11 +3427,12 @@ export const PaymentDetails = (() => {
3072
3427
  */
3073
3428
  [uniffiTypeNameSymbol] = 'PaymentDetails';
3074
3429
  tag = PaymentDetails_Tags.Spark;
3075
- constructor() {
3430
+ constructor(inner) {
3076
3431
  super('PaymentDetails', 'Spark');
3432
+ this.inner = Object.freeze(inner);
3077
3433
  }
3078
- static new() {
3079
- return new Spark_();
3434
+ static new(inner) {
3435
+ return new Spark_(inner);
3080
3436
  }
3081
3437
  static instanceOf(obj) {
3082
3438
  return obj.tag === PaymentDetails_Tags.Spark;
@@ -3173,11 +3529,14 @@ const FfiConverterTypePaymentDetails = (() => {
3173
3529
  read(from) {
3174
3530
  switch (ordinalConverter.read(from)) {
3175
3531
  case 1:
3176
- return new PaymentDetails.Spark();
3532
+ return new PaymentDetails.Spark({
3533
+ invoiceDetails: FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from)
3534
+ });
3177
3535
  case 2:
3178
3536
  return new PaymentDetails.Token({
3179
3537
  metadata: FfiConverterTypeTokenMetadata.read(from),
3180
- txHash: FfiConverterString.read(from)
3538
+ txHash: FfiConverterString.read(from),
3539
+ invoiceDetails: FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from)
3181
3540
  });
3182
3541
  case 3:
3183
3542
  return new PaymentDetails.Lightning({
@@ -3186,7 +3545,8 @@ const FfiConverterTypePaymentDetails = (() => {
3186
3545
  invoice: FfiConverterString.read(from),
3187
3546
  paymentHash: FfiConverterString.read(from),
3188
3547
  destinationPubkey: FfiConverterString.read(from),
3189
- lnurlPayInfo: FfiConverterOptionalTypeLnurlPayInfo.read(from)
3548
+ lnurlPayInfo: FfiConverterOptionalTypeLnurlPayInfo.read(from),
3549
+ lnurlWithdrawInfo: FfiConverterOptionalTypeLnurlWithdrawInfo.read(from)
3190
3550
  });
3191
3551
  case 4:
3192
3552
  return new PaymentDetails.Withdraw({
@@ -3205,6 +3565,8 @@ const FfiConverterTypePaymentDetails = (() => {
3205
3565
  case PaymentDetails_Tags.Spark:
3206
3566
  {
3207
3567
  ordinalConverter.write(1, into);
3568
+ const inner = value.inner;
3569
+ FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails, into);
3208
3570
  return;
3209
3571
  }
3210
3572
  case PaymentDetails_Tags.Token:
@@ -3213,6 +3575,7 @@ const FfiConverterTypePaymentDetails = (() => {
3213
3575
  const inner = value.inner;
3214
3576
  FfiConverterTypeTokenMetadata.write(inner.metadata, into);
3215
3577
  FfiConverterString.write(inner.txHash, into);
3578
+ FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails, into);
3216
3579
  return;
3217
3580
  }
3218
3581
  case PaymentDetails_Tags.Lightning:
@@ -3225,6 +3588,7 @@ const FfiConverterTypePaymentDetails = (() => {
3225
3588
  FfiConverterString.write(inner.paymentHash, into);
3226
3589
  FfiConverterString.write(inner.destinationPubkey, into);
3227
3590
  FfiConverterOptionalTypeLnurlPayInfo.write(inner.lnurlPayInfo, into);
3591
+ FfiConverterOptionalTypeLnurlWithdrawInfo.write(inner.lnurlWithdrawInfo, into);
3228
3592
  return;
3229
3593
  }
3230
3594
  case PaymentDetails_Tags.Withdraw:
@@ -3250,7 +3614,10 @@ const FfiConverterTypePaymentDetails = (() => {
3250
3614
  switch (value.tag) {
3251
3615
  case PaymentDetails_Tags.Spark:
3252
3616
  {
3253
- return ordinalConverter.allocationSize(1);
3617
+ const inner = value.inner;
3618
+ let size = ordinalConverter.allocationSize(1);
3619
+ size += FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);
3620
+ return size;
3254
3621
  }
3255
3622
  case PaymentDetails_Tags.Token:
3256
3623
  {
@@ -3258,6 +3625,7 @@ const FfiConverterTypePaymentDetails = (() => {
3258
3625
  let size = ordinalConverter.allocationSize(2);
3259
3626
  size += FfiConverterTypeTokenMetadata.allocationSize(inner.metadata);
3260
3627
  size += FfiConverterString.allocationSize(inner.txHash);
3628
+ size += FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);
3261
3629
  return size;
3262
3630
  }
3263
3631
  case PaymentDetails_Tags.Lightning:
@@ -3270,6 +3638,7 @@ const FfiConverterTypePaymentDetails = (() => {
3270
3638
  size += FfiConverterString.allocationSize(inner.paymentHash);
3271
3639
  size += FfiConverterString.allocationSize(inner.destinationPubkey);
3272
3640
  size += FfiConverterOptionalTypeLnurlPayInfo.allocationSize(inner.lnurlPayInfo);
3641
+ size += FfiConverterOptionalTypeLnurlWithdrawInfo.allocationSize(inner.lnurlWithdrawInfo);
3273
3642
  return size;
3274
3643
  }
3275
3644
  case PaymentDetails_Tags.Withdraw:
@@ -3671,12 +4040,12 @@ const FfiConverterTypeProvisionalPaymentDetails = (() => {
3671
4040
  });
3672
4041
  case 3:
3673
4042
  return new ProvisionalPaymentDetails.Spark({
3674
- receiverAddress: FfiConverterString.read(from)
4043
+ payRequest: FfiConverterString.read(from)
3675
4044
  });
3676
4045
  case 4:
3677
4046
  return new ProvisionalPaymentDetails.Token({
3678
4047
  tokenId: FfiConverterString.read(from),
3679
- receiverAddress: FfiConverterString.read(from)
4048
+ payRequest: FfiConverterString.read(from)
3680
4049
  });
3681
4050
  default:
3682
4051
  throw new UniffiInternalError.UnexpectedEnumCase();
@@ -3702,7 +4071,7 @@ const FfiConverterTypeProvisionalPaymentDetails = (() => {
3702
4071
  {
3703
4072
  ordinalConverter.write(3, into);
3704
4073
  const inner = value.inner;
3705
- FfiConverterString.write(inner.receiverAddress, into);
4074
+ FfiConverterString.write(inner.payRequest, into);
3706
4075
  return;
3707
4076
  }
3708
4077
  case ProvisionalPaymentDetails_Tags.Token:
@@ -3710,7 +4079,7 @@ const FfiConverterTypeProvisionalPaymentDetails = (() => {
3710
4079
  ordinalConverter.write(4, into);
3711
4080
  const inner = value.inner;
3712
4081
  FfiConverterString.write(inner.tokenId, into);
3713
- FfiConverterString.write(inner.receiverAddress, into);
4082
+ FfiConverterString.write(inner.payRequest, into);
3714
4083
  return;
3715
4084
  }
3716
4085
  default:
@@ -3738,7 +4107,7 @@ const FfiConverterTypeProvisionalPaymentDetails = (() => {
3738
4107
  {
3739
4108
  const inner = value.inner;
3740
4109
  let size = ordinalConverter.allocationSize(3);
3741
- size += FfiConverterString.allocationSize(inner.receiverAddress);
4110
+ size += FfiConverterString.allocationSize(inner.payRequest);
3742
4111
  return size;
3743
4112
  }
3744
4113
  case ProvisionalPaymentDetails_Tags.Token:
@@ -3746,7 +4115,7 @@ const FfiConverterTypeProvisionalPaymentDetails = (() => {
3746
4115
  const inner = value.inner;
3747
4116
  let size = ordinalConverter.allocationSize(4);
3748
4117
  size += FfiConverterString.allocationSize(inner.tokenId);
3749
- size += FfiConverterString.allocationSize(inner.receiverAddress);
4118
+ size += FfiConverterString.allocationSize(inner.payRequest);
3750
4119
  return size;
3751
4120
  }
3752
4121
  default:
@@ -3760,6 +4129,7 @@ const FfiConverterTypeProvisionalPaymentDetails = (() => {
3760
4129
  // Enum: ReceivePaymentMethod
3761
4130
  export let ReceivePaymentMethod_Tags = /*#__PURE__*/function (ReceivePaymentMethod_Tags) {
3762
4131
  ReceivePaymentMethod_Tags["SparkAddress"] = "SparkAddress";
4132
+ ReceivePaymentMethod_Tags["SparkInvoice"] = "SparkInvoice";
3763
4133
  ReceivePaymentMethod_Tags["BitcoinAddress"] = "BitcoinAddress";
3764
4134
  ReceivePaymentMethod_Tags["Bolt11Invoice"] = "Bolt11Invoice";
3765
4135
  return ReceivePaymentMethod_Tags;
@@ -3782,6 +4152,24 @@ export const ReceivePaymentMethod = (() => {
3782
4152
  return obj.tag === ReceivePaymentMethod_Tags.SparkAddress;
3783
4153
  }
3784
4154
  }
4155
+ class SparkInvoice_ extends UniffiEnum {
4156
+ /**
4157
+ * @private
4158
+ * This field is private and should not be used, use `tag` instead.
4159
+ */
4160
+ [uniffiTypeNameSymbol] = 'ReceivePaymentMethod';
4161
+ tag = ReceivePaymentMethod_Tags.SparkInvoice;
4162
+ constructor(inner) {
4163
+ super('ReceivePaymentMethod', 'SparkInvoice');
4164
+ this.inner = Object.freeze(inner);
4165
+ }
4166
+ static new(inner) {
4167
+ return new SparkInvoice_(inner);
4168
+ }
4169
+ static instanceOf(obj) {
4170
+ return obj.tag === ReceivePaymentMethod_Tags.SparkInvoice;
4171
+ }
4172
+ }
3785
4173
  class BitcoinAddress_ extends UniffiEnum {
3786
4174
  /**
3787
4175
  * @private
@@ -3823,6 +4211,7 @@ export const ReceivePaymentMethod = (() => {
3823
4211
  return Object.freeze({
3824
4212
  instanceOf,
3825
4213
  SparkAddress: SparkAddress_,
4214
+ SparkInvoice: SparkInvoice_,
3826
4215
  BitcoinAddress: BitcoinAddress_,
3827
4216
  Bolt11Invoice: Bolt11Invoice_
3828
4217
  });
@@ -3836,8 +4225,16 @@ const FfiConverterTypeReceivePaymentMethod = (() => {
3836
4225
  case 1:
3837
4226
  return new ReceivePaymentMethod.SparkAddress();
3838
4227
  case 2:
3839
- return new ReceivePaymentMethod.BitcoinAddress();
4228
+ return new ReceivePaymentMethod.SparkInvoice({
4229
+ amount: FfiConverterOptionalTypeu128.read(from),
4230
+ tokenIdentifier: FfiConverterOptionalString.read(from),
4231
+ expiryTime: FfiConverterOptionalUInt64.read(from),
4232
+ description: FfiConverterOptionalString.read(from),
4233
+ senderPublicKey: FfiConverterOptionalString.read(from)
4234
+ });
3840
4235
  case 3:
4236
+ return new ReceivePaymentMethod.BitcoinAddress();
4237
+ case 4:
3841
4238
  return new ReceivePaymentMethod.Bolt11Invoice({
3842
4239
  description: FfiConverterString.read(from),
3843
4240
  amountSats: FfiConverterOptionalUInt64.read(from)
@@ -3853,14 +4250,25 @@ const FfiConverterTypeReceivePaymentMethod = (() => {
3853
4250
  ordinalConverter.write(1, into);
3854
4251
  return;
3855
4252
  }
3856
- case ReceivePaymentMethod_Tags.BitcoinAddress:
4253
+ case ReceivePaymentMethod_Tags.SparkInvoice:
3857
4254
  {
3858
4255
  ordinalConverter.write(2, into);
4256
+ const inner = value.inner;
4257
+ FfiConverterOptionalTypeu128.write(inner.amount, into);
4258
+ FfiConverterOptionalString.write(inner.tokenIdentifier, into);
4259
+ FfiConverterOptionalUInt64.write(inner.expiryTime, into);
4260
+ FfiConverterOptionalString.write(inner.description, into);
4261
+ FfiConverterOptionalString.write(inner.senderPublicKey, into);
3859
4262
  return;
3860
4263
  }
3861
- case ReceivePaymentMethod_Tags.Bolt11Invoice:
4264
+ case ReceivePaymentMethod_Tags.BitcoinAddress:
3862
4265
  {
3863
4266
  ordinalConverter.write(3, into);
4267
+ return;
4268
+ }
4269
+ case ReceivePaymentMethod_Tags.Bolt11Invoice:
4270
+ {
4271
+ ordinalConverter.write(4, into);
3864
4272
  const inner = value.inner;
3865
4273
  FfiConverterString.write(inner.description, into);
3866
4274
  FfiConverterOptionalUInt64.write(inner.amountSats, into);
@@ -3877,14 +4285,25 @@ const FfiConverterTypeReceivePaymentMethod = (() => {
3877
4285
  {
3878
4286
  return ordinalConverter.allocationSize(1);
3879
4287
  }
4288
+ case ReceivePaymentMethod_Tags.SparkInvoice:
4289
+ {
4290
+ const inner = value.inner;
4291
+ let size = ordinalConverter.allocationSize(2);
4292
+ size += FfiConverterOptionalTypeu128.allocationSize(inner.amount);
4293
+ size += FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);
4294
+ size += FfiConverterOptionalUInt64.allocationSize(inner.expiryTime);
4295
+ size += FfiConverterOptionalString.allocationSize(inner.description);
4296
+ size += FfiConverterOptionalString.allocationSize(inner.senderPublicKey);
4297
+ return size;
4298
+ }
3880
4299
  case ReceivePaymentMethod_Tags.BitcoinAddress:
3881
4300
  {
3882
- return ordinalConverter.allocationSize(2);
4301
+ return ordinalConverter.allocationSize(3);
3883
4302
  }
3884
4303
  case ReceivePaymentMethod_Tags.Bolt11Invoice:
3885
4304
  {
3886
4305
  const inner = value.inner;
3887
- let size = ordinalConverter.allocationSize(3);
4306
+ let size = ordinalConverter.allocationSize(4);
3888
4307
  size += FfiConverterString.allocationSize(inner.description);
3889
4308
  size += FfiConverterOptionalUInt64.allocationSize(inner.amountSats);
3890
4309
  return size;
@@ -4763,6 +5182,7 @@ export let SendPaymentMethod_Tags = /*#__PURE__*/function (SendPaymentMethod_Tag
4763
5182
  SendPaymentMethod_Tags["BitcoinAddress"] = "BitcoinAddress";
4764
5183
  SendPaymentMethod_Tags["Bolt11Invoice"] = "Bolt11Invoice";
4765
5184
  SendPaymentMethod_Tags["SparkAddress"] = "SparkAddress";
5185
+ SendPaymentMethod_Tags["SparkInvoice"] = "SparkInvoice";
4766
5186
  return SendPaymentMethod_Tags;
4767
5187
  }({});
4768
5188
  export const SendPaymentMethod = (() => {
@@ -4820,6 +5240,24 @@ export const SendPaymentMethod = (() => {
4820
5240
  return obj.tag === SendPaymentMethod_Tags.SparkAddress;
4821
5241
  }
4822
5242
  }
5243
+ class SparkInvoice_ extends UniffiEnum {
5244
+ /**
5245
+ * @private
5246
+ * This field is private and should not be used, use `tag` instead.
5247
+ */
5248
+ [uniffiTypeNameSymbol] = 'SendPaymentMethod';
5249
+ tag = SendPaymentMethod_Tags.SparkInvoice;
5250
+ constructor(inner) {
5251
+ super('SendPaymentMethod', 'SparkInvoice');
5252
+ this.inner = Object.freeze(inner);
5253
+ }
5254
+ static new(inner) {
5255
+ return new SparkInvoice_(inner);
5256
+ }
5257
+ static instanceOf(obj) {
5258
+ return obj.tag === SendPaymentMethod_Tags.SparkInvoice;
5259
+ }
5260
+ }
4823
5261
  function instanceOf(obj) {
4824
5262
  return obj[uniffiTypeNameSymbol] === 'SendPaymentMethod';
4825
5263
  }
@@ -4827,7 +5265,8 @@ export const SendPaymentMethod = (() => {
4827
5265
  instanceOf,
4828
5266
  BitcoinAddress: BitcoinAddress_,
4829
5267
  Bolt11Invoice: Bolt11Invoice_,
4830
- SparkAddress: SparkAddress_
5268
+ SparkAddress: SparkAddress_,
5269
+ SparkInvoice: SparkInvoice_
4831
5270
  });
4832
5271
  })();
4833
5272
  // FfiConverter for enum SendPaymentMethod
@@ -4853,6 +5292,12 @@ const FfiConverterTypeSendPaymentMethod = (() => {
4853
5292
  fee: FfiConverterTypeu128.read(from),
4854
5293
  tokenIdentifier: FfiConverterOptionalString.read(from)
4855
5294
  });
5295
+ case 4:
5296
+ return new SendPaymentMethod.SparkInvoice({
5297
+ sparkInvoiceDetails: FfiConverterTypeSparkInvoiceDetails.read(from),
5298
+ fee: FfiConverterTypeu128.read(from),
5299
+ tokenIdentifier: FfiConverterOptionalString.read(from)
5300
+ });
4856
5301
  default:
4857
5302
  throw new UniffiInternalError.UnexpectedEnumCase();
4858
5303
  }
@@ -4885,6 +5330,15 @@ const FfiConverterTypeSendPaymentMethod = (() => {
4885
5330
  FfiConverterOptionalString.write(inner.tokenIdentifier, into);
4886
5331
  return;
4887
5332
  }
5333
+ case SendPaymentMethod_Tags.SparkInvoice:
5334
+ {
5335
+ ordinalConverter.write(4, into);
5336
+ const inner = value.inner;
5337
+ FfiConverterTypeSparkInvoiceDetails.write(inner.sparkInvoiceDetails, into);
5338
+ FfiConverterTypeu128.write(inner.fee, into);
5339
+ FfiConverterOptionalString.write(inner.tokenIdentifier, into);
5340
+ return;
5341
+ }
4888
5342
  default:
4889
5343
  // Throwing from here means that SendPaymentMethod_Tags hasn't matched an ordinal.
4890
5344
  throw new UniffiInternalError.UnexpectedEnumCase();
@@ -4918,6 +5372,15 @@ const FfiConverterTypeSendPaymentMethod = (() => {
4918
5372
  size += FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);
4919
5373
  return size;
4920
5374
  }
5375
+ case SendPaymentMethod_Tags.SparkInvoice:
5376
+ {
5377
+ const inner = value.inner;
5378
+ let size = ordinalConverter.allocationSize(4);
5379
+ size += FfiConverterTypeSparkInvoiceDetails.allocationSize(inner.sparkInvoiceDetails);
5380
+ size += FfiConverterTypeu128.allocationSize(inner.fee);
5381
+ size += FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);
5382
+ return size;
5383
+ }
4921
5384
  default:
4922
5385
  throw new UniffiInternalError.UnexpectedEnumCase();
4923
5386
  }
@@ -5738,6 +6201,25 @@ export class BreezSdk extends UniffiAbstractObject {
5738
6201
  throw __error;
5739
6202
  }
5740
6203
  }
6204
+
6205
+ /**
6206
+ * Verifies a message signature against the provided public key. The message
6207
+ * is SHA256 hashed before verification. The signature can be hex encoded
6208
+ * in either DER or compact format.
6209
+ */
6210
+ async checkMessage(request, asyncOpts_) /*throws*/{
6211
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
6212
+ try {
6213
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
6214
+ return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this), FfiConverterTypeCheckMessageRequest.lower(request));
6215
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeCheckMessageResponse.lift.bind(FfiConverterTypeCheckMessageResponse), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));
6216
+ } catch (__error) {
6217
+ if (uniffiIsDebug && __error instanceof Error) {
6218
+ __error.stack = __stack;
6219
+ }
6220
+ throw __error;
6221
+ }
6222
+ }
5741
6223
  async claimDeposit(request, asyncOpts_) /*throws*/{
5742
6224
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
5743
6225
  try {
@@ -5943,6 +6425,47 @@ export class BreezSdk extends UniffiAbstractObject {
5943
6425
  throw __error;
5944
6426
  }
5945
6427
  }
6428
+
6429
+ /**
6430
+ * Performs an LNURL withdraw operation for the amount of satoshis to
6431
+ * withdraw and the LNURL withdraw request details. The LNURL withdraw request
6432
+ * details can be obtained from calling [`BreezSdk::parse`].
6433
+ *
6434
+ * The method generates a Lightning invoice for the withdraw amount, stores
6435
+ * the LNURL withdraw metadata, and performs the LNURL withdraw using the generated
6436
+ * invoice.
6437
+ *
6438
+ * If the `completion_timeout_secs` parameter is provided and greater than 0, the
6439
+ * method will wait for the payment to be completed within that period. If the
6440
+ * withdraw is completed within the timeout, the `payment` field in the response
6441
+ * will be set with the payment details. If the `completion_timeout_secs`
6442
+ * parameter is not provided or set to 0, the method will not wait for the payment
6443
+ * to be completed. If the withdraw is not completed within the
6444
+ * timeout, the `payment` field will be empty.
6445
+ *
6446
+ * # Arguments
6447
+ *
6448
+ * * `request` - The LNURL withdraw request
6449
+ *
6450
+ * # Returns
6451
+ *
6452
+ * Result containing either:
6453
+ * * `LnurlWithdrawResponse` - The payment details if the withdraw request was successful
6454
+ * * `SdkError` - If there was an error during the withdraw process
6455
+ */
6456
+ async lnurlWithdraw(request, asyncOpts_) /*throws*/{
6457
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
6458
+ try {
6459
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
6460
+ return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_withdraw(uniffiTypeBreezSdkObjectFactory.clonePointer(this), FfiConverterTypeLnurlWithdrawRequest.lower(request));
6461
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLnurlWithdrawResponse.lift.bind(FfiConverterTypeLnurlWithdrawResponse), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));
6462
+ } catch (__error) {
6463
+ if (uniffiIsDebug && __error instanceof Error) {
6464
+ __error.stack = __stack;
6465
+ }
6466
+ throw __error;
6467
+ }
6468
+ }
5946
6469
  async parse(input, asyncOpts_) /*throws*/{
5947
6470
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
5948
6471
  try {
@@ -6060,6 +6583,25 @@ export class BreezSdk extends UniffiAbstractObject {
6060
6583
  }
6061
6584
  }
6062
6585
 
6586
+ /**
6587
+ * Signs a message with the wallet's identity key. The message is SHA256
6588
+ * hashed before signing. The returned signature will be hex encoded in
6589
+ * DER format by default, or compact format if specified.
6590
+ */
6591
+ async signMessage(request, asyncOpts_) /*throws*/{
6592
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
6593
+ try {
6594
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
6595
+ return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this), FfiConverterTypeSignMessageRequest.lower(request));
6596
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeSignMessageResponse.lift.bind(FfiConverterTypeSignMessageResponse), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));
6597
+ } catch (__error) {
6598
+ if (uniffiIsDebug && __error instanceof Error) {
6599
+ __error.stack = __stack;
6600
+ }
6601
+ throw __error;
6602
+ }
6603
+ }
6604
+
6063
6605
  /**
6064
6606
  * Synchronizes the wallet with the Spark network
6065
6607
  */
@@ -7129,9 +7671,15 @@ const FfiConverterOptionalTypeLightningAddressInfo = new FfiConverterOptional(Ff
7129
7671
  // FfiConverter for LnurlPayInfo | undefined
7130
7672
  const FfiConverterOptionalTypeLnurlPayInfo = new FfiConverterOptional(FfiConverterTypeLnurlPayInfo);
7131
7673
 
7674
+ // FfiConverter for LnurlWithdrawInfo | undefined
7675
+ const FfiConverterOptionalTypeLnurlWithdrawInfo = new FfiConverterOptional(FfiConverterTypeLnurlWithdrawInfo);
7676
+
7132
7677
  // FfiConverter for Payment | undefined
7133
7678
  const FfiConverterOptionalTypePayment = new FfiConverterOptional(FfiConverterTypePayment);
7134
7679
 
7680
+ // FfiConverter for SparkInvoicePaymentDetails | undefined
7681
+ const FfiConverterOptionalTypeSparkInvoicePaymentDetails = new FfiConverterOptional(FfiConverterTypeSparkInvoicePaymentDetails);
7682
+
7135
7683
  // FfiConverter for string | undefined
7136
7684
  const FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
7137
7685
 
@@ -7249,6 +7797,9 @@ function uniffiEnsureInitialized() {
7249
7797
  if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available() !== 31624) {
7250
7798
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available');
7251
7799
  }
7800
+ if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message() !== 4385) {
7801
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message');
7802
+ }
7252
7803
  if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit() !== 43529) {
7253
7804
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit');
7254
7805
  }
@@ -7285,6 +7836,9 @@ function uniffiEnsureInitialized() {
7285
7836
  if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay() !== 10147) {
7286
7837
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');
7287
7838
  }
7839
+ if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw() !== 45652) {
7840
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');
7841
+ }
7288
7842
  if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse() !== 195) {
7289
7843
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');
7290
7844
  }
@@ -7309,6 +7863,9 @@ function uniffiEnsureInitialized() {
7309
7863
  if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment() !== 54349) {
7310
7864
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');
7311
7865
  }
7866
+ if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message() !== 57563) {
7867
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');
7868
+ }
7312
7869
  if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet() !== 30368) {
7313
7870
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');
7314
7871
  }
@@ -7397,6 +7954,8 @@ export default Object.freeze({
7397
7954
  FfiConverterTypeBitcoinChainService,
7398
7955
  FfiConverterTypeBreezSdk,
7399
7956
  FfiConverterTypeCheckLightningAddressRequest,
7957
+ FfiConverterTypeCheckMessageRequest,
7958
+ FfiConverterTypeCheckMessageResponse,
7400
7959
  FfiConverterTypeClaimDepositRequest,
7401
7960
  FfiConverterTypeClaimDepositResponse,
7402
7961
  FfiConverterTypeConfig,
@@ -7422,6 +7981,9 @@ export default Object.freeze({
7422
7981
  FfiConverterTypeLnurlPayInfo,
7423
7982
  FfiConverterTypeLnurlPayRequest,
7424
7983
  FfiConverterTypeLnurlPayResponse,
7984
+ FfiConverterTypeLnurlWithdrawInfo,
7985
+ FfiConverterTypeLnurlWithdrawRequest,
7986
+ FfiConverterTypeLnurlWithdrawResponse,
7425
7987
  FfiConverterTypeLogEntry,
7426
7988
  FfiConverterTypeNetwork,
7427
7989
  FfiConverterTypeOnchainConfirmationSpeed,
@@ -7453,6 +8015,9 @@ export default Object.freeze({
7453
8015
  FfiConverterTypeSendPaymentOptions,
7454
8016
  FfiConverterTypeSendPaymentRequest,
7455
8017
  FfiConverterTypeSendPaymentResponse,
8018
+ FfiConverterTypeSignMessageRequest,
8019
+ FfiConverterTypeSignMessageResponse,
8020
+ FfiConverterTypeSparkInvoicePaymentDetails,
7456
8021
  FfiConverterTypeStorage,
7457
8022
  FfiConverterTypeSyncWalletRequest,
7458
8023
  FfiConverterTypeSyncWalletResponse,