@breeztech/breez-sdk-spark-react-native 0.12.2-dev2 → 0.12.2

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 (36) hide show
  1. package/README.md +6 -6
  2. package/android/CMakeLists.txt +4 -3
  3. package/{BreezSdkSparkReactNative.podspec → breeztech-breez-sdk-spark-react-native.podspec} +2 -2
  4. package/cpp/generated/breez_sdk_spark.cpp +448 -657
  5. package/cpp/generated/breez_sdk_spark.hpp +29 -49
  6. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  7. package/lib/commonjs/generated/breez_sdk_spark.js +155 -366
  8. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  9. package/lib/commonjs/generated/breez_sdk_spark_bindings.js +2 -4
  10. package/lib/commonjs/generated/breez_sdk_spark_bindings.js.map +1 -1
  11. package/lib/commonjs/index.js +1 -11
  12. package/lib/commonjs/index.js.map +1 -1
  13. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  14. package/lib/module/generated/breez_sdk_spark.js +154 -365
  15. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  16. package/lib/module/generated/breez_sdk_spark_bindings.js +2 -4
  17. package/lib/module/generated/breez_sdk_spark_bindings.js.map +1 -1
  18. package/lib/module/index.js +0 -7
  19. package/lib/module/index.js.map +1 -1
  20. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +71 -77
  21. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  22. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +116 -1037
  23. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/src/index.d.ts +0 -1
  25. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  26. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +71 -77
  27. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  28. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +116 -1037
  29. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  30. package/lib/typescript/module/src/index.d.ts +0 -1
  31. package/lib/typescript/module/src/index.d.ts.map +1 -1
  32. package/package.json +4 -4
  33. package/src/generated/breez_sdk_spark-ffi.ts +91 -106
  34. package/src/generated/breez_sdk_spark.ts +1030 -2796
  35. package/src/generated/breez_sdk_spark_bindings.ts +2 -2
  36. package/src/index.tsx +0 -7
@@ -533,6 +533,39 @@ export declare const BurnIssuerTokenRequest: Readonly<{
533
533
  */
534
534
  defaults: () => Partial<BurnIssuerTokenRequest>;
535
535
  }>;
536
+ /**
537
+ * Request to buy Bitcoin using an external provider (`MoonPay`)
538
+ */
539
+ export type BuyBitcoinRequest = {
540
+ /**
541
+ * Optional: Lock the purchase to a specific amount in satoshis.
542
+ * When provided, the user cannot change the amount in the purchase flow.
543
+ */
544
+ lockedAmountSat: /*u64*/ bigint | undefined;
545
+ /**
546
+ * Optional: Custom redirect URL after purchase completion
547
+ */
548
+ redirectUrl: string | undefined;
549
+ };
550
+ /**
551
+ * Generated factory for {@link BuyBitcoinRequest} record objects.
552
+ */
553
+ export declare const BuyBitcoinRequest: Readonly<{
554
+ /**
555
+ * Create a frozen instance of {@link BuyBitcoinRequest}, with defaults specified
556
+ * in Rust, in the {@link breez_sdk_spark} crate.
557
+ */
558
+ create: (partial: Partial<BuyBitcoinRequest> & Required<Omit<BuyBitcoinRequest, "lockedAmountSat" | "redirectUrl">>) => BuyBitcoinRequest;
559
+ /**
560
+ * Create a frozen instance of {@link BuyBitcoinRequest}, with defaults specified
561
+ * in Rust, in the {@link breez_sdk_spark} crate.
562
+ */
563
+ new: (partial: Partial<BuyBitcoinRequest> & Required<Omit<BuyBitcoinRequest, "lockedAmountSat" | "redirectUrl">>) => BuyBitcoinRequest;
564
+ /**
565
+ * Defaults specified in the {@link breez_sdk_spark} crate.
566
+ */
567
+ defaults: () => Partial<BuyBitcoinRequest>;
568
+ }>;
536
569
  /**
537
570
  * Response containing a URL to complete the Bitcoin purchase
538
571
  */
@@ -788,13 +821,10 @@ export type Config = {
788
821
  */
789
822
  maxConcurrentClaims: number;
790
823
  /**
791
- * Optional custom Spark environment configuration.
792
- *
793
- * When set, overrides the default Spark operator pool, service provider,
794
- * threshold, and token settings. Use this to connect to alternative Spark
795
- * deployments (e.g. dev/staging environments).
824
+ * When true, enables LNURL verify support (LUD-21) and zap receipts (NIP-57).
825
+ * When false (default), these features are disabled for privacy.
796
826
  */
797
- sparkConfig: SparkConfig | undefined;
827
+ supportLnurlVerify: boolean;
798
828
  };
799
829
  /**
800
830
  * Generated factory for {@link Config} record objects.
@@ -901,24 +931,17 @@ export declare const Contact: Readonly<{
901
931
  defaults: () => Partial<Contact>;
902
932
  }>;
903
933
  /**
904
- * Outlines the steps involved in a conversion.
905
- *
906
- * Built progressively: `status` is available immediately from payment metadata,
907
- * while `from`/`to` steps are enriched later from child payments.
934
+ * Outlines the steps involved in a conversion
908
935
  */
909
936
  export type ConversionDetails = {
910
937
  /**
911
- * Current status of the conversion
938
+ * First step is converting from the available asset
912
939
  */
913
- status: ConversionStatus;
940
+ from: ConversionStep;
914
941
  /**
915
- * The send step of the conversion (e.g., sats sent to Flashnet)
942
+ * Second step is converting to the requested asset
916
943
  */
917
- from: ConversionStep | undefined;
918
- /**
919
- * The receive step of the conversion (e.g., tokens received from Flashnet)
920
- */
921
- to: ConversionStep | undefined;
944
+ to: ConversionStep;
922
945
  };
923
946
  /**
924
947
  * Generated factory for {@link ConversionDetails} record objects.
@@ -957,10 +980,6 @@ export type ConversionEstimate = {
957
980
  * Denominated in satoshis if converting from Bitcoin, otherwise in the token base units.
958
981
  */
959
982
  fee: U128;
960
- /**
961
- * The reason the conversion amount was adjusted, if applicable.
962
- */
963
- amountAdjustment: AmountAdjustmentReason | undefined;
964
983
  };
965
984
  /**
966
985
  * Generated factory for {@link ConversionEstimate} record objects.
@@ -1003,10 +1022,6 @@ export type ConversionInfo = {
1003
1022
  * The purpose of the conversion
1004
1023
  */
1005
1024
  purpose: ConversionPurpose | undefined;
1006
- /**
1007
- * The reason the conversion amount was adjusted, if applicable.
1008
- */
1009
- amountAdjustment: AmountAdjustmentReason | undefined;
1010
1025
  };
1011
1026
  /**
1012
1027
  * Generated factory for {@link ConversionInfo} record objects.
@@ -1096,10 +1111,6 @@ export type ConversionStep = {
1096
1111
  * Token metadata if a token is used for payment
1097
1112
  */
1098
1113
  tokenMetadata: TokenMetadata | undefined;
1099
- /**
1100
- * The reason the conversion amount was adjusted, if applicable.
1101
- */
1102
- amountAdjustment: AmountAdjustmentReason | undefined;
1103
1114
  };
1104
1115
  /**
1105
1116
  * Generated factory for {@link ConversionStep} record objects.
@@ -1204,7 +1215,6 @@ export type DepositInfo = {
1204
1215
  txid: string;
1205
1216
  vout: number;
1206
1217
  amountSats: bigint;
1207
- isMature: boolean;
1208
1218
  refundTx: string | undefined;
1209
1219
  refundTxId: string | undefined;
1210
1220
  claimError: DepositClaimError | undefined;
@@ -3120,7 +3130,6 @@ export type PaymentMetadata = {
3120
3130
  lnurlWithdrawInfo: LnurlWithdrawInfo | undefined;
3121
3131
  lnurlDescription: string | undefined;
3122
3132
  conversionInfo: ConversionInfo | undefined;
3123
- conversionStatus: ConversionStatus | undefined;
3124
3133
  };
3125
3134
  /**
3126
3135
  * Generated factory for {@link PaymentMetadata} record objects.
@@ -3652,70 +3661,6 @@ export declare const RegisterLightningAddressRequest: Readonly<{
3652
3661
  */
3653
3662
  defaults: () => Partial<RegisterLightningAddressRequest>;
3654
3663
  }>;
3655
- /**
3656
- * Request to register a new webhook.
3657
- */
3658
- export type RegisterWebhookRequest = {
3659
- /**
3660
- * The URL that will receive webhook notifications.
3661
- */
3662
- url: string;
3663
- /**
3664
- * A secret used for HMAC-SHA256 signature verification of webhook payloads.
3665
- */
3666
- secret: string;
3667
- /**
3668
- * The event types to subscribe to.
3669
- */
3670
- eventTypes: Array<WebhookEventType>;
3671
- };
3672
- /**
3673
- * Generated factory for {@link RegisterWebhookRequest} record objects.
3674
- */
3675
- export declare const RegisterWebhookRequest: Readonly<{
3676
- /**
3677
- * Create a frozen instance of {@link RegisterWebhookRequest}, with defaults specified
3678
- * in Rust, in the {@link breez_sdk_spark} crate.
3679
- */
3680
- create: (partial: Partial<RegisterWebhookRequest> & Required<Omit<RegisterWebhookRequest, never>>) => RegisterWebhookRequest;
3681
- /**
3682
- * Create a frozen instance of {@link RegisterWebhookRequest}, with defaults specified
3683
- * in Rust, in the {@link breez_sdk_spark} crate.
3684
- */
3685
- new: (partial: Partial<RegisterWebhookRequest> & Required<Omit<RegisterWebhookRequest, never>>) => RegisterWebhookRequest;
3686
- /**
3687
- * Defaults specified in the {@link breez_sdk_spark} crate.
3688
- */
3689
- defaults: () => Partial<RegisterWebhookRequest>;
3690
- }>;
3691
- /**
3692
- * Response from registering a webhook.
3693
- */
3694
- export type RegisterWebhookResponse = {
3695
- /**
3696
- * The unique identifier of the newly registered webhook.
3697
- */
3698
- webhookId: string;
3699
- };
3700
- /**
3701
- * Generated factory for {@link RegisterWebhookResponse} record objects.
3702
- */
3703
- export declare const RegisterWebhookResponse: Readonly<{
3704
- /**
3705
- * Create a frozen instance of {@link RegisterWebhookResponse}, with defaults specified
3706
- * in Rust, in the {@link breez_sdk_spark} crate.
3707
- */
3708
- create: (partial: Partial<RegisterWebhookResponse> & Required<Omit<RegisterWebhookResponse, never>>) => RegisterWebhookResponse;
3709
- /**
3710
- * Create a frozen instance of {@link RegisterWebhookResponse}, with defaults specified
3711
- * in Rust, in the {@link breez_sdk_spark} crate.
3712
- */
3713
- new: (partial: Partial<RegisterWebhookResponse> & Required<Omit<RegisterWebhookResponse, never>>) => RegisterWebhookResponse;
3714
- /**
3715
- * Defaults specified in the {@link breez_sdk_spark} crate.
3716
- */
3717
- defaults: () => Partial<RegisterWebhookResponse>;
3718
- }>;
3719
3664
  export type RestResponse = {
3720
3665
  status: number;
3721
3666
  body: string;
@@ -3895,6 +3840,7 @@ export type SetLnurlMetadataItem = {
3895
3840
  senderComment: string | undefined;
3896
3841
  nostrZapRequest: string | undefined;
3897
3842
  nostrZapReceipt: string | undefined;
3843
+ preimage: string | undefined;
3898
3844
  };
3899
3845
  /**
3900
3846
  * Generated factory for {@link SetLnurlMetadataItem} record objects.
@@ -4022,58 +3968,6 @@ export declare const SparkAddressDetails: Readonly<{
4022
3968
  */
4023
3969
  defaults: () => Partial<SparkAddressDetails>;
4024
3970
  }>;
4025
- /**
4026
- * Configuration for a custom Spark environment.
4027
- *
4028
- * When set on [`Config`], overrides the default Spark operator pool,
4029
- * service provider, threshold, and token settings. This allows connecting
4030
- * to alternative Spark deployments (e.g. dev/staging environments).
4031
- */
4032
- export type SparkConfig = {
4033
- /**
4034
- * Hex-encoded identifier of the coordinator operator.
4035
- */
4036
- coordinatorIdentifier: string;
4037
- /**
4038
- * The FROST signing threshold (e.g. 2 of 3).
4039
- */
4040
- threshold: number;
4041
- /**
4042
- * The set of signing operators.
4043
- */
4044
- signingOperators: Array<SparkSigningOperator>;
4045
- /**
4046
- * Service provider (SSP) configuration.
4047
- */
4048
- sspConfig: SparkSspConfig;
4049
- /**
4050
- * Expected bond amount in sats for token withdrawals.
4051
- */
4052
- expectedWithdrawBondSats: bigint;
4053
- /**
4054
- * Expected relative block locktime for token withdrawals.
4055
- */
4056
- expectedWithdrawRelativeBlockLocktime: bigint;
4057
- };
4058
- /**
4059
- * Generated factory for {@link SparkConfig} record objects.
4060
- */
4061
- export declare const SparkConfig: Readonly<{
4062
- /**
4063
- * Create a frozen instance of {@link SparkConfig}, with defaults specified
4064
- * in Rust, in the {@link breez_sdk_spark} crate.
4065
- */
4066
- create: (partial: Partial<SparkConfig> & Required<Omit<SparkConfig, never>>) => SparkConfig;
4067
- /**
4068
- * Create a frozen instance of {@link SparkConfig}, with defaults specified
4069
- * in Rust, in the {@link breez_sdk_spark} crate.
4070
- */
4071
- new: (partial: Partial<SparkConfig> & Required<Omit<SparkConfig, never>>) => SparkConfig;
4072
- /**
4073
- * Defaults specified in the {@link breez_sdk_spark} crate.
4074
- */
4075
- defaults: () => Partial<SparkConfig>;
4076
- }>;
4077
3971
  export type SparkHtlcDetails = {
4078
3972
  /**
4079
3973
  * The payment hash of the HTLC
@@ -4220,83 +4114,6 @@ export declare const SparkInvoicePaymentDetails: Readonly<{
4220
4114
  */
4221
4115
  defaults: () => Partial<SparkInvoicePaymentDetails>;
4222
4116
  }>;
4223
- /**
4224
- * A Spark signing operator.
4225
- */
4226
- export type SparkSigningOperator = {
4227
- /**
4228
- * Sequential operator ID (0-indexed).
4229
- */
4230
- id: number;
4231
- /**
4232
- * Hex-encoded 32-byte FROST identifier.
4233
- */
4234
- identifier: string;
4235
- /**
4236
- * gRPC address of the operator (e.g. `https://0.spark.lightspark.com`).
4237
- */
4238
- address: string;
4239
- /**
4240
- * Hex-encoded compressed public key of the operator.
4241
- */
4242
- identityPublicKey: string;
4243
- };
4244
- /**
4245
- * Generated factory for {@link SparkSigningOperator} record objects.
4246
- */
4247
- export declare const SparkSigningOperator: Readonly<{
4248
- /**
4249
- * Create a frozen instance of {@link SparkSigningOperator}, with defaults specified
4250
- * in Rust, in the {@link breez_sdk_spark} crate.
4251
- */
4252
- create: (partial: Partial<SparkSigningOperator> & Required<Omit<SparkSigningOperator, never>>) => SparkSigningOperator;
4253
- /**
4254
- * Create a frozen instance of {@link SparkSigningOperator}, with defaults specified
4255
- * in Rust, in the {@link breez_sdk_spark} crate.
4256
- */
4257
- new: (partial: Partial<SparkSigningOperator> & Required<Omit<SparkSigningOperator, never>>) => SparkSigningOperator;
4258
- /**
4259
- * Defaults specified in the {@link breez_sdk_spark} crate.
4260
- */
4261
- defaults: () => Partial<SparkSigningOperator>;
4262
- }>;
4263
- /**
4264
- * Configuration for the Spark Service Provider (SSP).
4265
- */
4266
- export type SparkSspConfig = {
4267
- /**
4268
- * Base URL of the SSP GraphQL API.
4269
- */
4270
- baseUrl: string;
4271
- /**
4272
- * Hex-encoded compressed public key of the SSP.
4273
- */
4274
- identityPublicKey: string;
4275
- /**
4276
- * Optional GraphQL schema endpoint path (e.g. "graphql/spark/rc").
4277
- * Defaults to the hardcoded schema endpoint if not set.
4278
- */
4279
- schemaEndpoint: string | undefined;
4280
- };
4281
- /**
4282
- * Generated factory for {@link SparkSspConfig} record objects.
4283
- */
4284
- export declare const SparkSspConfig: Readonly<{
4285
- /**
4286
- * Create a frozen instance of {@link SparkSspConfig}, with defaults specified
4287
- * in Rust, in the {@link breez_sdk_spark} crate.
4288
- */
4289
- create: (partial: Partial<SparkSspConfig> & Required<Omit<SparkSspConfig, never>>) => SparkSspConfig;
4290
- /**
4291
- * Create a frozen instance of {@link SparkSspConfig}, with defaults specified
4292
- * in Rust, in the {@link breez_sdk_spark} crate.
4293
- */
4294
- new: (partial: Partial<SparkSspConfig> & Required<Omit<SparkSspConfig, never>>) => SparkSspConfig;
4295
- /**
4296
- * Defaults specified in the {@link breez_sdk_spark} crate.
4297
- */
4298
- defaults: () => Partial<SparkSspConfig>;
4299
- }>;
4300
4117
  /**
4301
4118
  * The status of the Spark network services relevant to the SDK.
4302
4119
  */
@@ -4335,28 +4152,18 @@ export declare const SparkStatus: Readonly<{
4335
4152
  * When configured, the SDK automatically monitors the Bitcoin balance after each
4336
4153
  * wallet sync. When the balance exceeds the configured threshold plus the reserved
4337
4154
  * amount, the SDK automatically converts the excess balance (above the reserve)
4338
- * to the active stable token.
4155
+ * to the specified stable token.
4339
4156
  *
4340
4157
  * When the balance is held in a stable token, Bitcoin payments can still be sent.
4341
4158
  * The SDK automatically detects when there's not enough Bitcoin balance to cover a
4342
4159
  * payment and auto-populates the token-to-Bitcoin conversion options to facilitate
4343
4160
  * the payment.
4344
- *
4345
- * The active token can be changed at runtime via [`UpdateUserSettingsRequest`].
4346
4161
  */
4347
4162
  export type StableBalanceConfig = {
4348
4163
  /**
4349
- * Available tokens that can be used for stable balance.
4350
- */
4351
- tokens: Array<StableBalanceToken>;
4352
- /**
4353
- * The label of the token to activate by default.
4354
- *
4355
- * If `None`, stable balance starts deactivated. The user can activate it
4356
- * at runtime via [`UpdateUserSettingsRequest`]. If a user setting is cached
4357
- * locally, it takes precedence over this default.
4164
+ * The token identifier to convert Bitcoin to (required).
4358
4165
  */
4359
- defaultActiveLabel: string | undefined;
4166
+ tokenIdentifier: string;
4360
4167
  /**
4361
4168
  * The minimum sats balance that triggers auto-conversion.
4362
4169
  *
@@ -4370,6 +4177,13 @@ export type StableBalanceConfig = {
4370
4177
  * Defaults to 50 bps (0.5%) if not set.
4371
4178
  */
4372
4179
  maxSlippageBps: /*u32*/ number | undefined;
4180
+ /**
4181
+ * Amount of sats to keep as Bitcoin and not convert to stable tokens.
4182
+ *
4183
+ * This reserve ensures you can send Bitcoin payments without hitting
4184
+ * the minimum conversion limit. Defaults to the conversion minimum if not set.
4185
+ */
4186
+ reservedSats: /*u64*/ bigint | undefined;
4373
4187
  };
4374
4188
  /**
4375
4189
  * Generated factory for {@link StableBalanceConfig} record objects.
@@ -4379,53 +4193,17 @@ export declare const StableBalanceConfig: Readonly<{
4379
4193
  * Create a frozen instance of {@link StableBalanceConfig}, with defaults specified
4380
4194
  * in Rust, in the {@link breez_sdk_spark} crate.
4381
4195
  */
4382
- create: (partial: Partial<StableBalanceConfig> & Required<Omit<StableBalanceConfig, "maxSlippageBps" | "defaultActiveLabel" | "thresholdSats">>) => StableBalanceConfig;
4196
+ create: (partial: Partial<StableBalanceConfig> & Required<Omit<StableBalanceConfig, "maxSlippageBps" | "thresholdSats" | "reservedSats">>) => StableBalanceConfig;
4383
4197
  /**
4384
4198
  * Create a frozen instance of {@link StableBalanceConfig}, with defaults specified
4385
4199
  * in Rust, in the {@link breez_sdk_spark} crate.
4386
4200
  */
4387
- new: (partial: Partial<StableBalanceConfig> & Required<Omit<StableBalanceConfig, "maxSlippageBps" | "defaultActiveLabel" | "thresholdSats">>) => StableBalanceConfig;
4201
+ new: (partial: Partial<StableBalanceConfig> & Required<Omit<StableBalanceConfig, "maxSlippageBps" | "thresholdSats" | "reservedSats">>) => StableBalanceConfig;
4388
4202
  /**
4389
4203
  * Defaults specified in the {@link breez_sdk_spark} crate.
4390
4204
  */
4391
4205
  defaults: () => Partial<StableBalanceConfig>;
4392
4206
  }>;
4393
- /**
4394
- * A stable token that can be used for automatic balance conversion.
4395
- */
4396
- export type StableBalanceToken = {
4397
- /**
4398
- * Integrator-defined display label for the token, e.g. "USD".
4399
- *
4400
- * This is a short, human-readable name set by the integrator for display purposes.
4401
- * It is **not** a canonical Spark token ticker — it has no protocol-level meaning.
4402
- * Labels must be unique within the [`StableBalanceConfig::tokens`] list.
4403
- */
4404
- label: string;
4405
- /**
4406
- * The full token identifier string used for conversions.
4407
- */
4408
- tokenIdentifier: string;
4409
- };
4410
- /**
4411
- * Generated factory for {@link StableBalanceToken} record objects.
4412
- */
4413
- export declare const StableBalanceToken: Readonly<{
4414
- /**
4415
- * Create a frozen instance of {@link StableBalanceToken}, with defaults specified
4416
- * in Rust, in the {@link breez_sdk_spark} crate.
4417
- */
4418
- create: (partial: Partial<StableBalanceToken> & Required<Omit<StableBalanceToken, never>>) => StableBalanceToken;
4419
- /**
4420
- * Create a frozen instance of {@link StableBalanceToken}, with defaults specified
4421
- * in Rust, in the {@link breez_sdk_spark} crate.
4422
- */
4423
- new: (partial: Partial<StableBalanceToken> & Required<Omit<StableBalanceToken, never>>) => StableBalanceToken;
4424
- /**
4425
- * Defaults specified in the {@link breez_sdk_spark} crate.
4426
- */
4427
- defaults: () => Partial<StableBalanceToken>;
4428
- }>;
4429
4207
  /**
4430
4208
  * Storage-internal variant of [`ListPaymentsRequest`] that uses
4431
4209
  * [`StoragePaymentDetailsFilter`] instead of the public [`PaymentDetailsFilter`].
@@ -4660,34 +4438,6 @@ export declare const UnfreezeIssuerTokenResponse: Readonly<{
4660
4438
  */
4661
4439
  defaults: () => Partial<UnfreezeIssuerTokenResponse>;
4662
4440
  }>;
4663
- /**
4664
- * Request to unregister an existing webhook.
4665
- */
4666
- export type UnregisterWebhookRequest = {
4667
- /**
4668
- * The unique identifier of the webhook to unregister.
4669
- */
4670
- webhookId: string;
4671
- };
4672
- /**
4673
- * Generated factory for {@link UnregisterWebhookRequest} record objects.
4674
- */
4675
- export declare const UnregisterWebhookRequest: Readonly<{
4676
- /**
4677
- * Create a frozen instance of {@link UnregisterWebhookRequest}, with defaults specified
4678
- * in Rust, in the {@link breez_sdk_spark} crate.
4679
- */
4680
- create: (partial: Partial<UnregisterWebhookRequest> & Required<Omit<UnregisterWebhookRequest, never>>) => UnregisterWebhookRequest;
4681
- /**
4682
- * Create a frozen instance of {@link UnregisterWebhookRequest}, with defaults specified
4683
- * in Rust, in the {@link breez_sdk_spark} crate.
4684
- */
4685
- new: (partial: Partial<UnregisterWebhookRequest> & Required<Omit<UnregisterWebhookRequest, never>>) => UnregisterWebhookRequest;
4686
- /**
4687
- * Defaults specified in the {@link breez_sdk_spark} crate.
4688
- */
4689
- defaults: () => Partial<UnregisterWebhookRequest>;
4690
- }>;
4691
4441
  export type UnversionedRecordChange = {
4692
4442
  id: RecordId;
4693
4443
  schemaVersion: string;
@@ -4744,10 +4494,6 @@ export declare const UpdateContactRequest: Readonly<{
4744
4494
  }>;
4745
4495
  export type UpdateUserSettingsRequest = {
4746
4496
  sparkPrivateModeEnabled: boolean | undefined;
4747
- /**
4748
- * Update the active stable balance token. `None` means no change.
4749
- */
4750
- stableBalanceActiveLabel: StableBalanceActiveLabel | undefined;
4751
4497
  };
4752
4498
  /**
4753
4499
  * Generated factory for {@link UpdateUserSettingsRequest} record objects.
@@ -4757,12 +4503,12 @@ export declare const UpdateUserSettingsRequest: Readonly<{
4757
4503
  * Create a frozen instance of {@link UpdateUserSettingsRequest}, with defaults specified
4758
4504
  * in Rust, in the {@link breez_sdk_spark} crate.
4759
4505
  */
4760
- create: (partial: Partial<UpdateUserSettingsRequest> & Required<Omit<UpdateUserSettingsRequest, "stableBalanceActiveLabel">>) => UpdateUserSettingsRequest;
4506
+ create: (partial: Partial<UpdateUserSettingsRequest> & Required<Omit<UpdateUserSettingsRequest, never>>) => UpdateUserSettingsRequest;
4761
4507
  /**
4762
4508
  * Create a frozen instance of {@link UpdateUserSettingsRequest}, with defaults specified
4763
4509
  * in Rust, in the {@link breez_sdk_spark} crate.
4764
4510
  */
4765
- new: (partial: Partial<UpdateUserSettingsRequest> & Required<Omit<UpdateUserSettingsRequest, "stableBalanceActiveLabel">>) => UpdateUserSettingsRequest;
4511
+ new: (partial: Partial<UpdateUserSettingsRequest> & Required<Omit<UpdateUserSettingsRequest, never>>) => UpdateUserSettingsRequest;
4766
4512
  /**
4767
4513
  * Defaults specified in the {@link breez_sdk_spark} crate.
4768
4514
  */
@@ -4805,10 +4551,6 @@ export declare const UrlSuccessActionData: Readonly<{
4805
4551
  }>;
4806
4552
  export type UserSettings = {
4807
4553
  sparkPrivateModeEnabled: boolean;
4808
- /**
4809
- * The label of the currently active stable balance token, or `None` if deactivated.
4810
- */
4811
- stableBalanceActiveLabel: string | undefined;
4812
4554
  };
4813
4555
  /**
4814
4556
  * Generated factory for {@link UserSettings} record objects.
@@ -4888,42 +4630,6 @@ export declare const Wallet: Readonly<{
4888
4630
  */
4889
4631
  defaults: () => Partial<Wallet>;
4890
4632
  }>;
4891
- /**
4892
- * A registered webhook entry.
4893
- */
4894
- export type Webhook = {
4895
- /**
4896
- * Unique identifier for this webhook.
4897
- */
4898
- id: string;
4899
- /**
4900
- * The URL that receives webhook notifications.
4901
- */
4902
- url: string;
4903
- /**
4904
- * The event types this webhook is subscribed to.
4905
- */
4906
- eventTypes: Array<WebhookEventType>;
4907
- };
4908
- /**
4909
- * Generated factory for {@link Webhook} record objects.
4910
- */
4911
- export declare const Webhook: Readonly<{
4912
- /**
4913
- * Create a frozen instance of {@link Webhook}, with defaults specified
4914
- * in Rust, in the {@link breez_sdk_spark} crate.
4915
- */
4916
- create: (partial: Partial<Webhook> & Required<Omit<Webhook, never>>) => Webhook;
4917
- /**
4918
- * Create a frozen instance of {@link Webhook}, with defaults specified
4919
- * in Rust, in the {@link breez_sdk_spark} crate.
4920
- */
4921
- new: (partial: Partial<Webhook> & Required<Omit<Webhook, never>>) => Webhook;
4922
- /**
4923
- * Defaults specified in the {@link breez_sdk_spark} crate.
4924
- */
4925
- defaults: () => Partial<Webhook>;
4926
- }>;
4927
4633
  /**
4928
4634
  * Typealias from the type name used in the UDL file to the custom type. This
4929
4635
  * is needed because the UDL type name is used in function/method signatures.
@@ -5120,20 +4826,6 @@ export declare const Amount: Readonly<{
5120
4826
  };
5121
4827
  }>;
5122
4828
  export type Amount = InstanceType<(typeof Amount)[keyof Omit<typeof Amount, 'instanceOf'>]>;
5123
- /**
5124
- * The reason why a conversion amount was adjusted from the originally requested value.
5125
- */
5126
- export declare enum AmountAdjustmentReason {
5127
- /**
5128
- * The amount was increased to meet the minimum conversion limit.
5129
- */
5130
- FlooredToMinLimit = 0,
5131
- /**
5132
- * The amount was increased to convert the full token balance,
5133
- * avoiding a remaining balance below the minimum conversion limit (token dust).
5134
- */
5135
- IncreasedToAvoidDust = 1
5136
- }
5137
4829
  export declare enum AssetFilter_Tags {
5138
4830
  Bitcoin = "Bitcoin",
5139
4831
  Token = "Token"
@@ -5227,121 +4919,6 @@ export declare enum BitcoinNetwork {
5227
4919
  Signet = 3,
5228
4920
  Regtest = 4
5229
4921
  }
5230
- export declare enum BuyBitcoinRequest_Tags {
5231
- Moonpay = "Moonpay",
5232
- CashApp = "CashApp"
5233
- }
5234
- /**
5235
- * The available providers for buying Bitcoin
5236
- * Request to buy Bitcoin using an external provider.
5237
- *
5238
- * Each variant carries only the parameters relevant to that provider.
5239
- */
5240
- export declare const BuyBitcoinRequest: Readonly<{
5241
- instanceOf: (obj: any) => obj is BuyBitcoinRequest;
5242
- Moonpay: {
5243
- new (inner: {
5244
- /**
5245
- * Lock the purchase to a specific amount in satoshis.
5246
- */ lockedAmountSat: /*u64*/ bigint | undefined;
5247
- /**
5248
- * Custom redirect URL after purchase completion.
5249
- */ redirectUrl: string | undefined;
5250
- }): {
5251
- readonly tag: BuyBitcoinRequest_Tags.Moonpay;
5252
- readonly inner: Readonly<{
5253
- lockedAmountSat: /*u64*/ bigint | undefined;
5254
- redirectUrl: string | undefined;
5255
- }>;
5256
- /**
5257
- * @private
5258
- * This field is private and should not be used, use `tag` instead.
5259
- */
5260
- readonly [uniffiTypeNameSymbol]: "BuyBitcoinRequest";
5261
- };
5262
- "new"(inner: {
5263
- /**
5264
- * Lock the purchase to a specific amount in satoshis.
5265
- */ lockedAmountSat: /*u64*/ bigint | undefined;
5266
- /**
5267
- * Custom redirect URL after purchase completion.
5268
- */ redirectUrl: string | undefined;
5269
- }): {
5270
- readonly tag: BuyBitcoinRequest_Tags.Moonpay;
5271
- readonly inner: Readonly<{
5272
- lockedAmountSat: /*u64*/ bigint | undefined;
5273
- redirectUrl: string | undefined;
5274
- }>;
5275
- /**
5276
- * @private
5277
- * This field is private and should not be used, use `tag` instead.
5278
- */
5279
- readonly [uniffiTypeNameSymbol]: "BuyBitcoinRequest";
5280
- };
5281
- instanceOf(obj: any): obj is {
5282
- readonly tag: BuyBitcoinRequest_Tags.Moonpay;
5283
- readonly inner: Readonly<{
5284
- lockedAmountSat: /*u64*/ bigint | undefined;
5285
- redirectUrl: string | undefined;
5286
- }>;
5287
- /**
5288
- * @private
5289
- * This field is private and should not be used, use `tag` instead.
5290
- */
5291
- readonly [uniffiTypeNameSymbol]: "BuyBitcoinRequest";
5292
- };
5293
- };
5294
- CashApp: {
5295
- new (inner: {
5296
- /**
5297
- * Amount in satoshis for the Lightning invoice.
5298
- */ amountSats: /*u64*/ bigint | undefined;
5299
- }): {
5300
- readonly tag: BuyBitcoinRequest_Tags.CashApp;
5301
- readonly inner: Readonly<{
5302
- amountSats: /*u64*/ bigint | undefined;
5303
- }>;
5304
- /**
5305
- * @private
5306
- * This field is private and should not be used, use `tag` instead.
5307
- */
5308
- readonly [uniffiTypeNameSymbol]: "BuyBitcoinRequest";
5309
- };
5310
- "new"(inner: {
5311
- /**
5312
- * Amount in satoshis for the Lightning invoice.
5313
- */ amountSats: /*u64*/ bigint | undefined;
5314
- }): {
5315
- readonly tag: BuyBitcoinRequest_Tags.CashApp;
5316
- readonly inner: Readonly<{
5317
- amountSats: /*u64*/ bigint | undefined;
5318
- }>;
5319
- /**
5320
- * @private
5321
- * This field is private and should not be used, use `tag` instead.
5322
- */
5323
- readonly [uniffiTypeNameSymbol]: "BuyBitcoinRequest";
5324
- };
5325
- instanceOf(obj: any): obj is {
5326
- readonly tag: BuyBitcoinRequest_Tags.CashApp;
5327
- readonly inner: Readonly<{
5328
- amountSats: /*u64*/ bigint | undefined;
5329
- }>;
5330
- /**
5331
- * @private
5332
- * This field is private and should not be used, use `tag` instead.
5333
- */
5334
- readonly [uniffiTypeNameSymbol]: "BuyBitcoinRequest";
5335
- };
5336
- };
5337
- }>;
5338
- /**
5339
- * The available providers for buying Bitcoin
5340
- * Request to buy Bitcoin using an external provider.
5341
- *
5342
- * Each variant carries only the parameters relevant to that provider.
5343
- */
5344
- export type BuyBitcoinRequest = InstanceType<(typeof BuyBitcoinRequest)[keyof Omit<typeof BuyBitcoinRequest, 'instanceOf'>]>;
5345
4922
  export declare enum ChainApiType {
5346
4923
  Esplora = 0,
5347
4924
  MempoolSpace = 1
@@ -5684,27 +5261,19 @@ export type ConversionPurpose = InstanceType<(typeof ConversionPurpose)[keyof Om
5684
5261
  * The status of the conversion
5685
5262
  */
5686
5263
  export declare enum ConversionStatus {
5687
- /**
5688
- * Conversion is in-flight (queued or started, not yet completed)
5689
- */
5690
- Pending = 0,
5691
5264
  /**
5692
5265
  * The conversion was successful
5693
5266
  */
5694
- Completed = 1,
5695
- /**
5696
- * The conversion failed (e.g., the initial send payment failed)
5697
- */
5698
- Failed = 2,
5267
+ Completed = 0,
5699
5268
  /**
5700
5269
  * The conversion failed and no refund was made yet, which requires action by the SDK to
5701
5270
  * perform the refund. This can happen if there was a failure during the conversion process.
5702
5271
  */
5703
- RefundNeeded = 3,
5272
+ RefundNeeded = 1,
5704
5273
  /**
5705
5274
  * The conversion failed and a refund was made
5706
5275
  */
5707
- Refunded = 4
5276
+ Refunded = 2
5708
5277
  }
5709
5278
  export declare enum ConversionType_Tags {
5710
5279
  FromBitcoin = "FromBitcoin",
@@ -9107,34 +8676,16 @@ export declare const ReceivePaymentMethod: Readonly<{
9107
8676
  };
9108
8677
  };
9109
8678
  BitcoinAddress: {
9110
- new (inner: {
9111
- /**
9112
- * If true, rotate to a new deposit address. Previous ones remain valid.
9113
- * If false or absent, return the existing address (creating one if none
9114
- * exists yet).
9115
- */ newAddress: boolean | undefined;
9116
- }): {
8679
+ new (): {
9117
8680
  readonly tag: ReceivePaymentMethod_Tags.BitcoinAddress;
9118
- readonly inner: Readonly<{
9119
- newAddress: boolean | undefined;
9120
- }>;
9121
8681
  /**
9122
8682
  * @private
9123
8683
  * This field is private and should not be used, use `tag` instead.
9124
8684
  */
9125
8685
  readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
9126
8686
  };
9127
- "new"(inner: {
9128
- /**
9129
- * If true, rotate to a new deposit address. Previous ones remain valid.
9130
- * If false or absent, return the existing address (creating one if none
9131
- * exists yet).
9132
- */ newAddress: boolean | undefined;
9133
- }): {
8687
+ "new"(): {
9134
8688
  readonly tag: ReceivePaymentMethod_Tags.BitcoinAddress;
9135
- readonly inner: Readonly<{
9136
- newAddress: boolean | undefined;
9137
- }>;
9138
8689
  /**
9139
8690
  * @private
9140
8691
  * This field is private and should not be used, use `tag` instead.
@@ -9143,9 +8694,6 @@ export declare const ReceivePaymentMethod: Readonly<{
9143
8694
  };
9144
8695
  instanceOf(obj: any): obj is {
9145
8696
  readonly tag: ReceivePaymentMethod_Tags.BitcoinAddress;
9146
- readonly inner: Readonly<{
9147
- newAddress: boolean | undefined;
9148
- }>;
9149
8697
  /**
9150
8698
  * @private
9151
8699
  * This field is private and should not be used, use `tag` instead.
@@ -10160,8 +9708,7 @@ export declare enum SdkEvent_Tags {
10160
9708
  PaymentPending = "PaymentPending",
10161
9709
  PaymentFailed = "PaymentFailed",
10162
9710
  Optimization = "Optimization",
10163
- LightningAddressChanged = "LightningAddressChanged",
10164
- NewDeposits = "NewDeposits"
9711
+ LightningAddressChanged = "LightningAddressChanged"
10165
9712
  }
10166
9713
  /**
10167
9714
  * Events emitted by the SDK
@@ -10395,46 +9942,7 @@ export declare const SdkEvent: Readonly<{
10395
9942
  }): {
10396
9943
  readonly tag: SdkEvent_Tags.Optimization;
10397
9944
  readonly inner: Readonly<{
10398
- optimizationEvent: OptimizationEvent;
10399
- }>;
10400
- /**
10401
- * @private
10402
- * This field is private and should not be used, use `tag` instead.
10403
- */
10404
- readonly [uniffiTypeNameSymbol]: "SdkEvent";
10405
- };
10406
- "new"(inner: {
10407
- optimizationEvent: OptimizationEvent;
10408
- }): {
10409
- readonly tag: SdkEvent_Tags.Optimization;
10410
- readonly inner: Readonly<{
10411
- optimizationEvent: OptimizationEvent;
10412
- }>;
10413
- /**
10414
- * @private
10415
- * This field is private and should not be used, use `tag` instead.
10416
- */
10417
- readonly [uniffiTypeNameSymbol]: "SdkEvent";
10418
- };
10419
- instanceOf(obj: any): obj is {
10420
- readonly tag: SdkEvent_Tags.Optimization;
10421
- readonly inner: Readonly<{
10422
- optimizationEvent: OptimizationEvent;
10423
- }>;
10424
- /**
10425
- * @private
10426
- * This field is private and should not be used, use `tag` instead.
10427
- */
10428
- readonly [uniffiTypeNameSymbol]: "SdkEvent";
10429
- };
10430
- };
10431
- LightningAddressChanged: {
10432
- new (inner: {
10433
- lightningAddress: LightningAddressInfo | undefined;
10434
- }): {
10435
- readonly tag: SdkEvent_Tags.LightningAddressChanged;
10436
- readonly inner: Readonly<{
10437
- lightningAddress: LightningAddressInfo | undefined;
9945
+ optimizationEvent: OptimizationEvent;
10438
9946
  }>;
10439
9947
  /**
10440
9948
  * @private
@@ -10443,11 +9951,11 @@ export declare const SdkEvent: Readonly<{
10443
9951
  readonly [uniffiTypeNameSymbol]: "SdkEvent";
10444
9952
  };
10445
9953
  "new"(inner: {
10446
- lightningAddress: LightningAddressInfo | undefined;
9954
+ optimizationEvent: OptimizationEvent;
10447
9955
  }): {
10448
- readonly tag: SdkEvent_Tags.LightningAddressChanged;
9956
+ readonly tag: SdkEvent_Tags.Optimization;
10449
9957
  readonly inner: Readonly<{
10450
- lightningAddress: LightningAddressInfo | undefined;
9958
+ optimizationEvent: OptimizationEvent;
10451
9959
  }>;
10452
9960
  /**
10453
9961
  * @private
@@ -10456,9 +9964,9 @@ export declare const SdkEvent: Readonly<{
10456
9964
  readonly [uniffiTypeNameSymbol]: "SdkEvent";
10457
9965
  };
10458
9966
  instanceOf(obj: any): obj is {
10459
- readonly tag: SdkEvent_Tags.LightningAddressChanged;
9967
+ readonly tag: SdkEvent_Tags.Optimization;
10460
9968
  readonly inner: Readonly<{
10461
- lightningAddress: LightningAddressInfo | undefined;
9969
+ optimizationEvent: OptimizationEvent;
10462
9970
  }>;
10463
9971
  /**
10464
9972
  * @private
@@ -10467,13 +9975,13 @@ export declare const SdkEvent: Readonly<{
10467
9975
  readonly [uniffiTypeNameSymbol]: "SdkEvent";
10468
9976
  };
10469
9977
  };
10470
- NewDeposits: {
9978
+ LightningAddressChanged: {
10471
9979
  new (inner: {
10472
- newDeposits: Array<DepositInfo>;
9980
+ lightningAddress: LightningAddressInfo | undefined;
10473
9981
  }): {
10474
- readonly tag: SdkEvent_Tags.NewDeposits;
9982
+ readonly tag: SdkEvent_Tags.LightningAddressChanged;
10475
9983
  readonly inner: Readonly<{
10476
- newDeposits: Array<DepositInfo>;
9984
+ lightningAddress: LightningAddressInfo | undefined;
10477
9985
  }>;
10478
9986
  /**
10479
9987
  * @private
@@ -10482,11 +9990,11 @@ export declare const SdkEvent: Readonly<{
10482
9990
  readonly [uniffiTypeNameSymbol]: "SdkEvent";
10483
9991
  };
10484
9992
  "new"(inner: {
10485
- newDeposits: Array<DepositInfo>;
9993
+ lightningAddress: LightningAddressInfo | undefined;
10486
9994
  }): {
10487
- readonly tag: SdkEvent_Tags.NewDeposits;
9995
+ readonly tag: SdkEvent_Tags.LightningAddressChanged;
10488
9996
  readonly inner: Readonly<{
10489
- newDeposits: Array<DepositInfo>;
9997
+ lightningAddress: LightningAddressInfo | undefined;
10490
9998
  }>;
10491
9999
  /**
10492
10000
  * @private
@@ -10495,9 +10003,9 @@ export declare const SdkEvent: Readonly<{
10495
10003
  readonly [uniffiTypeNameSymbol]: "SdkEvent";
10496
10004
  };
10497
10005
  instanceOf(obj: any): obj is {
10498
- readonly tag: SdkEvent_Tags.NewDeposits;
10006
+ readonly tag: SdkEvent_Tags.LightningAddressChanged;
10499
10007
  readonly inner: Readonly<{
10500
- newDeposits: Array<DepositInfo>;
10008
+ lightningAddress: LightningAddressInfo | undefined;
10501
10009
  }>;
10502
10010
  /**
10503
10011
  * @private
@@ -12285,85 +11793,6 @@ export declare enum SparkHtlcStatus {
12285
11793
  */
12286
11794
  Returned = 2
12287
11795
  }
12288
- export declare enum StableBalanceActiveLabel_Tags {
12289
- Set = "Set",
12290
- Unset = "Unset"
12291
- }
12292
- /**
12293
- * Specifies how to update the active stable balance token.
12294
- */
12295
- export declare const StableBalanceActiveLabel: Readonly<{
12296
- instanceOf: (obj: any) => obj is StableBalanceActiveLabel;
12297
- Set: {
12298
- new (inner: {
12299
- label: string;
12300
- }): {
12301
- readonly tag: StableBalanceActiveLabel_Tags.Set;
12302
- readonly inner: Readonly<{
12303
- label: string;
12304
- }>;
12305
- /**
12306
- * @private
12307
- * This field is private and should not be used, use `tag` instead.
12308
- */
12309
- readonly [uniffiTypeNameSymbol]: "StableBalanceActiveLabel";
12310
- };
12311
- "new"(inner: {
12312
- label: string;
12313
- }): {
12314
- readonly tag: StableBalanceActiveLabel_Tags.Set;
12315
- readonly inner: Readonly<{
12316
- label: string;
12317
- }>;
12318
- /**
12319
- * @private
12320
- * This field is private and should not be used, use `tag` instead.
12321
- */
12322
- readonly [uniffiTypeNameSymbol]: "StableBalanceActiveLabel";
12323
- };
12324
- instanceOf(obj: any): obj is {
12325
- readonly tag: StableBalanceActiveLabel_Tags.Set;
12326
- readonly inner: Readonly<{
12327
- label: string;
12328
- }>;
12329
- /**
12330
- * @private
12331
- * This field is private and should not be used, use `tag` instead.
12332
- */
12333
- readonly [uniffiTypeNameSymbol]: "StableBalanceActiveLabel";
12334
- };
12335
- };
12336
- Unset: {
12337
- new (): {
12338
- readonly tag: StableBalanceActiveLabel_Tags.Unset;
12339
- /**
12340
- * @private
12341
- * This field is private and should not be used, use `tag` instead.
12342
- */
12343
- readonly [uniffiTypeNameSymbol]: "StableBalanceActiveLabel";
12344
- };
12345
- "new"(): {
12346
- readonly tag: StableBalanceActiveLabel_Tags.Unset;
12347
- /**
12348
- * @private
12349
- * This field is private and should not be used, use `tag` instead.
12350
- */
12351
- readonly [uniffiTypeNameSymbol]: "StableBalanceActiveLabel";
12352
- };
12353
- instanceOf(obj: any): obj is {
12354
- readonly tag: StableBalanceActiveLabel_Tags.Unset;
12355
- /**
12356
- * @private
12357
- * This field is private and should not be used, use `tag` instead.
12358
- */
12359
- readonly [uniffiTypeNameSymbol]: "StableBalanceActiveLabel";
12360
- };
12361
- };
12362
- }>;
12363
- /**
12364
- * Specifies how to update the active stable balance token.
12365
- */
12366
- export type StableBalanceActiveLabel = InstanceType<(typeof StableBalanceActiveLabel)[keyof Omit<typeof StableBalanceActiveLabel, 'instanceOf'>]>;
12367
11796
  export declare enum StorageError_Tags {
12368
11797
  Connection = "Connection",
12369
11798
  Implementation = "Implementation",
@@ -12725,7 +12154,9 @@ export declare enum StoragePaymentDetailsFilter_Tags {
12725
12154
  Lightning = "Lightning"
12726
12155
  }
12727
12156
  /**
12728
- * Storage-internal variant of [`PaymentDetailsFilter`].
12157
+ * Storage-internal variant of [`PaymentDetailsFilter`] that includes the
12158
+ * `has_lnurl_preimage` field on the `Lightning` variant, which is not exposed
12159
+ * in the public API.
12729
12160
  */
12730
12161
  export declare const StoragePaymentDetailsFilter: Readonly<{
12731
12162
  instanceOf: (obj: any) => obj is StoragePaymentDetailsFilter;
@@ -12825,10 +12256,12 @@ export declare const StoragePaymentDetailsFilter: Readonly<{
12825
12256
  Lightning: {
12826
12257
  new (inner: {
12827
12258
  htlcStatus: Array<SparkHtlcStatus> | undefined;
12259
+ hasLnurlPreimage: boolean | undefined;
12828
12260
  }): {
12829
12261
  readonly tag: StoragePaymentDetailsFilter_Tags.Lightning;
12830
12262
  readonly inner: Readonly<{
12831
12263
  htlcStatus: Array<SparkHtlcStatus> | undefined;
12264
+ hasLnurlPreimage: boolean | undefined;
12832
12265
  }>;
12833
12266
  /**
12834
12267
  * @private
@@ -12838,10 +12271,12 @@ export declare const StoragePaymentDetailsFilter: Readonly<{
12838
12271
  };
12839
12272
  "new"(inner: {
12840
12273
  htlcStatus: Array<SparkHtlcStatus> | undefined;
12274
+ hasLnurlPreimage: boolean | undefined;
12841
12275
  }): {
12842
12276
  readonly tag: StoragePaymentDetailsFilter_Tags.Lightning;
12843
12277
  readonly inner: Readonly<{
12844
12278
  htlcStatus: Array<SparkHtlcStatus> | undefined;
12279
+ hasLnurlPreimage: boolean | undefined;
12845
12280
  }>;
12846
12281
  /**
12847
12282
  * @private
@@ -12853,6 +12288,7 @@ export declare const StoragePaymentDetailsFilter: Readonly<{
12853
12288
  readonly tag: StoragePaymentDetailsFilter_Tags.Lightning;
12854
12289
  readonly inner: Readonly<{
12855
12290
  htlcStatus: Array<SparkHtlcStatus> | undefined;
12291
+ hasLnurlPreimage: boolean | undefined;
12856
12292
  }>;
12857
12293
  /**
12858
12294
  * @private
@@ -12863,7 +12299,9 @@ export declare const StoragePaymentDetailsFilter: Readonly<{
12863
12299
  };
12864
12300
  }>;
12865
12301
  /**
12866
- * Storage-internal variant of [`PaymentDetailsFilter`].
12302
+ * Storage-internal variant of [`PaymentDetailsFilter`] that includes the
12303
+ * `has_lnurl_preimage` field on the `Lightning` variant, which is not exposed
12304
+ * in the public API.
12867
12305
  */
12868
12306
  export type StoragePaymentDetailsFilter = InstanceType<(typeof StoragePaymentDetailsFilter)[keyof Omit<typeof StoragePaymentDetailsFilter, 'instanceOf'>]>;
12869
12307
  export declare enum SuccessAction_Tags {
@@ -13236,156 +12674,6 @@ export declare const UpdateDepositPayload: Readonly<{
13236
12674
  };
13237
12675
  }>;
13238
12676
  export type UpdateDepositPayload = InstanceType<(typeof UpdateDepositPayload)[keyof Omit<typeof UpdateDepositPayload, 'instanceOf'>]>;
13239
- export declare enum WebhookEventType_Tags {
13240
- LightningReceiveFinished = "LightningReceiveFinished",
13241
- LightningSendFinished = "LightningSendFinished",
13242
- CoopExitFinished = "CoopExitFinished",
13243
- StaticDepositFinished = "StaticDepositFinished",
13244
- Unknown = "Unknown"
13245
- }
13246
- /**
13247
- * The type of event that triggers a webhook notification.
13248
- */
13249
- export declare const WebhookEventType: Readonly<{
13250
- instanceOf: (obj: any) => obj is WebhookEventType;
13251
- LightningReceiveFinished: {
13252
- new (): {
13253
- readonly tag: WebhookEventType_Tags.LightningReceiveFinished;
13254
- /**
13255
- * @private
13256
- * This field is private and should not be used, use `tag` instead.
13257
- */
13258
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13259
- };
13260
- "new"(): {
13261
- readonly tag: WebhookEventType_Tags.LightningReceiveFinished;
13262
- /**
13263
- * @private
13264
- * This field is private and should not be used, use `tag` instead.
13265
- */
13266
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13267
- };
13268
- instanceOf(obj: any): obj is {
13269
- readonly tag: WebhookEventType_Tags.LightningReceiveFinished;
13270
- /**
13271
- * @private
13272
- * This field is private and should not be used, use `tag` instead.
13273
- */
13274
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13275
- };
13276
- };
13277
- LightningSendFinished: {
13278
- new (): {
13279
- readonly tag: WebhookEventType_Tags.LightningSendFinished;
13280
- /**
13281
- * @private
13282
- * This field is private and should not be used, use `tag` instead.
13283
- */
13284
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13285
- };
13286
- "new"(): {
13287
- readonly tag: WebhookEventType_Tags.LightningSendFinished;
13288
- /**
13289
- * @private
13290
- * This field is private and should not be used, use `tag` instead.
13291
- */
13292
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13293
- };
13294
- instanceOf(obj: any): obj is {
13295
- readonly tag: WebhookEventType_Tags.LightningSendFinished;
13296
- /**
13297
- * @private
13298
- * This field is private and should not be used, use `tag` instead.
13299
- */
13300
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13301
- };
13302
- };
13303
- CoopExitFinished: {
13304
- new (): {
13305
- readonly tag: WebhookEventType_Tags.CoopExitFinished;
13306
- /**
13307
- * @private
13308
- * This field is private and should not be used, use `tag` instead.
13309
- */
13310
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13311
- };
13312
- "new"(): {
13313
- readonly tag: WebhookEventType_Tags.CoopExitFinished;
13314
- /**
13315
- * @private
13316
- * This field is private and should not be used, use `tag` instead.
13317
- */
13318
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13319
- };
13320
- instanceOf(obj: any): obj is {
13321
- readonly tag: WebhookEventType_Tags.CoopExitFinished;
13322
- /**
13323
- * @private
13324
- * This field is private and should not be used, use `tag` instead.
13325
- */
13326
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13327
- };
13328
- };
13329
- StaticDepositFinished: {
13330
- new (): {
13331
- readonly tag: WebhookEventType_Tags.StaticDepositFinished;
13332
- /**
13333
- * @private
13334
- * This field is private and should not be used, use `tag` instead.
13335
- */
13336
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13337
- };
13338
- "new"(): {
13339
- readonly tag: WebhookEventType_Tags.StaticDepositFinished;
13340
- /**
13341
- * @private
13342
- * This field is private and should not be used, use `tag` instead.
13343
- */
13344
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13345
- };
13346
- instanceOf(obj: any): obj is {
13347
- readonly tag: WebhookEventType_Tags.StaticDepositFinished;
13348
- /**
13349
- * @private
13350
- * This field is private and should not be used, use `tag` instead.
13351
- */
13352
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13353
- };
13354
- };
13355
- Unknown: {
13356
- new (v0: string): {
13357
- readonly tag: WebhookEventType_Tags.Unknown;
13358
- readonly inner: Readonly<[string]>;
13359
- /**
13360
- * @private
13361
- * This field is private and should not be used, use `tag` instead.
13362
- */
13363
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13364
- };
13365
- "new"(v0: string): {
13366
- readonly tag: WebhookEventType_Tags.Unknown;
13367
- readonly inner: Readonly<[string]>;
13368
- /**
13369
- * @private
13370
- * This field is private and should not be used, use `tag` instead.
13371
- */
13372
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13373
- };
13374
- instanceOf(obj: any): obj is {
13375
- readonly tag: WebhookEventType_Tags.Unknown;
13376
- readonly inner: Readonly<[string]>;
13377
- /**
13378
- * @private
13379
- * This field is private and should not be used, use `tag` instead.
13380
- */
13381
- readonly [uniffiTypeNameSymbol]: "WebhookEventType";
13382
- };
13383
- };
13384
- }>;
13385
- /**
13386
- * The type of event that triggers a webhook notification.
13387
- */
13388
- export type WebhookEventType = InstanceType<(typeof WebhookEventType)[keyof Omit<typeof WebhookEventType, 'instanceOf'>]>;
13389
12677
  export interface BitcoinChainService {
13390
12678
  getAddressUtxos(address: string, asyncOpts_?: {
13391
12679
  signal: AbortSignal;
@@ -13463,13 +12751,19 @@ export interface BreezSdkInterface {
13463
12751
  signal: AbortSignal;
13464
12752
  }): Promise<string>;
13465
12753
  /**
13466
- * Initiates a Bitcoin purchase flow via an external provider.
12754
+ * Initiates a Bitcoin purchase flow via an external provider (`MoonPay`).
12755
+ *
12756
+ * This method generates a URL that the user can open in a browser to complete
12757
+ * the Bitcoin purchase. The purchased Bitcoin will be sent to an automatically
12758
+ * generated deposit address.
12759
+ *
12760
+ * # Arguments
13467
12761
  *
13468
- * Returns a URL the user should open to complete the purchase.
13469
- * The request variant determines the provider and its parameters:
12762
+ * * `request` - The purchase request containing optional amount and redirect URL
13470
12763
  *
13471
- * - [`BuyBitcoinRequest::Moonpay`]: Fiat-to-Bitcoin via on-chain deposit.
13472
- * - [`BuyBitcoinRequest::CashApp`]: Lightning invoice + `cash.app` deep link (mainnet only).
12764
+ * # Returns
12765
+ *
12766
+ * A response containing the URL to open in a browser to complete the purchase
13473
12767
  */
13474
12768
  buyBitcoin(request: BuyBitcoinRequest, asyncOpts_?: {
13475
12769
  signal: AbortSignal;
@@ -13624,16 +12918,6 @@ export interface BreezSdkInterface {
13624
12918
  listUnclaimedDeposits(request: ListUnclaimedDepositsRequest, asyncOpts_?: {
13625
12919
  signal: AbortSignal;
13626
12920
  }): Promise<ListUnclaimedDepositsResponse>;
13627
- /**
13628
- * Lists all webhooks currently registered for this wallet.
13629
- *
13630
- * # Returns
13631
- *
13632
- * A list of registered webhooks with their IDs, URLs, and subscribed event types
13633
- */
13634
- listWebhooks(asyncOpts_?: {
13635
- signal: AbortSignal;
13636
- }): Promise<Array<Webhook>>;
13637
12921
  /**
13638
12922
  * Performs LNURL-auth with the service.
13639
12923
  *
@@ -13701,24 +12985,6 @@ export interface BreezSdkInterface {
13701
12985
  registerLightningAddress(request: RegisterLightningAddressRequest, asyncOpts_?: {
13702
12986
  signal: AbortSignal;
13703
12987
  }): Promise<LightningAddressInfo>;
13704
- /**
13705
- * Registers a webhook to receive notifications for wallet events.
13706
- *
13707
- * When registered events occur (e.g., a Lightning payment is received),
13708
- * the Spark service provider will send an HTTP POST to the specified URL
13709
- * with a payload signed using HMAC-SHA256 with the provided secret.
13710
- *
13711
- * # Arguments
13712
- *
13713
- * * `request` - The webhook registration details including URL, secret, and event types
13714
- *
13715
- * # Returns
13716
- *
13717
- * A response containing the unique identifier of the registered webhook
13718
- */
13719
- registerWebhook(request: RegisterWebhookRequest, asyncOpts_?: {
13720
- signal: AbortSignal;
13721
- }): Promise<RegisterWebhookResponse>;
13722
12988
  /**
13723
12989
  * Removes a previously registered event listener
13724
12990
  *
@@ -13751,28 +13017,13 @@ export interface BreezSdkInterface {
13751
13017
  * immediately. Progress is reported via events.
13752
13018
  * If optimization is already running, no new task will be started.
13753
13019
  */
13754
- startLeafOptimization(asyncOpts_?: {
13755
- signal: AbortSignal;
13756
- }): Promise<void>;
13020
+ startLeafOptimization(): void;
13757
13021
  /**
13758
13022
  * Synchronizes the wallet with the Spark network
13759
13023
  */
13760
13024
  syncWallet(request: SyncWalletRequest, asyncOpts_?: {
13761
13025
  signal: AbortSignal;
13762
13026
  }): Promise<SyncWalletResponse>;
13763
- /**
13764
- * Unregisters a previously registered webhook.
13765
- *
13766
- * After unregistering, the Spark service provider will no longer send
13767
- * notifications to the webhook URL.
13768
- *
13769
- * # Arguments
13770
- *
13771
- * * `request` - The unregister request containing the webhook ID
13772
- */
13773
- unregisterWebhook(request: UnregisterWebhookRequest, asyncOpts_?: {
13774
- signal: AbortSignal;
13775
- }): Promise<void>;
13776
13027
  /**
13777
13028
  * Updates an existing contact.
13778
13029
  *
@@ -13834,13 +13085,19 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
13834
13085
  signal: AbortSignal;
13835
13086
  }): Promise<string>;
13836
13087
  /**
13837
- * Initiates a Bitcoin purchase flow via an external provider.
13088
+ * Initiates a Bitcoin purchase flow via an external provider (`MoonPay`).
13838
13089
  *
13839
- * Returns a URL the user should open to complete the purchase.
13840
- * The request variant determines the provider and its parameters:
13090
+ * This method generates a URL that the user can open in a browser to complete
13091
+ * the Bitcoin purchase. The purchased Bitcoin will be sent to an automatically
13092
+ * generated deposit address.
13841
13093
  *
13842
- * - [`BuyBitcoinRequest::Moonpay`]: Fiat-to-Bitcoin via on-chain deposit.
13843
- * - [`BuyBitcoinRequest::CashApp`]: Lightning invoice + `cash.app` deep link (mainnet only).
13094
+ * # Arguments
13095
+ *
13096
+ * * `request` - The purchase request containing optional amount and redirect URL
13097
+ *
13098
+ * # Returns
13099
+ *
13100
+ * A response containing the URL to open in a browser to complete the purchase
13844
13101
  */
13845
13102
  buyBitcoin(request: BuyBitcoinRequest, asyncOpts_?: {
13846
13103
  signal: AbortSignal;
@@ -13995,16 +13252,6 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
13995
13252
  listUnclaimedDeposits(request: ListUnclaimedDepositsRequest, asyncOpts_?: {
13996
13253
  signal: AbortSignal;
13997
13254
  }): Promise<ListUnclaimedDepositsResponse>;
13998
- /**
13999
- * Lists all webhooks currently registered for this wallet.
14000
- *
14001
- * # Returns
14002
- *
14003
- * A list of registered webhooks with their IDs, URLs, and subscribed event types
14004
- */
14005
- listWebhooks(asyncOpts_?: {
14006
- signal: AbortSignal;
14007
- }): Promise<Array<Webhook>>;
14008
13255
  /**
14009
13256
  * Performs LNURL-auth with the service.
14010
13257
  *
@@ -14072,24 +13319,6 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
14072
13319
  registerLightningAddress(request: RegisterLightningAddressRequest, asyncOpts_?: {
14073
13320
  signal: AbortSignal;
14074
13321
  }): Promise<LightningAddressInfo>;
14075
- /**
14076
- * Registers a webhook to receive notifications for wallet events.
14077
- *
14078
- * When registered events occur (e.g., a Lightning payment is received),
14079
- * the Spark service provider will send an HTTP POST to the specified URL
14080
- * with a payload signed using HMAC-SHA256 with the provided secret.
14081
- *
14082
- * # Arguments
14083
- *
14084
- * * `request` - The webhook registration details including URL, secret, and event types
14085
- *
14086
- * # Returns
14087
- *
14088
- * A response containing the unique identifier of the registered webhook
14089
- */
14090
- registerWebhook(request: RegisterWebhookRequest, asyncOpts_?: {
14091
- signal: AbortSignal;
14092
- }): Promise<RegisterWebhookResponse>;
14093
13322
  /**
14094
13323
  * Removes a previously registered event listener
14095
13324
  *
@@ -14122,28 +13351,13 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
14122
13351
  * immediately. Progress is reported via events.
14123
13352
  * If optimization is already running, no new task will be started.
14124
13353
  */
14125
- startLeafOptimization(asyncOpts_?: {
14126
- signal: AbortSignal;
14127
- }): Promise<void>;
13354
+ startLeafOptimization(): void;
14128
13355
  /**
14129
13356
  * Synchronizes the wallet with the Spark network
14130
13357
  */
14131
13358
  syncWallet(request: SyncWalletRequest, asyncOpts_?: {
14132
13359
  signal: AbortSignal;
14133
13360
  }): Promise<SyncWalletResponse>;
14134
- /**
14135
- * Unregisters a previously registered webhook.
14136
- *
14137
- * After unregistering, the Spark service provider will no longer send
14138
- * notifications to the webhook URL.
14139
- *
14140
- * # Arguments
14141
- *
14142
- * * `request` - The unregister request containing the webhook ID
14143
- */
14144
- unregisterWebhook(request: UnregisterWebhookRequest, asyncOpts_?: {
14145
- signal: AbortSignal;
14146
- }): Promise<void>;
14147
13361
  /**
14148
13362
  * Updates an existing contact.
14149
13363
  *
@@ -15411,19 +14625,18 @@ export interface Storage {
15411
14625
  signal: AbortSignal;
15412
14626
  }): Promise<Map<string, Array<Payment>>>;
15413
14627
  /**
15414
- * Add a deposit to storage (upsert: updates `is_mature` and `amount_sats` on conflict)
14628
+ * Add a deposit to storage
15415
14629
  * # Arguments
15416
14630
  *
15417
14631
  * * `txid` - The transaction ID of the deposit
15418
14632
  * * `vout` - The output index of the deposit
15419
14633
  * * `amount_sats` - The amount of the deposit in sats
15420
- * * `is_mature` - Whether the deposit UTXO has enough confirmations to be claimable
15421
14634
  *
15422
14635
  * # Returns
15423
14636
  *
15424
14637
  * Success or a `StorageError`
15425
14638
  */
15426
- addDeposit(txid: string, vout: number, amountSats: bigint, isMature: boolean, asyncOpts_?: {
14639
+ addDeposit(txid: string, vout: number, amountSats: bigint, asyncOpts_?: {
15427
14640
  signal: AbortSignal;
15428
14641
  }): Promise<void>;
15429
14642
  /**
@@ -15644,19 +14857,18 @@ export declare class StorageImpl extends UniffiAbstractObject implements Storage
15644
14857
  signal: AbortSignal;
15645
14858
  }): Promise<Map<string, Array<Payment>>>;
15646
14859
  /**
15647
- * Add a deposit to storage (upsert: updates `is_mature` and `amount_sats` on conflict)
14860
+ * Add a deposit to storage
15648
14861
  * # Arguments
15649
14862
  *
15650
14863
  * * `txid` - The transaction ID of the deposit
15651
14864
  * * `vout` - The output index of the deposit
15652
14865
  * * `amount_sats` - The amount of the deposit in sats
15653
- * * `is_mature` - Whether the deposit UTXO has enough confirmations to be claimable
15654
14866
  *
15655
14867
  * # Returns
15656
14868
  *
15657
14869
  * Success or a `StorageError`
15658
14870
  */
15659
- addDeposit(txid: string, vout: number, amountSats: bigint, isMature: boolean, asyncOpts_?: {
14871
+ addDeposit(txid: string, vout: number, amountSats: bigint, asyncOpts_?: {
15660
14872
  signal: AbortSignal;
15661
14873
  }): Promise<void>;
15662
14874
  /**
@@ -16051,13 +15263,6 @@ declare const _default: Readonly<{
16051
15263
  lift(value: UniffiByteArray): Amount;
16052
15264
  lower(value: Amount): UniffiByteArray;
16053
15265
  };
16054
- FfiConverterTypeAmountAdjustmentReason: {
16055
- read(from: RustBuffer): AmountAdjustmentReason;
16056
- write(value: AmountAdjustmentReason, into: RustBuffer): void;
16057
- allocationSize(value: AmountAdjustmentReason): number;
16058
- lift(value: UniffiByteArray): AmountAdjustmentReason;
16059
- lower(value: AmountAdjustmentReason): UniffiByteArray;
16060
- };
16061
15266
  FfiConverterTypeAssetFilter: {
16062
15267
  read(from: RustBuffer): AssetFilter;
16063
15268
  write(value: AssetFilter, into: RustBuffer): void;
@@ -16193,13 +15398,6 @@ declare const _default: Readonly<{
16193
15398
  lift(value: UniffiByteArray): ChainApiType;
16194
15399
  lower(value: ChainApiType): UniffiByteArray;
16195
15400
  };
16196
- FfiConverterTypeChainServiceError: {
16197
- read(from: RustBuffer): ChainServiceError;
16198
- write(value: ChainServiceError, into: RustBuffer): void;
16199
- allocationSize(value: ChainServiceError): number;
16200
- lift(value: UniffiByteArray): ChainServiceError;
16201
- lower(value: ChainServiceError): UniffiByteArray;
16202
- };
16203
15401
  FfiConverterTypeCheckLightningAddressRequest: {
16204
15402
  read(from: RustBuffer): CheckLightningAddressRequest;
16205
15403
  write(value: CheckLightningAddressRequest, into: RustBuffer): void;
@@ -16882,20 +16080,6 @@ declare const _default: Readonly<{
16882
16080
  lower(value: OutgoingChange): UniffiByteArray;
16883
16081
  };
16884
16082
  FfiConverterTypePasskey: FfiConverterObject<PasskeyInterface>;
16885
- FfiConverterTypePasskeyError: {
16886
- read(from: RustBuffer): PasskeyError;
16887
- write(value: PasskeyError, into: RustBuffer): void;
16888
- allocationSize(value: PasskeyError): number;
16889
- lift(value: UniffiByteArray): PasskeyError;
16890
- lower(value: PasskeyError): UniffiByteArray;
16891
- };
16892
- FfiConverterTypePasskeyPrfError: {
16893
- read(from: RustBuffer): PasskeyPrfError;
16894
- write(value: PasskeyPrfError, into: RustBuffer): void;
16895
- allocationSize(value: PasskeyPrfError): number;
16896
- lift(value: UniffiByteArray): PasskeyPrfError;
16897
- lower(value: PasskeyPrfError): UniffiByteArray;
16898
- };
16899
16083
  FfiConverterTypePasskeyPrfProvider: FfiConverterObjectWithCallbacks<PasskeyPrfProvider>;
16900
16084
  FfiConverterTypePayment: {
16901
16085
  read(from: RustBuffer): Payment;
@@ -16933,13 +16117,6 @@ declare const _default: Readonly<{
16933
16117
  lower(value: PaymentMethod): UniffiByteArray;
16934
16118
  };
16935
16119
  FfiConverterTypePaymentObserver: FfiConverterObjectWithCallbacks<PaymentObserver>;
16936
- FfiConverterTypePaymentObserverError: {
16937
- read(from: RustBuffer): PaymentObserverError;
16938
- write(value: PaymentObserverError, into: RustBuffer): void;
16939
- allocationSize(value: PaymentObserverError): number;
16940
- lift(value: UniffiByteArray): PaymentObserverError;
16941
- lower(value: PaymentObserverError): UniffiByteArray;
16942
- };
16943
16120
  FfiConverterTypePaymentRequestSource: {
16944
16121
  read(from: RustBuffer): PaymentRequestSource;
16945
16122
  write(value: PaymentRequestSource, into: RustBuffer): void;
@@ -17094,20 +16271,6 @@ declare const _default: Readonly<{
17094
16271
  lift(value: UniffiByteArray): RegisterLightningAddressRequest;
17095
16272
  lower(value: RegisterLightningAddressRequest): UniffiByteArray;
17096
16273
  };
17097
- FfiConverterTypeRegisterWebhookRequest: {
17098
- read(from: RustBuffer): RegisterWebhookRequest;
17099
- write(value: RegisterWebhookRequest, into: RustBuffer): void;
17100
- allocationSize(value: RegisterWebhookRequest): number;
17101
- lift(value: UniffiByteArray): RegisterWebhookRequest;
17102
- lower(value: RegisterWebhookRequest): UniffiByteArray;
17103
- };
17104
- FfiConverterTypeRegisterWebhookResponse: {
17105
- read(from: RustBuffer): RegisterWebhookResponse;
17106
- write(value: RegisterWebhookResponse, into: RustBuffer): void;
17107
- allocationSize(value: RegisterWebhookResponse): number;
17108
- lift(value: UniffiByteArray): RegisterWebhookResponse;
17109
- lower(value: RegisterWebhookResponse): UniffiByteArray;
17110
- };
17111
16274
  FfiConverterTypeRestClient: FfiConverterObjectWithCallbacks<RestClient>;
17112
16275
  FfiConverterTypeRestResponse: {
17113
16276
  read(from: RustBuffer): RestResponse;
@@ -17124,13 +16287,6 @@ declare const _default: Readonly<{
17124
16287
  lower(value: SchnorrSignatureBytes): UniffiByteArray;
17125
16288
  };
17126
16289
  FfiConverterTypeSdkBuilder: FfiConverterObject<SdkBuilderInterface>;
17127
- FfiConverterTypeSdkError: {
17128
- read(from: RustBuffer): SdkError;
17129
- write(value: SdkError, into: RustBuffer): void;
17130
- allocationSize(value: SdkError): number;
17131
- lift(value: UniffiByteArray): SdkError;
17132
- lower(value: SdkError): UniffiByteArray;
17133
- };
17134
16290
  FfiConverterTypeSdkEvent: {
17135
16291
  read(from: RustBuffer): SdkEvent;
17136
16292
  write(value: SdkEvent, into: RustBuffer): void;
@@ -17194,13 +16350,6 @@ declare const _default: Readonly<{
17194
16350
  lift(value: UniffiByteArray): SendPaymentResponse;
17195
16351
  lower(value: SendPaymentResponse): UniffiByteArray;
17196
16352
  };
17197
- FfiConverterTypeServiceConnectivityError: {
17198
- read(from: RustBuffer): ServiceConnectivityError;
17199
- write(value: ServiceConnectivityError, into: RustBuffer): void;
17200
- allocationSize(value: ServiceConnectivityError): number;
17201
- lift(value: UniffiByteArray): ServiceConnectivityError;
17202
- lower(value: ServiceConnectivityError): UniffiByteArray;
17203
- };
17204
16353
  FfiConverterTypeServiceStatus: {
17205
16354
  read(from: RustBuffer): ServiceStatus;
17206
16355
  write(value: ServiceStatus, into: RustBuffer): void;
@@ -17229,13 +16378,6 @@ declare const _default: Readonly<{
17229
16378
  lift(value: UniffiByteArray): SignMessageResponse;
17230
16379
  lower(value: SignMessageResponse): UniffiByteArray;
17231
16380
  };
17232
- FfiConverterTypeSignerError: {
17233
- read(from: RustBuffer): SignerError;
17234
- write(value: SignerError, into: RustBuffer): void;
17235
- allocationSize(value: SignerError): number;
17236
- lift(value: UniffiByteArray): SignerError;
17237
- lower(value: SignerError): UniffiByteArray;
17238
- };
17239
16381
  FfiConverterTypeSilentPaymentAddressDetails: {
17240
16382
  read(from: RustBuffer): SilentPaymentAddressDetails;
17241
16383
  write(value: SilentPaymentAddressDetails, into: RustBuffer): void;
@@ -17250,13 +16392,6 @@ declare const _default: Readonly<{
17250
16392
  lift(value: UniffiByteArray): SparkAddressDetails;
17251
16393
  lower(value: SparkAddressDetails): UniffiByteArray;
17252
16394
  };
17253
- FfiConverterTypeSparkConfig: {
17254
- read(from: RustBuffer): SparkConfig;
17255
- write(value: SparkConfig, into: RustBuffer): void;
17256
- allocationSize(value: SparkConfig): number;
17257
- lift(value: UniffiByteArray): SparkConfig;
17258
- lower(value: SparkConfig): UniffiByteArray;
17259
- };
17260
16395
  FfiConverterTypeSparkHtlcDetails: {
17261
16396
  read(from: RustBuffer): SparkHtlcDetails;
17262
16397
  write(value: SparkHtlcDetails, into: RustBuffer): void;
@@ -17292,20 +16427,6 @@ declare const _default: Readonly<{
17292
16427
  lift(value: UniffiByteArray): SparkInvoicePaymentDetails;
17293
16428
  lower(value: SparkInvoicePaymentDetails): UniffiByteArray;
17294
16429
  };
17295
- FfiConverterTypeSparkSigningOperator: {
17296
- read(from: RustBuffer): SparkSigningOperator;
17297
- write(value: SparkSigningOperator, into: RustBuffer): void;
17298
- allocationSize(value: SparkSigningOperator): number;
17299
- lift(value: UniffiByteArray): SparkSigningOperator;
17300
- lower(value: SparkSigningOperator): UniffiByteArray;
17301
- };
17302
- FfiConverterTypeSparkSspConfig: {
17303
- read(from: RustBuffer): SparkSspConfig;
17304
- write(value: SparkSspConfig, into: RustBuffer): void;
17305
- allocationSize(value: SparkSspConfig): number;
17306
- lift(value: UniffiByteArray): SparkSspConfig;
17307
- lower(value: SparkSspConfig): UniffiByteArray;
17308
- };
17309
16430
  FfiConverterTypeSparkStatus: {
17310
16431
  read(from: RustBuffer): SparkStatus;
17311
16432
  write(value: SparkStatus, into: RustBuffer): void;
@@ -17313,13 +16434,6 @@ declare const _default: Readonly<{
17313
16434
  lift(value: UniffiByteArray): SparkStatus;
17314
16435
  lower(value: SparkStatus): UniffiByteArray;
17315
16436
  };
17316
- FfiConverterTypeStableBalanceActiveLabel: {
17317
- read(from: RustBuffer): StableBalanceActiveLabel;
17318
- write(value: StableBalanceActiveLabel, into: RustBuffer): void;
17319
- allocationSize(value: StableBalanceActiveLabel): number;
17320
- lift(value: UniffiByteArray): StableBalanceActiveLabel;
17321
- lower(value: StableBalanceActiveLabel): UniffiByteArray;
17322
- };
17323
16437
  FfiConverterTypeStableBalanceConfig: {
17324
16438
  read(from: RustBuffer): StableBalanceConfig;
17325
16439
  write(value: StableBalanceConfig, into: RustBuffer): void;
@@ -17327,21 +16441,7 @@ declare const _default: Readonly<{
17327
16441
  lift(value: UniffiByteArray): StableBalanceConfig;
17328
16442
  lower(value: StableBalanceConfig): UniffiByteArray;
17329
16443
  };
17330
- FfiConverterTypeStableBalanceToken: {
17331
- read(from: RustBuffer): StableBalanceToken;
17332
- write(value: StableBalanceToken, into: RustBuffer): void;
17333
- allocationSize(value: StableBalanceToken): number;
17334
- lift(value: UniffiByteArray): StableBalanceToken;
17335
- lower(value: StableBalanceToken): UniffiByteArray;
17336
- };
17337
16444
  FfiConverterTypeStorage: FfiConverterObjectWithCallbacks<Storage>;
17338
- FfiConverterTypeStorageError: {
17339
- read(from: RustBuffer): StorageError;
17340
- write(value: StorageError, into: RustBuffer): void;
17341
- allocationSize(value: StorageError): number;
17342
- lift(value: UniffiByteArray): StorageError;
17343
- lower(value: StorageError): UniffiByteArray;
17344
- };
17345
16445
  FfiConverterTypeStorageListPaymentsRequest: {
17346
16446
  read(from: RustBuffer): StorageListPaymentsRequest;
17347
16447
  write(value: StorageListPaymentsRequest, into: RustBuffer): void;
@@ -17434,13 +16534,6 @@ declare const _default: Readonly<{
17434
16534
  lift(value: UniffiByteArray): UnfreezeIssuerTokenResponse;
17435
16535
  lower(value: UnfreezeIssuerTokenResponse): UniffiByteArray;
17436
16536
  };
17437
- FfiConverterTypeUnregisterWebhookRequest: {
17438
- read(from: RustBuffer): UnregisterWebhookRequest;
17439
- write(value: UnregisterWebhookRequest, into: RustBuffer): void;
17440
- allocationSize(value: UnregisterWebhookRequest): number;
17441
- lift(value: UniffiByteArray): UnregisterWebhookRequest;
17442
- lower(value: UnregisterWebhookRequest): UniffiByteArray;
17443
- };
17444
16537
  FfiConverterTypeUnversionedRecordChange: {
17445
16538
  read(from: RustBuffer): UnversionedRecordChange;
17446
16539
  write(value: UnversionedRecordChange, into: RustBuffer): void;
@@ -17497,20 +16590,6 @@ declare const _default: Readonly<{
17497
16590
  lift(value: UniffiByteArray): Wallet;
17498
16591
  lower(value: Wallet): UniffiByteArray;
17499
16592
  };
17500
- FfiConverterTypeWebhook: {
17501
- read(from: RustBuffer): Webhook;
17502
- write(value: Webhook, into: RustBuffer): void;
17503
- allocationSize(value: Webhook): number;
17504
- lift(value: UniffiByteArray): Webhook;
17505
- lower(value: Webhook): UniffiByteArray;
17506
- };
17507
- FfiConverterTypeWebhookEventType: {
17508
- read(from: RustBuffer): WebhookEventType;
17509
- write(value: WebhookEventType, into: RustBuffer): void;
17510
- allocationSize(value: WebhookEventType): number;
17511
- lift(value: UniffiByteArray): WebhookEventType;
17512
- lower(value: WebhookEventType): UniffiByteArray;
17513
- };
17514
16593
  FfiConverterTypeu128: {
17515
16594
  lift(value: Uint8Array<ArrayBufferLike>): bigint;
17516
16595
  lower(value: bigint): Uint8Array<ArrayBufferLike>;