@breeztech/breez-sdk-spark-react-native 0.16.1-dev1 → 0.17.1

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.
@@ -64,8 +64,8 @@ process?.env?.NODE_ENV!=='production'||false;// Public interface members begin h
64
64
  * explicitly, so an ephemeral SDK instance stays cheap and predictable.
65
65
  *
66
66
  * Config fields whose background services are gated off are reset to their
67
- * inactive shape: `real_time_sync_server_url` is set to `None`, and both
68
- * `leaf_optimization_config.auto_enabled` and
67
+ * inactive shape: `real_time_sync_server_url` and `cross_chain_config` are
68
+ * set to `None`, and both `leaf_optimization_config.auto_enabled` and
69
69
  * `token_optimization_config.auto_enabled` are set to `false`. The SDK
70
70
  * rejects builds where `background_tasks_enabled` is `false` and any of
71
71
  * those fields is left in its active shape, so flip the flag via this
@@ -423,7 +423,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
423
423
  * in Rust, in the {@link breez_sdk_spark} crate.
424
424
  */new:create,/**
425
425
  * Defaults specified in the {@link breez_sdk_spark} crate.
426
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{apiKey:FfiConverterOptionalString.read(from),network:FfiConverterTypeNetwork.read(from),syncIntervalSecs:FfiConverterUInt32.read(from),maxDepositClaimFee:FfiConverterOptionalTypeMaxFee.read(from),lnurlDomain:FfiConverterOptionalString.read(from),preferSparkOverLightning:FfiConverterBool.read(from),externalInputParsers:FfiConverterOptionalArrayTypeExternalInputParser.read(from),useDefaultExternalInputParsers:FfiConverterBool.read(from),realTimeSyncServerUrl:FfiConverterOptionalString.read(from),privateEnabledDefault:FfiConverterBool.read(from),leafOptimizationConfig:FfiConverterTypeLeafOptimizationConfig.read(from),tokenOptimizationConfig:FfiConverterTypeTokenOptimizationConfig.read(from),stableBalanceConfig:FfiConverterOptionalTypeStableBalanceConfig.read(from),maxConcurrentClaims:FfiConverterUInt32.read(from),sparkConfig:FfiConverterOptionalTypeSparkConfig.read(from),backgroundTasksEnabled:FfiConverterBool.read(from)};}write(value,into){FfiConverterOptionalString.write(value.apiKey,into);FfiConverterTypeNetwork.write(value.network,into);FfiConverterUInt32.write(value.syncIntervalSecs,into);FfiConverterOptionalTypeMaxFee.write(value.maxDepositClaimFee,into);FfiConverterOptionalString.write(value.lnurlDomain,into);FfiConverterBool.write(value.preferSparkOverLightning,into);FfiConverterOptionalArrayTypeExternalInputParser.write(value.externalInputParsers,into);FfiConverterBool.write(value.useDefaultExternalInputParsers,into);FfiConverterOptionalString.write(value.realTimeSyncServerUrl,into);FfiConverterBool.write(value.privateEnabledDefault,into);FfiConverterTypeLeafOptimizationConfig.write(value.leafOptimizationConfig,into);FfiConverterTypeTokenOptimizationConfig.write(value.tokenOptimizationConfig,into);FfiConverterOptionalTypeStableBalanceConfig.write(value.stableBalanceConfig,into);FfiConverterUInt32.write(value.maxConcurrentClaims,into);FfiConverterOptionalTypeSparkConfig.write(value.sparkConfig,into);FfiConverterBool.write(value.backgroundTasksEnabled,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.apiKey)+FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterUInt32.allocationSize(value.syncIntervalSecs)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxDepositClaimFee)+FfiConverterOptionalString.allocationSize(value.lnurlDomain)+FfiConverterBool.allocationSize(value.preferSparkOverLightning)+FfiConverterOptionalArrayTypeExternalInputParser.allocationSize(value.externalInputParsers)+FfiConverterBool.allocationSize(value.useDefaultExternalInputParsers)+FfiConverterOptionalString.allocationSize(value.realTimeSyncServerUrl)+FfiConverterBool.allocationSize(value.privateEnabledDefault)+FfiConverterTypeLeafOptimizationConfig.allocationSize(value.leafOptimizationConfig)+FfiConverterTypeTokenOptimizationConfig.allocationSize(value.tokenOptimizationConfig)+FfiConverterOptionalTypeStableBalanceConfig.allocationSize(value.stableBalanceConfig)+FfiConverterUInt32.allocationSize(value.maxConcurrentClaims)+FfiConverterOptionalTypeSparkConfig.allocationSize(value.sparkConfig)+FfiConverterBool.allocationSize(value.backgroundTasksEnabled);}}return new FFIConverter();})();/**
426
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{apiKey:FfiConverterOptionalString.read(from),network:FfiConverterTypeNetwork.read(from),syncIntervalSecs:FfiConverterUInt32.read(from),maxDepositClaimFee:FfiConverterOptionalTypeMaxFee.read(from),lnurlDomain:FfiConverterOptionalString.read(from),preferSparkOverLightning:FfiConverterBool.read(from),externalInputParsers:FfiConverterOptionalArrayTypeExternalInputParser.read(from),useDefaultExternalInputParsers:FfiConverterBool.read(from),realTimeSyncServerUrl:FfiConverterOptionalString.read(from),privateEnabledDefault:FfiConverterBool.read(from),leafOptimizationConfig:FfiConverterTypeLeafOptimizationConfig.read(from),tokenOptimizationConfig:FfiConverterTypeTokenOptimizationConfig.read(from),stableBalanceConfig:FfiConverterOptionalTypeStableBalanceConfig.read(from),maxConcurrentClaims:FfiConverterUInt32.read(from),sparkConfig:FfiConverterOptionalTypeSparkConfig.read(from),backgroundTasksEnabled:FfiConverterBool.read(from),crossChainConfig:FfiConverterOptionalTypeCrossChainConfig.read(from)};}write(value,into){FfiConverterOptionalString.write(value.apiKey,into);FfiConverterTypeNetwork.write(value.network,into);FfiConverterUInt32.write(value.syncIntervalSecs,into);FfiConverterOptionalTypeMaxFee.write(value.maxDepositClaimFee,into);FfiConverterOptionalString.write(value.lnurlDomain,into);FfiConverterBool.write(value.preferSparkOverLightning,into);FfiConverterOptionalArrayTypeExternalInputParser.write(value.externalInputParsers,into);FfiConverterBool.write(value.useDefaultExternalInputParsers,into);FfiConverterOptionalString.write(value.realTimeSyncServerUrl,into);FfiConverterBool.write(value.privateEnabledDefault,into);FfiConverterTypeLeafOptimizationConfig.write(value.leafOptimizationConfig,into);FfiConverterTypeTokenOptimizationConfig.write(value.tokenOptimizationConfig,into);FfiConverterOptionalTypeStableBalanceConfig.write(value.stableBalanceConfig,into);FfiConverterUInt32.write(value.maxConcurrentClaims,into);FfiConverterOptionalTypeSparkConfig.write(value.sparkConfig,into);FfiConverterBool.write(value.backgroundTasksEnabled,into);FfiConverterOptionalTypeCrossChainConfig.write(value.crossChainConfig,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.apiKey)+FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterUInt32.allocationSize(value.syncIntervalSecs)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxDepositClaimFee)+FfiConverterOptionalString.allocationSize(value.lnurlDomain)+FfiConverterBool.allocationSize(value.preferSparkOverLightning)+FfiConverterOptionalArrayTypeExternalInputParser.allocationSize(value.externalInputParsers)+FfiConverterBool.allocationSize(value.useDefaultExternalInputParsers)+FfiConverterOptionalString.allocationSize(value.realTimeSyncServerUrl)+FfiConverterBool.allocationSize(value.privateEnabledDefault)+FfiConverterTypeLeafOptimizationConfig.allocationSize(value.leafOptimizationConfig)+FfiConverterTypeTokenOptimizationConfig.allocationSize(value.tokenOptimizationConfig)+FfiConverterOptionalTypeStableBalanceConfig.allocationSize(value.stableBalanceConfig)+FfiConverterUInt32.allocationSize(value.maxConcurrentClaims)+FfiConverterOptionalTypeSparkConfig.allocationSize(value.sparkConfig)+FfiConverterBool.allocationSize(value.backgroundTasksEnabled)+FfiConverterOptionalTypeCrossChainConfig.allocationSize(value.crossChainConfig);}}return new FFIConverter();})();/**
427
427
  * Generated factory for {@link ConnectRequest} record objects.
428
428
  */export const ConnectRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
429
429
  * Create a frozen instance of {@link ConnectRequest}, with defaults specified
@@ -489,10 +489,35 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
489
489
  */new:create,/**
490
490
  * Defaults specified in the {@link breez_sdk_spark} crate.
491
491
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeContact=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterString.read(from),name:FfiConverterString.read(from),paymentIdentifier:FfiConverterString.read(from),createdAt:FfiConverterUInt64.read(from),updatedAt:FfiConverterUInt64.read(from)};}write(value,into){FfiConverterString.write(value.id,into);FfiConverterString.write(value.name,into);FfiConverterString.write(value.paymentIdentifier,into);FfiConverterUInt64.write(value.createdAt,into);FfiConverterUInt64.write(value.updatedAt,into);}allocationSize(value){return FfiConverterString.allocationSize(value.id)+FfiConverterString.allocationSize(value.name)+FfiConverterString.allocationSize(value.paymentIdentifier)+FfiConverterUInt64.allocationSize(value.createdAt)+FfiConverterUInt64.allocationSize(value.updatedAt);}}return new FFIConverter();})();/**
492
- * Outlines the steps involved in a conversion.
492
+ * A single conversion in a payment's conversion chain.
493
+ *//**
494
+ * Generated factory for {@link Conversion} record objects.
495
+ */export const Conversion=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
496
+ * Create a frozen instance of {@link Conversion}, with defaults specified
497
+ * in Rust, in the {@link breez_sdk_spark} crate.
498
+ */create,/**
499
+ * Create a frozen instance of {@link Conversion}, with defaults specified
500
+ * in Rust, in the {@link breez_sdk_spark} crate.
501
+ */new:create,/**
502
+ * Defaults specified in the {@link breez_sdk_spark} crate.
503
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversion=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{provider:FfiConverterTypeConversionProvider.read(from),status:FfiConverterTypeConversionStatus.read(from),from:FfiConverterTypeConversionSide.read(from),to:FfiConverterTypeConversionSide.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from)};}write(value,into){FfiConverterTypeConversionProvider.write(value.provider,into);FfiConverterTypeConversionStatus.write(value.status,into);FfiConverterTypeConversionSide.write(value.from,into);FfiConverterTypeConversionSide.write(value.to,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(value.amountAdjustment,into);}allocationSize(value){return FfiConverterTypeConversionProvider.allocationSize(value.provider)+FfiConverterTypeConversionStatus.allocationSize(value.status)+FfiConverterTypeConversionSide.allocationSize(value.from)+FfiConverterTypeConversionSide.allocationSize(value.to)+FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(value.amountAdjustment);}}return new FFIConverter();})();/**
504
+ * The asset on a [`ConversionSide`] — groups the ticker, stable identifier,
505
+ * and decimals that always travel together.
506
+ *//**
507
+ * Generated factory for {@link ConversionAsset} record objects.
508
+ */export const ConversionAsset=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
509
+ * Create a frozen instance of {@link ConversionAsset}, with defaults specified
510
+ * in Rust, in the {@link breez_sdk_spark} crate.
511
+ */create,/**
512
+ * Create a frozen instance of {@link ConversionAsset}, with defaults specified
513
+ * in Rust, in the {@link breez_sdk_spark} crate.
514
+ */new:create,/**
515
+ * Defaults specified in the {@link breez_sdk_spark} crate.
516
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionAsset=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{ticker:FfiConverterString.read(from),identifier:FfiConverterOptionalString.read(from),decimals:FfiConverterUInt32.read(from)};}write(value,into){FfiConverterString.write(value.ticker,into);FfiConverterOptionalString.write(value.identifier,into);FfiConverterUInt32.write(value.decimals,into);}allocationSize(value){return FfiConverterString.allocationSize(value.ticker)+FfiConverterOptionalString.allocationSize(value.identifier)+FfiConverterUInt32.allocationSize(value.decimals);}}return new FFIConverter();})();/**
517
+ * Outlines the steps involved in one or more conversions on a payment.
493
518
  *
494
519
  * Built progressively: `status` is available immediately from payment metadata,
495
- * while `from`/`to` steps are enriched later from child payments.
520
+ * while `conversions` are enriched later from child payments and conversion info.
496
521
  *//**
497
522
  * Generated factory for {@link ConversionDetails} record objects.
498
523
  */export const ConversionDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
@@ -503,7 +528,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
503
528
  * in Rust, in the {@link breez_sdk_spark} crate.
504
529
  */new:create,/**
505
530
  * Defaults specified in the {@link breez_sdk_spark} crate.
506
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{status:FfiConverterTypeConversionStatus.read(from),from:FfiConverterOptionalTypeConversionStep.read(from),to:FfiConverterOptionalTypeConversionStep.read(from)};}write(value,into){FfiConverterTypeConversionStatus.write(value.status,into);FfiConverterOptionalTypeConversionStep.write(value.from,into);FfiConverterOptionalTypeConversionStep.write(value.to,into);}allocationSize(value){return FfiConverterTypeConversionStatus.allocationSize(value.status)+FfiConverterOptionalTypeConversionStep.allocationSize(value.from)+FfiConverterOptionalTypeConversionStep.allocationSize(value.to);}}return new FFIConverter();})();/**
531
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{status:FfiConverterTypeConversionStatus.read(from),conversions:FfiConverterArrayTypeConversion.read(from)};}write(value,into){FfiConverterTypeConversionStatus.write(value.status,into);FfiConverterArrayTypeConversion.write(value.conversions,into);}allocationSize(value){return FfiConverterTypeConversionStatus.allocationSize(value.status)+FfiConverterArrayTypeConversion.allocationSize(value.conversions);}}return new FFIConverter();})();/**
507
532
  * Response from estimating a conversion, used when preparing a payment that requires conversion
508
533
  *//**
509
534
  * Generated factory for {@link ConversionEstimate} record objects.
@@ -516,16 +541,6 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
516
541
  */new:create,/**
517
542
  * Defaults specified in the {@link breez_sdk_spark} crate.
518
543
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionEstimate=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{options:FfiConverterTypeConversionOptions.read(from),amountIn:FfiConverterTypeu128.read(from),amountOut:FfiConverterTypeu128.read(from),fee:FfiConverterTypeu128.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from)};}write(value,into){FfiConverterTypeConversionOptions.write(value.options,into);FfiConverterTypeu128.write(value.amountIn,into);FfiConverterTypeu128.write(value.amountOut,into);FfiConverterTypeu128.write(value.fee,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(value.amountAdjustment,into);}allocationSize(value){return FfiConverterTypeConversionOptions.allocationSize(value.options)+FfiConverterTypeu128.allocationSize(value.amountIn)+FfiConverterTypeu128.allocationSize(value.amountOut)+FfiConverterTypeu128.allocationSize(value.fee)+FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(value.amountAdjustment);}}return new FFIConverter();})();/**
519
- * Generated factory for {@link ConversionInfo} record objects.
520
- */export const ConversionInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
521
- * Create a frozen instance of {@link ConversionInfo}, with defaults specified
522
- * in Rust, in the {@link breez_sdk_spark} crate.
523
- */create,/**
524
- * Create a frozen instance of {@link ConversionInfo}, with defaults specified
525
- * in Rust, in the {@link breez_sdk_spark} crate.
526
- */new:create,/**
527
- * Defaults specified in the {@link breez_sdk_spark} crate.
528
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{poolId:FfiConverterString.read(from),conversionId:FfiConverterString.read(from),status:FfiConverterTypeConversionStatus.read(from),fee:FfiConverterOptionalTypeu128.read(from),purpose:FfiConverterOptionalTypeConversionPurpose.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from)};}write(value,into){FfiConverterString.write(value.poolId,into);FfiConverterString.write(value.conversionId,into);FfiConverterTypeConversionStatus.write(value.status,into);FfiConverterOptionalTypeu128.write(value.fee,into);FfiConverterOptionalTypeConversionPurpose.write(value.purpose,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(value.amountAdjustment,into);}allocationSize(value){return FfiConverterString.allocationSize(value.poolId)+FfiConverterString.allocationSize(value.conversionId)+FfiConverterTypeConversionStatus.allocationSize(value.status)+FfiConverterOptionalTypeu128.allocationSize(value.fee)+FfiConverterOptionalTypeConversionPurpose.allocationSize(value.purpose)+FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(value.amountAdjustment);}}return new FFIConverter();})();/**
529
544
  * Options for conversion when fulfilling a payment. When set, the SDK will
530
545
  * perform a conversion before fulfilling the payment. If not set, the payment
531
546
  * will only be fulfilled if the wallet has sufficient balance of the required asset.
@@ -540,18 +555,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
540
555
  */new:create,/**
541
556
  * Defaults specified in the {@link breez_sdk_spark} crate.
542
557
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionOptions=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{conversionType:FfiConverterTypeConversionType.read(from),maxSlippageBps:FfiConverterOptionalUInt32.read(from),completionTimeoutSecs:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterTypeConversionType.write(value.conversionType,into);FfiConverterOptionalUInt32.write(value.maxSlippageBps,into);FfiConverterOptionalUInt32.write(value.completionTimeoutSecs,into);}allocationSize(value){return FfiConverterTypeConversionType.allocationSize(value.conversionType)+FfiConverterOptionalUInt32.allocationSize(value.maxSlippageBps)+FfiConverterOptionalUInt32.allocationSize(value.completionTimeoutSecs);}}return new FFIConverter();})();/**
543
- * A single step in a conversion
558
+ * One side (source or destination) of a conversion.
544
559
  *//**
545
- * Generated factory for {@link ConversionStep} record objects.
546
- */export const ConversionStep=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
547
- * Create a frozen instance of {@link ConversionStep}, with defaults specified
560
+ * Generated factory for {@link ConversionSide} record objects.
561
+ */export const ConversionSide=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
562
+ * Create a frozen instance of {@link ConversionSide}, with defaults specified
548
563
  * in Rust, in the {@link breez_sdk_spark} crate.
549
564
  */create,/**
550
- * Create a frozen instance of {@link ConversionStep}, with defaults specified
565
+ * Create a frozen instance of {@link ConversionSide}, with defaults specified
551
566
  * in Rust, in the {@link breez_sdk_spark} crate.
552
567
  */new:create,/**
553
568
  * Defaults specified in the {@link breez_sdk_spark} crate.
554
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionStep=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentId:FfiConverterString.read(from),amount:FfiConverterTypeu128.read(from),fee:FfiConverterTypeu128.read(from),method:FfiConverterTypePaymentMethod.read(from),tokenMetadata:FfiConverterOptionalTypeTokenMetadata.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from)};}write(value,into){FfiConverterString.write(value.paymentId,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterTypeu128.write(value.fee,into);FfiConverterTypePaymentMethod.write(value.method,into);FfiConverterOptionalTypeTokenMetadata.write(value.tokenMetadata,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(value.amountAdjustment,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentId)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterTypeu128.allocationSize(value.fee)+FfiConverterTypePaymentMethod.allocationSize(value.method)+FfiConverterOptionalTypeTokenMetadata.allocationSize(value.tokenMetadata)+FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(value.amountAdjustment);}}return new FFIConverter();})();/**
569
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionSide=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{chain:FfiConverterTypeConversionChain.read(from),asset:FfiConverterTypeConversionAsset.read(from),amount:FfiConverterTypeu128.read(from),fee:FfiConverterTypeu128.read(from)};}write(value,into){FfiConverterTypeConversionChain.write(value.chain,into);FfiConverterTypeConversionAsset.write(value.asset,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterTypeu128.write(value.fee,into);}allocationSize(value){return FfiConverterTypeConversionChain.allocationSize(value.chain)+FfiConverterTypeConversionAsset.allocationSize(value.asset)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterTypeu128.allocationSize(value.fee);}}return new FFIConverter();})();/**
555
570
  * Generated factory for {@link CreateIssuerTokenRequest} record objects.
556
571
  */export const CreateIssuerTokenRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
557
572
  * Create a frozen instance of {@link CreateIssuerTokenRequest}, with defaults specified
@@ -572,6 +587,44 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
572
587
  */new:create,/**
573
588
  * Defaults specified in the {@link breez_sdk_spark} crate.
574
589
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCredentials=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{username:FfiConverterString.read(from),password:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.username,into);FfiConverterString.write(value.password,into);}allocationSize(value){return FfiConverterString.allocationSize(value.username)+FfiConverterString.allocationSize(value.password);}}return new FFIConverter();})();/**
590
+ * Generated factory for {@link CrossChainAddressDetails} record objects.
591
+ */export const CrossChainAddressDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
592
+ * Create a frozen instance of {@link CrossChainAddressDetails}, with defaults specified
593
+ * in Rust, in the {@link breez_sdk_spark} crate.
594
+ */create,/**
595
+ * Create a frozen instance of {@link CrossChainAddressDetails}, with defaults specified
596
+ * in Rust, in the {@link breez_sdk_spark} crate.
597
+ */new:create,/**
598
+ * Defaults specified in the {@link breez_sdk_spark} crate.
599
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainAddressDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{address:FfiConverterString.read(from),addressFamily:FfiConverterTypeCrossChainAddressFamily.read(from),contractAddress:FfiConverterOptionalString.read(from),chainId:FfiConverterOptionalUInt64.read(from),amount:FfiConverterOptionalTypeu128.read(from)};}write(value,into){FfiConverterString.write(value.address,into);FfiConverterTypeCrossChainAddressFamily.write(value.addressFamily,into);FfiConverterOptionalString.write(value.contractAddress,into);FfiConverterOptionalUInt64.write(value.chainId,into);FfiConverterOptionalTypeu128.write(value.amount,into);}allocationSize(value){return FfiConverterString.allocationSize(value.address)+FfiConverterTypeCrossChainAddressFamily.allocationSize(value.addressFamily)+FfiConverterOptionalString.allocationSize(value.contractAddress)+FfiConverterOptionalUInt64.allocationSize(value.chainId)+FfiConverterOptionalTypeu128.allocationSize(value.amount);}}return new FFIConverter();})();/**
600
+ * Configuration for cross-chain sends.
601
+ *
602
+ * The presence of this struct on [`Config::cross_chain_config`] enables
603
+ * cross-chain providers; `None` disables them.
604
+ *//**
605
+ * Generated factory for {@link CrossChainConfig} record objects.
606
+ */export const CrossChainConfig=(()=>{const defaults=()=>({defaultSlippageBps:undefined,defaultTargetOverpayBps:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
607
+ * Create a frozen instance of {@link CrossChainConfig}, with defaults specified
608
+ * in Rust, in the {@link breez_sdk_spark} crate.
609
+ */create,/**
610
+ * Create a frozen instance of {@link CrossChainConfig}, with defaults specified
611
+ * in Rust, in the {@link breez_sdk_spark} crate.
612
+ */new:create,/**
613
+ * Defaults specified in the {@link breez_sdk_spark} crate.
614
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{defaultSlippageBps:FfiConverterOptionalUInt32.read(from),defaultTargetOverpayBps:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterOptionalUInt32.write(value.defaultSlippageBps,into);FfiConverterOptionalUInt32.write(value.defaultTargetOverpayBps,into);}allocationSize(value){return FfiConverterOptionalUInt32.allocationSize(value.defaultSlippageBps)+FfiConverterOptionalUInt32.allocationSize(value.defaultTargetOverpayBps);}}return new FFIConverter();})();/**
615
+ * A single route available for cross-chain transfers, tagged with the provider
616
+ * that offers it. Returned by `get_cross_chain_routes()`.
617
+ *//**
618
+ * Generated factory for {@link CrossChainRoutePair} record objects.
619
+ */export const CrossChainRoutePair=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
620
+ * Create a frozen instance of {@link CrossChainRoutePair}, with defaults specified
621
+ * in Rust, in the {@link breez_sdk_spark} crate.
622
+ */create,/**
623
+ * Create a frozen instance of {@link CrossChainRoutePair}, with defaults specified
624
+ * in Rust, in the {@link breez_sdk_spark} crate.
625
+ */new:create,/**
626
+ * Defaults specified in the {@link breez_sdk_spark} crate.
627
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainRoutePair=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{provider:FfiConverterTypeCrossChainProvider.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),contractAddress:FfiConverterOptionalString.read(from),decimals:FfiConverterUInt8.read(from),exactOutEligible:FfiConverterBool.read(from),supportedSources:FfiConverterArrayTypeSourceAsset.read(from)};}write(value,into){FfiConverterTypeCrossChainProvider.write(value.provider,into);FfiConverterString.write(value.chain,into);FfiConverterOptionalString.write(value.chainId,into);FfiConverterString.write(value.asset,into);FfiConverterOptionalString.write(value.contractAddress,into);FfiConverterUInt8.write(value.decimals,into);FfiConverterBool.write(value.exactOutEligible,into);FfiConverterArrayTypeSourceAsset.write(value.supportedSources,into);}allocationSize(value){return FfiConverterTypeCrossChainProvider.allocationSize(value.provider)+FfiConverterString.allocationSize(value.chain)+FfiConverterOptionalString.allocationSize(value.chainId)+FfiConverterString.allocationSize(value.asset)+FfiConverterOptionalString.allocationSize(value.contractAddress)+FfiConverterUInt8.allocationSize(value.decimals)+FfiConverterBool.allocationSize(value.exactOutEligible)+FfiConverterArrayTypeSourceAsset.allocationSize(value.supportedSources);}}return new FFIConverter();})();/**
575
628
  * Details about a supported currency in the fiat rate feed
576
629
  *//**
577
630
  * Generated factory for {@link CurrencyInfo} record objects.
@@ -1651,7 +1704,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1651
1704
  * in Rust, in the {@link breez_sdk_spark} crate.
1652
1705
  */new:create,/**
1653
1706
  * Defaults specified in the {@link breez_sdk_spark} crate.
1654
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareSendPaymentRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentRequest:FfiConverterString.read(from),amount:FfiConverterOptionalTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),conversionOptions:FfiConverterOptionalTypeConversionOptions.read(from),feePolicy:FfiConverterOptionalTypeFeePolicy.read(from)};}write(value,into){FfiConverterString.write(value.paymentRequest,into);FfiConverterOptionalTypeu128.write(value.amount,into);FfiConverterOptionalString.write(value.tokenIdentifier,into);FfiConverterOptionalTypeConversionOptions.write(value.conversionOptions,into);FfiConverterOptionalTypeFeePolicy.write(value.feePolicy,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentRequest)+FfiConverterOptionalTypeu128.allocationSize(value.amount)+FfiConverterOptionalString.allocationSize(value.tokenIdentifier)+FfiConverterOptionalTypeConversionOptions.allocationSize(value.conversionOptions)+FfiConverterOptionalTypeFeePolicy.allocationSize(value.feePolicy);}}return new FFIConverter();})();/**
1707
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareSendPaymentRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentRequest:FfiConverterTypePaymentRequest.read(from),amount:FfiConverterOptionalTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),conversionOptions:FfiConverterOptionalTypeConversionOptions.read(from),feePolicy:FfiConverterOptionalTypeFeePolicy.read(from)};}write(value,into){FfiConverterTypePaymentRequest.write(value.paymentRequest,into);FfiConverterOptionalTypeu128.write(value.amount,into);FfiConverterOptionalString.write(value.tokenIdentifier,into);FfiConverterOptionalTypeConversionOptions.write(value.conversionOptions,into);FfiConverterOptionalTypeFeePolicy.write(value.feePolicy,into);}allocationSize(value){return FfiConverterTypePaymentRequest.allocationSize(value.paymentRequest)+FfiConverterOptionalTypeu128.allocationSize(value.amount)+FfiConverterOptionalString.allocationSize(value.tokenIdentifier)+FfiConverterOptionalTypeConversionOptions.allocationSize(value.conversionOptions)+FfiConverterOptionalTypeFeePolicy.allocationSize(value.feePolicy);}}return new FFIConverter();})();/**
1655
1708
  * Generated factory for {@link PrepareSendPaymentResponse} record objects.
1656
1709
  */export const PrepareSendPaymentResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1657
1710
  * Create a frozen instance of {@link PrepareSendPaymentResponse}, with defaults specified
@@ -2098,7 +2151,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
2098
2151
  * in Rust, in the {@link breez_sdk_spark} crate.
2099
2152
  */new:create,/**
2100
2153
  * Defaults specified in the {@link breez_sdk_spark} crate.
2101
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSparkSigningOperator=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterUInt32.read(from),identifier:FfiConverterString.read(from),address:FfiConverterString.read(from),identityPublicKey:FfiConverterString.read(from)};}write(value,into){FfiConverterUInt32.write(value.id,into);FfiConverterString.write(value.identifier,into);FfiConverterString.write(value.address,into);FfiConverterString.write(value.identityPublicKey,into);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.id)+FfiConverterString.allocationSize(value.identifier)+FfiConverterString.allocationSize(value.address)+FfiConverterString.allocationSize(value.identityPublicKey);}}return new FFIConverter();})();/**
2154
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSparkSigningOperator=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterUInt32.read(from),identifier:FfiConverterString.read(from),address:FfiConverterString.read(from),identityPublicKey:FfiConverterString.read(from),caCertPem:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterUInt32.write(value.id,into);FfiConverterString.write(value.identifier,into);FfiConverterString.write(value.address,into);FfiConverterString.write(value.identityPublicKey,into);FfiConverterOptionalString.write(value.caCertPem,into);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.id)+FfiConverterString.allocationSize(value.identifier)+FfiConverterString.allocationSize(value.address)+FfiConverterString.allocationSize(value.identityPublicKey)+FfiConverterOptionalString.allocationSize(value.caCertPem);}}return new FFIConverter();})();/**
2102
2155
  * Configuration for the Spark Service Provider (SSP).
2103
2156
  *//**
2104
2157
  * Generated factory for {@link SparkSspConfig} record objects.
@@ -2172,6 +2225,25 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
2172
2225
  */new:create,/**
2173
2226
  * Defaults specified in the {@link breez_sdk_spark} crate.
2174
2227
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeStorageListPaymentsRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{typeFilter:FfiConverterOptionalArrayTypePaymentType.read(from),statusFilter:FfiConverterOptionalArrayTypePaymentStatus.read(from),assetFilter:FfiConverterOptionalTypeAssetFilter.read(from),paymentDetailsFilter:FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter.read(from),fromTimestamp:FfiConverterOptionalUInt64.read(from),toTimestamp:FfiConverterOptionalUInt64.read(from),offset:FfiConverterOptionalUInt32.read(from),limit:FfiConverterOptionalUInt32.read(from),sortAscending:FfiConverterOptionalBool.read(from)};}write(value,into){FfiConverterOptionalArrayTypePaymentType.write(value.typeFilter,into);FfiConverterOptionalArrayTypePaymentStatus.write(value.statusFilter,into);FfiConverterOptionalTypeAssetFilter.write(value.assetFilter,into);FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter.write(value.paymentDetailsFilter,into);FfiConverterOptionalUInt64.write(value.fromTimestamp,into);FfiConverterOptionalUInt64.write(value.toTimestamp,into);FfiConverterOptionalUInt32.write(value.offset,into);FfiConverterOptionalUInt32.write(value.limit,into);FfiConverterOptionalBool.write(value.sortAscending,into);}allocationSize(value){return FfiConverterOptionalArrayTypePaymentType.allocationSize(value.typeFilter)+FfiConverterOptionalArrayTypePaymentStatus.allocationSize(value.statusFilter)+FfiConverterOptionalTypeAssetFilter.allocationSize(value.assetFilter)+FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter.allocationSize(value.paymentDetailsFilter)+FfiConverterOptionalUInt64.allocationSize(value.fromTimestamp)+FfiConverterOptionalUInt64.allocationSize(value.toTimestamp)+FfiConverterOptionalUInt32.allocationSize(value.offset)+FfiConverterOptionalUInt32.allocationSize(value.limit)+FfiConverterOptionalBool.allocationSize(value.sortAscending);}}return new FFIConverter();})();/**
2228
+ * A cross-chain swap row as persisted and synced. Shared across providers
2229
+ * (Boltz, Orchestra, future) so each provider's adapter writes opaque
2230
+ * JSON into `data` and (optionally) opaque ciphertext into `secrets`.
2231
+ *
2232
+ * For providers with money-critical secrets, the adapter lifts them out of
2233
+ * the swap JSON, ECIES-encrypts them, and carries only the ciphertext in
2234
+ * `secrets`. The storage layer treats both fields as opaque, so it needs
2235
+ * no signer.
2236
+ *//**
2237
+ * Generated factory for {@link StoredCrossChainSwap} record objects.
2238
+ */export const StoredCrossChainSwap=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
2239
+ * Create a frozen instance of {@link StoredCrossChainSwap}, with defaults specified
2240
+ * in Rust, in the {@link breez_sdk_spark} crate.
2241
+ */create,/**
2242
+ * Create a frozen instance of {@link StoredCrossChainSwap}, with defaults specified
2243
+ * in Rust, in the {@link breez_sdk_spark} crate.
2244
+ */new:create,/**
2245
+ * Defaults specified in the {@link breez_sdk_spark} crate.
2246
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeStoredCrossChainSwap=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{provider:FfiConverterString.read(from),id:FfiConverterString.read(from),isTerminal:FfiConverterBool.read(from),updatedAt:FfiConverterUInt64.read(from),data:FfiConverterString.read(from),secrets:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.provider,into);FfiConverterString.write(value.id,into);FfiConverterBool.write(value.isTerminal,into);FfiConverterUInt64.write(value.updatedAt,into);FfiConverterString.write(value.data,into);FfiConverterString.write(value.secrets,into);}allocationSize(value){return FfiConverterString.allocationSize(value.provider)+FfiConverterString.allocationSize(value.id)+FfiConverterBool.allocationSize(value.isTerminal)+FfiConverterUInt64.allocationSize(value.updatedAt)+FfiConverterString.allocationSize(value.data)+FfiConverterString.allocationSize(value.secrets);}}return new FFIConverter();})();/**
2175
2247
  * Settings for the symbol representation of a currency
2176
2248
  *//**
2177
2249
  * Generated factory for {@link Symbol} record objects.
@@ -2550,7 +2622,86 @@ export let ChainServiceError_Tags=/*#__PURE__*/function(ChainServiceError_Tags){
2550
2622
  * This field is private and should not be used, use `tag` instead.
2551
2623
  */[uniffiTypeNameSymbol]='ChainServiceError';tag=ChainServiceError_Tags.Generic;constructor(v0){super('ChainServiceError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===ChainServiceError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ChainServiceError';}return Object.freeze({instanceOf,InvalidAddress:InvalidAddress_,ServiceConnectivity:ServiceConnectivity_,Generic:Generic_});})();// FfiConverter for enum ChainServiceError
2552
2624
  const FfiConverterTypeChainServiceError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ChainServiceError.InvalidAddress(FfiConverterString.read(from));case 2:return new ChainServiceError.ServiceConnectivity(FfiConverterString.read(from));case 3:return new ChainServiceError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ChainServiceError_Tags.ServiceConnectivity:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ChainServiceError_Tags.Generic:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that ChainServiceError_Tags hasn't matched an ordinal.
2553
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.ServiceConnectivity:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ConversionPurpose
2625
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.ServiceConnectivity:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ConversionChain
2626
+ export let ConversionChain_Tags=/*#__PURE__*/function(ConversionChain_Tags){ConversionChain_Tags["Spark"]="Spark";ConversionChain_Tags["Lightning"]="Lightning";ConversionChain_Tags["External"]="External";return ConversionChain_Tags;}({});/**
2627
+ * The chain or network that a [`ConversionSide`] lives on.
2628
+ */export const ConversionChain=(()=>{/**
2629
+ * Spark layer-2 network.
2630
+ */class Spark_ extends UniffiEnum{/**
2631
+ * @private
2632
+ * This field is private and should not be used, use `tag` instead.
2633
+ */[uniffiTypeNameSymbol]='ConversionChain';tag=ConversionChain_Tags.Spark;constructor(){super('ConversionChain','Spark');}static new(){return new Spark_();}static instanceOf(obj){return obj.tag===ConversionChain_Tags.Spark;}}/**
2634
+ * Bitcoin Lightning Network.
2635
+ */class Lightning_ extends UniffiEnum{/**
2636
+ * @private
2637
+ * This field is private and should not be used, use `tag` instead.
2638
+ */[uniffiTypeNameSymbol]='ConversionChain';tag=ConversionChain_Tags.Lightning;constructor(){super('ConversionChain','Lightning');}static new(){return new Lightning_();}static instanceOf(obj){return obj.tag===ConversionChain_Tags.Lightning;}}/**
2639
+ * An external chain reached via a cross-chain provider.
2640
+ */class External_ extends UniffiEnum{/**
2641
+ * @private
2642
+ * This field is private and should not be used, use `tag` instead.
2643
+ */[uniffiTypeNameSymbol]='ConversionChain';tag=ConversionChain_Tags.External;constructor(inner){super('ConversionChain','External');this.inner=Object.freeze(inner);}static new(inner){return new External_(inner);}static instanceOf(obj){return obj.tag===ConversionChain_Tags.External;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ConversionChain';}return Object.freeze({instanceOf,Spark:Spark_,Lightning:Lightning_,External:External_});})();/**
2644
+ * The chain or network that a [`ConversionSide`] lives on.
2645
+ */// FfiConverter for enum ConversionChain
2646
+ const FfiConverterTypeConversionChain=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ConversionChain.Spark();case 2:return new ConversionChain.Lightning();case 3:return new ConversionChain.External({name:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ConversionChain_Tags.Spark:{ordinalConverter.write(1,into);return;}case ConversionChain_Tags.Lightning:{ordinalConverter.write(2,into);return;}case ConversionChain_Tags.External:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.name,into);FfiConverterOptionalString.write(inner.chainId,into);return;}default:// Throwing from here means that ConversionChain_Tags hasn't matched an ordinal.
2647
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionChain_Tags.Spark:{return ordinalConverter.allocationSize(1);}case ConversionChain_Tags.Lightning:{return ordinalConverter.allocationSize(2);}case ConversionChain_Tags.External:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.name);size+=FfiConverterOptionalString.allocationSize(inner.chainId);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
2648
+ * Selects payments by conversion type + status for background tasks.
2649
+ */export let ConversionFilter=/*#__PURE__*/function(ConversionFilter){/**
2650
+ * AMM conversions that need a refund (clawback).
2651
+ */ConversionFilter[ConversionFilter["AmmRefundNeeded"]=0]="AmmRefundNeeded";/**
2652
+ * Orchestra orders that have not yet reached a terminal state.
2653
+ */ConversionFilter[ConversionFilter["OrchestraPending"]=1]="OrchestraPending";/**
2654
+ * Boltz reverse swaps that have not yet reached a terminal state. Lives on
2655
+ * the Lightning leg (the hold-invoice pay), so it is selected via the
2656
+ * [`StoragePaymentDetailsFilter::Lightning`] filter.
2657
+ */ConversionFilter[ConversionFilter["BoltzPending"]=2]="BoltzPending";return ConversionFilter;}({});const FfiConverterTypeConversionFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ConversionFilter.AmmRefundNeeded;case 2:return ConversionFilter.OrchestraPending;case 3:return ConversionFilter.BoltzPending;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ConversionFilter.AmmRefundNeeded:return ordinalConverter.write(1,into);case ConversionFilter.OrchestraPending:return ordinalConverter.write(2,into);case ConversionFilter.BoltzPending:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: ConversionInfo
2658
+ export let ConversionInfo_Tags=/*#__PURE__*/function(ConversionInfo_Tags){ConversionInfo_Tags["Amm"]="Amm";ConversionInfo_Tags["Orchestra"]="Orchestra";ConversionInfo_Tags["Boltz"]="Boltz";return ConversionInfo_Tags;}({});/**
2659
+ * Details of the asset conversion attached to a payment, when the payment
2660
+ * involves a swap or cross-chain bridge in addition to the on-Spark transfer.
2661
+ *
2662
+ * The variant identifies which provider handled the conversion:
2663
+ * - [`ConversionInfo::Amm`] for Spark token swaps via Flashnet AMM pools.
2664
+ * - [`ConversionInfo::Orchestra`] for cross-chain sends via Flashnet
2665
+ * Orchestra (Spark → external chain).
2666
+ * - [`ConversionInfo::Boltz`] for sats → stable-coin reverse swaps via Boltz.
2667
+ */export const ConversionInfo=(()=>{/**
2668
+ * AMM (Flashnet pool-based) conversion — Spark ↔ Spark token swaps.
2669
+ */class Amm_ extends UniffiEnum{/**
2670
+ * @private
2671
+ * This field is private and should not be used, use `tag` instead.
2672
+ */[uniffiTypeNameSymbol]='ConversionInfo';tag=ConversionInfo_Tags.Amm;constructor(inner){super('ConversionInfo','Amm');this.inner=Object.freeze(inner);}static new(inner){return new Amm_(inner);}static instanceOf(obj){return obj.tag===ConversionInfo_Tags.Amm;}}/**
2673
+ * Orchestra cross-chain conversion via the Flashnet orchestration API.
2674
+ */class Orchestra_ extends UniffiEnum{/**
2675
+ * @private
2676
+ * This field is private and should not be used, use `tag` instead.
2677
+ */[uniffiTypeNameSymbol]='ConversionInfo';tag=ConversionInfo_Tags.Orchestra;constructor(inner){super('ConversionInfo','Orchestra');this.inner=Object.freeze(inner);}static new(inner){return new Orchestra_(inner);}static instanceOf(obj){return obj.tag===ConversionInfo_Tags.Orchestra;}}/**
2678
+ * Boltz reverse swap: cross-chain conversion via Lightning hold invoice.
2679
+ *
2680
+ * The swap's secrets and lifecycle state live on the synced Boltz swap row
2681
+ * keyed by `swap_id`, which also drives cross-instance recovery.
2682
+ */class Boltz_ extends UniffiEnum{/**
2683
+ * @private
2684
+ * This field is private and should not be used, use `tag` instead.
2685
+ */[uniffiTypeNameSymbol]='ConversionInfo';tag=ConversionInfo_Tags.Boltz;constructor(inner){super('ConversionInfo','Boltz');this.inner=Object.freeze(inner);}static new(inner){return new Boltz_(inner);}static instanceOf(obj){return obj.tag===ConversionInfo_Tags.Boltz;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ConversionInfo';}return Object.freeze({instanceOf,Amm:Amm_,Orchestra:Orchestra_,Boltz:Boltz_});})();/**
2686
+ * Details of the asset conversion attached to a payment, when the payment
2687
+ * involves a swap or cross-chain bridge in addition to the on-Spark transfer.
2688
+ *
2689
+ * The variant identifies which provider handled the conversion:
2690
+ * - [`ConversionInfo::Amm`] for Spark token swaps via Flashnet AMM pools.
2691
+ * - [`ConversionInfo::Orchestra`] for cross-chain sends via Flashnet
2692
+ * Orchestra (Spark → external chain).
2693
+ * - [`ConversionInfo::Boltz`] for sats → stable-coin reverse swaps via Boltz.
2694
+ */// FfiConverter for enum ConversionInfo
2695
+ const FfiConverterTypeConversionInfo=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ConversionInfo.Amm({poolId:FfiConverterString.read(from),conversionId:FfiConverterString.read(from),status:FfiConverterTypeConversionStatus.read(from),fee:FfiConverterOptionalTypeu128.read(from),purpose:FfiConverterOptionalTypeConversionPurpose.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from)});case 2:return new ConversionInfo.Orchestra({orderId:FfiConverterString.read(from),quoteId:FfiConverterString.read(from),readToken:FfiConverterOptionalString.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),recipientAddress:FfiConverterString.read(from),assetAmountIn:FfiConverterOptionalTypeu128.read(from),estimatedOut:FfiConverterTypeu128.read(from),deliveredAmount:FfiConverterOptionalTypeu128.read(from),status:FfiConverterTypeConversionStatus.read(from),feeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),assetDecimals:FfiConverterUInt32.read(from),assetContract:FfiConverterOptionalString.read(from)});case 3:return new ConversionInfo.Boltz({swapId:FfiConverterString.read(from),invoice:FfiConverterString.read(from),invoiceAmountSats:FfiConverterUInt64.read(from),bridgeRef:FfiConverterOptionalString.read(from),maxSlippageBps:FfiConverterUInt32.read(from),quoteDegraded:FfiConverterBool.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),recipientAddress:FfiConverterString.read(from),estimatedOut:FfiConverterTypeu128.read(from),deliveredAmount:FfiConverterOptionalTypeu128.read(from),status:FfiConverterTypeConversionStatus.read(from),assetAmountIn:FfiConverterOptionalTypeu128.read(from),feeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),assetDecimals:FfiConverterUInt32.read(from),assetContract:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ConversionInfo_Tags.Amm:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.poolId,into);FfiConverterString.write(inner.conversionId,into);FfiConverterTypeConversionStatus.write(inner.status,into);FfiConverterOptionalTypeu128.write(inner.fee,into);FfiConverterOptionalTypeConversionPurpose.write(inner.purpose,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(inner.amountAdjustment,into);return;}case ConversionInfo_Tags.Orchestra:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.orderId,into);FfiConverterString.write(inner.quoteId,into);FfiConverterOptionalString.write(inner.readToken,into);FfiConverterString.write(inner.chain,into);FfiConverterOptionalString.write(inner.chainId,into);FfiConverterString.write(inner.asset,into);FfiConverterString.write(inner.recipientAddress,into);FfiConverterOptionalTypeu128.write(inner.assetAmountIn,into);FfiConverterTypeu128.write(inner.estimatedOut,into);FfiConverterOptionalTypeu128.write(inner.deliveredAmount,into);FfiConverterTypeConversionStatus.write(inner.status,into);FfiConverterOptionalTypeu128.write(inner.feeAmount,into);FfiConverterOptionalTypeu128.write(inner.serviceFeeAmount,into);FfiConverterOptionalString.write(inner.serviceFeeAsset,into);FfiConverterUInt32.write(inner.assetDecimals,into);FfiConverterOptionalString.write(inner.assetContract,into);return;}case ConversionInfo_Tags.Boltz:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.swapId,into);FfiConverterString.write(inner.invoice,into);FfiConverterUInt64.write(inner.invoiceAmountSats,into);FfiConverterOptionalString.write(inner.bridgeRef,into);FfiConverterUInt32.write(inner.maxSlippageBps,into);FfiConverterBool.write(inner.quoteDegraded,into);FfiConverterString.write(inner.chain,into);FfiConverterOptionalString.write(inner.chainId,into);FfiConverterString.write(inner.asset,into);FfiConverterString.write(inner.recipientAddress,into);FfiConverterTypeu128.write(inner.estimatedOut,into);FfiConverterOptionalTypeu128.write(inner.deliveredAmount,into);FfiConverterTypeConversionStatus.write(inner.status,into);FfiConverterOptionalTypeu128.write(inner.assetAmountIn,into);FfiConverterOptionalTypeu128.write(inner.feeAmount,into);FfiConverterOptionalTypeu128.write(inner.serviceFeeAmount,into);FfiConverterOptionalString.write(inner.serviceFeeAsset,into);FfiConverterUInt32.write(inner.assetDecimals,into);FfiConverterOptionalString.write(inner.assetContract,into);return;}default:// Throwing from here means that ConversionInfo_Tags hasn't matched an ordinal.
2696
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionInfo_Tags.Amm:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.poolId);size+=FfiConverterString.allocationSize(inner.conversionId);size+=FfiConverterTypeConversionStatus.allocationSize(inner.status);size+=FfiConverterOptionalTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalTypeConversionPurpose.allocationSize(inner.purpose);size+=FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(inner.amountAdjustment);return size;}case ConversionInfo_Tags.Orchestra:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.orderId);size+=FfiConverterString.allocationSize(inner.quoteId);size+=FfiConverterOptionalString.allocationSize(inner.readToken);size+=FfiConverterString.allocationSize(inner.chain);size+=FfiConverterOptionalString.allocationSize(inner.chainId);size+=FfiConverterString.allocationSize(inner.asset);size+=FfiConverterString.allocationSize(inner.recipientAddress);size+=FfiConverterOptionalTypeu128.allocationSize(inner.assetAmountIn);size+=FfiConverterTypeu128.allocationSize(inner.estimatedOut);size+=FfiConverterOptionalTypeu128.allocationSize(inner.deliveredAmount);size+=FfiConverterTypeConversionStatus.allocationSize(inner.status);size+=FfiConverterOptionalTypeu128.allocationSize(inner.feeAmount);size+=FfiConverterOptionalTypeu128.allocationSize(inner.serviceFeeAmount);size+=FfiConverterOptionalString.allocationSize(inner.serviceFeeAsset);size+=FfiConverterUInt32.allocationSize(inner.assetDecimals);size+=FfiConverterOptionalString.allocationSize(inner.assetContract);return size;}case ConversionInfo_Tags.Boltz:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.swapId);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterUInt64.allocationSize(inner.invoiceAmountSats);size+=FfiConverterOptionalString.allocationSize(inner.bridgeRef);size+=FfiConverterUInt32.allocationSize(inner.maxSlippageBps);size+=FfiConverterBool.allocationSize(inner.quoteDegraded);size+=FfiConverterString.allocationSize(inner.chain);size+=FfiConverterOptionalString.allocationSize(inner.chainId);size+=FfiConverterString.allocationSize(inner.asset);size+=FfiConverterString.allocationSize(inner.recipientAddress);size+=FfiConverterTypeu128.allocationSize(inner.estimatedOut);size+=FfiConverterOptionalTypeu128.allocationSize(inner.deliveredAmount);size+=FfiConverterTypeConversionStatus.allocationSize(inner.status);size+=FfiConverterOptionalTypeu128.allocationSize(inner.assetAmountIn);size+=FfiConverterOptionalTypeu128.allocationSize(inner.feeAmount);size+=FfiConverterOptionalTypeu128.allocationSize(inner.serviceFeeAmount);size+=FfiConverterOptionalString.allocationSize(inner.serviceFeeAsset);size+=FfiConverterUInt32.allocationSize(inner.assetDecimals);size+=FfiConverterOptionalString.allocationSize(inner.assetContract);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
2697
+ * The provider that performed a conversion.
2698
+ */export let ConversionProvider=/*#__PURE__*/function(ConversionProvider){/**
2699
+ * AMM (Flashnet pool) conversion between token and BTC on Spark
2700
+ */ConversionProvider[ConversionProvider["Amm"]=0]="Amm";/**
2701
+ * Orchestra cross-chain conversion
2702
+ */ConversionProvider[ConversionProvider["Orchestra"]=1]="Orchestra";/**
2703
+ * Boltz reverse-swap cross-chain conversion
2704
+ */ConversionProvider[ConversionProvider["Boltz"]=2]="Boltz";return ConversionProvider;}({});const FfiConverterTypeConversionProvider=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ConversionProvider.Amm;case 2:return ConversionProvider.Orchestra;case 3:return ConversionProvider.Boltz;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ConversionProvider.Amm:return ordinalConverter.write(1,into);case ConversionProvider.Orchestra:return ordinalConverter.write(2,into);case ConversionProvider.Boltz:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: ConversionPurpose
2554
2705
  export let ConversionPurpose_Tags=/*#__PURE__*/function(ConversionPurpose_Tags){ConversionPurpose_Tags["OngoingPayment"]="OngoingPayment";ConversionPurpose_Tags["SelfTransfer"]="SelfTransfer";ConversionPurpose_Tags["AutoConversion"]="AutoConversion";return ConversionPurpose_Tags;}({});/**
2555
2706
  * The purpose of the conversion, which is used to provide context for the conversion
2556
2707
  * if its related to an ongoing payment or a self-transfer.
@@ -2600,7 +2751,52 @@ export let ConversionType_Tags=/*#__PURE__*/function(ConversionType_Tags){Conver
2600
2751
  * This field is private and should not be used, use `tag` instead.
2601
2752
  */[uniffiTypeNameSymbol]='ConversionType';tag=ConversionType_Tags.ToBitcoin;constructor(inner){super('ConversionType','ToBitcoin');this.inner=Object.freeze(inner);}static new(inner){return new ToBitcoin_(inner);}static instanceOf(obj){return obj.tag===ConversionType_Tags.ToBitcoin;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ConversionType';}return Object.freeze({instanceOf,FromBitcoin:FromBitcoin_,ToBitcoin:ToBitcoin_});})();// FfiConverter for enum ConversionType
2602
2753
  const FfiConverterTypeConversionType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ConversionType.FromBitcoin();case 2:return new ConversionType.ToBitcoin({fromTokenIdentifier:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ConversionType_Tags.FromBitcoin:{ordinalConverter.write(1,into);return;}case ConversionType_Tags.ToBitcoin:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.fromTokenIdentifier,into);return;}default:// Throwing from here means that ConversionType_Tags hasn't matched an ordinal.
2603
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionType_Tags.FromBitcoin:{return ordinalConverter.allocationSize(1);}case ConversionType_Tags.ToBitcoin:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.fromTokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: DepositClaimError
2754
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionType_Tags.FromBitcoin:{return ordinalConverter.allocationSize(1);}case ConversionType_Tags.ToBitcoin:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.fromTokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let CrossChainAddressFamily=/*#__PURE__*/function(CrossChainAddressFamily){CrossChainAddressFamily[CrossChainAddressFamily["Evm"]=0]="Evm";CrossChainAddressFamily[CrossChainAddressFamily["Solana"]=1]="Solana";CrossChainAddressFamily[CrossChainAddressFamily["Tron"]=2]="Tron";return CrossChainAddressFamily;}({});const FfiConverterTypeCrossChainAddressFamily=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return CrossChainAddressFamily.Evm;case 2:return CrossChainAddressFamily.Solana;case 3:return CrossChainAddressFamily.Tron;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case CrossChainAddressFamily.Evm:return ordinalConverter.write(1,into);case CrossChainAddressFamily.Solana:return ordinalConverter.write(2,into);case CrossChainAddressFamily.Tron:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();/**
2755
+ * How the caller wants fees handled against the request `amount`.
2756
+ *
2757
+ * - `FeesExcluded`: `amount` is the provider invoice/deposit target; the
2758
+ * wallet pays `amount + source_transfer_fee_sats` in total.
2759
+ * - `FeesIncluded`: `amount` is the wallet's total sats budget; the provider
2760
+ * leg is sized so `amount_in + source_transfer_fee_sats <= amount`.
2761
+ */export let CrossChainFeeMode=/*#__PURE__*/function(CrossChainFeeMode){CrossChainFeeMode[CrossChainFeeMode["FeesExcluded"]=0]="FeesExcluded";CrossChainFeeMode[CrossChainFeeMode["FeesIncluded"]=1]="FeesIncluded";return CrossChainFeeMode;}({});const FfiConverterTypeCrossChainFeeMode=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return CrossChainFeeMode.FeesExcluded;case 2:return CrossChainFeeMode.FeesIncluded;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case CrossChainFeeMode.FeesExcluded:return ordinalConverter.write(1,into);case CrossChainFeeMode.FeesIncluded:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();export let CrossChainProvider=/*#__PURE__*/function(CrossChainProvider){CrossChainProvider[CrossChainProvider["Orchestra"]=0]="Orchestra";CrossChainProvider[CrossChainProvider["Boltz"]=1]="Boltz";return CrossChainProvider;}({});const FfiConverterTypeCrossChainProvider=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return CrossChainProvider.Orchestra;case 2:return CrossChainProvider.Boltz;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case CrossChainProvider.Orchestra:return ordinalConverter.write(1,into);case CrossChainProvider.Boltz:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: CrossChainProviderContext
2762
+ export let CrossChainProviderContext_Tags=/*#__PURE__*/function(CrossChainProviderContext_Tags){CrossChainProviderContext_Tags["Orchestra"]="Orchestra";CrossChainProviderContext_Tags["Boltz"]="Boltz";return CrossChainProviderContext_Tags;}({});/**
2763
+ * Provider-internal state produced by `prepare` and consumed by `send`.
2764
+ * Typed per provider so the send stage can resume without re-quoting and
2765
+ * without a serde round-trip. Callers should round-trip this value as-is.
2766
+ */export const CrossChainProviderContext=(()=>{class Orchestra_ extends UniffiEnum{/**
2767
+ * @private
2768
+ * This field is private and should not be used, use `tag` instead.
2769
+ */[uniffiTypeNameSymbol]='CrossChainProviderContext';tag=CrossChainProviderContext_Tags.Orchestra;constructor(inner){super('CrossChainProviderContext','Orchestra');this.inner=Object.freeze(inner);}static new(inner){return new Orchestra_(inner);}static instanceOf(obj){return obj.tag===CrossChainProviderContext_Tags.Orchestra;}}class Boltz_ extends UniffiEnum{/**
2770
+ * @private
2771
+ * This field is private and should not be used, use `tag` instead.
2772
+ */[uniffiTypeNameSymbol]='CrossChainProviderContext';tag=CrossChainProviderContext_Tags.Boltz;constructor(inner){super('CrossChainProviderContext','Boltz');this.inner=Object.freeze(inner);}static new(inner){return new Boltz_(inner);}static instanceOf(obj){return obj.tag===CrossChainProviderContext_Tags.Boltz;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='CrossChainProviderContext';}return Object.freeze({instanceOf,Orchestra:Orchestra_,Boltz:Boltz_});})();/**
2773
+ * Provider-internal state produced by `prepare` and consumed by `send`.
2774
+ * Typed per provider so the send stage can resume without re-quoting and
2775
+ * without a serde round-trip. Callers should round-trip this value as-is.
2776
+ */// FfiConverter for enum CrossChainProviderContext
2777
+ const FfiConverterTypeCrossChainProviderContext=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new CrossChainProviderContext.Orchestra({quoteId:FfiConverterString.read(from),depositAddress:FfiConverterString.read(from),depositAmount:FfiConverterTypeu128.read(from)});case 2:return new CrossChainProviderContext.Boltz({swapId:FfiConverterString.read(from),invoice:FfiConverterString.read(from),invoiceAmountSats:FfiConverterUInt64.read(from),maxSlippageBps:FfiConverterUInt32.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case CrossChainProviderContext_Tags.Orchestra:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.quoteId,into);FfiConverterString.write(inner.depositAddress,into);FfiConverterTypeu128.write(inner.depositAmount,into);return;}case CrossChainProviderContext_Tags.Boltz:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.swapId,into);FfiConverterString.write(inner.invoice,into);FfiConverterUInt64.write(inner.invoiceAmountSats,into);FfiConverterUInt32.write(inner.maxSlippageBps,into);return;}default:// Throwing from here means that CrossChainProviderContext_Tags hasn't matched an ordinal.
2778
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case CrossChainProviderContext_Tags.Orchestra:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.quoteId);size+=FfiConverterString.allocationSize(inner.depositAddress);size+=FfiConverterTypeu128.allocationSize(inner.depositAmount);return size;}case CrossChainProviderContext_Tags.Boltz:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.swapId);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterUInt64.allocationSize(inner.invoiceAmountSats);size+=FfiConverterUInt32.allocationSize(inner.maxSlippageBps);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: CrossChainRouteFilter
2779
+ export let CrossChainRouteFilter_Tags=/*#__PURE__*/function(CrossChainRouteFilter_Tags){CrossChainRouteFilter_Tags["Send"]="Send";CrossChainRouteFilter_Tags["Receive"]="Receive";return CrossChainRouteFilter_Tags;}({});/**
2780
+ * Filter for [`CrossChainService::get_routes`] and the public
2781
+ * `get_cross_chain_routes()` API.
2782
+ */export const CrossChainRouteFilter=(()=>{/**
2783
+ * Routes for sending from Spark to another chain.
2784
+ * Filtered by the parsed recipient address details.
2785
+ */class Send_ extends UniffiEnum{/**
2786
+ * @private
2787
+ * This field is private and should not be used, use `tag` instead.
2788
+ */[uniffiTypeNameSymbol]='CrossChainRouteFilter';tag=CrossChainRouteFilter_Tags.Send;constructor(inner){super('CrossChainRouteFilter','Send');this.inner=Object.freeze(inner);}static new(inner){return new Send_(inner);}static instanceOf(obj){return obj.tag===CrossChainRouteFilter_Tags.Send;}}/**
2789
+ * Routes for receiving to Spark from another chain.
2790
+ * Optionally filtered by the source token contract address.
2791
+ */class Receive_ extends UniffiEnum{/**
2792
+ * @private
2793
+ * This field is private and should not be used, use `tag` instead.
2794
+ */[uniffiTypeNameSymbol]='CrossChainRouteFilter';tag=CrossChainRouteFilter_Tags.Receive;constructor(inner){super('CrossChainRouteFilter','Receive');this.inner=Object.freeze(inner);}static new(inner){return new Receive_(inner);}static instanceOf(obj){return obj.tag===CrossChainRouteFilter_Tags.Receive;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='CrossChainRouteFilter';}return Object.freeze({instanceOf,Send:Send_,Receive:Receive_});})();/**
2795
+ * Filter for [`CrossChainService::get_routes`] and the public
2796
+ * `get_cross_chain_routes()` API.
2797
+ */// FfiConverter for enum CrossChainRouteFilter
2798
+ const FfiConverterTypeCrossChainRouteFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new CrossChainRouteFilter.Send({addressDetails:FfiConverterTypeCrossChainAddressDetails.read(from)});case 2:return new CrossChainRouteFilter.Receive({contractAddress:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case CrossChainRouteFilter_Tags.Send:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeCrossChainAddressDetails.write(inner.addressDetails,into);return;}case CrossChainRouteFilter_Tags.Receive:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalString.write(inner.contractAddress,into);return;}default:// Throwing from here means that CrossChainRouteFilter_Tags hasn't matched an ordinal.
2799
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case CrossChainRouteFilter_Tags.Send:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner.addressDetails);return size;}case CrossChainRouteFilter_Tags.Receive:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalString.allocationSize(inner.contractAddress);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: DepositClaimError
2604
2800
  export let DepositClaimError_Tags=/*#__PURE__*/function(DepositClaimError_Tags){DepositClaimError_Tags["MaxDepositClaimFeeExceeded"]="MaxDepositClaimFeeExceeded";DepositClaimError_Tags["MissingUtxo"]="MissingUtxo";DepositClaimError_Tags["Generic"]="Generic";return DepositClaimError_Tags;}({});export const DepositClaimError=(()=>{class MaxDepositClaimFeeExceeded_ extends UniffiEnum{/**
2605
2801
  * @private
2606
2802
  * This field is private and should not be used, use `tag` instead.
@@ -2711,14 +2907,22 @@ export let Fee_Tags=/*#__PURE__*/function(Fee_Tags){Fee_Tags["Fixed"]="Fixed";Fe
2711
2907
  const FfiConverterTypeFee=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new Fee.Fixed({amount:FfiConverterUInt64.read(from)});case 2:return new Fee.Rate({satPerVbyte:FfiConverterUInt64.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case Fee_Tags.Fixed:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterUInt64.write(inner.amount,into);return;}case Fee_Tags.Rate:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterUInt64.write(inner.satPerVbyte,into);return;}default:// Throwing from here means that Fee_Tags hasn't matched an ordinal.
2712
2908
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case Fee_Tags.Fixed:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt64.allocationSize(inner.amount);return size;}case Fee_Tags.Rate:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt64.allocationSize(inner.satPerVbyte);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
2713
2909
  * Specifies how fees are handled in a payment.
2910
+ *
2911
+ * "Fees" are the wallet's sender-paid fees (Lightning routing, on-chain,
2912
+ * Spark transfer). They do not include provider spreads or destination-chain
2913
+ * costs on cross-chain routes; those are reported separately via
2914
+ * `estimated_out` on the prepare response and are not deterministic.
2915
+ * `FeePolicy` only controls the wallet's spend accounting.
2714
2916
  */export let FeePolicy=/*#__PURE__*/function(FeePolicy){/**
2715
- * Fees are added on top of the specified amount (default behavior).
2716
- * The receiver gets the exact amount specified.
2917
+ * Fees are added on top of `amount`. Wallet's total spend is
2918
+ * `amount + fees`. For direct sat sends, the recipient receives exactly
2919
+ * `amount`. Default.
2717
2920
  */FeePolicy[FeePolicy["FeesExcluded"]=0]="FeesExcluded";/**
2718
- * Fees are deducted from the specified amount.
2719
- * The receiver gets the amount minus fees.
2921
+ * Fees are deducted from `amount`. Wallet's total spend is `amount`.
2922
+ * Use this to drain a balance — pass `amount = balance` and the wallet
2923
+ * spends exactly that.
2720
2924
  */FeePolicy[FeePolicy["FeesIncluded"]=1]="FeesIncluded";return FeePolicy;}({});const FfiConverterTypeFeePolicy=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return FeePolicy.FeesExcluded;case 2:return FeePolicy.FeesIncluded;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case FeePolicy.FeesExcluded:return ordinalConverter.write(1,into);case FeePolicy.FeesIncluded:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: InputType
2721
- export let InputType_Tags=/*#__PURE__*/function(InputType_Tags){InputType_Tags["BitcoinAddress"]="BitcoinAddress";InputType_Tags["Bolt11Invoice"]="Bolt11Invoice";InputType_Tags["Bolt12Invoice"]="Bolt12Invoice";InputType_Tags["Bolt12Offer"]="Bolt12Offer";InputType_Tags["LightningAddress"]="LightningAddress";InputType_Tags["LnurlPay"]="LnurlPay";InputType_Tags["SilentPaymentAddress"]="SilentPaymentAddress";InputType_Tags["LnurlAuth"]="LnurlAuth";InputType_Tags["Url"]="Url";InputType_Tags["Bip21"]="Bip21";InputType_Tags["Bolt12InvoiceRequest"]="Bolt12InvoiceRequest";InputType_Tags["LnurlWithdraw"]="LnurlWithdraw";InputType_Tags["SparkAddress"]="SparkAddress";InputType_Tags["SparkInvoice"]="SparkInvoice";return InputType_Tags;}({});export const InputType=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
2925
+ export let InputType_Tags=/*#__PURE__*/function(InputType_Tags){InputType_Tags["BitcoinAddress"]="BitcoinAddress";InputType_Tags["Bolt11Invoice"]="Bolt11Invoice";InputType_Tags["Bolt12Invoice"]="Bolt12Invoice";InputType_Tags["Bolt12Offer"]="Bolt12Offer";InputType_Tags["LightningAddress"]="LightningAddress";InputType_Tags["LnurlPay"]="LnurlPay";InputType_Tags["SilentPaymentAddress"]="SilentPaymentAddress";InputType_Tags["LnurlAuth"]="LnurlAuth";InputType_Tags["Url"]="Url";InputType_Tags["Bip21"]="Bip21";InputType_Tags["Bolt12InvoiceRequest"]="Bolt12InvoiceRequest";InputType_Tags["LnurlWithdraw"]="LnurlWithdraw";InputType_Tags["SparkAddress"]="SparkAddress";InputType_Tags["SparkInvoice"]="SparkInvoice";InputType_Tags["CrossChainAddress"]="CrossChainAddress";return InputType_Tags;}({});export const InputType=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
2722
2926
  * @private
2723
2927
  * This field is private and should not be used, use `tag` instead.
2724
2928
  */[uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.BitcoinAddress;constructor(v0){super('InputType','BitcoinAddress');this.inner=Object.freeze([v0]);}static new(v0){return new BitcoinAddress_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.BitcoinAddress;}}class Bolt11Invoice_ extends UniffiEnum{/**
@@ -2760,9 +2964,12 @@ export let InputType_Tags=/*#__PURE__*/function(InputType_Tags){InputType_Tags["
2760
2964
  */[uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.SparkAddress;constructor(v0){super('InputType','SparkAddress');this.inner=Object.freeze([v0]);}static new(v0){return new SparkAddress_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.SparkAddress;}}class SparkInvoice_ extends UniffiEnum{/**
2761
2965
  * @private
2762
2966
  * This field is private and should not be used, use `tag` instead.
2763
- */[uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.SparkInvoice;constructor(v0){super('InputType','SparkInvoice');this.inner=Object.freeze([v0]);}static new(v0){return new SparkInvoice_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.SparkInvoice;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='InputType';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,Bolt12Invoice:Bolt12Invoice_,Bolt12Offer:Bolt12Offer_,LightningAddress:LightningAddress_,LnurlPay:LnurlPay_,SilentPaymentAddress:SilentPaymentAddress_,LnurlAuth:LnurlAuth_,Url:Url_,Bip21:Bip21_,Bolt12InvoiceRequest:Bolt12InvoiceRequest_,LnurlWithdraw:LnurlWithdraw_,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_});})();// FfiConverter for enum InputType
2764
- const FfiConverterTypeInputType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new InputType.BitcoinAddress(FfiConverterTypeBitcoinAddressDetails.read(from));case 2:return new InputType.Bolt11Invoice(FfiConverterTypeBolt11InvoiceDetails.read(from));case 3:return new InputType.Bolt12Invoice(FfiConverterTypeBolt12InvoiceDetails.read(from));case 4:return new InputType.Bolt12Offer(FfiConverterTypeBolt12OfferDetails.read(from));case 5:return new InputType.LightningAddress(FfiConverterTypeLightningAddressDetails.read(from));case 6:return new InputType.LnurlPay(FfiConverterTypeLnurlPayRequestDetails.read(from));case 7:return new InputType.SilentPaymentAddress(FfiConverterTypeSilentPaymentAddressDetails.read(from));case 8:return new InputType.LnurlAuth(FfiConverterTypeLnurlAuthRequestDetails.read(from));case 9:return new InputType.Url(FfiConverterString.read(from));case 10:return new InputType.Bip21(FfiConverterTypeBip21Details.read(from));case 11:return new InputType.Bolt12InvoiceRequest(FfiConverterTypeBolt12InvoiceRequestDetails.read(from));case 12:return new InputType.LnurlWithdraw(FfiConverterTypeLnurlWithdrawRequestDetails.read(from));case 13:return new InputType.SparkAddress(FfiConverterTypeSparkAddressDetails.read(from));case 14:return new InputType.SparkInvoice(FfiConverterTypeSparkInvoiceDetails.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case InputType_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeBitcoinAddressDetails.write(inner[0],into);return;}case InputType_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeBolt11InvoiceDetails.write(inner[0],into);return;}case InputType_Tags.Bolt12Invoice:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeBolt12InvoiceDetails.write(inner[0],into);return;}case InputType_Tags.Bolt12Offer:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeBolt12OfferDetails.write(inner[0],into);return;}case InputType_Tags.LightningAddress:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypeLightningAddressDetails.write(inner[0],into);return;}case InputType_Tags.LnurlPay:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypeLnurlPayRequestDetails.write(inner[0],into);return;}case InputType_Tags.SilentPaymentAddress:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeSilentPaymentAddressDetails.write(inner[0],into);return;}case InputType_Tags.LnurlAuth:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterTypeLnurlAuthRequestDetails.write(inner[0],into);return;}case InputType_Tags.Url:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case InputType_Tags.Bip21:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterTypeBip21Details.write(inner[0],into);return;}case InputType_Tags.Bolt12InvoiceRequest:{ordinalConverter.write(11,into);const inner=value.inner;FfiConverterTypeBolt12InvoiceRequestDetails.write(inner[0],into);return;}case InputType_Tags.LnurlWithdraw:{ordinalConverter.write(12,into);const inner=value.inner;FfiConverterTypeLnurlWithdrawRequestDetails.write(inner[0],into);return;}case InputType_Tags.SparkAddress:{ordinalConverter.write(13,into);const inner=value.inner;FfiConverterTypeSparkAddressDetails.write(inner[0],into);return;}case InputType_Tags.SparkInvoice:{ordinalConverter.write(14,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner[0],into);return;}default:// Throwing from here means that InputType_Tags hasn't matched an ordinal.
2765
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case InputType_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeBolt12InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Offer:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeBolt12OfferDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LightningAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeLightningAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlPay:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypeLnurlPayRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SilentPaymentAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeSilentPaymentAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlAuth:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterTypeLnurlAuthRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Url:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case InputType_Tags.Bip21:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterTypeBip21Details.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12InvoiceRequest:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterTypeBolt12InvoiceRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlWithdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterTypeLnurlWithdrawRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(13);size+=FfiConverterTypeSparkAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(14);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: LnurlCallbackStatus
2967
+ */[uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.SparkInvoice;constructor(v0){super('InputType','SparkInvoice');this.inner=Object.freeze([v0]);}static new(v0){return new SparkInvoice_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.SparkInvoice;}}class CrossChainAddress_ extends UniffiEnum{/**
2968
+ * @private
2969
+ * This field is private and should not be used, use `tag` instead.
2970
+ */[uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.CrossChainAddress;constructor(v0){super('InputType','CrossChainAddress');this.inner=Object.freeze([v0]);}static new(v0){return new CrossChainAddress_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.CrossChainAddress;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='InputType';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,Bolt12Invoice:Bolt12Invoice_,Bolt12Offer:Bolt12Offer_,LightningAddress:LightningAddress_,LnurlPay:LnurlPay_,SilentPaymentAddress:SilentPaymentAddress_,LnurlAuth:LnurlAuth_,Url:Url_,Bip21:Bip21_,Bolt12InvoiceRequest:Bolt12InvoiceRequest_,LnurlWithdraw:LnurlWithdraw_,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_,CrossChainAddress:CrossChainAddress_});})();// FfiConverter for enum InputType
2971
+ const FfiConverterTypeInputType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new InputType.BitcoinAddress(FfiConverterTypeBitcoinAddressDetails.read(from));case 2:return new InputType.Bolt11Invoice(FfiConverterTypeBolt11InvoiceDetails.read(from));case 3:return new InputType.Bolt12Invoice(FfiConverterTypeBolt12InvoiceDetails.read(from));case 4:return new InputType.Bolt12Offer(FfiConverterTypeBolt12OfferDetails.read(from));case 5:return new InputType.LightningAddress(FfiConverterTypeLightningAddressDetails.read(from));case 6:return new InputType.LnurlPay(FfiConverterTypeLnurlPayRequestDetails.read(from));case 7:return new InputType.SilentPaymentAddress(FfiConverterTypeSilentPaymentAddressDetails.read(from));case 8:return new InputType.LnurlAuth(FfiConverterTypeLnurlAuthRequestDetails.read(from));case 9:return new InputType.Url(FfiConverterString.read(from));case 10:return new InputType.Bip21(FfiConverterTypeBip21Details.read(from));case 11:return new InputType.Bolt12InvoiceRequest(FfiConverterTypeBolt12InvoiceRequestDetails.read(from));case 12:return new InputType.LnurlWithdraw(FfiConverterTypeLnurlWithdrawRequestDetails.read(from));case 13:return new InputType.SparkAddress(FfiConverterTypeSparkAddressDetails.read(from));case 14:return new InputType.SparkInvoice(FfiConverterTypeSparkInvoiceDetails.read(from));case 15:return new InputType.CrossChainAddress(FfiConverterTypeCrossChainAddressDetails.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case InputType_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeBitcoinAddressDetails.write(inner[0],into);return;}case InputType_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeBolt11InvoiceDetails.write(inner[0],into);return;}case InputType_Tags.Bolt12Invoice:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeBolt12InvoiceDetails.write(inner[0],into);return;}case InputType_Tags.Bolt12Offer:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeBolt12OfferDetails.write(inner[0],into);return;}case InputType_Tags.LightningAddress:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypeLightningAddressDetails.write(inner[0],into);return;}case InputType_Tags.LnurlPay:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypeLnurlPayRequestDetails.write(inner[0],into);return;}case InputType_Tags.SilentPaymentAddress:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeSilentPaymentAddressDetails.write(inner[0],into);return;}case InputType_Tags.LnurlAuth:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterTypeLnurlAuthRequestDetails.write(inner[0],into);return;}case InputType_Tags.Url:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case InputType_Tags.Bip21:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterTypeBip21Details.write(inner[0],into);return;}case InputType_Tags.Bolt12InvoiceRequest:{ordinalConverter.write(11,into);const inner=value.inner;FfiConverterTypeBolt12InvoiceRequestDetails.write(inner[0],into);return;}case InputType_Tags.LnurlWithdraw:{ordinalConverter.write(12,into);const inner=value.inner;FfiConverterTypeLnurlWithdrawRequestDetails.write(inner[0],into);return;}case InputType_Tags.SparkAddress:{ordinalConverter.write(13,into);const inner=value.inner;FfiConverterTypeSparkAddressDetails.write(inner[0],into);return;}case InputType_Tags.SparkInvoice:{ordinalConverter.write(14,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner[0],into);return;}case InputType_Tags.CrossChainAddress:{ordinalConverter.write(15,into);const inner=value.inner;FfiConverterTypeCrossChainAddressDetails.write(inner[0],into);return;}default:// Throwing from here means that InputType_Tags hasn't matched an ordinal.
2972
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case InputType_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeBolt12InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Offer:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeBolt12OfferDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LightningAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeLightningAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlPay:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypeLnurlPayRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SilentPaymentAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeSilentPaymentAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlAuth:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterTypeLnurlAuthRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Url:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case InputType_Tags.Bip21:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterTypeBip21Details.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12InvoiceRequest:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterTypeBolt12InvoiceRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlWithdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterTypeLnurlWithdrawRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(13);size+=FfiConverterTypeSparkAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(14);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.CrossChainAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(15);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: LnurlCallbackStatus
2766
2973
  export let LnurlCallbackStatus_Tags=/*#__PURE__*/function(LnurlCallbackStatus_Tags){LnurlCallbackStatus_Tags["Ok"]="Ok";LnurlCallbackStatus_Tags["ErrorStatus"]="ErrorStatus";return LnurlCallbackStatus_Tags;}({});/**
2767
2974
  * The response from a LNURL-auth callback, indicating success or failure.
2768
2975
  */export const LnurlCallbackStatus=(()=>{/**
@@ -2961,8 +3168,8 @@ export let PaymentDetails_Tags=/*#__PURE__*/function(PaymentDetails_Tags){Paymen
2961
3168
  * @private
2962
3169
  * This field is private and should not be used, use `tag` instead.
2963
3170
  */[uniffiTypeNameSymbol]='PaymentDetails';tag=PaymentDetails_Tags.Deposit;constructor(inner){super('PaymentDetails','Deposit');this.inner=Object.freeze(inner);}static new(inner){return new Deposit_(inner);}static instanceOf(obj){return obj.tag===PaymentDetails_Tags.Deposit;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PaymentDetails';}return Object.freeze({instanceOf,Spark:Spark_,Token:Token_,Lightning:Lightning_,Withdraw:Withdraw_,Deposit:Deposit_});})();// FfiConverter for enum PaymentDetails
2964
- const FfiConverterTypePaymentDetails=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PaymentDetails.Spark({invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from),htlcDetails:FfiConverterOptionalTypeSparkHtlcDetails.read(from),conversionInfo:FfiConverterOptionalTypeConversionInfo.read(from)});case 2:return new PaymentDetails.Token({metadata:FfiConverterTypeTokenMetadata.read(from),txHash:FfiConverterString.read(from),txType:FfiConverterTypeTokenTransactionType.read(from),invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from),conversionInfo:FfiConverterOptionalTypeConversionInfo.read(from)});case 3:return new PaymentDetails.Lightning({description:FfiConverterOptionalString.read(from),invoice:FfiConverterString.read(from),destinationPubkey:FfiConverterString.read(from),htlcDetails:FfiConverterTypeSparkHtlcDetails.read(from),lnurlPayInfo:FfiConverterOptionalTypeLnurlPayInfo.read(from),lnurlWithdrawInfo:FfiConverterOptionalTypeLnurlWithdrawInfo.read(from),lnurlReceiveMetadata:FfiConverterOptionalTypeLnurlReceiveMetadata.read(from)});case 4:return new PaymentDetails.Withdraw({txId:FfiConverterString.read(from)});case 5:return new PaymentDetails.Deposit({txId:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PaymentDetails_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);FfiConverterOptionalTypeSparkHtlcDetails.write(inner.htlcDetails,into);FfiConverterOptionalTypeConversionInfo.write(inner.conversionInfo,into);return;}case PaymentDetails_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeTokenMetadata.write(inner.metadata,into);FfiConverterString.write(inner.txHash,into);FfiConverterTypeTokenTransactionType.write(inner.txType,into);FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);FfiConverterOptionalTypeConversionInfo.write(inner.conversionInfo,into);return;}case PaymentDetails_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalString.write(inner.description,into);FfiConverterString.write(inner.invoice,into);FfiConverterString.write(inner.destinationPubkey,into);FfiConverterTypeSparkHtlcDetails.write(inner.htlcDetails,into);FfiConverterOptionalTypeLnurlPayInfo.write(inner.lnurlPayInfo,into);FfiConverterOptionalTypeLnurlWithdrawInfo.write(inner.lnurlWithdrawInfo,into);FfiConverterOptionalTypeLnurlReceiveMetadata.write(inner.lnurlReceiveMetadata,into);return;}case PaymentDetails_Tags.Withdraw:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.txId,into);return;}case PaymentDetails_Tags.Deposit:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner.txId,into);FfiConverterUInt32.write(inner.vout,into);return;}default:// Throwing from here means that PaymentDetails_Tags hasn't matched an ordinal.
2965
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentDetails_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalTypeSparkHtlcDetails.allocationSize(inner.htlcDetails);size+=FfiConverterOptionalTypeConversionInfo.allocationSize(inner.conversionInfo);return size;}case PaymentDetails_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeTokenMetadata.allocationSize(inner.metadata);size+=FfiConverterString.allocationSize(inner.txHash);size+=FfiConverterTypeTokenTransactionType.allocationSize(inner.txType);size+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalTypeConversionInfo.allocationSize(inner.conversionInfo);return size;}case PaymentDetails_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterString.allocationSize(inner.destinationPubkey);size+=FfiConverterTypeSparkHtlcDetails.allocationSize(inner.htlcDetails);size+=FfiConverterOptionalTypeLnurlPayInfo.allocationSize(inner.lnurlPayInfo);size+=FfiConverterOptionalTypeLnurlWithdrawInfo.allocationSize(inner.lnurlWithdrawInfo);size+=FfiConverterOptionalTypeLnurlReceiveMetadata.allocationSize(inner.lnurlReceiveMetadata);return size;}case PaymentDetails_Tags.Withdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.txId);return size;}case PaymentDetails_Tags.Deposit:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.txId);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentDetailsFilter
3171
+ const FfiConverterTypePaymentDetails=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PaymentDetails.Spark({invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from),htlcDetails:FfiConverterOptionalTypeSparkHtlcDetails.read(from),conversionInfo:FfiConverterOptionalTypeConversionInfo.read(from)});case 2:return new PaymentDetails.Token({metadata:FfiConverterTypeTokenMetadata.read(from),txHash:FfiConverterString.read(from),txType:FfiConverterTypeTokenTransactionType.read(from),invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from),conversionInfo:FfiConverterOptionalTypeConversionInfo.read(from)});case 3:return new PaymentDetails.Lightning({description:FfiConverterOptionalString.read(from),invoice:FfiConverterString.read(from),destinationPubkey:FfiConverterString.read(from),htlcDetails:FfiConverterTypeSparkHtlcDetails.read(from),lnurlPayInfo:FfiConverterOptionalTypeLnurlPayInfo.read(from),lnurlWithdrawInfo:FfiConverterOptionalTypeLnurlWithdrawInfo.read(from),lnurlReceiveMetadata:FfiConverterOptionalTypeLnurlReceiveMetadata.read(from),conversionInfo:FfiConverterOptionalTypeConversionInfo.read(from)});case 4:return new PaymentDetails.Withdraw({txId:FfiConverterString.read(from)});case 5:return new PaymentDetails.Deposit({txId:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PaymentDetails_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);FfiConverterOptionalTypeSparkHtlcDetails.write(inner.htlcDetails,into);FfiConverterOptionalTypeConversionInfo.write(inner.conversionInfo,into);return;}case PaymentDetails_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeTokenMetadata.write(inner.metadata,into);FfiConverterString.write(inner.txHash,into);FfiConverterTypeTokenTransactionType.write(inner.txType,into);FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);FfiConverterOptionalTypeConversionInfo.write(inner.conversionInfo,into);return;}case PaymentDetails_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalString.write(inner.description,into);FfiConverterString.write(inner.invoice,into);FfiConverterString.write(inner.destinationPubkey,into);FfiConverterTypeSparkHtlcDetails.write(inner.htlcDetails,into);FfiConverterOptionalTypeLnurlPayInfo.write(inner.lnurlPayInfo,into);FfiConverterOptionalTypeLnurlWithdrawInfo.write(inner.lnurlWithdrawInfo,into);FfiConverterOptionalTypeLnurlReceiveMetadata.write(inner.lnurlReceiveMetadata,into);FfiConverterOptionalTypeConversionInfo.write(inner.conversionInfo,into);return;}case PaymentDetails_Tags.Withdraw:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.txId,into);return;}case PaymentDetails_Tags.Deposit:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner.txId,into);FfiConverterUInt32.write(inner.vout,into);return;}default:// Throwing from here means that PaymentDetails_Tags hasn't matched an ordinal.
3172
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentDetails_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalTypeSparkHtlcDetails.allocationSize(inner.htlcDetails);size+=FfiConverterOptionalTypeConversionInfo.allocationSize(inner.conversionInfo);return size;}case PaymentDetails_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeTokenMetadata.allocationSize(inner.metadata);size+=FfiConverterString.allocationSize(inner.txHash);size+=FfiConverterTypeTokenTransactionType.allocationSize(inner.txType);size+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalTypeConversionInfo.allocationSize(inner.conversionInfo);return size;}case PaymentDetails_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterString.allocationSize(inner.destinationPubkey);size+=FfiConverterTypeSparkHtlcDetails.allocationSize(inner.htlcDetails);size+=FfiConverterOptionalTypeLnurlPayInfo.allocationSize(inner.lnurlPayInfo);size+=FfiConverterOptionalTypeLnurlWithdrawInfo.allocationSize(inner.lnurlWithdrawInfo);size+=FfiConverterOptionalTypeLnurlReceiveMetadata.allocationSize(inner.lnurlReceiveMetadata);size+=FfiConverterOptionalTypeConversionInfo.allocationSize(inner.conversionInfo);return size;}case PaymentDetails_Tags.Withdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.txId);return size;}case PaymentDetails_Tags.Deposit:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.txId);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentDetailsFilter
2966
3173
  export let PaymentDetailsFilter_Tags=/*#__PURE__*/function(PaymentDetailsFilter_Tags){PaymentDetailsFilter_Tags["Spark"]="Spark";PaymentDetailsFilter_Tags["Token"]="Token";PaymentDetailsFilter_Tags["Lightning"]="Lightning";return PaymentDetailsFilter_Tags;}({});export const PaymentDetailsFilter=(()=>{class Spark_ extends UniffiEnum{/**
2967
3174
  * @private
2968
3175
  * This field is private and should not be used, use `tag` instead.
@@ -2984,7 +3191,29 @@ export let PaymentObserverError_Tags=/*#__PURE__*/function(PaymentObserverError_
2984
3191
  * This field is private and should not be used, use `tag` instead.
2985
3192
  */[uniffiTypeNameSymbol]='PaymentObserverError';tag=PaymentObserverError_Tags.Generic;constructor(v0){super('PaymentObserverError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===PaymentObserverError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PaymentObserverError';}return Object.freeze({instanceOf,ServiceConnectivity:ServiceConnectivity_,Generic:Generic_});})();// FfiConverter for enum PaymentObserverError
2986
3193
  const FfiConverterTypePaymentObserverError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PaymentObserverError.ServiceConnectivity(FfiConverterString.read(from));case 2:return new PaymentObserverError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PaymentObserverError_Tags.ServiceConnectivity:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PaymentObserverError_Tags.Generic:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that PaymentObserverError_Tags hasn't matched an ordinal.
2987
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentObserverError_Tags.ServiceConnectivity:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PaymentObserverError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
3194
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentObserverError_Tags.ServiceConnectivity:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PaymentObserverError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentRequest
3195
+ export let PaymentRequest_Tags=/*#__PURE__*/function(PaymentRequest_Tags){PaymentRequest_Tags["Input"]="Input";PaymentRequest_Tags["CrossChain"]="CrossChain";return PaymentRequest_Tags;}({});/**
3196
+ * The payment destination. Either a raw string (bolt11, spark address, BIP-21,
3197
+ * cross-chain URI, etc.) that is parsed internally, or a structured
3198
+ * cross-chain destination with explicit chain + asset selection.
3199
+ */export const PaymentRequest=(()=>{/**
3200
+ * Unparsed user input string (bolt11, spark address, BIP-21, cross-chain URI, etc.)
3201
+ */class Input_ extends UniffiEnum{/**
3202
+ * @private
3203
+ * This field is private and should not be used, use `tag` instead.
3204
+ */[uniffiTypeNameSymbol]='PaymentRequest';tag=PaymentRequest_Tags.Input;constructor(inner){super('PaymentRequest','Input');this.inner=Object.freeze(inner);}static new(inner){return new Input_(inner);}static instanceOf(obj){return obj.tag===PaymentRequest_Tags.Input;}}/**
3205
+ * Cross-chain send with a selected route from `get_cross_chain_routes()`.
3206
+ * Amount comes from `PrepareSendPaymentRequest.amount`, not here.
3207
+ */class CrossChain_ extends UniffiEnum{/**
3208
+ * @private
3209
+ * This field is private and should not be used, use `tag` instead.
3210
+ */[uniffiTypeNameSymbol]='PaymentRequest';tag=PaymentRequest_Tags.CrossChain;constructor(inner){super('PaymentRequest','CrossChain');this.inner=Object.freeze(inner);}static new(inner){return new CrossChain_(inner);}static instanceOf(obj){return obj.tag===PaymentRequest_Tags.CrossChain;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PaymentRequest';}return Object.freeze({instanceOf,Input:Input_,CrossChain:CrossChain_});})();/**
3211
+ * The payment destination. Either a raw string (bolt11, spark address, BIP-21,
3212
+ * cross-chain URI, etc.) that is parsed internally, or a structured
3213
+ * cross-chain destination with explicit chain + asset selection.
3214
+ */// FfiConverter for enum PaymentRequest
3215
+ const FfiConverterTypePaymentRequest=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PaymentRequest.Input({input:FfiConverterString.read(from)});case 2:return new PaymentRequest.CrossChain({address:FfiConverterString.read(from),route:FfiConverterTypeCrossChainRoutePair.read(from),maxSlippageBps:FfiConverterOptionalUInt32.read(from),targetOverpayBps:FfiConverterOptionalUInt32.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PaymentRequest_Tags.Input:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.input,into);return;}case PaymentRequest_Tags.CrossChain:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.address,into);FfiConverterTypeCrossChainRoutePair.write(inner.route,into);FfiConverterOptionalUInt32.write(inner.maxSlippageBps,into);FfiConverterOptionalUInt32.write(inner.targetOverpayBps,into);return;}default:// Throwing from here means that PaymentRequest_Tags hasn't matched an ordinal.
3216
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentRequest_Tags.Input:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.input);return size;}case PaymentRequest_Tags.CrossChain:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterTypeCrossChainRoutePair.allocationSize(inner.route);size+=FfiConverterOptionalUInt32.allocationSize(inner.maxSlippageBps);size+=FfiConverterOptionalUInt32.allocationSize(inner.targetOverpayBps);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
2988
3217
  * The status of a payment
2989
3218
  */export let PaymentStatus=/*#__PURE__*/function(PaymentStatus){/**
2990
3219
  * Payment is completed successfully
@@ -3202,7 +3431,7 @@ export let Seed_Tags=/*#__PURE__*/function(Seed_Tags){Seed_Tags["Mnemonic"]="Mne
3202
3431
  */// FfiConverter for enum Seed
3203
3432
  const FfiConverterTypeSeed=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new Seed.Mnemonic({mnemonic:FfiConverterString.read(from),passphrase:FfiConverterOptionalString.read(from)});case 2:return new Seed.Entropy(FfiConverterArrayBuffer.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case Seed_Tags.Mnemonic:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.mnemonic,into);FfiConverterOptionalString.write(inner.passphrase,into);return;}case Seed_Tags.Entropy:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayBuffer.write(inner[0],into);return;}default:// Throwing from here means that Seed_Tags hasn't matched an ordinal.
3204
3433
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case Seed_Tags.Mnemonic:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.mnemonic);size+=FfiConverterOptionalString.allocationSize(inner.passphrase);return size;}case Seed_Tags.Entropy:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayBuffer.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SendPaymentMethod
3205
- export let SendPaymentMethod_Tags=/*#__PURE__*/function(SendPaymentMethod_Tags){SendPaymentMethod_Tags["BitcoinAddress"]="BitcoinAddress";SendPaymentMethod_Tags["Bolt11Invoice"]="Bolt11Invoice";SendPaymentMethod_Tags["SparkAddress"]="SparkAddress";SendPaymentMethod_Tags["SparkInvoice"]="SparkInvoice";return SendPaymentMethod_Tags;}({});export const SendPaymentMethod=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
3434
+ export let SendPaymentMethod_Tags=/*#__PURE__*/function(SendPaymentMethod_Tags){SendPaymentMethod_Tags["BitcoinAddress"]="BitcoinAddress";SendPaymentMethod_Tags["Bolt11Invoice"]="Bolt11Invoice";SendPaymentMethod_Tags["SparkAddress"]="SparkAddress";SendPaymentMethod_Tags["SparkInvoice"]="SparkInvoice";SendPaymentMethod_Tags["CrossChainAddress"]="CrossChainAddress";return SendPaymentMethod_Tags;}({});export const SendPaymentMethod=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
3206
3435
  * @private
3207
3436
  * This field is private and should not be used, use `tag` instead.
3208
3437
  */[uniffiTypeNameSymbol]='SendPaymentMethod';tag=SendPaymentMethod_Tags.BitcoinAddress;constructor(inner){super('SendPaymentMethod','BitcoinAddress');this.inner=Object.freeze(inner);}static new(inner){return new BitcoinAddress_(inner);}static instanceOf(obj){return obj.tag===SendPaymentMethod_Tags.BitcoinAddress;}}class Bolt11Invoice_ extends UniffiEnum{/**
@@ -3214,9 +3443,14 @@ export let SendPaymentMethod_Tags=/*#__PURE__*/function(SendPaymentMethod_Tags){
3214
3443
  */[uniffiTypeNameSymbol]='SendPaymentMethod';tag=SendPaymentMethod_Tags.SparkAddress;constructor(inner){super('SendPaymentMethod','SparkAddress');this.inner=Object.freeze(inner);}static new(inner){return new SparkAddress_(inner);}static instanceOf(obj){return obj.tag===SendPaymentMethod_Tags.SparkAddress;}}class SparkInvoice_ extends UniffiEnum{/**
3215
3444
  * @private
3216
3445
  * This field is private and should not be used, use `tag` instead.
3217
- */[uniffiTypeNameSymbol]='SendPaymentMethod';tag=SendPaymentMethod_Tags.SparkInvoice;constructor(inner){super('SendPaymentMethod','SparkInvoice');this.inner=Object.freeze(inner);}static new(inner){return new SparkInvoice_(inner);}static instanceOf(obj){return obj.tag===SendPaymentMethod_Tags.SparkInvoice;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SendPaymentMethod';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_});})();// FfiConverter for enum SendPaymentMethod
3218
- const FfiConverterTypeSendPaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SendPaymentMethod.BitcoinAddress({address:FfiConverterTypeBitcoinAddressDetails.read(from),feeQuote:FfiConverterTypeSendOnchainFeeQuote.read(from)});case 2:return new SendPaymentMethod.Bolt11Invoice({invoiceDetails:FfiConverterTypeBolt11InvoiceDetails.read(from),sparkTransferFeeSats:FfiConverterOptionalUInt64.read(from),lightningFeeSats:FfiConverterUInt64.read(from)});case 3:return new SendPaymentMethod.SparkAddress({address:FfiConverterString.read(from),fee:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)});case 4:return new SendPaymentMethod.SparkInvoice({sparkInvoiceDetails:FfiConverterTypeSparkInvoiceDetails.read(from),fee:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SendPaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeBitcoinAddressDetails.write(inner.address,into);FfiConverterTypeSendOnchainFeeQuote.write(inner.feeQuote,into);return;}case SendPaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeBolt11InvoiceDetails.write(inner.invoiceDetails,into);FfiConverterOptionalUInt64.write(inner.sparkTransferFeeSats,into);FfiConverterUInt64.write(inner.lightningFeeSats,into);return;}case SendPaymentMethod_Tags.SparkAddress:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.address,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}case SendPaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner.sparkInvoiceDetails,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}default:// Throwing from here means that SendPaymentMethod_Tags hasn't matched an ordinal.
3219
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SendPaymentMethod_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner.address);size+=FfiConverterTypeSendOnchainFeeQuote.allocationSize(inner.feeQuote);return size;}case SendPaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalUInt64.allocationSize(inner.sparkTransferFeeSats);size+=FfiConverterUInt64.allocationSize(inner.lightningFeeSats);return size;}case SendPaymentMethod_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}case SendPaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner.sparkInvoiceDetails);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SendPaymentOptions
3446
+ */[uniffiTypeNameSymbol]='SendPaymentMethod';tag=SendPaymentMethod_Tags.SparkInvoice;constructor(inner){super('SendPaymentMethod','SparkInvoice');this.inner=Object.freeze(inner);}static new(inner){return new SparkInvoice_(inner);}static instanceOf(obj){return obj.tag===SendPaymentMethod_Tags.SparkInvoice;}}/**
3447
+ * A cross-chain send via a bridge/swap provider.
3448
+ */class CrossChainAddress_ extends UniffiEnum{/**
3449
+ * @private
3450
+ * This field is private and should not be used, use `tag` instead.
3451
+ */[uniffiTypeNameSymbol]='SendPaymentMethod';tag=SendPaymentMethod_Tags.CrossChainAddress;constructor(inner){super('SendPaymentMethod','CrossChainAddress');this.inner=Object.freeze(inner);}static new(inner){return new CrossChainAddress_(inner);}static instanceOf(obj){return obj.tag===SendPaymentMethod_Tags.CrossChainAddress;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SendPaymentMethod';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_,CrossChainAddress:CrossChainAddress_});})();// FfiConverter for enum SendPaymentMethod
3452
+ const FfiConverterTypeSendPaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SendPaymentMethod.BitcoinAddress({address:FfiConverterTypeBitcoinAddressDetails.read(from),feeQuote:FfiConverterTypeSendOnchainFeeQuote.read(from)});case 2:return new SendPaymentMethod.Bolt11Invoice({invoiceDetails:FfiConverterTypeBolt11InvoiceDetails.read(from),sparkTransferFeeSats:FfiConverterOptionalUInt64.read(from),lightningFeeSats:FfiConverterUInt64.read(from)});case 3:return new SendPaymentMethod.SparkAddress({address:FfiConverterString.read(from),fee:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)});case 4:return new SendPaymentMethod.SparkInvoice({sparkInvoiceDetails:FfiConverterTypeSparkInvoiceDetails.read(from),fee:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)});case 5:return new SendPaymentMethod.CrossChainAddress({route:FfiConverterTypeCrossChainRoutePair.read(from),recipientAddress:FfiConverterString.read(from),amountIn:FfiConverterTypeu128.read(from),assetAmountIn:FfiConverterTypeu128.read(from),estimatedOut:FfiConverterTypeu128.read(from),feeAmount:FfiConverterTypeu128.read(from),serviceFeeAmount:FfiConverterTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),sourceTransferFeeSats:FfiConverterUInt64.read(from),feeMode:FfiConverterTypeCrossChainFeeMode.read(from),expiresAt:FfiConverterString.read(from),providerContext:FfiConverterTypeCrossChainProviderContext.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SendPaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeBitcoinAddressDetails.write(inner.address,into);FfiConverterTypeSendOnchainFeeQuote.write(inner.feeQuote,into);return;}case SendPaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeBolt11InvoiceDetails.write(inner.invoiceDetails,into);FfiConverterOptionalUInt64.write(inner.sparkTransferFeeSats,into);FfiConverterUInt64.write(inner.lightningFeeSats,into);return;}case SendPaymentMethod_Tags.SparkAddress:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.address,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}case SendPaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner.sparkInvoiceDetails,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}case SendPaymentMethod_Tags.CrossChainAddress:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypeCrossChainRoutePair.write(inner.route,into);FfiConverterString.write(inner.recipientAddress,into);FfiConverterTypeu128.write(inner.amountIn,into);FfiConverterTypeu128.write(inner.assetAmountIn,into);FfiConverterTypeu128.write(inner.estimatedOut,into);FfiConverterTypeu128.write(inner.feeAmount,into);FfiConverterTypeu128.write(inner.serviceFeeAmount,into);FfiConverterOptionalString.write(inner.serviceFeeAsset,into);FfiConverterUInt64.write(inner.sourceTransferFeeSats,into);FfiConverterTypeCrossChainFeeMode.write(inner.feeMode,into);FfiConverterString.write(inner.expiresAt,into);FfiConverterTypeCrossChainProviderContext.write(inner.providerContext,into);return;}default:// Throwing from here means that SendPaymentMethod_Tags hasn't matched an ordinal.
3453
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SendPaymentMethod_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner.address);size+=FfiConverterTypeSendOnchainFeeQuote.allocationSize(inner.feeQuote);return size;}case SendPaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalUInt64.allocationSize(inner.sparkTransferFeeSats);size+=FfiConverterUInt64.allocationSize(inner.lightningFeeSats);return size;}case SendPaymentMethod_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}case SendPaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner.sparkInvoiceDetails);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}case SendPaymentMethod_Tags.CrossChainAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeCrossChainRoutePair.allocationSize(inner.route);size+=FfiConverterString.allocationSize(inner.recipientAddress);size+=FfiConverterTypeu128.allocationSize(inner.amountIn);size+=FfiConverterTypeu128.allocationSize(inner.assetAmountIn);size+=FfiConverterTypeu128.allocationSize(inner.estimatedOut);size+=FfiConverterTypeu128.allocationSize(inner.feeAmount);size+=FfiConverterTypeu128.allocationSize(inner.serviceFeeAmount);size+=FfiConverterOptionalString.allocationSize(inner.serviceFeeAsset);size+=FfiConverterUInt64.allocationSize(inner.sourceTransferFeeSats);size+=FfiConverterTypeCrossChainFeeMode.allocationSize(inner.feeMode);size+=FfiConverterString.allocationSize(inner.expiresAt);size+=FfiConverterTypeCrossChainProviderContext.allocationSize(inner.providerContext);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SendPaymentOptions
3220
3454
  export let SendPaymentOptions_Tags=/*#__PURE__*/function(SendPaymentOptions_Tags){SendPaymentOptions_Tags["BitcoinAddress"]="BitcoinAddress";SendPaymentOptions_Tags["Bolt11Invoice"]="Bolt11Invoice";SendPaymentOptions_Tags["SparkAddress"]="SparkAddress";return SendPaymentOptions_Tags;}({});export const SendPaymentOptions=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
3221
3455
  * @private
3222
3456
  * This field is private and should not be used, use `tag` instead.
@@ -3313,7 +3547,24 @@ export let SignerError_Tags=/*#__PURE__*/function(SignerError_Tags){SignerError_
3313
3547
  * Error type for signer operations
3314
3548
  */// FfiConverter for enum SignerError
3315
3549
  const FfiConverterTypeSignerError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SignerError.KeyDerivation(FfiConverterString.read(from));case 2:return new SignerError.Signing(FfiConverterString.read(from));case 3:return new SignerError.Encryption(FfiConverterString.read(from));case 4:return new SignerError.Decryption(FfiConverterString.read(from));case 5:return new SignerError.Frost(FfiConverterString.read(from));case 6:return new SignerError.InvalidInput(FfiConverterString.read(from));case 7:return new SignerError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SignerError_Tags.KeyDerivation:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Signing:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Encryption:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Decryption:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Frost:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.InvalidInput:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Generic:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SignerError_Tags hasn't matched an ordinal.
3316
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SignerError_Tags.KeyDerivation:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Signing:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Encryption:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Decryption:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Frost:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.InvalidInput:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let SparkHtlcStatus=/*#__PURE__*/function(SparkHtlcStatus){/**
3550
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SignerError_Tags.KeyDerivation:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Signing:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Encryption:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Decryption:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Frost:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.InvalidInput:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SourceAsset
3551
+ export let SourceAsset_Tags=/*#__PURE__*/function(SourceAsset_Tags){SourceAsset_Tags["Bitcoin"]="Bitcoin";SourceAsset_Tags["Token"]="Token";return SourceAsset_Tags;}({});/**
3552
+ * The source asset a cross-chain route accepts as input on the Spark side.
3553
+ */export const SourceAsset=(()=>{/**
3554
+ * Native BTC (sats).
3555
+ */class Bitcoin_ extends UniffiEnum{/**
3556
+ * @private
3557
+ * This field is private and should not be used, use `tag` instead.
3558
+ */[uniffiTypeNameSymbol]='SourceAsset';tag=SourceAsset_Tags.Bitcoin;constructor(){super('SourceAsset','Bitcoin');}static new(){return new Bitcoin_();}static instanceOf(obj){return obj.tag===SourceAsset_Tags.Bitcoin;}}/**
3559
+ * A Spark token, identified by its bech32m `token_identifier` (e.g. `btkn1...`).
3560
+ */class Token_ extends UniffiEnum{/**
3561
+ * @private
3562
+ * This field is private and should not be used, use `tag` instead.
3563
+ */[uniffiTypeNameSymbol]='SourceAsset';tag=SourceAsset_Tags.Token;constructor(inner){super('SourceAsset','Token');this.inner=Object.freeze(inner);}static new(inner){return new Token_(inner);}static instanceOf(obj){return obj.tag===SourceAsset_Tags.Token;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SourceAsset';}return Object.freeze({instanceOf,Bitcoin:Bitcoin_,Token:Token_});})();/**
3564
+ * The source asset a cross-chain route accepts as input on the Spark side.
3565
+ */// FfiConverter for enum SourceAsset
3566
+ const FfiConverterTypeSourceAsset=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SourceAsset.Bitcoin();case 2:return new SourceAsset.Token({tokenIdentifier:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SourceAsset_Tags.Bitcoin:{ordinalConverter.write(1,into);return;}case SourceAsset_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.tokenIdentifier,into);return;}default:// Throwing from here means that SourceAsset_Tags hasn't matched an ordinal.
3567
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SourceAsset_Tags.Bitcoin:{return ordinalConverter.allocationSize(1);}case SourceAsset_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.tokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let SparkHtlcStatus=/*#__PURE__*/function(SparkHtlcStatus){/**
3317
3568
  * The HTLC is waiting for the preimage to be shared by the receiver
3318
3569
  */SparkHtlcStatus[SparkHtlcStatus["WaitingForPreimage"]=0]="WaitingForPreimage";/**
3319
3570
  * The HTLC preimage has been shared and the transfer can be or has been claimed by the receiver
@@ -3379,8 +3630,8 @@ export let StoragePaymentDetailsFilter_Tags=/*#__PURE__*/function(StoragePayment
3379
3630
  */[uniffiTypeNameSymbol]='StoragePaymentDetailsFilter';tag=StoragePaymentDetailsFilter_Tags.Lightning;constructor(inner){super('StoragePaymentDetailsFilter','Lightning');this.inner=Object.freeze(inner);}static new(inner){return new Lightning_(inner);}static instanceOf(obj){return obj.tag===StoragePaymentDetailsFilter_Tags.Lightning;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='StoragePaymentDetailsFilter';}return Object.freeze({instanceOf,Spark:Spark_,Token:Token_,Lightning:Lightning_});})();/**
3380
3631
  * Storage-internal variant of [`PaymentDetailsFilter`].
3381
3632
  */// FfiConverter for enum StoragePaymentDetailsFilter
3382
- const FfiConverterTypeStoragePaymentDetailsFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new StoragePaymentDetailsFilter.Spark({htlcStatus:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),conversionRefundNeeded:FfiConverterOptionalBool.read(from)});case 2:return new StoragePaymentDetailsFilter.Token({conversionRefundNeeded:FfiConverterOptionalBool.read(from),txHash:FfiConverterOptionalString.read(from),txType:FfiConverterOptionalTypeTokenTransactionType.read(from)});case 3:return new StoragePaymentDetailsFilter.Lightning({htlcStatus:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case StoragePaymentDetailsFilter_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalArrayTypeSparkHtlcStatus.write(inner.htlcStatus,into);FfiConverterOptionalBool.write(inner.conversionRefundNeeded,into);return;}case StoragePaymentDetailsFilter_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalBool.write(inner.conversionRefundNeeded,into);FfiConverterOptionalString.write(inner.txHash,into);FfiConverterOptionalTypeTokenTransactionType.write(inner.txType,into);return;}case StoragePaymentDetailsFilter_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalArrayTypeSparkHtlcStatus.write(inner.htlcStatus,into);return;}default:// Throwing from here means that StoragePaymentDetailsFilter_Tags hasn't matched an ordinal.
3383
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case StoragePaymentDetailsFilter_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(inner.htlcStatus);size+=FfiConverterOptionalBool.allocationSize(inner.conversionRefundNeeded);return size;}case StoragePaymentDetailsFilter_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalBool.allocationSize(inner.conversionRefundNeeded);size+=FfiConverterOptionalString.allocationSize(inner.txHash);size+=FfiConverterOptionalTypeTokenTransactionType.allocationSize(inner.txType);return size;}case StoragePaymentDetailsFilter_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(inner.htlcStatus);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SuccessAction
3633
+ const FfiConverterTypeStoragePaymentDetailsFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new StoragePaymentDetailsFilter.Spark({htlcStatus:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),conversionFilter:FfiConverterOptionalTypeConversionFilter.read(from)});case 2:return new StoragePaymentDetailsFilter.Token({conversionFilter:FfiConverterOptionalTypeConversionFilter.read(from),txHash:FfiConverterOptionalString.read(from),txType:FfiConverterOptionalTypeTokenTransactionType.read(from)});case 3:return new StoragePaymentDetailsFilter.Lightning({htlcStatus:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),conversionFilter:FfiConverterOptionalTypeConversionFilter.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case StoragePaymentDetailsFilter_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalArrayTypeSparkHtlcStatus.write(inner.htlcStatus,into);FfiConverterOptionalTypeConversionFilter.write(inner.conversionFilter,into);return;}case StoragePaymentDetailsFilter_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalTypeConversionFilter.write(inner.conversionFilter,into);FfiConverterOptionalString.write(inner.txHash,into);FfiConverterOptionalTypeTokenTransactionType.write(inner.txType,into);return;}case StoragePaymentDetailsFilter_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalArrayTypeSparkHtlcStatus.write(inner.htlcStatus,into);FfiConverterOptionalTypeConversionFilter.write(inner.conversionFilter,into);return;}default:// Throwing from here means that StoragePaymentDetailsFilter_Tags hasn't matched an ordinal.
3634
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case StoragePaymentDetailsFilter_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(inner.htlcStatus);size+=FfiConverterOptionalTypeConversionFilter.allocationSize(inner.conversionFilter);return size;}case StoragePaymentDetailsFilter_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalTypeConversionFilter.allocationSize(inner.conversionFilter);size+=FfiConverterOptionalString.allocationSize(inner.txHash);size+=FfiConverterOptionalTypeTokenTransactionType.allocationSize(inner.txType);return size;}case StoragePaymentDetailsFilter_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(inner.htlcStatus);size+=FfiConverterOptionalTypeConversionFilter.allocationSize(inner.conversionFilter);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SuccessAction
3384
3635
  export let SuccessAction_Tags=/*#__PURE__*/function(SuccessAction_Tags){SuccessAction_Tags["Aes"]="Aes";SuccessAction_Tags["Message"]="Message";SuccessAction_Tags["Url"]="Url";return SuccessAction_Tags;}({});/**
3385
3636
  * Supported success action types
3386
3637
  *
@@ -3571,6 +3822,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
3571
3822
  *
3572
3823
  * Result containing either success or an `SdkError` if the background task couldn't be stopped
3573
3824
  */async disconnect(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async fetchConversionLimits(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_conversion_limits(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeFetchConversionLimitsRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeFetchConversionLimitsResponse.lift.bind(FfiConverterTypeFetchConversionLimitsResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3825
+ * Returns the available cross-chain routes.
3826
+ *
3827
+ * Use [`CrossChainRouteFilter::Send`] to get routes for sending from Spark
3828
+ * (filtered by the parsed recipient address), or
3829
+ * [`CrossChainRouteFilter::Receive`] to get routes for receiving into Spark
3830
+ * (optionally filtered by a source contract address).
3831
+ */async getCrossChainRoutes(filter,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_cross_chain_routes(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCrossChainRouteFilter.lower(filter));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeCrossChainRoutePair.lift.bind(FfiConverterArrayTypeCrossChainRoutePair),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3574
3832
  * Returns the balance of the wallet in satoshis
3575
3833
  */async getInfo(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_info(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeGetInfoRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeGetInfoResponse.lift.bind(FfiConverterTypeGetInfoResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async getLightningAddress(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_lightning_address(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeLightningAddressInfo.lift.bind(FfiConverterOptionalTypeLightningAddressInfo),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async getPayment(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeGetPaymentRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeGetPaymentResponse.lift.bind(FfiConverterTypeGetPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3576
3834
  * Returns an instance of the [`TokenIssuer`] for managing token issuance.
@@ -4412,7 +4670,14 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
4412
4670
  * Preserves `created_at` on update.
4413
4671
  */async insertContact(contact,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_insert_contact(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeContact.lower(contact));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
4414
4672
  * Deletes a contact by its ID
4415
- */async deleteContact(id,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_delete_contact(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(id));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async addOutgoingChange(record,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_add_outgoing_change(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeUnversionedRecordChange.lower(record));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_u64,/*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async completeOutgoingSync(record,localRevision,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_complete_outgoing_sync(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeRecord.lower(record),FfiConverterUInt64.lower(localRevision));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async getPendingOutgoingChanges(limit,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_get_pending_outgoing_changes(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterUInt32.lower(limit));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeOutgoingChange.lift.bind(FfiConverterArrayTypeOutgoingChange),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
4673
+ */async deleteContact(id,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_delete_contact(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(id));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
4674
+ * Inserts or overwrites a cross-chain swap row (upsert by `(provider, id)`).
4675
+ */async setCrossChainSwap(swap,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_set_cross_chain_swap(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeStoredCrossChainSwap.lower(swap));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
4676
+ * Gets a single cross-chain swap row by its `(provider, id)`, or `None` if absent.
4677
+ */async getCrossChainSwap(provider,id,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_get_cross_chain_swap(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(provider),FfiConverterString.lower(id));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeStoredCrossChainSwap.lift.bind(FfiConverterOptionalTypeStoredCrossChainSwap),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
4678
+ * Lists all non-terminal cross-chain swap rows for a single provider
4679
+ * (`provider = ? AND is_terminal = false`).
4680
+ */async listActiveCrossChainSwaps(provider,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_list_active_cross_chain_swaps(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(provider));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeStoredCrossChainSwap.lift.bind(FfiConverterArrayTypeStoredCrossChainSwap),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async addOutgoingChange(record,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_add_outgoing_change(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeUnversionedRecordChange.lower(record));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_u64,/*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async completeOutgoingSync(record,localRevision,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_complete_outgoing_sync(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeRecord.lower(record),FfiConverterUInt64.lower(localRevision));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async getPendingOutgoingChanges(limit,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_get_pending_outgoing_changes(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterUInt32.lower(limit));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeOutgoingChange.lift.bind(FfiConverterArrayTypeOutgoingChange),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
4416
4681
  * Get the last committed sync revision.
4417
4682
  *
4418
4683
  * The `sync_revision` table tracks the highest revision that has been committed
@@ -4454,6 +4719,9 @@ callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeign
4454
4719
  callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getContact:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getContact(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeContact.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
4455
4720
  callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},insertContact:(uniffiHandle,contact,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.insertContact(FfiConverterTypeContact.lift(contact),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
4456
4721
  callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},deleteContact:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.deleteContact(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
4722
+ callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},setCrossChainSwap:(uniffiHandle,swap,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.setCrossChainSwap(FfiConverterTypeStoredCrossChainSwap.lift(swap),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
4723
+ callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getCrossChainSwap:(uniffiHandle,provider,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getCrossChainSwap(FfiConverterString.lift(provider),FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterOptionalTypeStoredCrossChainSwap.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
4724
+ callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},listActiveCrossChainSwaps:(uniffiHandle,provider,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listActiveCrossChainSwaps(FfiConverterString.lift(provider),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeStoredCrossChainSwap.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
4457
4725
  callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},addOutgoingChange:(uniffiHandle,record,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.addOutgoingChange(FfiConverterTypeUnversionedRecordChange.lift(record),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:FfiConverterUInt64.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:0n,// TODO create callstatus with error.
4458
4726
  callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},completeOutgoingSync:(uniffiHandle,record,localRevision,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.completeOutgoingSync(FfiConverterTypeRecord.lift(record),FfiConverterUInt64.lift(localRevision),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
4459
4727
  callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getPendingOutgoingChanges:(uniffiHandle,limit,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPendingOutgoingChanges(FfiConverterUInt32.lift(limit),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeOutgoingChange.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
@@ -4567,11 +4835,10 @@ const FfiConverterOptionalBool=new FfiConverterOptional(FfiConverterBool);// Ffi
4567
4835
  const FfiConverterOptionalArrayBuffer=new FfiConverterOptional(FfiConverterArrayBuffer);// FfiConverter for Logger | undefined
4568
4836
  const FfiConverterOptionalTypeLogger=new FfiConverterOptional(FfiConverterTypeLogger);// FfiConverter for ConversionDetails | undefined
4569
4837
  const FfiConverterOptionalTypeConversionDetails=new FfiConverterOptional(FfiConverterTypeConversionDetails);// FfiConverter for ConversionEstimate | undefined
4570
- const FfiConverterOptionalTypeConversionEstimate=new FfiConverterOptional(FfiConverterTypeConversionEstimate);// FfiConverter for ConversionInfo | undefined
4571
- const FfiConverterOptionalTypeConversionInfo=new FfiConverterOptional(FfiConverterTypeConversionInfo);// FfiConverter for ConversionOptions | undefined
4572
- const FfiConverterOptionalTypeConversionOptions=new FfiConverterOptional(FfiConverterTypeConversionOptions);// FfiConverter for ConversionStep | undefined
4573
- const FfiConverterOptionalTypeConversionStep=new FfiConverterOptional(FfiConverterTypeConversionStep);// FfiConverter for Credentials | undefined
4574
- const FfiConverterOptionalTypeCredentials=new FfiConverterOptional(FfiConverterTypeCredentials);// FfiConverter for LightningAddressInfo | undefined
4838
+ const FfiConverterOptionalTypeConversionEstimate=new FfiConverterOptional(FfiConverterTypeConversionEstimate);// FfiConverter for ConversionOptions | undefined
4839
+ const FfiConverterOptionalTypeConversionOptions=new FfiConverterOptional(FfiConverterTypeConversionOptions);// FfiConverter for Credentials | undefined
4840
+ const FfiConverterOptionalTypeCredentials=new FfiConverterOptional(FfiConverterTypeCredentials);// FfiConverter for CrossChainConfig | undefined
4841
+ const FfiConverterOptionalTypeCrossChainConfig=new FfiConverterOptional(FfiConverterTypeCrossChainConfig);// FfiConverter for LightningAddressInfo | undefined
4575
4842
  const FfiConverterOptionalTypeLightningAddressInfo=new FfiConverterOptional(FfiConverterTypeLightningAddressInfo);// FfiConverter for LnurlPayInfo | undefined
4576
4843
  const FfiConverterOptionalTypeLnurlPayInfo=new FfiConverterOptional(FfiConverterTypeLnurlPayInfo);// FfiConverter for LnurlReceiveMetadata | undefined
4577
4844
  const FfiConverterOptionalTypeLnurlReceiveMetadata=new FfiConverterOptional(FfiConverterTypeLnurlReceiveMetadata);// FfiConverter for LnurlWithdrawInfo | undefined
@@ -4586,9 +4853,9 @@ const FfiConverterOptionalTypeSparkConfig=new FfiConverterOptional(FfiConverterT
4586
4853
  const FfiConverterOptionalTypeSparkHtlcDetails=new FfiConverterOptional(FfiConverterTypeSparkHtlcDetails);// FfiConverter for SparkHtlcOptions | undefined
4587
4854
  const FfiConverterOptionalTypeSparkHtlcOptions=new FfiConverterOptional(FfiConverterTypeSparkHtlcOptions);// FfiConverter for SparkInvoicePaymentDetails | undefined
4588
4855
  const FfiConverterOptionalTypeSparkInvoicePaymentDetails=new FfiConverterOptional(FfiConverterTypeSparkInvoicePaymentDetails);// FfiConverter for StableBalanceConfig | undefined
4589
- const FfiConverterOptionalTypeStableBalanceConfig=new FfiConverterOptional(FfiConverterTypeStableBalanceConfig);// FfiConverter for Symbol | undefined
4590
- const FfiConverterOptionalTypeSymbol=new FfiConverterOptional(FfiConverterTypeSymbol);// FfiConverter for TokenMetadata | undefined
4591
- const FfiConverterOptionalTypeTokenMetadata=new FfiConverterOptional(FfiConverterTypeTokenMetadata);// FfiConverter for TurnkeyRetryConfig | undefined
4856
+ const FfiConverterOptionalTypeStableBalanceConfig=new FfiConverterOptional(FfiConverterTypeStableBalanceConfig);// FfiConverter for StoredCrossChainSwap | undefined
4857
+ const FfiConverterOptionalTypeStoredCrossChainSwap=new FfiConverterOptional(FfiConverterTypeStoredCrossChainSwap);// FfiConverter for Symbol | undefined
4858
+ const FfiConverterOptionalTypeSymbol=new FfiConverterOptional(FfiConverterTypeSymbol);// FfiConverter for TurnkeyRetryConfig | undefined
4592
4859
  const FfiConverterOptionalTypeTurnkeyRetryConfig=new FfiConverterOptional(FfiConverterTypeTurnkeyRetryConfig);// FfiConverter for string | undefined
4593
4860
  const FfiConverterOptionalString=new FfiConverterOptional(FfiConverterString);// FfiConverter for /*u32*/number | undefined
4594
4861
  const FfiConverterOptionalUInt32=new FfiConverterOptional(FfiConverterUInt32);// FfiConverter for /*u64*/bigint | undefined
@@ -4598,7 +4865,9 @@ const FfiConverterArrayTypeBip21Extra=new FfiConverterArray(FfiConverterTypeBip2
4598
4865
  const FfiConverterArrayTypeBolt11RouteHint=new FfiConverterArray(FfiConverterTypeBolt11RouteHint);// FfiConverter for Array<Bolt11RouteHintHop>
4599
4866
  const FfiConverterArrayTypeBolt11RouteHintHop=new FfiConverterArray(FfiConverterTypeBolt11RouteHintHop);// FfiConverter for Array<Bolt12OfferBlindedPath>
4600
4867
  const FfiConverterArrayTypeBolt12OfferBlindedPath=new FfiConverterArray(FfiConverterTypeBolt12OfferBlindedPath);// FfiConverter for Array<Contact>
4601
- const FfiConverterArrayTypeContact=new FfiConverterArray(FfiConverterTypeContact);// FfiConverter for Array<DepositInfo>
4868
+ const FfiConverterArrayTypeContact=new FfiConverterArray(FfiConverterTypeContact);// FfiConverter for Array<Conversion>
4869
+ const FfiConverterArrayTypeConversion=new FfiConverterArray(FfiConverterTypeConversion);// FfiConverter for Array<CrossChainRoutePair>
4870
+ const FfiConverterArrayTypeCrossChainRoutePair=new FfiConverterArray(FfiConverterTypeCrossChainRoutePair);// FfiConverter for Array<DepositInfo>
4602
4871
  const FfiConverterArrayTypeDepositInfo=new FfiConverterArray(FfiConverterTypeDepositInfo);// FfiConverter for Array<ExternalClaimLeafInput>
4603
4872
  const FfiConverterArrayTypeExternalClaimLeafInput=new FfiConverterArray(FfiConverterTypeExternalClaimLeafInput);// FfiConverter for Array<ExternalFrostJob>
4604
4873
  const FfiConverterArrayTypeExternalFrostJob=new FfiConverterArray(FfiConverterTypeExternalFrostJob);// FfiConverter for Array<ExternalFrostShareResult>
@@ -4623,7 +4892,8 @@ const FfiConverterArrayTypeRate=new FfiConverterArray(FfiConverterTypeRate);// F
4623
4892
  const FfiConverterArrayTypeRecord=new FfiConverterArray(FfiConverterTypeRecord);// FfiConverter for Array<SetLnurlMetadataItem>
4624
4893
  const FfiConverterArrayTypeSetLnurlMetadataItem=new FfiConverterArray(FfiConverterTypeSetLnurlMetadataItem);// FfiConverter for Array<SparkSigningOperator>
4625
4894
  const FfiConverterArrayTypeSparkSigningOperator=new FfiConverterArray(FfiConverterTypeSparkSigningOperator);// FfiConverter for Array<StableBalanceToken>
4626
- const FfiConverterArrayTypeStableBalanceToken=new FfiConverterArray(FfiConverterTypeStableBalanceToken);// FfiConverter for Array<TokenMetadata>
4895
+ const FfiConverterArrayTypeStableBalanceToken=new FfiConverterArray(FfiConverterTypeStableBalanceToken);// FfiConverter for Array<StoredCrossChainSwap>
4896
+ const FfiConverterArrayTypeStoredCrossChainSwap=new FfiConverterArray(FfiConverterTypeStoredCrossChainSwap);// FfiConverter for Array<TokenMetadata>
4627
4897
  const FfiConverterArrayTypeTokenMetadata=new FfiConverterArray(FfiConverterTypeTokenMetadata);// FfiConverter for Array<Utxo>
4628
4898
  const FfiConverterArrayTypeUtxo=new FfiConverterArray(FfiConverterTypeUtxo);// FfiConverter for Array<Webhook>
4629
4899
  const FfiConverterArrayTypeWebhook=new FfiConverterArray(FfiConverterTypeWebhook);// FfiConverter for Array<string>
@@ -4632,7 +4902,9 @@ const FfiConverterMapStringArrayTypePayment=new FfiConverterMap(FfiConverterStri
4632
4902
  const FfiConverterOptionalTypeu128=new FfiConverterOptional(FfiConverterTypeu128);// FfiConverter for Amount | undefined
4633
4903
  const FfiConverterOptionalTypeAmount=new FfiConverterOptional(FfiConverterTypeAmount);// FfiConverter for AmountAdjustmentReason | undefined
4634
4904
  const FfiConverterOptionalTypeAmountAdjustmentReason=new FfiConverterOptional(FfiConverterTypeAmountAdjustmentReason);// FfiConverter for AssetFilter | undefined
4635
- const FfiConverterOptionalTypeAssetFilter=new FfiConverterOptional(FfiConverterTypeAssetFilter);// FfiConverter for ConversionPurpose | undefined
4905
+ const FfiConverterOptionalTypeAssetFilter=new FfiConverterOptional(FfiConverterTypeAssetFilter);// FfiConverter for ConversionFilter | undefined
4906
+ const FfiConverterOptionalTypeConversionFilter=new FfiConverterOptional(FfiConverterTypeConversionFilter);// FfiConverter for ConversionInfo | undefined
4907
+ const FfiConverterOptionalTypeConversionInfo=new FfiConverterOptional(FfiConverterTypeConversionInfo);// FfiConverter for ConversionPurpose | undefined
4636
4908
  const FfiConverterOptionalTypeConversionPurpose=new FfiConverterOptional(FfiConverterTypeConversionPurpose);// FfiConverter for ConversionStatus | undefined
4637
4909
  const FfiConverterOptionalTypeConversionStatus=new FfiConverterOptional(FfiConverterTypeConversionStatus);// FfiConverter for DepositClaimError | undefined
4638
4910
  const FfiConverterOptionalTypeDepositClaimError=new FfiConverterOptional(FfiConverterTypeDepositClaimError);// FfiConverter for Fee | undefined
@@ -4652,7 +4924,8 @@ const FfiConverterOptionalArrayTypeExternalInputParser=new FfiConverterOptional(
4652
4924
  const FfiConverterArrayTypeInputType=new FfiConverterArray(FfiConverterTypeInputType);// FfiConverter for Array<PaymentDetailsFilter>
4653
4925
  const FfiConverterArrayTypePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypePaymentDetailsFilter);// FfiConverter for Array<PaymentStatus>
4654
4926
  const FfiConverterArrayTypePaymentStatus=new FfiConverterArray(FfiConverterTypePaymentStatus);// FfiConverter for Array<PaymentType>
4655
- const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<SparkHtlcStatus>
4927
+ const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<SourceAsset>
4928
+ const FfiConverterArrayTypeSourceAsset=new FfiConverterArray(FfiConverterTypeSourceAsset);// FfiConverter for Array<SparkHtlcStatus>
4656
4929
  const FfiConverterArrayTypeSparkHtlcStatus=new FfiConverterArray(FfiConverterTypeSparkHtlcStatus);// FfiConverter for Array<StoragePaymentDetailsFilter>
4657
4930
  const FfiConverterArrayTypeStoragePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypeStoragePaymentDetailsFilter);// FfiConverter for Array<WebhookEventType>
4658
4931
  const FfiConverterArrayTypeWebhookEventType=new FfiConverterArray(FfiConverterTypeWebhookEventType);// FfiConverter for Array<PaymentDetailsFilter> | undefined
@@ -4671,5 +4944,5 @@ const FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter=new FfiConverterO
4671
4944
  * It also initializes the machinery to enable Rust to talk back to Javascript.
4672
4945
  */function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
4673
4946
  const bindingsContractVersion=29;// Get the scaffolding contract version by calling the into the dylib
4674
- const scaffoldingContractVersion=nativeModule().ubrn_ffi_breez_sdk_spark_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect()!==40345){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect_with_signer()!==1399){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer()!==31659){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_custom_storage()!==18116){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_custom_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_config()!==62194){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_external_signers()!==58595){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signers');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_server_config()!==33858){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_server_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_storage()!==56226){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status()!==62888){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_get_spark_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging()!==8518){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_init_logging');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service()!==23177){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context()!==7027){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos()!==20959){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==23018){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex()!==59376){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==65179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees()!==43230){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact()!==26497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener()!==19224){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer()!==15257){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin()!==34179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available()!==31624){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message()!==4385){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit()!==43529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment()!==57587){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_lightning_address_transfer()!==20680){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_lightning_address_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact()!==15670){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address()!==44132){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect()!==20026){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits()!==50958){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts()!==2729){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies()!==63366){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates()!==5904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments()!==39170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits()!==22486){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks()!==28432){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth()!==125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay()!==10147){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw()!==45652){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves()!==39254){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse()!==14285){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay()!==37691){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment()!==34185){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment()!==36984){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees()!==16947){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit()!==33646){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions()!==24173){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address()!==530){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook()!==13529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener()!==41066){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==57563){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet()!==30368){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook()!==34100){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact()!==21170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings()!==1721){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key()!==26700){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa()!==17969){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable()!==45907){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies()!==5296){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies()!==6089){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr()!==1766){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256()!==65429){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key()!==38705){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf()!==39015){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key()!==11994){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge()!==57313){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message()!==56093){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost()!==44871){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer()!==42596){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim()!==109){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive()!==49812){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit()!==119){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund()!==22509){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund()!==28885){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice()!==11535){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction()!==58955){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim()!==64724){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies()!==19092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates()!==11512){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_check_availability()!==35189){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_check_availability');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey()!==47815){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels()!==35849){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_register()!==18330){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_register');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in()!==42245){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_list()!==54877){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_list');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_store()!==58514){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==27806){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send()!==31673){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds()!==18550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported()!==46331){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey()!==1967){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association()!==18713){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request()!==8260){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_get_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request()!==24889){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_post_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request()!==51072){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_delete_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build()!==8126){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_account_number()!==6550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_account_number');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service()!==2848){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage()!==14543){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service()!==37854){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client()!==51060){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer()!==21617){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service()!==63155){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context()!==64829){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==20369){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend()!==28545){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session()!==49546){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session()!==13629){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item()!==6883){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item()!==30248){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item()!==7970){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments()!==51078){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_apply_payment_update()!==8631){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_apply_payment_update');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata()!==32757){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id()!==35394){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice()!==57075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids()!==10948){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==35363){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit()!==28477){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits()!==62636){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit()!==18714){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata()!==64210){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_contacts()!==10490){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_contact()!==19980){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_contact()!==38342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_contact()!==50274){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change()!==1304){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync()!==7860){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes()!==30862){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision()!==6931){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records()!==59522){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record()!==19643){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records()!==28540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change()!==41369){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming()!==18793){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores()!==51497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token()!==56056){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token()!==33277){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token()!==32344){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance()!==9758){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata()!==57707){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token()!==36459){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token()!==65025){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_new()!==51278){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new()!==65435){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer()!==28871){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event()!==24807){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log()!==11839){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_logger_log');}uniffiCallbackInterfaceEventListener.register();uniffiCallbackInterfaceLogger.register();uniffiCallbackInterfaceBitcoinChainService.register();uniffiCallbackInterfaceExternalBreezSigner.register();uniffiCallbackInterfaceExternalSparkSigner.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfacePrfProvider.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceSessionStore.register();uniffiCallbackInterfaceStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddContactRequest,FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAmountAdjustmentReason,FfiConverterTypeAssetFilter,FfiConverterTypeAuthorizeTransferRequest,FfiConverterTypeAutoOptimizationEvent,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeBuyBitcoinRequest,FfiConverterTypeBuyBitcoinResponse,FfiConverterTypeChainApiType,FfiConverterTypeChainServiceError,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeClaimTransferRequest,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithPasskeyRequest,FfiConverterTypeConnectWithPasskeyResponse,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeContact,FfiConverterTypeConversionDetails,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionStatus,FfiConverterTypeConversionStep,FfiConverterTypeConversionType,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeDeriveSeedsOutput,FfiConverterTypeDeriveSeedsRequest,FfiConverterTypeDomainAssociation,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeErrorKind,FfiConverterTypeExternalBreezSigner,FfiConverterTypeExternalClaimLeafInput,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostDerivation,FfiConverterTypeExternalFrostJob,FfiConverterTypeExternalFrostShareResult,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalNewLeafKey,FfiConverterTypeExternalOperatorPackage,FfiConverterTypeExternalOperatorRecipient,FfiConverterTypeExternalPrepareClaimRequest,FfiConverterTypeExternalPrepareLightningReceiveRequest,FfiConverterTypeExternalPrepareStaticDepositClaimRequest,FfiConverterTypeExternalPrepareStaticDepositRequest,FfiConverterTypeExternalPrepareTokenTransactionRequest,FfiConverterTypeExternalPrepareTransferRequest,FfiConverterTypeExternalPreparedClaim,FfiConverterTypeExternalPreparedLightningReceive,FfiConverterTypeExternalPreparedStaticDeposit,FfiConverterTypeExternalPreparedStaticDepositClaim,FfiConverterTypeExternalPreparedTokenTransaction,FfiConverterTypeExternalPreparedTransfer,FfiConverterTypeExternalSignSparkInvoiceRequest,FfiConverterTypeExternalSignStaticDepositRefundRequest,FfiConverterTypeExternalSignedSparkInvoice,FfiConverterTypeExternalSigners,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalSparkInvoiceKind,FfiConverterTypeExternalSparkSigner,FfiConverterTypeExternalStartStaticDepositRefundRequest,FfiConverterTypeExternalStartedStaticDepositRefund,FfiConverterTypeExternalTokenTransactionKind,FfiConverterTypeExternalTransferLeafInput,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeFee,FfiConverterTypeFeePolicy,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeLeafOptimizationConfig,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListContactsRequest,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlInfo,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationMode,FfiConverterTypeOptimizationOutcome,FfiConverterTypeOptimizeLeavesRequest,FfiConverterTypeOptimizeLeavesResponse,FfiConverterTypeOutgoingChange,FfiConverterTypePasskeyAvailability,FfiConverterTypePasskeyClient,FfiConverterTypePasskeyConfig,FfiConverterTypePasskeyCredential,FfiConverterTypePasskeyError,FfiConverterTypePasskeyLabels,FfiConverterTypePasskeyProviderOptions,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentIdUpdate,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentObserverError,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypePrfProvider,FfiConverterTypePrfProviderError,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKey,FfiConverterTypePublicKeyBytes,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRegisterRequest,FfiConverterTypeRegisterResponse,FfiConverterTypeRegisterWebhookRequest,FfiConverterTypeRegisterWebhookResponse,FfiConverterTypeResolvedStores,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkContext,FfiConverterTypeSdkContextConfig,FfiConverterTypeSdkError,FfiConverterTypeSdkEvent,FfiConverterTypeSecretBytes,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeServiceConnectivityError,FfiConverterTypeServiceStatus,FfiConverterTypeSession,FfiConverterTypeSessionStore,FfiConverterTypeSessionStoreError,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSetupWalletRequest,FfiConverterTypeSignInRequest,FfiConverterTypeSignInResponse,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSignerError,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkConfig,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeSparkSigningOperator,FfiConverterTypeSparkSspConfig,FfiConverterTypeSparkStatus,FfiConverterTypeStableBalanceActiveLabel,FfiConverterTypeStableBalanceConfig,FfiConverterTypeStableBalanceToken,FfiConverterTypeStorage,FfiConverterTypeStorageBackend,FfiConverterTypeStorageError,FfiConverterTypeStorageListPaymentsRequest,FfiConverterTypeStoragePaymentDetailsFilter,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTokenOptimizationConfig,FfiConverterTypeTokenTransactionType,FfiConverterTypeTransferAuthorization,FfiConverterTypeTurnkeyConfig,FfiConverterTypeTurnkeyRetryConfig,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnregisterWebhookRequest,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateContactRequest,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeWallet,FfiConverterTypeWalletSetup,FfiConverterTypeWebhook,FfiConverterTypeWebhookEventType,FfiConverterTypeu128}});
4947
+ const scaffoldingContractVersion=nativeModule().ubrn_ffi_breez_sdk_spark_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect()!==40345){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect_with_signer()!==1399){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer()!==31659){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_custom_storage()!==18116){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_custom_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_config()!==62194){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_external_signers()!==58595){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signers');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_server_config()!==40188){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_server_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_storage()!==56226){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status()!==62888){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_get_spark_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging()!==8518){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_init_logging');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service()!==23177){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context()!==7027){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos()!==20959){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==23018){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex()!==59376){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==65179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees()!==43230){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact()!==26497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener()!==19224){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer()!==15257){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin()!==34179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available()!==31624){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message()!==4385){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit()!==43529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment()!==57587){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_lightning_address_transfer()!==20680){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_lightning_address_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact()!==15670){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address()!==44132){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect()!==20026){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits()!==50958){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_cross_chain_routes()!==25164){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_cross_chain_routes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts()!==2729){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies()!==63366){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates()!==5904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments()!==39170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits()!==22486){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks()!==28432){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth()!==125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay()!==10147){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw()!==45652){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves()!==39254){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse()!==14285){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay()!==37691){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment()!==34185){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment()!==36984){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees()!==16947){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit()!==33646){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions()!==24173){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address()!==530){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook()!==13529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener()!==41066){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==57563){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet()!==30368){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook()!==34100){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact()!==21170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings()!==1721){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key()!==26700){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa()!==17969){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable()!==45907){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies()!==5296){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies()!==6089){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr()!==1766){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256()!==65429){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key()!==38705){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf()!==39015){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key()!==11994){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge()!==57313){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message()!==56093){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost()!==44871){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer()!==42596){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim()!==109){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive()!==49812){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit()!==119){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund()!==22509){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund()!==28885){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice()!==11535){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction()!==58955){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim()!==64724){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies()!==19092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates()!==11512){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_check_availability()!==35189){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_check_availability');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey()!==47815){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels()!==35849){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_register()!==18330){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_register');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in()!==42245){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_list()!==54877){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_list');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_store()!==58514){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==27806){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send()!==31673){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds()!==18550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported()!==46331){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey()!==1967){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association()!==18713){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request()!==8260){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_get_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request()!==24889){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_post_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request()!==51072){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_delete_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build()!==8126){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_account_number()!==6550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_account_number');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service()!==2848){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage()!==14543){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service()!==37854){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client()!==51060){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer()!==21617){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service()!==63155){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context()!==64829){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==20369){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend()!==28545){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session()!==49546){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session()!==13629){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item()!==6883){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item()!==30248){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item()!==7970){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments()!==51078){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_apply_payment_update()!==8631){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_apply_payment_update');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata()!==32757){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id()!==35394){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice()!==57075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids()!==10948){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==35363){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit()!==28477){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits()!==62636){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit()!==18714){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata()!==64210){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_contacts()!==10490){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_contact()!==19980){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_contact()!==38342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_contact()!==50274){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cross_chain_swap()!==31116){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cross_chain_swap');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap()!==20172){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps()!==23493){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change()!==44890){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync()!==8492){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes()!==54668){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision()!==17237){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records()!==35265){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record()!==32789){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records()!==18699){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change()!==59591){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming()!==30443){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores()!==51497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token()!==56056){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token()!==33277){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token()!==32344){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance()!==9758){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata()!==57707){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token()!==36459){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token()!==65025){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_new()!==51278){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new()!==65435){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer()!==28871){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event()!==24807){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log()!==11839){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_logger_log');}uniffiCallbackInterfaceEventListener.register();uniffiCallbackInterfaceLogger.register();uniffiCallbackInterfaceBitcoinChainService.register();uniffiCallbackInterfaceExternalBreezSigner.register();uniffiCallbackInterfaceExternalSparkSigner.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfacePrfProvider.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceSessionStore.register();uniffiCallbackInterfaceStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddContactRequest,FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAmountAdjustmentReason,FfiConverterTypeAssetFilter,FfiConverterTypeAuthorizeTransferRequest,FfiConverterTypeAutoOptimizationEvent,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeBuyBitcoinRequest,FfiConverterTypeBuyBitcoinResponse,FfiConverterTypeChainApiType,FfiConverterTypeChainServiceError,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeClaimTransferRequest,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithPasskeyRequest,FfiConverterTypeConnectWithPasskeyResponse,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeContact,FfiConverterTypeConversion,FfiConverterTypeConversionAsset,FfiConverterTypeConversionChain,FfiConverterTypeConversionDetails,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionFilter,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionProvider,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionSide,FfiConverterTypeConversionStatus,FfiConverterTypeConversionType,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCrossChainAddressDetails,FfiConverterTypeCrossChainAddressFamily,FfiConverterTypeCrossChainConfig,FfiConverterTypeCrossChainFeeMode,FfiConverterTypeCrossChainProvider,FfiConverterTypeCrossChainProviderContext,FfiConverterTypeCrossChainRouteFilter,FfiConverterTypeCrossChainRoutePair,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeDeriveSeedsOutput,FfiConverterTypeDeriveSeedsRequest,FfiConverterTypeDomainAssociation,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeErrorKind,FfiConverterTypeExternalBreezSigner,FfiConverterTypeExternalClaimLeafInput,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostDerivation,FfiConverterTypeExternalFrostJob,FfiConverterTypeExternalFrostShareResult,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalNewLeafKey,FfiConverterTypeExternalOperatorPackage,FfiConverterTypeExternalOperatorRecipient,FfiConverterTypeExternalPrepareClaimRequest,FfiConverterTypeExternalPrepareLightningReceiveRequest,FfiConverterTypeExternalPrepareStaticDepositClaimRequest,FfiConverterTypeExternalPrepareStaticDepositRequest,FfiConverterTypeExternalPrepareTokenTransactionRequest,FfiConverterTypeExternalPrepareTransferRequest,FfiConverterTypeExternalPreparedClaim,FfiConverterTypeExternalPreparedLightningReceive,FfiConverterTypeExternalPreparedStaticDeposit,FfiConverterTypeExternalPreparedStaticDepositClaim,FfiConverterTypeExternalPreparedTokenTransaction,FfiConverterTypeExternalPreparedTransfer,FfiConverterTypeExternalSignSparkInvoiceRequest,FfiConverterTypeExternalSignStaticDepositRefundRequest,FfiConverterTypeExternalSignedSparkInvoice,FfiConverterTypeExternalSigners,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalSparkInvoiceKind,FfiConverterTypeExternalSparkSigner,FfiConverterTypeExternalStartStaticDepositRefundRequest,FfiConverterTypeExternalStartedStaticDepositRefund,FfiConverterTypeExternalTokenTransactionKind,FfiConverterTypeExternalTransferLeafInput,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeFee,FfiConverterTypeFeePolicy,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeLeafOptimizationConfig,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListContactsRequest,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlInfo,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationMode,FfiConverterTypeOptimizationOutcome,FfiConverterTypeOptimizeLeavesRequest,FfiConverterTypeOptimizeLeavesResponse,FfiConverterTypeOutgoingChange,FfiConverterTypePasskeyAvailability,FfiConverterTypePasskeyClient,FfiConverterTypePasskeyConfig,FfiConverterTypePasskeyCredential,FfiConverterTypePasskeyError,FfiConverterTypePasskeyLabels,FfiConverterTypePasskeyProviderOptions,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentIdUpdate,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentObserverError,FfiConverterTypePaymentRequest,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypePrfProvider,FfiConverterTypePrfProviderError,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKey,FfiConverterTypePublicKeyBytes,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRegisterRequest,FfiConverterTypeRegisterResponse,FfiConverterTypeRegisterWebhookRequest,FfiConverterTypeRegisterWebhookResponse,FfiConverterTypeResolvedStores,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkContext,FfiConverterTypeSdkContextConfig,FfiConverterTypeSdkError,FfiConverterTypeSdkEvent,FfiConverterTypeSecretBytes,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeServiceConnectivityError,FfiConverterTypeServiceStatus,FfiConverterTypeSession,FfiConverterTypeSessionStore,FfiConverterTypeSessionStoreError,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSetupWalletRequest,FfiConverterTypeSignInRequest,FfiConverterTypeSignInResponse,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSignerError,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSourceAsset,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkConfig,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeSparkSigningOperator,FfiConverterTypeSparkSspConfig,FfiConverterTypeSparkStatus,FfiConverterTypeStableBalanceActiveLabel,FfiConverterTypeStableBalanceConfig,FfiConverterTypeStableBalanceToken,FfiConverterTypeStorage,FfiConverterTypeStorageBackend,FfiConverterTypeStorageError,FfiConverterTypeStorageListPaymentsRequest,FfiConverterTypeStoragePaymentDetailsFilter,FfiConverterTypeStoredCrossChainSwap,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTokenOptimizationConfig,FfiConverterTypeTokenTransactionType,FfiConverterTypeTransferAuthorization,FfiConverterTypeTurnkeyConfig,FfiConverterTypeTurnkeyRetryConfig,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnregisterWebhookRequest,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateContactRequest,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeWallet,FfiConverterTypeWalletSetup,FfiConverterTypeWebhook,FfiConverterTypeWebhookEventType,FfiConverterTypeu128}});
4675
4948
  //# sourceMappingURL=breez_sdk_spark.js.map