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

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/{breeztech-breez-sdk-spark-react-native.podspec → BreezSdkSparkReactNative.podspec} +2 -2
  2. package/README.md +6 -6
  3. package/android/CMakeLists.txt +3 -4
  4. package/cpp/generated/breez_sdk_spark.cpp +661 -452
  5. package/cpp/generated/breez_sdk_spark.hpp +49 -29
  6. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  7. package/lib/commonjs/generated/breez_sdk_spark.js +366 -155
  8. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  9. package/lib/commonjs/generated/breez_sdk_spark_bindings.js +4 -2
  10. package/lib/commonjs/generated/breez_sdk_spark_bindings.js.map +1 -1
  11. package/lib/commonjs/index.js +11 -1
  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 +365 -154
  15. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  16. package/lib/module/generated/breez_sdk_spark_bindings.js +4 -2
  17. package/lib/module/generated/breez_sdk_spark_bindings.js.map +1 -1
  18. package/lib/module/index.js +7 -0
  19. package/lib/module/index.js.map +1 -1
  20. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +77 -71
  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 +1037 -116
  23. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/src/index.d.ts +1 -0
  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 +77 -71
  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 +1037 -116
  29. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  30. package/lib/typescript/module/src/index.d.ts +1 -0
  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 +106 -91
  34. package/src/generated/breez_sdk_spark.ts +2796 -1030
  35. package/src/generated/breez_sdk_spark_bindings.ts +2 -2
  36. package/src/index.tsx +7 -0
@@ -533,39 +533,6 @@ 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
- }>;
569
536
  /**
570
537
  * Response containing a URL to complete the Bitcoin purchase
571
538
  */
@@ -821,10 +788,13 @@ export type Config = {
821
788
  */
822
789
  maxConcurrentClaims: number;
823
790
  /**
824
- * When true, enables LNURL verify support (LUD-21) and zap receipts (NIP-57).
825
- * When false (default), these features are disabled for privacy.
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).
826
796
  */
827
- supportLnurlVerify: boolean;
797
+ sparkConfig: SparkConfig | undefined;
828
798
  };
829
799
  /**
830
800
  * Generated factory for {@link Config} record objects.
@@ -931,17 +901,24 @@ export declare const Contact: Readonly<{
931
901
  defaults: () => Partial<Contact>;
932
902
  }>;
933
903
  /**
934
- * Outlines the steps involved in a conversion
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.
935
908
  */
936
909
  export type ConversionDetails = {
937
910
  /**
938
- * First step is converting from the available asset
911
+ * Current status of the conversion
939
912
  */
940
- from: ConversionStep;
913
+ status: ConversionStatus;
941
914
  /**
942
- * Second step is converting to the requested asset
915
+ * The send step of the conversion (e.g., sats sent to Flashnet)
943
916
  */
944
- to: ConversionStep;
917
+ from: ConversionStep | undefined;
918
+ /**
919
+ * The receive step of the conversion (e.g., tokens received from Flashnet)
920
+ */
921
+ to: ConversionStep | undefined;
945
922
  };
946
923
  /**
947
924
  * Generated factory for {@link ConversionDetails} record objects.
@@ -980,6 +957,10 @@ export type ConversionEstimate = {
980
957
  * Denominated in satoshis if converting from Bitcoin, otherwise in the token base units.
981
958
  */
982
959
  fee: U128;
960
+ /**
961
+ * The reason the conversion amount was adjusted, if applicable.
962
+ */
963
+ amountAdjustment: AmountAdjustmentReason | undefined;
983
964
  };
984
965
  /**
985
966
  * Generated factory for {@link ConversionEstimate} record objects.
@@ -1022,6 +1003,10 @@ export type ConversionInfo = {
1022
1003
  * The purpose of the conversion
1023
1004
  */
1024
1005
  purpose: ConversionPurpose | undefined;
1006
+ /**
1007
+ * The reason the conversion amount was adjusted, if applicable.
1008
+ */
1009
+ amountAdjustment: AmountAdjustmentReason | undefined;
1025
1010
  };
1026
1011
  /**
1027
1012
  * Generated factory for {@link ConversionInfo} record objects.
@@ -1111,6 +1096,10 @@ export type ConversionStep = {
1111
1096
  * Token metadata if a token is used for payment
1112
1097
  */
1113
1098
  tokenMetadata: TokenMetadata | undefined;
1099
+ /**
1100
+ * The reason the conversion amount was adjusted, if applicable.
1101
+ */
1102
+ amountAdjustment: AmountAdjustmentReason | undefined;
1114
1103
  };
1115
1104
  /**
1116
1105
  * Generated factory for {@link ConversionStep} record objects.
@@ -1215,6 +1204,7 @@ export type DepositInfo = {
1215
1204
  txid: string;
1216
1205
  vout: number;
1217
1206
  amountSats: bigint;
1207
+ isMature: boolean;
1218
1208
  refundTx: string | undefined;
1219
1209
  refundTxId: string | undefined;
1220
1210
  claimError: DepositClaimError | undefined;
@@ -3130,6 +3120,7 @@ export type PaymentMetadata = {
3130
3120
  lnurlWithdrawInfo: LnurlWithdrawInfo | undefined;
3131
3121
  lnurlDescription: string | undefined;
3132
3122
  conversionInfo: ConversionInfo | undefined;
3123
+ conversionStatus: ConversionStatus | undefined;
3133
3124
  };
3134
3125
  /**
3135
3126
  * Generated factory for {@link PaymentMetadata} record objects.
@@ -3661,6 +3652,70 @@ export declare const RegisterLightningAddressRequest: Readonly<{
3661
3652
  */
3662
3653
  defaults: () => Partial<RegisterLightningAddressRequest>;
3663
3654
  }>;
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
+ }>;
3664
3719
  export type RestResponse = {
3665
3720
  status: number;
3666
3721
  body: string;
@@ -3840,7 +3895,6 @@ export type SetLnurlMetadataItem = {
3840
3895
  senderComment: string | undefined;
3841
3896
  nostrZapRequest: string | undefined;
3842
3897
  nostrZapReceipt: string | undefined;
3843
- preimage: string | undefined;
3844
3898
  };
3845
3899
  /**
3846
3900
  * Generated factory for {@link SetLnurlMetadataItem} record objects.
@@ -3968,6 +4022,58 @@ export declare const SparkAddressDetails: Readonly<{
3968
4022
  */
3969
4023
  defaults: () => Partial<SparkAddressDetails>;
3970
4024
  }>;
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
+ }>;
3971
4077
  export type SparkHtlcDetails = {
3972
4078
  /**
3973
4079
  * The payment hash of the HTLC
@@ -4114,6 +4220,83 @@ export declare const SparkInvoicePaymentDetails: Readonly<{
4114
4220
  */
4115
4221
  defaults: () => Partial<SparkInvoicePaymentDetails>;
4116
4222
  }>;
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
+ }>;
4117
4300
  /**
4118
4301
  * The status of the Spark network services relevant to the SDK.
4119
4302
  */
@@ -4152,18 +4335,28 @@ export declare const SparkStatus: Readonly<{
4152
4335
  * When configured, the SDK automatically monitors the Bitcoin balance after each
4153
4336
  * wallet sync. When the balance exceeds the configured threshold plus the reserved
4154
4337
  * amount, the SDK automatically converts the excess balance (above the reserve)
4155
- * to the specified stable token.
4338
+ * to the active stable token.
4156
4339
  *
4157
4340
  * When the balance is held in a stable token, Bitcoin payments can still be sent.
4158
4341
  * The SDK automatically detects when there's not enough Bitcoin balance to cover a
4159
4342
  * payment and auto-populates the token-to-Bitcoin conversion options to facilitate
4160
4343
  * the payment.
4344
+ *
4345
+ * The active token can be changed at runtime via [`UpdateUserSettingsRequest`].
4161
4346
  */
4162
4347
  export type StableBalanceConfig = {
4163
4348
  /**
4164
- * The token identifier to convert Bitcoin to (required).
4349
+ * Available tokens that can be used for stable balance.
4165
4350
  */
4166
- tokenIdentifier: string;
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.
4358
+ */
4359
+ defaultActiveLabel: string | undefined;
4167
4360
  /**
4168
4361
  * The minimum sats balance that triggers auto-conversion.
4169
4362
  *
@@ -4177,13 +4370,6 @@ export type StableBalanceConfig = {
4177
4370
  * Defaults to 50 bps (0.5%) if not set.
4178
4371
  */
4179
4372
  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;
4187
4373
  };
4188
4374
  /**
4189
4375
  * Generated factory for {@link StableBalanceConfig} record objects.
@@ -4193,17 +4379,53 @@ export declare const StableBalanceConfig: Readonly<{
4193
4379
  * Create a frozen instance of {@link StableBalanceConfig}, with defaults specified
4194
4380
  * in Rust, in the {@link breez_sdk_spark} crate.
4195
4381
  */
4196
- create: (partial: Partial<StableBalanceConfig> & Required<Omit<StableBalanceConfig, "maxSlippageBps" | "thresholdSats" | "reservedSats">>) => StableBalanceConfig;
4382
+ create: (partial: Partial<StableBalanceConfig> & Required<Omit<StableBalanceConfig, "maxSlippageBps" | "defaultActiveLabel" | "thresholdSats">>) => StableBalanceConfig;
4197
4383
  /**
4198
4384
  * Create a frozen instance of {@link StableBalanceConfig}, with defaults specified
4199
4385
  * in Rust, in the {@link breez_sdk_spark} crate.
4200
4386
  */
4201
- new: (partial: Partial<StableBalanceConfig> & Required<Omit<StableBalanceConfig, "maxSlippageBps" | "thresholdSats" | "reservedSats">>) => StableBalanceConfig;
4387
+ new: (partial: Partial<StableBalanceConfig> & Required<Omit<StableBalanceConfig, "maxSlippageBps" | "defaultActiveLabel" | "thresholdSats">>) => StableBalanceConfig;
4202
4388
  /**
4203
4389
  * Defaults specified in the {@link breez_sdk_spark} crate.
4204
4390
  */
4205
4391
  defaults: () => Partial<StableBalanceConfig>;
4206
4392
  }>;
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
+ }>;
4207
4429
  /**
4208
4430
  * Storage-internal variant of [`ListPaymentsRequest`] that uses
4209
4431
  * [`StoragePaymentDetailsFilter`] instead of the public [`PaymentDetailsFilter`].
@@ -4438,6 +4660,34 @@ export declare const UnfreezeIssuerTokenResponse: Readonly<{
4438
4660
  */
4439
4661
  defaults: () => Partial<UnfreezeIssuerTokenResponse>;
4440
4662
  }>;
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
+ }>;
4441
4691
  export type UnversionedRecordChange = {
4442
4692
  id: RecordId;
4443
4693
  schemaVersion: string;
@@ -4494,6 +4744,10 @@ export declare const UpdateContactRequest: Readonly<{
4494
4744
  }>;
4495
4745
  export type UpdateUserSettingsRequest = {
4496
4746
  sparkPrivateModeEnabled: boolean | undefined;
4747
+ /**
4748
+ * Update the active stable balance token. `None` means no change.
4749
+ */
4750
+ stableBalanceActiveLabel: StableBalanceActiveLabel | undefined;
4497
4751
  };
4498
4752
  /**
4499
4753
  * Generated factory for {@link UpdateUserSettingsRequest} record objects.
@@ -4503,12 +4757,12 @@ export declare const UpdateUserSettingsRequest: Readonly<{
4503
4757
  * Create a frozen instance of {@link UpdateUserSettingsRequest}, with defaults specified
4504
4758
  * in Rust, in the {@link breez_sdk_spark} crate.
4505
4759
  */
4506
- create: (partial: Partial<UpdateUserSettingsRequest> & Required<Omit<UpdateUserSettingsRequest, never>>) => UpdateUserSettingsRequest;
4760
+ create: (partial: Partial<UpdateUserSettingsRequest> & Required<Omit<UpdateUserSettingsRequest, "stableBalanceActiveLabel">>) => UpdateUserSettingsRequest;
4507
4761
  /**
4508
4762
  * Create a frozen instance of {@link UpdateUserSettingsRequest}, with defaults specified
4509
4763
  * in Rust, in the {@link breez_sdk_spark} crate.
4510
4764
  */
4511
- new: (partial: Partial<UpdateUserSettingsRequest> & Required<Omit<UpdateUserSettingsRequest, never>>) => UpdateUserSettingsRequest;
4765
+ new: (partial: Partial<UpdateUserSettingsRequest> & Required<Omit<UpdateUserSettingsRequest, "stableBalanceActiveLabel">>) => UpdateUserSettingsRequest;
4512
4766
  /**
4513
4767
  * Defaults specified in the {@link breez_sdk_spark} crate.
4514
4768
  */
@@ -4551,6 +4805,10 @@ export declare const UrlSuccessActionData: Readonly<{
4551
4805
  }>;
4552
4806
  export type UserSettings = {
4553
4807
  sparkPrivateModeEnabled: boolean;
4808
+ /**
4809
+ * The label of the currently active stable balance token, or `None` if deactivated.
4810
+ */
4811
+ stableBalanceActiveLabel: string | undefined;
4554
4812
  };
4555
4813
  /**
4556
4814
  * Generated factory for {@link UserSettings} record objects.
@@ -4630,6 +4888,42 @@ export declare const Wallet: Readonly<{
4630
4888
  */
4631
4889
  defaults: () => Partial<Wallet>;
4632
4890
  }>;
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
+ }>;
4633
4927
  /**
4634
4928
  * Typealias from the type name used in the UDL file to the custom type. This
4635
4929
  * is needed because the UDL type name is used in function/method signatures.
@@ -4826,6 +5120,20 @@ export declare const Amount: Readonly<{
4826
5120
  };
4827
5121
  }>;
4828
5122
  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
+ }
4829
5137
  export declare enum AssetFilter_Tags {
4830
5138
  Bitcoin = "Bitcoin",
4831
5139
  Token = "Token"
@@ -4919,6 +5227,121 @@ export declare enum BitcoinNetwork {
4919
5227
  Signet = 3,
4920
5228
  Regtest = 4
4921
5229
  }
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'>]>;
4922
5345
  export declare enum ChainApiType {
4923
5346
  Esplora = 0,
4924
5347
  MempoolSpace = 1
@@ -5261,19 +5684,27 @@ export type ConversionPurpose = InstanceType<(typeof ConversionPurpose)[keyof Om
5261
5684
  * The status of the conversion
5262
5685
  */
5263
5686
  export declare enum ConversionStatus {
5687
+ /**
5688
+ * Conversion is in-flight (queued or started, not yet completed)
5689
+ */
5690
+ Pending = 0,
5264
5691
  /**
5265
5692
  * The conversion was successful
5266
5693
  */
5267
- Completed = 0,
5694
+ Completed = 1,
5695
+ /**
5696
+ * The conversion failed (e.g., the initial send payment failed)
5697
+ */
5698
+ Failed = 2,
5268
5699
  /**
5269
5700
  * The conversion failed and no refund was made yet, which requires action by the SDK to
5270
5701
  * perform the refund. This can happen if there was a failure during the conversion process.
5271
5702
  */
5272
- RefundNeeded = 1,
5703
+ RefundNeeded = 3,
5273
5704
  /**
5274
5705
  * The conversion failed and a refund was made
5275
5706
  */
5276
- Refunded = 2
5707
+ Refunded = 4
5277
5708
  }
5278
5709
  export declare enum ConversionType_Tags {
5279
5710
  FromBitcoin = "FromBitcoin",
@@ -8676,16 +9107,34 @@ export declare const ReceivePaymentMethod: Readonly<{
8676
9107
  };
8677
9108
  };
8678
9109
  BitcoinAddress: {
8679
- new (): {
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
+ }): {
8680
9117
  readonly tag: ReceivePaymentMethod_Tags.BitcoinAddress;
9118
+ readonly inner: Readonly<{
9119
+ newAddress: boolean | undefined;
9120
+ }>;
8681
9121
  /**
8682
9122
  * @private
8683
9123
  * This field is private and should not be used, use `tag` instead.
8684
9124
  */
8685
9125
  readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
8686
9126
  };
8687
- "new"(): {
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
+ }): {
8688
9134
  readonly tag: ReceivePaymentMethod_Tags.BitcoinAddress;
9135
+ readonly inner: Readonly<{
9136
+ newAddress: boolean | undefined;
9137
+ }>;
8689
9138
  /**
8690
9139
  * @private
8691
9140
  * This field is private and should not be used, use `tag` instead.
@@ -8694,6 +9143,9 @@ export declare const ReceivePaymentMethod: Readonly<{
8694
9143
  };
8695
9144
  instanceOf(obj: any): obj is {
8696
9145
  readonly tag: ReceivePaymentMethod_Tags.BitcoinAddress;
9146
+ readonly inner: Readonly<{
9147
+ newAddress: boolean | undefined;
9148
+ }>;
8697
9149
  /**
8698
9150
  * @private
8699
9151
  * This field is private and should not be used, use `tag` instead.
@@ -9708,7 +10160,8 @@ export declare enum SdkEvent_Tags {
9708
10160
  PaymentPending = "PaymentPending",
9709
10161
  PaymentFailed = "PaymentFailed",
9710
10162
  Optimization = "Optimization",
9711
- LightningAddressChanged = "LightningAddressChanged"
10163
+ LightningAddressChanged = "LightningAddressChanged",
10164
+ NewDeposits = "NewDeposits"
9712
10165
  }
9713
10166
  /**
9714
10167
  * Events emitted by the SDK
@@ -9942,7 +10395,46 @@ export declare const SdkEvent: Readonly<{
9942
10395
  }): {
9943
10396
  readonly tag: SdkEvent_Tags.Optimization;
9944
10397
  readonly inner: Readonly<{
9945
- optimizationEvent: OptimizationEvent;
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;
9946
10438
  }>;
9947
10439
  /**
9948
10440
  * @private
@@ -9951,11 +10443,11 @@ export declare const SdkEvent: Readonly<{
9951
10443
  readonly [uniffiTypeNameSymbol]: "SdkEvent";
9952
10444
  };
9953
10445
  "new"(inner: {
9954
- optimizationEvent: OptimizationEvent;
10446
+ lightningAddress: LightningAddressInfo | undefined;
9955
10447
  }): {
9956
- readonly tag: SdkEvent_Tags.Optimization;
10448
+ readonly tag: SdkEvent_Tags.LightningAddressChanged;
9957
10449
  readonly inner: Readonly<{
9958
- optimizationEvent: OptimizationEvent;
10450
+ lightningAddress: LightningAddressInfo | undefined;
9959
10451
  }>;
9960
10452
  /**
9961
10453
  * @private
@@ -9964,9 +10456,9 @@ export declare const SdkEvent: Readonly<{
9964
10456
  readonly [uniffiTypeNameSymbol]: "SdkEvent";
9965
10457
  };
9966
10458
  instanceOf(obj: any): obj is {
9967
- readonly tag: SdkEvent_Tags.Optimization;
10459
+ readonly tag: SdkEvent_Tags.LightningAddressChanged;
9968
10460
  readonly inner: Readonly<{
9969
- optimizationEvent: OptimizationEvent;
10461
+ lightningAddress: LightningAddressInfo | undefined;
9970
10462
  }>;
9971
10463
  /**
9972
10464
  * @private
@@ -9975,13 +10467,13 @@ export declare const SdkEvent: Readonly<{
9975
10467
  readonly [uniffiTypeNameSymbol]: "SdkEvent";
9976
10468
  };
9977
10469
  };
9978
- LightningAddressChanged: {
10470
+ NewDeposits: {
9979
10471
  new (inner: {
9980
- lightningAddress: LightningAddressInfo | undefined;
10472
+ newDeposits: Array<DepositInfo>;
9981
10473
  }): {
9982
- readonly tag: SdkEvent_Tags.LightningAddressChanged;
10474
+ readonly tag: SdkEvent_Tags.NewDeposits;
9983
10475
  readonly inner: Readonly<{
9984
- lightningAddress: LightningAddressInfo | undefined;
10476
+ newDeposits: Array<DepositInfo>;
9985
10477
  }>;
9986
10478
  /**
9987
10479
  * @private
@@ -9990,11 +10482,11 @@ export declare const SdkEvent: Readonly<{
9990
10482
  readonly [uniffiTypeNameSymbol]: "SdkEvent";
9991
10483
  };
9992
10484
  "new"(inner: {
9993
- lightningAddress: LightningAddressInfo | undefined;
10485
+ newDeposits: Array<DepositInfo>;
9994
10486
  }): {
9995
- readonly tag: SdkEvent_Tags.LightningAddressChanged;
10487
+ readonly tag: SdkEvent_Tags.NewDeposits;
9996
10488
  readonly inner: Readonly<{
9997
- lightningAddress: LightningAddressInfo | undefined;
10489
+ newDeposits: Array<DepositInfo>;
9998
10490
  }>;
9999
10491
  /**
10000
10492
  * @private
@@ -10003,9 +10495,9 @@ export declare const SdkEvent: Readonly<{
10003
10495
  readonly [uniffiTypeNameSymbol]: "SdkEvent";
10004
10496
  };
10005
10497
  instanceOf(obj: any): obj is {
10006
- readonly tag: SdkEvent_Tags.LightningAddressChanged;
10498
+ readonly tag: SdkEvent_Tags.NewDeposits;
10007
10499
  readonly inner: Readonly<{
10008
- lightningAddress: LightningAddressInfo | undefined;
10500
+ newDeposits: Array<DepositInfo>;
10009
10501
  }>;
10010
10502
  /**
10011
10503
  * @private
@@ -11793,6 +12285,85 @@ export declare enum SparkHtlcStatus {
11793
12285
  */
11794
12286
  Returned = 2
11795
12287
  }
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'>]>;
11796
12367
  export declare enum StorageError_Tags {
11797
12368
  Connection = "Connection",
11798
12369
  Implementation = "Implementation",
@@ -12154,9 +12725,7 @@ export declare enum StoragePaymentDetailsFilter_Tags {
12154
12725
  Lightning = "Lightning"
12155
12726
  }
12156
12727
  /**
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.
12728
+ * Storage-internal variant of [`PaymentDetailsFilter`].
12160
12729
  */
12161
12730
  export declare const StoragePaymentDetailsFilter: Readonly<{
12162
12731
  instanceOf: (obj: any) => obj is StoragePaymentDetailsFilter;
@@ -12256,12 +12825,10 @@ export declare const StoragePaymentDetailsFilter: Readonly<{
12256
12825
  Lightning: {
12257
12826
  new (inner: {
12258
12827
  htlcStatus: Array<SparkHtlcStatus> | undefined;
12259
- hasLnurlPreimage: boolean | undefined;
12260
12828
  }): {
12261
12829
  readonly tag: StoragePaymentDetailsFilter_Tags.Lightning;
12262
12830
  readonly inner: Readonly<{
12263
12831
  htlcStatus: Array<SparkHtlcStatus> | undefined;
12264
- hasLnurlPreimage: boolean | undefined;
12265
12832
  }>;
12266
12833
  /**
12267
12834
  * @private
@@ -12271,12 +12838,10 @@ export declare const StoragePaymentDetailsFilter: Readonly<{
12271
12838
  };
12272
12839
  "new"(inner: {
12273
12840
  htlcStatus: Array<SparkHtlcStatus> | undefined;
12274
- hasLnurlPreimage: boolean | undefined;
12275
12841
  }): {
12276
12842
  readonly tag: StoragePaymentDetailsFilter_Tags.Lightning;
12277
12843
  readonly inner: Readonly<{
12278
12844
  htlcStatus: Array<SparkHtlcStatus> | undefined;
12279
- hasLnurlPreimage: boolean | undefined;
12280
12845
  }>;
12281
12846
  /**
12282
12847
  * @private
@@ -12288,7 +12853,6 @@ export declare const StoragePaymentDetailsFilter: Readonly<{
12288
12853
  readonly tag: StoragePaymentDetailsFilter_Tags.Lightning;
12289
12854
  readonly inner: Readonly<{
12290
12855
  htlcStatus: Array<SparkHtlcStatus> | undefined;
12291
- hasLnurlPreimage: boolean | undefined;
12292
12856
  }>;
12293
12857
  /**
12294
12858
  * @private
@@ -12299,9 +12863,7 @@ export declare const StoragePaymentDetailsFilter: Readonly<{
12299
12863
  };
12300
12864
  }>;
12301
12865
  /**
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.
12866
+ * Storage-internal variant of [`PaymentDetailsFilter`].
12305
12867
  */
12306
12868
  export type StoragePaymentDetailsFilter = InstanceType<(typeof StoragePaymentDetailsFilter)[keyof Omit<typeof StoragePaymentDetailsFilter, 'instanceOf'>]>;
12307
12869
  export declare enum SuccessAction_Tags {
@@ -12674,6 +13236,156 @@ export declare const UpdateDepositPayload: Readonly<{
12674
13236
  };
12675
13237
  }>;
12676
13238
  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'>]>;
12677
13389
  export interface BitcoinChainService {
12678
13390
  getAddressUtxos(address: string, asyncOpts_?: {
12679
13391
  signal: AbortSignal;
@@ -12751,19 +13463,13 @@ export interface BreezSdkInterface {
12751
13463
  signal: AbortSignal;
12752
13464
  }): Promise<string>;
12753
13465
  /**
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
13466
+ * Initiates a Bitcoin purchase flow via an external provider.
12761
13467
  *
12762
- * * `request` - The purchase request containing optional amount and redirect URL
13468
+ * Returns a URL the user should open to complete the purchase.
13469
+ * The request variant determines the provider and its parameters:
12763
13470
  *
12764
- * # Returns
12765
- *
12766
- * A response containing the URL to open in a browser to complete the purchase
13471
+ * - [`BuyBitcoinRequest::Moonpay`]: Fiat-to-Bitcoin via on-chain deposit.
13472
+ * - [`BuyBitcoinRequest::CashApp`]: Lightning invoice + `cash.app` deep link (mainnet only).
12767
13473
  */
12768
13474
  buyBitcoin(request: BuyBitcoinRequest, asyncOpts_?: {
12769
13475
  signal: AbortSignal;
@@ -12918,6 +13624,16 @@ export interface BreezSdkInterface {
12918
13624
  listUnclaimedDeposits(request: ListUnclaimedDepositsRequest, asyncOpts_?: {
12919
13625
  signal: AbortSignal;
12920
13626
  }): 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>>;
12921
13637
  /**
12922
13638
  * Performs LNURL-auth with the service.
12923
13639
  *
@@ -12985,6 +13701,24 @@ export interface BreezSdkInterface {
12985
13701
  registerLightningAddress(request: RegisterLightningAddressRequest, asyncOpts_?: {
12986
13702
  signal: AbortSignal;
12987
13703
  }): 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>;
12988
13722
  /**
12989
13723
  * Removes a previously registered event listener
12990
13724
  *
@@ -13017,13 +13751,28 @@ export interface BreezSdkInterface {
13017
13751
  * immediately. Progress is reported via events.
13018
13752
  * If optimization is already running, no new task will be started.
13019
13753
  */
13020
- startLeafOptimization(): void;
13754
+ startLeafOptimization(asyncOpts_?: {
13755
+ signal: AbortSignal;
13756
+ }): Promise<void>;
13021
13757
  /**
13022
13758
  * Synchronizes the wallet with the Spark network
13023
13759
  */
13024
13760
  syncWallet(request: SyncWalletRequest, asyncOpts_?: {
13025
13761
  signal: AbortSignal;
13026
13762
  }): 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>;
13027
13776
  /**
13028
13777
  * Updates an existing contact.
13029
13778
  *
@@ -13085,19 +13834,13 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
13085
13834
  signal: AbortSignal;
13086
13835
  }): Promise<string>;
13087
13836
  /**
13088
- * Initiates a Bitcoin purchase flow via an external provider (`MoonPay`).
13837
+ * Initiates a Bitcoin purchase flow via an external provider.
13089
13838
  *
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.
13839
+ * Returns a URL the user should open to complete the purchase.
13840
+ * The request variant determines the provider and its parameters:
13093
13841
  *
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
13842
+ * - [`BuyBitcoinRequest::Moonpay`]: Fiat-to-Bitcoin via on-chain deposit.
13843
+ * - [`BuyBitcoinRequest::CashApp`]: Lightning invoice + `cash.app` deep link (mainnet only).
13101
13844
  */
13102
13845
  buyBitcoin(request: BuyBitcoinRequest, asyncOpts_?: {
13103
13846
  signal: AbortSignal;
@@ -13252,6 +13995,16 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
13252
13995
  listUnclaimedDeposits(request: ListUnclaimedDepositsRequest, asyncOpts_?: {
13253
13996
  signal: AbortSignal;
13254
13997
  }): 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>>;
13255
14008
  /**
13256
14009
  * Performs LNURL-auth with the service.
13257
14010
  *
@@ -13319,6 +14072,24 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
13319
14072
  registerLightningAddress(request: RegisterLightningAddressRequest, asyncOpts_?: {
13320
14073
  signal: AbortSignal;
13321
14074
  }): 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>;
13322
14093
  /**
13323
14094
  * Removes a previously registered event listener
13324
14095
  *
@@ -13351,13 +14122,28 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
13351
14122
  * immediately. Progress is reported via events.
13352
14123
  * If optimization is already running, no new task will be started.
13353
14124
  */
13354
- startLeafOptimization(): void;
14125
+ startLeafOptimization(asyncOpts_?: {
14126
+ signal: AbortSignal;
14127
+ }): Promise<void>;
13355
14128
  /**
13356
14129
  * Synchronizes the wallet with the Spark network
13357
14130
  */
13358
14131
  syncWallet(request: SyncWalletRequest, asyncOpts_?: {
13359
14132
  signal: AbortSignal;
13360
14133
  }): 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>;
13361
14147
  /**
13362
14148
  * Updates an existing contact.
13363
14149
  *
@@ -14625,18 +15411,19 @@ export interface Storage {
14625
15411
  signal: AbortSignal;
14626
15412
  }): Promise<Map<string, Array<Payment>>>;
14627
15413
  /**
14628
- * Add a deposit to storage
15414
+ * Add a deposit to storage (upsert: updates `is_mature` and `amount_sats` on conflict)
14629
15415
  * # Arguments
14630
15416
  *
14631
15417
  * * `txid` - The transaction ID of the deposit
14632
15418
  * * `vout` - The output index of the deposit
14633
15419
  * * `amount_sats` - The amount of the deposit in sats
15420
+ * * `is_mature` - Whether the deposit UTXO has enough confirmations to be claimable
14634
15421
  *
14635
15422
  * # Returns
14636
15423
  *
14637
15424
  * Success or a `StorageError`
14638
15425
  */
14639
- addDeposit(txid: string, vout: number, amountSats: bigint, asyncOpts_?: {
15426
+ addDeposit(txid: string, vout: number, amountSats: bigint, isMature: boolean, asyncOpts_?: {
14640
15427
  signal: AbortSignal;
14641
15428
  }): Promise<void>;
14642
15429
  /**
@@ -14857,18 +15644,19 @@ export declare class StorageImpl extends UniffiAbstractObject implements Storage
14857
15644
  signal: AbortSignal;
14858
15645
  }): Promise<Map<string, Array<Payment>>>;
14859
15646
  /**
14860
- * Add a deposit to storage
15647
+ * Add a deposit to storage (upsert: updates `is_mature` and `amount_sats` on conflict)
14861
15648
  * # Arguments
14862
15649
  *
14863
15650
  * * `txid` - The transaction ID of the deposit
14864
15651
  * * `vout` - The output index of the deposit
14865
15652
  * * `amount_sats` - The amount of the deposit in sats
15653
+ * * `is_mature` - Whether the deposit UTXO has enough confirmations to be claimable
14866
15654
  *
14867
15655
  * # Returns
14868
15656
  *
14869
15657
  * Success or a `StorageError`
14870
15658
  */
14871
- addDeposit(txid: string, vout: number, amountSats: bigint, asyncOpts_?: {
15659
+ addDeposit(txid: string, vout: number, amountSats: bigint, isMature: boolean, asyncOpts_?: {
14872
15660
  signal: AbortSignal;
14873
15661
  }): Promise<void>;
14874
15662
  /**
@@ -15263,6 +16051,13 @@ declare const _default: Readonly<{
15263
16051
  lift(value: UniffiByteArray): Amount;
15264
16052
  lower(value: Amount): UniffiByteArray;
15265
16053
  };
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
+ };
15266
16061
  FfiConverterTypeAssetFilter: {
15267
16062
  read(from: RustBuffer): AssetFilter;
15268
16063
  write(value: AssetFilter, into: RustBuffer): void;
@@ -15398,6 +16193,13 @@ declare const _default: Readonly<{
15398
16193
  lift(value: UniffiByteArray): ChainApiType;
15399
16194
  lower(value: ChainApiType): UniffiByteArray;
15400
16195
  };
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
+ };
15401
16203
  FfiConverterTypeCheckLightningAddressRequest: {
15402
16204
  read(from: RustBuffer): CheckLightningAddressRequest;
15403
16205
  write(value: CheckLightningAddressRequest, into: RustBuffer): void;
@@ -16080,6 +16882,20 @@ declare const _default: Readonly<{
16080
16882
  lower(value: OutgoingChange): UniffiByteArray;
16081
16883
  };
16082
16884
  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
+ };
16083
16899
  FfiConverterTypePasskeyPrfProvider: FfiConverterObjectWithCallbacks<PasskeyPrfProvider>;
16084
16900
  FfiConverterTypePayment: {
16085
16901
  read(from: RustBuffer): Payment;
@@ -16117,6 +16933,13 @@ declare const _default: Readonly<{
16117
16933
  lower(value: PaymentMethod): UniffiByteArray;
16118
16934
  };
16119
16935
  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
+ };
16120
16943
  FfiConverterTypePaymentRequestSource: {
16121
16944
  read(from: RustBuffer): PaymentRequestSource;
16122
16945
  write(value: PaymentRequestSource, into: RustBuffer): void;
@@ -16271,6 +17094,20 @@ declare const _default: Readonly<{
16271
17094
  lift(value: UniffiByteArray): RegisterLightningAddressRequest;
16272
17095
  lower(value: RegisterLightningAddressRequest): UniffiByteArray;
16273
17096
  };
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
+ };
16274
17111
  FfiConverterTypeRestClient: FfiConverterObjectWithCallbacks<RestClient>;
16275
17112
  FfiConverterTypeRestResponse: {
16276
17113
  read(from: RustBuffer): RestResponse;
@@ -16287,6 +17124,13 @@ declare const _default: Readonly<{
16287
17124
  lower(value: SchnorrSignatureBytes): UniffiByteArray;
16288
17125
  };
16289
17126
  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
+ };
16290
17134
  FfiConverterTypeSdkEvent: {
16291
17135
  read(from: RustBuffer): SdkEvent;
16292
17136
  write(value: SdkEvent, into: RustBuffer): void;
@@ -16350,6 +17194,13 @@ declare const _default: Readonly<{
16350
17194
  lift(value: UniffiByteArray): SendPaymentResponse;
16351
17195
  lower(value: SendPaymentResponse): UniffiByteArray;
16352
17196
  };
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
+ };
16353
17204
  FfiConverterTypeServiceStatus: {
16354
17205
  read(from: RustBuffer): ServiceStatus;
16355
17206
  write(value: ServiceStatus, into: RustBuffer): void;
@@ -16378,6 +17229,13 @@ declare const _default: Readonly<{
16378
17229
  lift(value: UniffiByteArray): SignMessageResponse;
16379
17230
  lower(value: SignMessageResponse): UniffiByteArray;
16380
17231
  };
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
+ };
16381
17239
  FfiConverterTypeSilentPaymentAddressDetails: {
16382
17240
  read(from: RustBuffer): SilentPaymentAddressDetails;
16383
17241
  write(value: SilentPaymentAddressDetails, into: RustBuffer): void;
@@ -16392,6 +17250,13 @@ declare const _default: Readonly<{
16392
17250
  lift(value: UniffiByteArray): SparkAddressDetails;
16393
17251
  lower(value: SparkAddressDetails): UniffiByteArray;
16394
17252
  };
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
+ };
16395
17260
  FfiConverterTypeSparkHtlcDetails: {
16396
17261
  read(from: RustBuffer): SparkHtlcDetails;
16397
17262
  write(value: SparkHtlcDetails, into: RustBuffer): void;
@@ -16427,6 +17292,20 @@ declare const _default: Readonly<{
16427
17292
  lift(value: UniffiByteArray): SparkInvoicePaymentDetails;
16428
17293
  lower(value: SparkInvoicePaymentDetails): UniffiByteArray;
16429
17294
  };
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
+ };
16430
17309
  FfiConverterTypeSparkStatus: {
16431
17310
  read(from: RustBuffer): SparkStatus;
16432
17311
  write(value: SparkStatus, into: RustBuffer): void;
@@ -16434,6 +17313,13 @@ declare const _default: Readonly<{
16434
17313
  lift(value: UniffiByteArray): SparkStatus;
16435
17314
  lower(value: SparkStatus): UniffiByteArray;
16436
17315
  };
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
+ };
16437
17323
  FfiConverterTypeStableBalanceConfig: {
16438
17324
  read(from: RustBuffer): StableBalanceConfig;
16439
17325
  write(value: StableBalanceConfig, into: RustBuffer): void;
@@ -16441,7 +17327,21 @@ declare const _default: Readonly<{
16441
17327
  lift(value: UniffiByteArray): StableBalanceConfig;
16442
17328
  lower(value: StableBalanceConfig): UniffiByteArray;
16443
17329
  };
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
+ };
16444
17337
  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
+ };
16445
17345
  FfiConverterTypeStorageListPaymentsRequest: {
16446
17346
  read(from: RustBuffer): StorageListPaymentsRequest;
16447
17347
  write(value: StorageListPaymentsRequest, into: RustBuffer): void;
@@ -16534,6 +17434,13 @@ declare const _default: Readonly<{
16534
17434
  lift(value: UniffiByteArray): UnfreezeIssuerTokenResponse;
16535
17435
  lower(value: UnfreezeIssuerTokenResponse): UniffiByteArray;
16536
17436
  };
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
+ };
16537
17444
  FfiConverterTypeUnversionedRecordChange: {
16538
17445
  read(from: RustBuffer): UnversionedRecordChange;
16539
17446
  write(value: UnversionedRecordChange, into: RustBuffer): void;
@@ -16590,6 +17497,20 @@ declare const _default: Readonly<{
16590
17497
  lift(value: UniffiByteArray): Wallet;
16591
17498
  lower(value: Wallet): UniffiByteArray;
16592
17499
  };
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
+ };
16593
17514
  FfiConverterTypeu128: {
16594
17515
  lift(value: Uint8Array<ArrayBufferLike>): bigint;
16595
17516
  lower(value: bigint): Uint8Array<ArrayBufferLike>;