@breeztech/breez-sdk-spark-react-native 0.6.6 → 0.7.0-dev1

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
2
2
  // Trust me, you don't want to mess with it!
3
- import nativeModule from"./breez_sdk_spark-ffi.js";import{AbstractFfiConverterByteArray,FfiConverterArray,FfiConverterArrayBuffer,FfiConverterBool,FfiConverterCallback,FfiConverterFloat64,FfiConverterInt32,FfiConverterMap,FfiConverterObject,FfiConverterObjectWithCallbacks,FfiConverterOptional,FfiConverterUInt16,FfiConverterUInt32,FfiConverterUInt64,FfiConverterUInt8,UniffiAbstractObject,UniffiEnum,UniffiError,UniffiInternalError,UniffiResult,UniffiRustCaller,destructorGuardSymbol,pointerLiteralSymbol,uniffiCreateFfiConverterString,uniffiCreateRecord,uniffiRustCallAsync,uniffiTraitInterfaceCall,uniffiTraitInterfaceCallAsync,uniffiTraitInterfaceCallAsyncWithError,uniffiTypeNameSymbol}from'uniffi-bindgen-react-native';// Get converters from the other files, if any.
3
+ import nativeModule from"./breez_sdk_spark-ffi.js";import{AbstractFfiConverterByteArray,FfiConverterArray,FfiConverterArrayBuffer,FfiConverterBool,FfiConverterCallback,FfiConverterFloat64,FfiConverterInt32,FfiConverterMap,FfiConverterObject,FfiConverterObjectWithCallbacks,FfiConverterOptional,FfiConverterUInt16,FfiConverterUInt32,FfiConverterUInt64,FfiConverterUInt8,UniffiAbstractObject,UniffiEnum,UniffiError,UniffiInternalError,UniffiResult,UniffiRustCaller,destructorGuardSymbol,pointerLiteralSymbol,uniffiCreateFfiConverterString,uniffiCreateRecord,uniffiRustCallAsync,uniffiTraitInterfaceCall,uniffiTraitInterfaceCallAsync,uniffiTraitInterfaceCallAsyncWithError,uniffiTraitInterfaceCallWithError,uniffiTypeNameSymbol}from'uniffi-bindgen-react-native';// Get converters from the other files, if any.
4
4
  const uniffiCaller=new UniffiRustCaller();const uniffiIsDebug=// @ts-ignore -- The process global might not be defined
5
5
  typeof process!=='object'||// @ts-ignore -- The process global might not be defined
6
6
  process?.env?.NODE_ENV!=='production'||false;// Public interface members begin here.
@@ -14,7 +14,36 @@ process?.env?.NODE_ENV!=='production'||false;// Public interface members begin h
14
14
  * # Returns
15
15
  *
16
16
  * Result containing either the initialized `BreezSdk` or an `SdkError`
17
- */export async function connect(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_func_connect(FfiConverterTypeConnectRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_pointer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_pointer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_pointer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_pointer,/*liftFunc:*/FfiConverterTypeBreezSdk.lift.bind(FfiConverterTypeBreezSdk),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}export function defaultConfig(network){return FfiConverterTypeConfig.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_default_config(FfiConverterTypeNetwork.lower(network),callStatus);},/*liftString:*/FfiConverterString.lift));}export function initLogging(logDir,appLogger,logFilter)/*throws*/{uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError),/*caller:*/callStatus=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_init_logging(FfiConverterOptionalString.lower(logDir),FfiConverterOptionalTypeLogger.lower(appLogger),FfiConverterOptionalString.lower(logFilter),callStatus);},/*liftString:*/FfiConverterString.lift);}/**
17
+ */export async function connect(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_func_connect(FfiConverterTypeConnectRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_pointer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_pointer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_pointer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_pointer,/*liftFunc:*/FfiConverterTypeBreezSdk.lift.bind(FfiConverterTypeBreezSdk),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
18
+ * Connects to the Spark network using an external signer.
19
+ *
20
+ * This method allows using a custom signer implementation instead of providing
21
+ * a seed directly.
22
+ *
23
+ * # Arguments
24
+ *
25
+ * * `request` - The connection request object with external signer
26
+ *
27
+ * # Returns
28
+ *
29
+ * Result containing either the initialized `BreezSdk` or an `SdkError`
30
+ */export async function connectWithSigner(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_func_connect_with_signer(FfiConverterTypeConnectWithSignerRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_pointer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_pointer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_pointer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_pointer,/*liftFunc:*/FfiConverterTypeBreezSdk.lift.bind(FfiConverterTypeBreezSdk),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}export function defaultConfig(network){return FfiConverterTypeConfig.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_default_config(FfiConverterTypeNetwork.lower(network),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
31
+ * Creates a default external signer from a mnemonic.
32
+ *
33
+ * This is a convenience factory method for creating a signer that can be used
34
+ * with `connect_with_signer` or `SdkBuilder::new_with_signer`.
35
+ *
36
+ * # Arguments
37
+ *
38
+ * * `mnemonic` - BIP39 mnemonic phrase (12 or 24 words)
39
+ * * `passphrase` - Optional passphrase for the mnemonic
40
+ * * `network` - Network to use (Mainnet or Regtest)
41
+ * * `key_set_config` - Optional key set configuration. If None, uses default configuration.
42
+ *
43
+ * # Returns
44
+ *
45
+ * Result containing the signer as `Arc<dyn ExternalSigner>`
46
+ */export function defaultExternalSigner(mnemonic,passphrase,network,keySetConfig)/*throws*/{return FfiConverterTypeExternalSigner.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_default_external_signer(FfiConverterString.lower(mnemonic),FfiConverterOptionalString.lower(passphrase),FfiConverterTypeNetwork.lower(network),FfiConverterOptionalTypeKeySetConfig.lower(keySetConfig),callStatus);},/*liftString:*/FfiConverterString.lift));}export function initLogging(logDir,appLogger,logFilter)/*throws*/{uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError),/*caller:*/callStatus=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_init_logging(FfiConverterOptionalString.lower(logDir),FfiConverterOptionalTypeLogger.lower(appLogger),FfiConverterOptionalString.lower(logFilter),callStatus);},/*liftString:*/FfiConverterString.lift);}/**
18
47
  * Trait for event listeners
19
48
  */// Put the implementation in a struct so we don't pollute the top-level namespace
20
49
  const uniffiCallbackInterfaceEventListener={// Create the VTable using a series of closures.
@@ -284,6 +313,20 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
284
313
  */new:create,/**
285
314
  * Defaults specified in the {@link breez_sdk_spark} crate.
286
315
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConnectRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{config:FfiConverterTypeConfig.read(from),seed:FfiConverterTypeSeed.read(from),storageDir:FfiConverterString.read(from)};}write(value,into){FfiConverterTypeConfig.write(value.config,into);FfiConverterTypeSeed.write(value.seed,into);FfiConverterString.write(value.storageDir,into);}allocationSize(value){return FfiConverterTypeConfig.allocationSize(value.config)+FfiConverterTypeSeed.allocationSize(value.seed)+FfiConverterString.allocationSize(value.storageDir);}}return new FFIConverter();})();/**
316
+ * Request object for connecting to the Spark network using an external signer.
317
+ *
318
+ * This allows using a custom signer implementation instead of providing a seed directly.
319
+ *//**
320
+ * Generated factory for {@link ConnectWithSignerRequest} record objects.
321
+ */export const ConnectWithSignerRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
322
+ * Create a frozen instance of {@link ConnectWithSignerRequest}, with defaults specified
323
+ * in Rust, in the {@link breez_sdk_spark} crate.
324
+ */create,/**
325
+ * Create a frozen instance of {@link ConnectWithSignerRequest}, with defaults specified
326
+ * in Rust, in the {@link breez_sdk_spark} crate.
327
+ */new:create,/**
328
+ * Defaults specified in the {@link breez_sdk_spark} crate.
329
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConnectWithSignerRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{config:FfiConverterTypeConfig.read(from),signer:FfiConverterTypeExternalSigner.read(from),storageDir:FfiConverterString.read(from)};}write(value,into){FfiConverterTypeConfig.write(value.config,into);FfiConverterTypeExternalSigner.write(value.signer,into);FfiConverterString.write(value.storageDir,into);}allocationSize(value){return FfiConverterTypeConfig.allocationSize(value.config)+FfiConverterTypeExternalSigner.allocationSize(value.signer)+FfiConverterString.allocationSize(value.storageDir);}}return new FFIConverter();})();/**
287
330
  * Generated factory for {@link CreateIssuerTokenRequest} record objects.
288
331
  */export const CreateIssuerTokenRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
289
332
  * Create a frozen instance of {@link CreateIssuerTokenRequest}, with defaults specified
@@ -326,6 +369,90 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
326
369
  */new:create,/**
327
370
  * Defaults specified in the {@link breez_sdk_spark} crate.
328
371
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeDepositInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),amountSats:FfiConverterUInt64.read(from),refundTx:FfiConverterOptionalString.read(from),refundTxId:FfiConverterOptionalString.read(from),claimError:FfiConverterOptionalTypeDepositClaimError.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);FfiConverterUInt32.write(value.vout,into);FfiConverterUInt64.write(value.amountSats,into);FfiConverterOptionalString.write(value.refundTx,into);FfiConverterOptionalString.write(value.refundTxId,into);FfiConverterOptionalTypeDepositClaimError.write(value.claimError,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterOptionalString.allocationSize(value.refundTx)+FfiConverterOptionalString.allocationSize(value.refundTxId)+FfiConverterOptionalTypeDepositClaimError.allocationSize(value.claimError);}}return new FFIConverter();})();/**
372
+ * FFI-safe representation of an ECDSA signature (64 bytes)
373
+ *//**
374
+ * Generated factory for {@link EcdsaSignatureBytes} record objects.
375
+ */export const EcdsaSignatureBytes=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
376
+ * Create a frozen instance of {@link EcdsaSignatureBytes}, with defaults specified
377
+ * in Rust, in the {@link breez_sdk_spark} crate.
378
+ */create,/**
379
+ * Create a frozen instance of {@link EcdsaSignatureBytes}, with defaults specified
380
+ * in Rust, in the {@link breez_sdk_spark} crate.
381
+ */new:create,/**
382
+ * Defaults specified in the {@link breez_sdk_spark} crate.
383
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeEcdsaSignatureBytes=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{bytes:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
384
+ * FFI-safe representation of `spark_wallet::AggregateFrostRequest`
385
+ *//**
386
+ * Generated factory for {@link ExternalAggregateFrostRequest} record objects.
387
+ */export const ExternalAggregateFrostRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
388
+ * Create a frozen instance of {@link ExternalAggregateFrostRequest}, with defaults specified
389
+ * in Rust, in the {@link breez_sdk_spark} crate.
390
+ */create,/**
391
+ * Create a frozen instance of {@link ExternalAggregateFrostRequest}, with defaults specified
392
+ * in Rust, in the {@link breez_sdk_spark} crate.
393
+ */new:create,/**
394
+ * Defaults specified in the {@link breez_sdk_spark} crate.
395
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalAggregateFrostRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{message:FfiConverterArrayBuffer.read(from),statechainSignatures:FfiConverterArrayTypeIdentifierSignaturePair.read(from),statechainPublicKeys:FfiConverterArrayTypeIdentifierPublicKeyPair.read(from),verifyingKey:FfiConverterArrayBuffer.read(from),statechainCommitments:FfiConverterArrayTypeIdentifierCommitmentPair.read(from),selfCommitment:FfiConverterTypeExternalSigningCommitments.read(from),publicKey:FfiConverterArrayBuffer.read(from),selfSignature:FfiConverterTypeExternalFrostSignatureShare.read(from),adaptorPublicKey:FfiConverterOptionalArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.message,into);FfiConverterArrayTypeIdentifierSignaturePair.write(value.statechainSignatures,into);FfiConverterArrayTypeIdentifierPublicKeyPair.write(value.statechainPublicKeys,into);FfiConverterArrayBuffer.write(value.verifyingKey,into);FfiConverterArrayTypeIdentifierCommitmentPair.write(value.statechainCommitments,into);FfiConverterTypeExternalSigningCommitments.write(value.selfCommitment,into);FfiConverterArrayBuffer.write(value.publicKey,into);FfiConverterTypeExternalFrostSignatureShare.write(value.selfSignature,into);FfiConverterOptionalArrayBuffer.write(value.adaptorPublicKey,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.message)+FfiConverterArrayTypeIdentifierSignaturePair.allocationSize(value.statechainSignatures)+FfiConverterArrayTypeIdentifierPublicKeyPair.allocationSize(value.statechainPublicKeys)+FfiConverterArrayBuffer.allocationSize(value.verifyingKey)+FfiConverterArrayTypeIdentifierCommitmentPair.allocationSize(value.statechainCommitments)+FfiConverterTypeExternalSigningCommitments.allocationSize(value.selfCommitment)+FfiConverterArrayBuffer.allocationSize(value.publicKey)+FfiConverterTypeExternalFrostSignatureShare.allocationSize(value.selfSignature)+FfiConverterOptionalArrayBuffer.allocationSize(value.adaptorPublicKey);}}return new FFIConverter();})();/**
396
+ * FFI-safe representation of `spark_wallet::EncryptedPrivateKey`
397
+ *//**
398
+ * Generated factory for {@link ExternalEncryptedPrivateKey} record objects.
399
+ */export const ExternalEncryptedPrivateKey=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
400
+ * Create a frozen instance of {@link ExternalEncryptedPrivateKey}, with defaults specified
401
+ * in Rust, in the {@link breez_sdk_spark} crate.
402
+ */create,/**
403
+ * Create a frozen instance of {@link ExternalEncryptedPrivateKey}, with defaults specified
404
+ * in Rust, in the {@link breez_sdk_spark} crate.
405
+ */new:create,/**
406
+ * Defaults specified in the {@link breez_sdk_spark} crate.
407
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalEncryptedPrivateKey=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{ciphertext:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.ciphertext,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.ciphertext);}}return new FFIConverter();})();/**
408
+ * FFI-safe representation of `spark_wallet::FrostSigningCommitmentsWithNonces`
409
+ *//**
410
+ * Generated factory for {@link ExternalFrostCommitments} record objects.
411
+ */export const ExternalFrostCommitments=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
412
+ * Create a frozen instance of {@link ExternalFrostCommitments}, with defaults specified
413
+ * in Rust, in the {@link breez_sdk_spark} crate.
414
+ */create,/**
415
+ * Create a frozen instance of {@link ExternalFrostCommitments}, with defaults specified
416
+ * in Rust, in the {@link breez_sdk_spark} crate.
417
+ */new:create,/**
418
+ * Defaults specified in the {@link breez_sdk_spark} crate.
419
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalFrostCommitments=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{hidingCommitment:FfiConverterArrayBuffer.read(from),bindingCommitment:FfiConverterArrayBuffer.read(from),noncesCiphertext:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.hidingCommitment,into);FfiConverterArrayBuffer.write(value.bindingCommitment,into);FfiConverterArrayBuffer.write(value.noncesCiphertext,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.hidingCommitment)+FfiConverterArrayBuffer.allocationSize(value.bindingCommitment)+FfiConverterArrayBuffer.allocationSize(value.noncesCiphertext);}}return new FFIConverter();})();/**
420
+ * FFI-safe representation of `frost_secp256k1_tr::Signature`
421
+ *//**
422
+ * Generated factory for {@link ExternalFrostSignature} record objects.
423
+ */export const ExternalFrostSignature=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
424
+ * Create a frozen instance of {@link ExternalFrostSignature}, with defaults specified
425
+ * in Rust, in the {@link breez_sdk_spark} crate.
426
+ */create,/**
427
+ * Create a frozen instance of {@link ExternalFrostSignature}, with defaults specified
428
+ * in Rust, in the {@link breez_sdk_spark} crate.
429
+ */new:create,/**
430
+ * Defaults specified in the {@link breez_sdk_spark} crate.
431
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalFrostSignature=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{bytes:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
432
+ * FFI-safe representation of `frost_secp256k1_tr::round2::SignatureShare`
433
+ *//**
434
+ * Generated factory for {@link ExternalFrostSignatureShare} record objects.
435
+ */export const ExternalFrostSignatureShare=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
436
+ * Create a frozen instance of {@link ExternalFrostSignatureShare}, with defaults specified
437
+ * in Rust, in the {@link breez_sdk_spark} crate.
438
+ */create,/**
439
+ * Create a frozen instance of {@link ExternalFrostSignatureShare}, with defaults specified
440
+ * in Rust, in the {@link breez_sdk_spark} crate.
441
+ */new:create,/**
442
+ * Defaults specified in the {@link breez_sdk_spark} crate.
443
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalFrostSignatureShare=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{bytes:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
444
+ * FFI-safe representation of `frost_secp256k1_tr::Identifier`
445
+ *//**
446
+ * Generated factory for {@link ExternalIdentifier} record objects.
447
+ */export const ExternalIdentifier=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
448
+ * Create a frozen instance of {@link ExternalIdentifier}, with defaults specified
449
+ * in Rust, in the {@link breez_sdk_spark} crate.
450
+ */create,/**
451
+ * Create a frozen instance of {@link ExternalIdentifier}, with defaults specified
452
+ * in Rust, in the {@link breez_sdk_spark} crate.
453
+ */new:create,/**
454
+ * Defaults specified in the {@link breez_sdk_spark} crate.
455
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalIdentifier=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{bytes:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
329
456
  * Configuration for an external input parser
330
457
  *//**
331
458
  * Generated factory for {@link ExternalInputParser} record objects.
@@ -338,6 +465,98 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
338
465
  */new:create,/**
339
466
  * Defaults specified in the {@link breez_sdk_spark} crate.
340
467
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalInputParser=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{providerId:FfiConverterString.read(from),inputRegex:FfiConverterString.read(from),parserUrl:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.providerId,into);FfiConverterString.write(value.inputRegex,into);FfiConverterString.write(value.parserUrl,into);}allocationSize(value){return FfiConverterString.allocationSize(value.providerId)+FfiConverterString.allocationSize(value.inputRegex)+FfiConverterString.allocationSize(value.parserUrl);}}return new FFIConverter();})();/**
468
+ * FFI-safe representation of `k256::Scalar` (32 bytes)
469
+ *//**
470
+ * Generated factory for {@link ExternalScalar} record objects.
471
+ */export const ExternalScalar=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
472
+ * Create a frozen instance of {@link ExternalScalar}, with defaults specified
473
+ * in Rust, in the {@link breez_sdk_spark} crate.
474
+ */create,/**
475
+ * Create a frozen instance of {@link ExternalScalar}, with defaults specified
476
+ * in Rust, in the {@link breez_sdk_spark} crate.
477
+ */new:create,/**
478
+ * Defaults specified in the {@link breez_sdk_spark} crate.
479
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalScalar=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{bytes:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
480
+ * FFI-safe representation of `spark_wallet::SecretShare`
481
+ *//**
482
+ * Generated factory for {@link ExternalSecretShare} record objects.
483
+ */export const ExternalSecretShare=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
484
+ * Create a frozen instance of {@link ExternalSecretShare}, with defaults specified
485
+ * in Rust, in the {@link breez_sdk_spark} crate.
486
+ */create,/**
487
+ * Create a frozen instance of {@link ExternalSecretShare}, with defaults specified
488
+ * in Rust, in the {@link breez_sdk_spark} crate.
489
+ */new:create,/**
490
+ * Defaults specified in the {@link breez_sdk_spark} crate.
491
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalSecretShare=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{threshold:FfiConverterUInt32.read(from),index:FfiConverterTypeExternalScalar.read(from),share:FfiConverterTypeExternalScalar.read(from)};}write(value,into){FfiConverterUInt32.write(value.threshold,into);FfiConverterTypeExternalScalar.write(value.index,into);FfiConverterTypeExternalScalar.write(value.share,into);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.threshold)+FfiConverterTypeExternalScalar.allocationSize(value.index)+FfiConverterTypeExternalScalar.allocationSize(value.share);}}return new FFIConverter();})();/**
492
+ * FFI-safe representation of `spark_wallet::SignFrostRequest`
493
+ *//**
494
+ * Generated factory for {@link ExternalSignFrostRequest} record objects.
495
+ */export const ExternalSignFrostRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
496
+ * Create a frozen instance of {@link ExternalSignFrostRequest}, with defaults specified
497
+ * in Rust, in the {@link breez_sdk_spark} crate.
498
+ */create,/**
499
+ * Create a frozen instance of {@link ExternalSignFrostRequest}, 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 FfiConverterTypeExternalSignFrostRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{message:FfiConverterArrayBuffer.read(from),publicKey:FfiConverterArrayBuffer.read(from),privateKey:FfiConverterTypeExternalPrivateKeySource.read(from),verifyingKey:FfiConverterArrayBuffer.read(from),selfNonceCommitment:FfiConverterTypeExternalFrostCommitments.read(from),statechainCommitments:FfiConverterArrayTypeIdentifierCommitmentPair.read(from),adaptorPublicKey:FfiConverterOptionalArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.message,into);FfiConverterArrayBuffer.write(value.publicKey,into);FfiConverterTypeExternalPrivateKeySource.write(value.privateKey,into);FfiConverterArrayBuffer.write(value.verifyingKey,into);FfiConverterTypeExternalFrostCommitments.write(value.selfNonceCommitment,into);FfiConverterArrayTypeIdentifierCommitmentPair.write(value.statechainCommitments,into);FfiConverterOptionalArrayBuffer.write(value.adaptorPublicKey,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.message)+FfiConverterArrayBuffer.allocationSize(value.publicKey)+FfiConverterTypeExternalPrivateKeySource.allocationSize(value.privateKey)+FfiConverterArrayBuffer.allocationSize(value.verifyingKey)+FfiConverterTypeExternalFrostCommitments.allocationSize(value.selfNonceCommitment)+FfiConverterArrayTypeIdentifierCommitmentPair.allocationSize(value.statechainCommitments)+FfiConverterOptionalArrayBuffer.allocationSize(value.adaptorPublicKey);}}return new FFIConverter();})();/**
504
+ * FFI-safe representation of `frost_secp256k1_tr::round1::SigningCommitments`
505
+ *//**
506
+ * Generated factory for {@link ExternalSigningCommitments} record objects.
507
+ */export const ExternalSigningCommitments=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
508
+ * Create a frozen instance of {@link ExternalSigningCommitments}, with defaults specified
509
+ * in Rust, in the {@link breez_sdk_spark} crate.
510
+ */create,/**
511
+ * Create a frozen instance of {@link ExternalSigningCommitments}, with defaults specified
512
+ * in Rust, in the {@link breez_sdk_spark} crate.
513
+ */new:create,/**
514
+ * Defaults specified in the {@link breez_sdk_spark} crate.
515
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalSigningCommitments=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{hiding:FfiConverterArrayBuffer.read(from),binding:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.hiding,into);FfiConverterArrayBuffer.write(value.binding,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.hiding)+FfiConverterArrayBuffer.allocationSize(value.binding);}}return new FFIConverter();})();/**
516
+ * FFI-safe representation of `spark_wallet::TreeNodeId`
517
+ *//**
518
+ * Generated factory for {@link ExternalTreeNodeId} record objects.
519
+ */export const ExternalTreeNodeId=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
520
+ * Create a frozen instance of {@link ExternalTreeNodeId}, with defaults specified
521
+ * in Rust, in the {@link breez_sdk_spark} crate.
522
+ */create,/**
523
+ * Create a frozen instance of {@link ExternalTreeNodeId}, with defaults specified
524
+ * in Rust, in the {@link breez_sdk_spark} crate.
525
+ */new:create,/**
526
+ * Defaults specified in the {@link breez_sdk_spark} crate.
527
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalTreeNodeId=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.id,into);}allocationSize(value){return FfiConverterString.allocationSize(value.id);}}return new FFIConverter();})();/**
528
+ * FFI-safe representation of `spark_wallet::VerifiableSecretShare`
529
+ *//**
530
+ * Generated factory for {@link ExternalVerifiableSecretShare} record objects.
531
+ */export const ExternalVerifiableSecretShare=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
532
+ * Create a frozen instance of {@link ExternalVerifiableSecretShare}, with defaults specified
533
+ * in Rust, in the {@link breez_sdk_spark} crate.
534
+ */create,/**
535
+ * Create a frozen instance of {@link ExternalVerifiableSecretShare}, with defaults specified
536
+ * in Rust, in the {@link breez_sdk_spark} crate.
537
+ */new:create,/**
538
+ * Defaults specified in the {@link breez_sdk_spark} crate.
539
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalVerifiableSecretShare=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{secretShare:FfiConverterTypeExternalSecretShare.read(from),proofs:FfiConverterArrayArrayBuffer.read(from)};}write(value,into){FfiConverterTypeExternalSecretShare.write(value.secretShare,into);FfiConverterArrayArrayBuffer.write(value.proofs,into);}allocationSize(value){return FfiConverterTypeExternalSecretShare.allocationSize(value.secretShare)+FfiConverterArrayArrayBuffer.allocationSize(value.proofs);}}return new FFIConverter();})();/**
540
+ * Generated factory for {@link FetchTokenConversionLimitsRequest} record objects.
541
+ */export const FetchTokenConversionLimitsRequest=(()=>{const defaults=()=>({tokenIdentifier:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
542
+ * Create a frozen instance of {@link FetchTokenConversionLimitsRequest}, with defaults specified
543
+ * in Rust, in the {@link breez_sdk_spark} crate.
544
+ */create,/**
545
+ * Create a frozen instance of {@link FetchTokenConversionLimitsRequest}, with defaults specified
546
+ * in Rust, in the {@link breez_sdk_spark} crate.
547
+ */new:create,/**
548
+ * Defaults specified in the {@link breez_sdk_spark} crate.
549
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeFetchTokenConversionLimitsRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{conversionType:FfiConverterTypeTokenConversionType.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterTypeTokenConversionType.write(value.conversionType,into);FfiConverterOptionalString.write(value.tokenIdentifier,into);}allocationSize(value){return FfiConverterTypeTokenConversionType.allocationSize(value.conversionType)+FfiConverterOptionalString.allocationSize(value.tokenIdentifier);}}return new FFIConverter();})();/**
550
+ * Generated factory for {@link FetchTokenConversionLimitsResponse} record objects.
551
+ */export const FetchTokenConversionLimitsResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
552
+ * Create a frozen instance of {@link FetchTokenConversionLimitsResponse}, with defaults specified
553
+ * in Rust, in the {@link breez_sdk_spark} crate.
554
+ */create,/**
555
+ * Create a frozen instance of {@link FetchTokenConversionLimitsResponse}, with defaults specified
556
+ * in Rust, in the {@link breez_sdk_spark} crate.
557
+ */new:create,/**
558
+ * Defaults specified in the {@link breez_sdk_spark} crate.
559
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeFetchTokenConversionLimitsResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{minFromAmount:FfiConverterOptionalTypeu128.read(from),minToAmount:FfiConverterOptionalTypeu128.read(from)};}write(value,into){FfiConverterOptionalTypeu128.write(value.minFromAmount,into);FfiConverterOptionalTypeu128.write(value.minToAmount,into);}allocationSize(value){return FfiConverterOptionalTypeu128.allocationSize(value.minFromAmount)+FfiConverterOptionalTypeu128.allocationSize(value.minToAmount);}}return new FFIConverter();})();/**
341
560
  * Wrapper around the [`CurrencyInfo`] of a fiat currency
342
561
  *//**
343
562
  * Generated factory for {@link FiatCurrency} record objects.
@@ -434,6 +653,42 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
434
653
  */new:create,/**
435
654
  * Defaults specified in the {@link breez_sdk_spark} crate.
436
655
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeGetTokensMetadataResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{tokensMetadata:FfiConverterArrayTypeTokenMetadata.read(from)};}write(value,into){FfiConverterArrayTypeTokenMetadata.write(value.tokensMetadata,into);}allocationSize(value){return FfiConverterArrayTypeTokenMetadata.allocationSize(value.tokensMetadata);}}return new FFIConverter();})();/**
656
+ * FFI-safe wrapper for (Identifier, `SigningCommitments`) pair
657
+ *//**
658
+ * Generated factory for {@link IdentifierCommitmentPair} record objects.
659
+ */export const IdentifierCommitmentPair=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
660
+ * Create a frozen instance of {@link IdentifierCommitmentPair}, with defaults specified
661
+ * in Rust, in the {@link breez_sdk_spark} crate.
662
+ */create,/**
663
+ * Create a frozen instance of {@link IdentifierCommitmentPair}, with defaults specified
664
+ * in Rust, in the {@link breez_sdk_spark} crate.
665
+ */new:create,/**
666
+ * Defaults specified in the {@link breez_sdk_spark} crate.
667
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeIdentifierCommitmentPair=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{identifier:FfiConverterTypeExternalIdentifier.read(from),commitment:FfiConverterTypeExternalSigningCommitments.read(from)};}write(value,into){FfiConverterTypeExternalIdentifier.write(value.identifier,into);FfiConverterTypeExternalSigningCommitments.write(value.commitment,into);}allocationSize(value){return FfiConverterTypeExternalIdentifier.allocationSize(value.identifier)+FfiConverterTypeExternalSigningCommitments.allocationSize(value.commitment);}}return new FFIConverter();})();/**
668
+ * FFI-safe wrapper for (Identifier, `PublicKey`) pair
669
+ *//**
670
+ * Generated factory for {@link IdentifierPublicKeyPair} record objects.
671
+ */export const IdentifierPublicKeyPair=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
672
+ * Create a frozen instance of {@link IdentifierPublicKeyPair}, with defaults specified
673
+ * in Rust, in the {@link breez_sdk_spark} crate.
674
+ */create,/**
675
+ * Create a frozen instance of {@link IdentifierPublicKeyPair}, with defaults specified
676
+ * in Rust, in the {@link breez_sdk_spark} crate.
677
+ */new:create,/**
678
+ * Defaults specified in the {@link breez_sdk_spark} crate.
679
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeIdentifierPublicKeyPair=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{identifier:FfiConverterTypeExternalIdentifier.read(from),publicKey:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterTypeExternalIdentifier.write(value.identifier,into);FfiConverterArrayBuffer.write(value.publicKey,into);}allocationSize(value){return FfiConverterTypeExternalIdentifier.allocationSize(value.identifier)+FfiConverterArrayBuffer.allocationSize(value.publicKey);}}return new FFIConverter();})();/**
680
+ * FFI-safe wrapper for (Identifier, `SignatureShare`) pair
681
+ *//**
682
+ * Generated factory for {@link IdentifierSignaturePair} record objects.
683
+ */export const IdentifierSignaturePair=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
684
+ * Create a frozen instance of {@link IdentifierSignaturePair}, with defaults specified
685
+ * in Rust, in the {@link breez_sdk_spark} crate.
686
+ */create,/**
687
+ * Create a frozen instance of {@link IdentifierSignaturePair}, with defaults specified
688
+ * in Rust, in the {@link breez_sdk_spark} crate.
689
+ */new:create,/**
690
+ * Defaults specified in the {@link breez_sdk_spark} crate.
691
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeIdentifierSignaturePair=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{identifier:FfiConverterTypeExternalIdentifier.read(from),signature:FfiConverterTypeExternalFrostSignatureShare.read(from)};}write(value,into){FfiConverterTypeExternalIdentifier.write(value.identifier,into);FfiConverterTypeExternalFrostSignatureShare.write(value.signature,into);}allocationSize(value){return FfiConverterTypeExternalIdentifier.allocationSize(value.identifier)+FfiConverterTypeExternalFrostSignatureShare.allocationSize(value.signature);}}return new FFIConverter();})();/**
437
692
  * Generated factory for {@link IncomingChange} record objects.
438
693
  */export const IncomingChange=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
439
694
  * Create a frozen instance of {@link IncomingChange}, with defaults specified
@@ -444,6 +699,20 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
444
699
  */new:create,/**
445
700
  * Defaults specified in the {@link breez_sdk_spark} crate.
446
701
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeIncomingChange=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{newState:FfiConverterTypeRecord.read(from),oldState:FfiConverterOptionalTypeRecord.read(from)};}write(value,into){FfiConverterTypeRecord.write(value.newState,into);FfiConverterOptionalTypeRecord.write(value.oldState,into);}allocationSize(value){return FfiConverterTypeRecord.allocationSize(value.newState)+FfiConverterOptionalTypeRecord.allocationSize(value.oldState);}}return new FFIConverter();})();/**
702
+ * Configuration for key set derivation.
703
+ *
704
+ * This struct encapsulates the parameters needed for BIP32 key derivation.
705
+ *//**
706
+ * Generated factory for {@link KeySetConfig} record objects.
707
+ */export const KeySetConfig=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
708
+ * Create a frozen instance of {@link KeySetConfig}, with defaults specified
709
+ * in Rust, in the {@link breez_sdk_spark} crate.
710
+ */create,/**
711
+ * Create a frozen instance of {@link KeySetConfig}, with defaults specified
712
+ * in Rust, in the {@link breez_sdk_spark} crate.
713
+ */new:create,/**
714
+ * Defaults specified in the {@link breez_sdk_spark} crate.
715
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeKeySetConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{keySetType:FfiConverterTypeKeySetType.read(from),useAddressIndex:FfiConverterBool.read(from),accountNumber:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterTypeKeySetType.write(value.keySetType,into);FfiConverterBool.write(value.useAddressIndex,into);FfiConverterOptionalUInt32.write(value.accountNumber,into);}allocationSize(value){return FfiConverterTypeKeySetType.allocationSize(value.keySetType)+FfiConverterBool.allocationSize(value.useAddressIndex)+FfiConverterOptionalUInt32.allocationSize(value.accountNumber);}}return new FFIConverter();})();/**
447
716
  * Generated factory for {@link LightningAddressDetails} record objects.
448
717
  */export const LightningAddressDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
449
718
  * Create a frozen instance of {@link LightningAddressDetails}, with defaults specified
@@ -491,7 +760,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
491
760
  * Request to list payments with optional filters and pagination
492
761
  *//**
493
762
  * Generated factory for {@link ListPaymentsRequest} record objects.
494
- */export const ListPaymentsRequest=(()=>{const defaults=()=>({typeFilter:undefined,statusFilter:undefined,assetFilter:undefined,sparkHtlcStatusFilter:undefined,fromTimestamp:undefined,toTimestamp:undefined,offset:undefined,limit:undefined,sortAscending:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
763
+ */export const ListPaymentsRequest=(()=>{const defaults=()=>({typeFilter:undefined,statusFilter:undefined,assetFilter:undefined,paymentDetailsFilter:undefined,fromTimestamp:undefined,toTimestamp:undefined,offset:undefined,limit:undefined,sortAscending:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
495
764
  * Create a frozen instance of {@link ListPaymentsRequest}, with defaults specified
496
765
  * in Rust, in the {@link breez_sdk_spark} crate.
497
766
  */create,/**
@@ -499,7 +768,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
499
768
  * in Rust, in the {@link breez_sdk_spark} crate.
500
769
  */new:create,/**
501
770
  * Defaults specified in the {@link breez_sdk_spark} crate.
502
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeListPaymentsRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{typeFilter:FfiConverterOptionalArrayTypePaymentType.read(from),statusFilter:FfiConverterOptionalArrayTypePaymentStatus.read(from),assetFilter:FfiConverterOptionalTypeAssetFilter.read(from),sparkHtlcStatusFilter:FfiConverterOptionalArrayTypeSparkHtlcStatus.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);FfiConverterOptionalArrayTypeSparkHtlcStatus.write(value.sparkHtlcStatusFilter,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)+FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(value.sparkHtlcStatusFilter)+FfiConverterOptionalUInt64.allocationSize(value.fromTimestamp)+FfiConverterOptionalUInt64.allocationSize(value.toTimestamp)+FfiConverterOptionalUInt32.allocationSize(value.offset)+FfiConverterOptionalUInt32.allocationSize(value.limit)+FfiConverterOptionalBool.allocationSize(value.sortAscending);}}return new FFIConverter();})();/**
771
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeListPaymentsRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{typeFilter:FfiConverterOptionalArrayTypePaymentType.read(from),statusFilter:FfiConverterOptionalArrayTypePaymentStatus.read(from),assetFilter:FfiConverterOptionalTypeAssetFilter.read(from),paymentDetailsFilter:FfiConverterOptionalArrayTypePaymentDetailsFilter.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);FfiConverterOptionalArrayTypePaymentDetailsFilter.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)+FfiConverterOptionalArrayTypePaymentDetailsFilter.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();})();/**
503
772
  * Response from listing payments
504
773
  *//**
505
774
  * Generated factory for {@link ListPaymentsResponse} record objects.
@@ -749,7 +1018,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
749
1018
  * in Rust, in the {@link breez_sdk_spark} crate.
750
1019
  */new:create,/**
751
1020
  * Defaults specified in the {@link breez_sdk_spark} crate.
752
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePaymentMetadata=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{lnurlPayInfo:FfiConverterOptionalTypeLnurlPayInfo.read(from),lnurlWithdrawInfo:FfiConverterOptionalTypeLnurlWithdrawInfo.read(from),lnurlDescription:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterOptionalTypeLnurlPayInfo.write(value.lnurlPayInfo,into);FfiConverterOptionalTypeLnurlWithdrawInfo.write(value.lnurlWithdrawInfo,into);FfiConverterOptionalString.write(value.lnurlDescription,into);}allocationSize(value){return FfiConverterOptionalTypeLnurlPayInfo.allocationSize(value.lnurlPayInfo)+FfiConverterOptionalTypeLnurlWithdrawInfo.allocationSize(value.lnurlWithdrawInfo)+FfiConverterOptionalString.allocationSize(value.lnurlDescription);}}return new FFIConverter();})();/**
1021
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePaymentMetadata=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{parentPaymentId:FfiConverterOptionalString.read(from),lnurlPayInfo:FfiConverterOptionalTypeLnurlPayInfo.read(from),lnurlWithdrawInfo:FfiConverterOptionalTypeLnurlWithdrawInfo.read(from),lnurlDescription:FfiConverterOptionalString.read(from),tokenConversionInfo:FfiConverterOptionalTypeTokenConversionInfo.read(from)};}write(value,into){FfiConverterOptionalString.write(value.parentPaymentId,into);FfiConverterOptionalTypeLnurlPayInfo.write(value.lnurlPayInfo,into);FfiConverterOptionalTypeLnurlWithdrawInfo.write(value.lnurlWithdrawInfo,into);FfiConverterOptionalString.write(value.lnurlDescription,into);FfiConverterOptionalTypeTokenConversionInfo.write(value.tokenConversionInfo,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.parentPaymentId)+FfiConverterOptionalTypeLnurlPayInfo.allocationSize(value.lnurlPayInfo)+FfiConverterOptionalTypeLnurlWithdrawInfo.allocationSize(value.lnurlWithdrawInfo)+FfiConverterOptionalString.allocationSize(value.lnurlDescription)+FfiConverterOptionalTypeTokenConversionInfo.allocationSize(value.tokenConversionInfo);}}return new FFIConverter();})();/**
753
1022
  * Generated factory for {@link PaymentRequestSource} record objects.
754
1023
  */export const PaymentRequestSource=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
755
1024
  * Create a frozen instance of {@link PaymentRequestSource}, with defaults specified
@@ -781,7 +1050,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
781
1050
  * Defaults specified in the {@link breez_sdk_spark} crate.
782
1051
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareLnurlPayResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{amountSats:FfiConverterUInt64.read(from),comment:FfiConverterOptionalString.read(from),payRequest:FfiConverterTypeLnurlPayRequestDetails.read(from),feeSats:FfiConverterUInt64.read(from),invoiceDetails:FfiConverterTypeBolt11InvoiceDetails.read(from),successAction:FfiConverterOptionalTypeSuccessAction.read(from)};}write(value,into){FfiConverterUInt64.write(value.amountSats,into);FfiConverterOptionalString.write(value.comment,into);FfiConverterTypeLnurlPayRequestDetails.write(value.payRequest,into);FfiConverterUInt64.write(value.feeSats,into);FfiConverterTypeBolt11InvoiceDetails.write(value.invoiceDetails,into);FfiConverterOptionalTypeSuccessAction.write(value.successAction,into);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterOptionalString.allocationSize(value.comment)+FfiConverterTypeLnurlPayRequestDetails.allocationSize(value.payRequest)+FfiConverterUInt64.allocationSize(value.feeSats)+FfiConverterTypeBolt11InvoiceDetails.allocationSize(value.invoiceDetails)+FfiConverterOptionalTypeSuccessAction.allocationSize(value.successAction);}}return new FFIConverter();})();/**
783
1052
  * Generated factory for {@link PrepareSendPaymentRequest} record objects.
784
- */export const PrepareSendPaymentRequest=(()=>{const defaults=()=>({amount:undefined,tokenIdentifier:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1053
+ */export const PrepareSendPaymentRequest=(()=>{const defaults=()=>({amount:undefined,tokenIdentifier:undefined,tokenConversionOptions:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
785
1054
  * Create a frozen instance of {@link PrepareSendPaymentRequest}, with defaults specified
786
1055
  * in Rust, in the {@link breez_sdk_spark} crate.
787
1056
  */create,/**
@@ -789,7 +1058,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
789
1058
  * in Rust, in the {@link breez_sdk_spark} crate.
790
1059
  */new:create,/**
791
1060
  * Defaults specified in the {@link breez_sdk_spark} crate.
792
- */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)};}write(value,into){FfiConverterString.write(value.paymentRequest,into);FfiConverterOptionalTypeu128.write(value.amount,into);FfiConverterOptionalString.write(value.tokenIdentifier,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentRequest)+FfiConverterOptionalTypeu128.allocationSize(value.amount)+FfiConverterOptionalString.allocationSize(value.tokenIdentifier);}}return new FFIConverter();})();/**
1061
+ */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),tokenConversionOptions:FfiConverterOptionalTypeTokenConversionOptions.read(from)};}write(value,into){FfiConverterString.write(value.paymentRequest,into);FfiConverterOptionalTypeu128.write(value.amount,into);FfiConverterOptionalString.write(value.tokenIdentifier,into);FfiConverterOptionalTypeTokenConversionOptions.write(value.tokenConversionOptions,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentRequest)+FfiConverterOptionalTypeu128.allocationSize(value.amount)+FfiConverterOptionalString.allocationSize(value.tokenIdentifier)+FfiConverterOptionalTypeTokenConversionOptions.allocationSize(value.tokenConversionOptions);}}return new FFIConverter();})();/**
793
1062
  * Generated factory for {@link PrepareSendPaymentResponse} record objects.
794
1063
  */export const PrepareSendPaymentResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
795
1064
  * Create a frozen instance of {@link PrepareSendPaymentResponse}, with defaults specified
@@ -799,7 +1068,19 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
799
1068
  * in Rust, in the {@link breez_sdk_spark} crate.
800
1069
  */new:create,/**
801
1070
  * Defaults specified in the {@link breez_sdk_spark} crate.
802
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareSendPaymentResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentMethod:FfiConverterTypeSendPaymentMethod.read(from),amount:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterTypeSendPaymentMethod.write(value.paymentMethod,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterOptionalString.write(value.tokenIdentifier,into);}allocationSize(value){return FfiConverterTypeSendPaymentMethod.allocationSize(value.paymentMethod)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterOptionalString.allocationSize(value.tokenIdentifier);}}return new FFIConverter();})();/**
1071
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareSendPaymentResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentMethod:FfiConverterTypeSendPaymentMethod.read(from),amount:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),tokenConversionOptions:FfiConverterOptionalTypeTokenConversionOptions.read(from),tokenConversionFee:FfiConverterOptionalTypeu128.read(from)};}write(value,into){FfiConverterTypeSendPaymentMethod.write(value.paymentMethod,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterOptionalString.write(value.tokenIdentifier,into);FfiConverterOptionalTypeTokenConversionOptions.write(value.tokenConversionOptions,into);FfiConverterOptionalTypeu128.write(value.tokenConversionFee,into);}allocationSize(value){return FfiConverterTypeSendPaymentMethod.allocationSize(value.paymentMethod)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterOptionalString.allocationSize(value.tokenIdentifier)+FfiConverterOptionalTypeTokenConversionOptions.allocationSize(value.tokenConversionOptions)+FfiConverterOptionalTypeu128.allocationSize(value.tokenConversionFee);}}return new FFIConverter();})();/**
1072
+ * FFI-safe representation of a private key (32 bytes)
1073
+ *//**
1074
+ * Generated factory for {@link PrivateKeyBytes} record objects.
1075
+ */export const PrivateKeyBytes=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1076
+ * Create a frozen instance of {@link PrivateKeyBytes}, with defaults specified
1077
+ * in Rust, in the {@link breez_sdk_spark} crate.
1078
+ */create,/**
1079
+ * Create a frozen instance of {@link PrivateKeyBytes}, with defaults specified
1080
+ * in Rust, in the {@link breez_sdk_spark} crate.
1081
+ */new:create,/**
1082
+ * Defaults specified in the {@link breez_sdk_spark} crate.
1083
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrivateKeyBytes=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{bytes:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
803
1084
  * Generated factory for {@link ProvisionalPayment} record objects.
804
1085
  */export const ProvisionalPayment=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
805
1086
  * Create a frozen instance of {@link ProvisionalPayment}, with defaults specified
@@ -810,6 +1091,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
810
1091
  */new:create,/**
811
1092
  * Defaults specified in the {@link breez_sdk_spark} crate.
812
1093
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeProvisionalPayment=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentId:FfiConverterString.read(from),amount:FfiConverterTypeu128.read(from),details:FfiConverterTypeProvisionalPaymentDetails.read(from)};}write(value,into){FfiConverterString.write(value.paymentId,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterTypeProvisionalPaymentDetails.write(value.details,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentId)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterTypeProvisionalPaymentDetails.allocationSize(value.details);}}return new FFIConverter();})();/**
1094
+ * FFI-safe representation of a secp256k1 public key (33 bytes compressed)
1095
+ *//**
1096
+ * Generated factory for {@link PublicKeyBytes} record objects.
1097
+ */export const PublicKeyBytes=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1098
+ * Create a frozen instance of {@link PublicKeyBytes}, with defaults specified
1099
+ * in Rust, in the {@link breez_sdk_spark} crate.
1100
+ */create,/**
1101
+ * Create a frozen instance of {@link PublicKeyBytes}, with defaults specified
1102
+ * in Rust, in the {@link breez_sdk_spark} crate.
1103
+ */new:create,/**
1104
+ * Defaults specified in the {@link breez_sdk_spark} crate.
1105
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePublicKeyBytes=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{bytes:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
813
1106
  * Denominator in an exchange rate
814
1107
  *//**
815
1108
  * Generated factory for {@link Rate} record objects.
@@ -882,6 +1175,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
882
1175
  */new:create,/**
883
1176
  * Defaults specified in the {@link breez_sdk_spark} crate.
884
1177
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRecordId=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{type:FfiConverterString.read(from),dataId:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.type,into);FfiConverterString.write(value.dataId,into);}allocationSize(value){return FfiConverterString.allocationSize(value.type)+FfiConverterString.allocationSize(value.dataId);}}return new FFIConverter();})();/**
1178
+ * FFI-safe representation of a recoverable ECDSA signature (65 bytes: 1 recovery byte + 64 signature bytes)
1179
+ *//**
1180
+ * Generated factory for {@link RecoverableEcdsaSignatureBytes} record objects.
1181
+ */export const RecoverableEcdsaSignatureBytes=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1182
+ * Create a frozen instance of {@link RecoverableEcdsaSignatureBytes}, with defaults specified
1183
+ * in Rust, in the {@link breez_sdk_spark} crate.
1184
+ */create,/**
1185
+ * Create a frozen instance of {@link RecoverableEcdsaSignatureBytes}, with defaults specified
1186
+ * in Rust, in the {@link breez_sdk_spark} crate.
1187
+ */new:create,/**
1188
+ * Defaults specified in the {@link breez_sdk_spark} crate.
1189
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRecoverableEcdsaSignatureBytes=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{bytes:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
885
1190
  * Generated factory for {@link RefundDepositRequest} record objects.
886
1191
  */export const RefundDepositRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
887
1192
  * Create a frozen instance of {@link RefundDepositRequest}, with defaults specified
@@ -922,6 +1227,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
922
1227
  */new:create,/**
923
1228
  * Defaults specified in the {@link breez_sdk_spark} crate.
924
1229
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRestResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{status:FfiConverterUInt16.read(from),body:FfiConverterString.read(from)};}write(value,into){FfiConverterUInt16.write(value.status,into);FfiConverterString.write(value.body,into);}allocationSize(value){return FfiConverterUInt16.allocationSize(value.status)+FfiConverterString.allocationSize(value.body);}}return new FFIConverter();})();/**
1230
+ * FFI-safe representation of a Schnorr signature (64 bytes)
1231
+ *//**
1232
+ * Generated factory for {@link SchnorrSignatureBytes} record objects.
1233
+ */export const SchnorrSignatureBytes=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1234
+ * Create a frozen instance of {@link SchnorrSignatureBytes}, with defaults specified
1235
+ * in Rust, in the {@link breez_sdk_spark} crate.
1236
+ */create,/**
1237
+ * Create a frozen instance of {@link SchnorrSignatureBytes}, with defaults specified
1238
+ * in Rust, in the {@link breez_sdk_spark} crate.
1239
+ */new:create,/**
1240
+ * Defaults specified in the {@link breez_sdk_spark} crate.
1241
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSchnorrSignatureBytes=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{bytes:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
925
1242
  * Generated factory for {@link SendOnchainFeeQuote} record objects.
926
1243
  */export const SendOnchainFeeQuote=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
927
1244
  * Create a frozen instance of {@link SendOnchainFeeQuote}, with defaults specified
@@ -1098,6 +1415,30 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1098
1415
  */new:create,/**
1099
1416
  * Defaults specified in the {@link breez_sdk_spark} crate.
1100
1417
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeTokenBalance=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{balance:FfiConverterTypeu128.read(from),tokenMetadata:FfiConverterTypeTokenMetadata.read(from)};}write(value,into){FfiConverterTypeu128.write(value.balance,into);FfiConverterTypeTokenMetadata.write(value.tokenMetadata,into);}allocationSize(value){return FfiConverterTypeu128.allocationSize(value.balance)+FfiConverterTypeTokenMetadata.allocationSize(value.tokenMetadata);}}return new FFIConverter();})();/**
1418
+ * Generated factory for {@link TokenConversionInfo} record objects.
1419
+ */export const TokenConversionInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1420
+ * Create a frozen instance of {@link TokenConversionInfo}, with defaults specified
1421
+ * in Rust, in the {@link breez_sdk_spark} crate.
1422
+ */create,/**
1423
+ * Create a frozen instance of {@link TokenConversionInfo}, with defaults specified
1424
+ * in Rust, in the {@link breez_sdk_spark} crate.
1425
+ */new:create,/**
1426
+ * Defaults specified in the {@link breez_sdk_spark} crate.
1427
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeTokenConversionInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{poolId:FfiConverterString.read(from),paymentId:FfiConverterOptionalString.read(from),fee:FfiConverterOptionalTypeu128.read(from),refundIdentifier:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterString.write(value.poolId,into);FfiConverterOptionalString.write(value.paymentId,into);FfiConverterOptionalTypeu128.write(value.fee,into);FfiConverterOptionalString.write(value.refundIdentifier,into);}allocationSize(value){return FfiConverterString.allocationSize(value.poolId)+FfiConverterOptionalString.allocationSize(value.paymentId)+FfiConverterOptionalTypeu128.allocationSize(value.fee)+FfiConverterOptionalString.allocationSize(value.refundIdentifier);}}return new FFIConverter();})();/**
1428
+ * Options for token conversion when fulfilling a payment. When set, the SDK will
1429
+ * perform a token conversion before fulfilling the payment. If not set, the payment
1430
+ * will only be fulfilled if the wallet has sufficient balance of the required asset.
1431
+ *//**
1432
+ * Generated factory for {@link TokenConversionOptions} record objects.
1433
+ */export const TokenConversionOptions=(()=>{const defaults=()=>({maxSlippageBps:undefined,completionTimeoutSecs:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1434
+ * Create a frozen instance of {@link TokenConversionOptions}, with defaults specified
1435
+ * in Rust, in the {@link breez_sdk_spark} crate.
1436
+ */create,/**
1437
+ * Create a frozen instance of {@link TokenConversionOptions}, with defaults specified
1438
+ * in Rust, in the {@link breez_sdk_spark} crate.
1439
+ */new:create,/**
1440
+ * Defaults specified in the {@link breez_sdk_spark} crate.
1441
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeTokenConversionOptions=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{conversionType:FfiConverterTypeTokenConversionType.read(from),maxSlippageBps:FfiConverterOptionalUInt32.read(from),completionTimeoutSecs:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterTypeTokenConversionType.write(value.conversionType,into);FfiConverterOptionalUInt32.write(value.maxSlippageBps,into);FfiConverterOptionalUInt32.write(value.completionTimeoutSecs,into);}allocationSize(value){return FfiConverterTypeTokenConversionType.allocationSize(value.conversionType)+FfiConverterOptionalUInt32.allocationSize(value.maxSlippageBps)+FfiConverterOptionalUInt32.allocationSize(value.completionTimeoutSecs);}}return new FFIConverter();})();/**
1101
1442
  * Generated factory for {@link TokenMetadata} record objects.
1102
1443
  */export const TokenMetadata=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1103
1444
  * Create a frozen instance of {@link TokenMetadata}, with defaults specified
@@ -1255,7 +1596,41 @@ export let DepositClaimError_Tags=/*#__PURE__*/function(DepositClaimError_Tags){
1255
1596
  * This field is private and should not be used, use `tag` instead.
1256
1597
  */[uniffiTypeNameSymbol]='DepositClaimError';tag=DepositClaimError_Tags.Generic;constructor(inner){super('DepositClaimError','Generic');this.inner=Object.freeze(inner);}static new(inner){return new Generic_(inner);}static instanceOf(obj){return obj.tag===DepositClaimError_Tags.Generic;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='DepositClaimError';}return Object.freeze({instanceOf,MaxDepositClaimFeeExceeded:MaxDepositClaimFeeExceeded_,MissingUtxo:MissingUtxo_,Generic:Generic_});})();// FfiConverter for enum DepositClaimError
1257
1598
  const FfiConverterTypeDepositClaimError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new DepositClaimError.MaxDepositClaimFeeExceeded({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),maxFee:FfiConverterOptionalTypeFee.read(from),requiredFeeSats:FfiConverterUInt64.read(from),requiredFeeRateSatPerVbyte:FfiConverterUInt64.read(from)});case 2:return new DepositClaimError.MissingUtxo({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});case 3:return new DepositClaimError.Generic({message:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case DepositClaimError_Tags.MaxDepositClaimFeeExceeded:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterOptionalTypeFee.write(inner.maxFee,into);FfiConverterUInt64.write(inner.requiredFeeSats,into);FfiConverterUInt64.write(inner.requiredFeeRateSatPerVbyte,into);return;}case DepositClaimError_Tags.MissingUtxo:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);return;}case DepositClaimError_Tags.Generic:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.message,into);return;}default:// Throwing from here means that DepositClaimError_Tags hasn't matched an ordinal.
1258
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case DepositClaimError_Tags.MaxDepositClaimFeeExceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterOptionalTypeFee.allocationSize(inner.maxFee);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeSats);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeRateSatPerVbyte);return size;}case DepositClaimError_Tags.MissingUtxo:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case DepositClaimError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.message);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Fee
1599
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case DepositClaimError_Tags.MaxDepositClaimFeeExceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterOptionalTypeFee.allocationSize(inner.maxFee);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeSats);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeRateSatPerVbyte);return size;}case DepositClaimError_Tags.MissingUtxo:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case DepositClaimError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.message);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ExternalPrivateKeySource
1600
+ export let ExternalPrivateKeySource_Tags=/*#__PURE__*/function(ExternalPrivateKeySource_Tags){ExternalPrivateKeySource_Tags["Derived"]="Derived";ExternalPrivateKeySource_Tags["Encrypted"]="Encrypted";return ExternalPrivateKeySource_Tags;}({});/**
1601
+ * FFI-safe representation of `spark_wallet::PrivateKeySource`
1602
+ */export const ExternalPrivateKeySource=(()=>{/**
1603
+ * Private key derived from a tree node
1604
+ */class Derived_ extends UniffiEnum{/**
1605
+ * @private
1606
+ * This field is private and should not be used, use `tag` instead.
1607
+ */[uniffiTypeNameSymbol]='ExternalPrivateKeySource';tag=ExternalPrivateKeySource_Tags.Derived;constructor(inner){super('ExternalPrivateKeySource','Derived');this.inner=Object.freeze(inner);}static new(inner){return new Derived_(inner);}static instanceOf(obj){return obj.tag===ExternalPrivateKeySource_Tags.Derived;}}/**
1608
+ * Encrypted private key
1609
+ */class Encrypted_ extends UniffiEnum{/**
1610
+ * @private
1611
+ * This field is private and should not be used, use `tag` instead.
1612
+ */[uniffiTypeNameSymbol]='ExternalPrivateKeySource';tag=ExternalPrivateKeySource_Tags.Encrypted;constructor(inner){super('ExternalPrivateKeySource','Encrypted');this.inner=Object.freeze(inner);}static new(inner){return new Encrypted_(inner);}static instanceOf(obj){return obj.tag===ExternalPrivateKeySource_Tags.Encrypted;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ExternalPrivateKeySource';}return Object.freeze({instanceOf,Derived:Derived_,Encrypted:Encrypted_});})();/**
1613
+ * FFI-safe representation of `spark_wallet::PrivateKeySource`
1614
+ */// FfiConverter for enum ExternalPrivateKeySource
1615
+ const FfiConverterTypeExternalPrivateKeySource=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ExternalPrivateKeySource.Derived({nodeId:FfiConverterTypeExternalTreeNodeId.read(from)});case 2:return new ExternalPrivateKeySource.Encrypted({key:FfiConverterTypeExternalEncryptedPrivateKey.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ExternalPrivateKeySource_Tags.Derived:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeExternalTreeNodeId.write(inner.nodeId,into);return;}case ExternalPrivateKeySource_Tags.Encrypted:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeExternalEncryptedPrivateKey.write(inner.key,into);return;}default:// Throwing from here means that ExternalPrivateKeySource_Tags hasn't matched an ordinal.
1616
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ExternalPrivateKeySource_Tags.Derived:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeExternalTreeNodeId.allocationSize(inner.nodeId);return size;}case ExternalPrivateKeySource_Tags.Encrypted:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeExternalEncryptedPrivateKey.allocationSize(inner.key);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ExternalSecretToSplit
1617
+ export let ExternalSecretToSplit_Tags=/*#__PURE__*/function(ExternalSecretToSplit_Tags){ExternalSecretToSplit_Tags["PrivateKey"]="PrivateKey";ExternalSecretToSplit_Tags["Preimage"]="Preimage";return ExternalSecretToSplit_Tags;}({});/**
1618
+ * FFI-safe representation of `spark_wallet::SecretToSplit`
1619
+ */export const ExternalSecretToSplit=(()=>{/**
1620
+ * A private key to split
1621
+ */class PrivateKey_ extends UniffiEnum{/**
1622
+ * @private
1623
+ * This field is private and should not be used, use `tag` instead.
1624
+ */[uniffiTypeNameSymbol]='ExternalSecretToSplit';tag=ExternalSecretToSplit_Tags.PrivateKey;constructor(inner){super('ExternalSecretToSplit','PrivateKey');this.inner=Object.freeze(inner);}static new(inner){return new PrivateKey_(inner);}static instanceOf(obj){return obj.tag===ExternalSecretToSplit_Tags.PrivateKey;}}/**
1625
+ * A preimage to split (32 bytes)
1626
+ */class Preimage_ extends UniffiEnum{/**
1627
+ * @private
1628
+ * This field is private and should not be used, use `tag` instead.
1629
+ */[uniffiTypeNameSymbol]='ExternalSecretToSplit';tag=ExternalSecretToSplit_Tags.Preimage;constructor(inner){super('ExternalSecretToSplit','Preimage');this.inner=Object.freeze(inner);}static new(inner){return new Preimage_(inner);}static instanceOf(obj){return obj.tag===ExternalSecretToSplit_Tags.Preimage;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ExternalSecretToSplit';}return Object.freeze({instanceOf,PrivateKey:PrivateKey_,Preimage:Preimage_});})();/**
1630
+ * FFI-safe representation of `spark_wallet::SecretToSplit`
1631
+ */// FfiConverter for enum ExternalSecretToSplit
1632
+ const FfiConverterTypeExternalSecretToSplit=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ExternalSecretToSplit.PrivateKey({source:FfiConverterTypeExternalPrivateKeySource.read(from)});case 2:return new ExternalSecretToSplit.Preimage({data:FfiConverterArrayBuffer.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ExternalSecretToSplit_Tags.PrivateKey:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeExternalPrivateKeySource.write(inner.source,into);return;}case ExternalSecretToSplit_Tags.Preimage:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayBuffer.write(inner.data,into);return;}default:// Throwing from here means that ExternalSecretToSplit_Tags hasn't matched an ordinal.
1633
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ExternalSecretToSplit_Tags.PrivateKey:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeExternalPrivateKeySource.allocationSize(inner.source);return size;}case ExternalSecretToSplit_Tags.Preimage:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayBuffer.allocationSize(inner.data);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Fee
1259
1634
  export let Fee_Tags=/*#__PURE__*/function(Fee_Tags){Fee_Tags["Fixed"]="Fixed";Fee_Tags["Rate"]="Rate";return Fee_Tags;}({});export const Fee=(()=>{class Fixed_ extends UniffiEnum{/**
1260
1635
  * @private
1261
1636
  * This field is private and should not be used, use `tag` instead.
@@ -1371,8 +1746,17 @@ export let PaymentDetails_Tags=/*#__PURE__*/function(PaymentDetails_Tags){Paymen
1371
1746
  * @private
1372
1747
  * This field is private and should not be used, use `tag` instead.
1373
1748
  */[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
1374
- 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)});case 2:return new PaymentDetails.Token({metadata:FfiConverterTypeTokenMetadata.read(from),txHash:FfiConverterString.read(from),invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from)});case 3:return new PaymentDetails.Lightning({description:FfiConverterOptionalString.read(from),preimage:FfiConverterOptionalString.read(from),invoice:FfiConverterString.read(from),paymentHash:FfiConverterString.read(from),destinationPubkey:FfiConverterString.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)});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);return;}case PaymentDetails_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeTokenMetadata.write(inner.metadata,into);FfiConverterString.write(inner.txHash,into);FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);return;}case PaymentDetails_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalString.write(inner.description,into);FfiConverterOptionalString.write(inner.preimage,into);FfiConverterString.write(inner.invoice,into);FfiConverterString.write(inner.paymentHash,into);FfiConverterString.write(inner.destinationPubkey,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);return;}default:// Throwing from here means that PaymentDetails_Tags hasn't matched an ordinal.
1375
- 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);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+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);return size;}case PaymentDetails_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterOptionalString.allocationSize(inner.preimage);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterString.allocationSize(inner.paymentHash);size+=FfiConverterString.allocationSize(inner.destinationPubkey);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);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let PaymentMethod=/*#__PURE__*/function(PaymentMethod){PaymentMethod[PaymentMethod["Lightning"]=0]="Lightning";PaymentMethod[PaymentMethod["Spark"]=1]="Spark";PaymentMethod[PaymentMethod["Token"]=2]="Token";PaymentMethod[PaymentMethod["Deposit"]=3]="Deposit";PaymentMethod[PaymentMethod["Withdraw"]=4]="Withdraw";PaymentMethod[PaymentMethod["Unknown"]=5]="Unknown";return PaymentMethod;}({});const FfiConverterTypePaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return PaymentMethod.Lightning;case 2:return PaymentMethod.Spark;case 3:return PaymentMethod.Token;case 4:return PaymentMethod.Deposit;case 5:return PaymentMethod.Withdraw;case 6:return PaymentMethod.Unknown;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case PaymentMethod.Lightning:return ordinalConverter.write(1,into);case PaymentMethod.Spark:return ordinalConverter.write(2,into);case PaymentMethod.Token:return ordinalConverter.write(3,into);case PaymentMethod.Deposit:return ordinalConverter.write(4,into);case PaymentMethod.Withdraw:return ordinalConverter.write(5,into);case PaymentMethod.Unknown:return ordinalConverter.write(6,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type: PaymentObserverError
1749
+ 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),tokenConversionInfo:FfiConverterOptionalTypeTokenConversionInfo.read(from)});case 2:return new PaymentDetails.Token({metadata:FfiConverterTypeTokenMetadata.read(from),txHash:FfiConverterString.read(from),invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from),tokenConversionInfo:FfiConverterOptionalTypeTokenConversionInfo.read(from)});case 3:return new PaymentDetails.Lightning({description:FfiConverterOptionalString.read(from),preimage:FfiConverterOptionalString.read(from),invoice:FfiConverterString.read(from),paymentHash:FfiConverterString.read(from),destinationPubkey:FfiConverterString.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)});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);FfiConverterOptionalTypeTokenConversionInfo.write(inner.tokenConversionInfo,into);return;}case PaymentDetails_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeTokenMetadata.write(inner.metadata,into);FfiConverterString.write(inner.txHash,into);FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);FfiConverterOptionalTypeTokenConversionInfo.write(inner.tokenConversionInfo,into);return;}case PaymentDetails_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalString.write(inner.description,into);FfiConverterOptionalString.write(inner.preimage,into);FfiConverterString.write(inner.invoice,into);FfiConverterString.write(inner.paymentHash,into);FfiConverterString.write(inner.destinationPubkey,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);return;}default:// Throwing from here means that PaymentDetails_Tags hasn't matched an ordinal.
1750
+ 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+=FfiConverterOptionalTypeTokenConversionInfo.allocationSize(inner.tokenConversionInfo);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+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalTypeTokenConversionInfo.allocationSize(inner.tokenConversionInfo);return size;}case PaymentDetails_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterOptionalString.allocationSize(inner.preimage);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterString.allocationSize(inner.paymentHash);size+=FfiConverterString.allocationSize(inner.destinationPubkey);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);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentDetailsFilter
1751
+ export let PaymentDetailsFilter_Tags=/*#__PURE__*/function(PaymentDetailsFilter_Tags){PaymentDetailsFilter_Tags["Spark"]="Spark";PaymentDetailsFilter_Tags["Token"]="Token";return PaymentDetailsFilter_Tags;}({});export const PaymentDetailsFilter=(()=>{class Spark_ extends UniffiEnum{/**
1752
+ * @private
1753
+ * This field is private and should not be used, use `tag` instead.
1754
+ */[uniffiTypeNameSymbol]='PaymentDetailsFilter';tag=PaymentDetailsFilter_Tags.Spark;constructor(inner){super('PaymentDetailsFilter','Spark');this.inner=Object.freeze(inner);}static new(inner){return new Spark_(inner);}static instanceOf(obj){return obj.tag===PaymentDetailsFilter_Tags.Spark;}}class Token_ extends UniffiEnum{/**
1755
+ * @private
1756
+ * This field is private and should not be used, use `tag` instead.
1757
+ */[uniffiTypeNameSymbol]='PaymentDetailsFilter';tag=PaymentDetailsFilter_Tags.Token;constructor(inner){super('PaymentDetailsFilter','Token');this.inner=Object.freeze(inner);}static new(inner){return new Token_(inner);}static instanceOf(obj){return obj.tag===PaymentDetailsFilter_Tags.Token;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PaymentDetailsFilter';}return Object.freeze({instanceOf,Spark:Spark_,Token:Token_});})();// FfiConverter for enum PaymentDetailsFilter
1758
+ const FfiConverterTypePaymentDetailsFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PaymentDetailsFilter.Spark({htlcStatus:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),conversionRefundNeeded:FfiConverterOptionalBool.read(from)});case 2:return new PaymentDetailsFilter.Token({conversionRefundNeeded:FfiConverterOptionalBool.read(from),txHash:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PaymentDetailsFilter_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalArrayTypeSparkHtlcStatus.write(inner.htlcStatus,into);FfiConverterOptionalBool.write(inner.conversionRefundNeeded,into);return;}case PaymentDetailsFilter_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalBool.write(inner.conversionRefundNeeded,into);FfiConverterOptionalString.write(inner.txHash,into);return;}default:// Throwing from here means that PaymentDetailsFilter_Tags hasn't matched an ordinal.
1759
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentDetailsFilter_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(inner.htlcStatus);size+=FfiConverterOptionalBool.allocationSize(inner.conversionRefundNeeded);return size;}case PaymentDetailsFilter_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalBool.allocationSize(inner.conversionRefundNeeded);size+=FfiConverterOptionalString.allocationSize(inner.txHash);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let PaymentMethod=/*#__PURE__*/function(PaymentMethod){PaymentMethod[PaymentMethod["Lightning"]=0]="Lightning";PaymentMethod[PaymentMethod["Spark"]=1]="Spark";PaymentMethod[PaymentMethod["Token"]=2]="Token";PaymentMethod[PaymentMethod["Deposit"]=3]="Deposit";PaymentMethod[PaymentMethod["Withdraw"]=4]="Withdraw";PaymentMethod[PaymentMethod["Unknown"]=5]="Unknown";return PaymentMethod;}({});const FfiConverterTypePaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return PaymentMethod.Lightning;case 2:return PaymentMethod.Spark;case 3:return PaymentMethod.Token;case 4:return PaymentMethod.Deposit;case 5:return PaymentMethod.Withdraw;case 6:return PaymentMethod.Unknown;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case PaymentMethod.Lightning:return ordinalConverter.write(1,into);case PaymentMethod.Spark:return ordinalConverter.write(2,into);case PaymentMethod.Token:return ordinalConverter.write(3,into);case PaymentMethod.Deposit:return ordinalConverter.write(4,into);case PaymentMethod.Withdraw:return ordinalConverter.write(5,into);case PaymentMethod.Unknown:return ordinalConverter.write(6,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type: PaymentObserverError
1376
1760
  // Enum: PaymentObserverError
1377
1761
  export let PaymentObserverError_Tags=/*#__PURE__*/function(PaymentObserverError_Tags){PaymentObserverError_Tags["ServiceConnectivity"]="ServiceConnectivity";PaymentObserverError_Tags["Generic"]="Generic";return PaymentObserverError_Tags;}({});export const PaymentObserverError=(()=>{class ServiceConnectivity_ extends UniffiError{/**
1378
1762
  * @private
@@ -1428,12 +1812,15 @@ export let ReceivePaymentMethod_Tags=/*#__PURE__*/function(ReceivePaymentMethod_
1428
1812
  const FfiConverterTypeReceivePaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ReceivePaymentMethod.SparkAddress();case 2:return new ReceivePaymentMethod.SparkInvoice({amount:FfiConverterOptionalTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),expiryTime:FfiConverterOptionalUInt64.read(from),description:FfiConverterOptionalString.read(from),senderPublicKey:FfiConverterOptionalString.read(from)});case 3:return new ReceivePaymentMethod.BitcoinAddress();case 4:return new ReceivePaymentMethod.Bolt11Invoice({description:FfiConverterString.read(from),amountSats:FfiConverterOptionalUInt64.read(from),expirySecs:FfiConverterOptionalUInt32.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{ordinalConverter.write(1,into);return;}case ReceivePaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalTypeu128.write(inner.amount,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);FfiConverterOptionalUInt64.write(inner.expiryTime,into);FfiConverterOptionalString.write(inner.description,into);FfiConverterOptionalString.write(inner.senderPublicKey,into);return;}case ReceivePaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(3,into);return;}case ReceivePaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.description,into);FfiConverterOptionalUInt64.write(inner.amountSats,into);FfiConverterOptionalUInt32.write(inner.expirySecs,into);return;}default:// Throwing from here means that ReceivePaymentMethod_Tags hasn't matched an ordinal.
1429
1813
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{return ordinalConverter.allocationSize(1);}case ReceivePaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalTypeu128.allocationSize(inner.amount);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);size+=FfiConverterOptionalUInt64.allocationSize(inner.expiryTime);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterOptionalString.allocationSize(inner.senderPublicKey);return size;}case ReceivePaymentMethod_Tags.BitcoinAddress:{return ordinalConverter.allocationSize(3);}case ReceivePaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.description);size+=FfiConverterOptionalUInt64.allocationSize(inner.amountSats);size+=FfiConverterOptionalUInt32.allocationSize(inner.expirySecs);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: SdkError
1430
1814
  // Enum: SdkError
1431
- export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["SparkError"]="SparkError";SdkError_Tags["InvalidUuid"]="InvalidUuid";SdkError_Tags["InvalidInput"]="InvalidInput";SdkError_Tags["NetworkError"]="NetworkError";SdkError_Tags["StorageError"]="StorageError";SdkError_Tags["ChainServiceError"]="ChainServiceError";SdkError_Tags["MaxDepositClaimFeeExceeded"]="MaxDepositClaimFeeExceeded";SdkError_Tags["MissingUtxo"]="MissingUtxo";SdkError_Tags["LnurlError"]="LnurlError";SdkError_Tags["Generic"]="Generic";return SdkError_Tags;}({});/**
1815
+ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["SparkError"]="SparkError";SdkError_Tags["InsufficientFunds"]="InsufficientFunds";SdkError_Tags["InvalidUuid"]="InvalidUuid";SdkError_Tags["InvalidInput"]="InvalidInput";SdkError_Tags["NetworkError"]="NetworkError";SdkError_Tags["StorageError"]="StorageError";SdkError_Tags["ChainServiceError"]="ChainServiceError";SdkError_Tags["MaxDepositClaimFeeExceeded"]="MaxDepositClaimFeeExceeded";SdkError_Tags["MissingUtxo"]="MissingUtxo";SdkError_Tags["LnurlError"]="LnurlError";SdkError_Tags["Signer"]="Signer";SdkError_Tags["Generic"]="Generic";return SdkError_Tags;}({});/**
1432
1816
  * Error type for the `BreezSdk`
1433
1817
  */export const SdkError=(()=>{class SparkError_ extends UniffiError{/**
1434
1818
  * @private
1435
1819
  * This field is private and should not be used, use `tag` instead.
1436
- */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.SparkError;constructor(v0){super('SdkError','SparkError');this.inner=Object.freeze([v0]);}static new(v0){return new SparkError_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.SparkError;}static hasInner(obj){return SparkError_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class InvalidUuid_ extends UniffiError{/**
1820
+ */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.SparkError;constructor(v0){super('SdkError','SparkError');this.inner=Object.freeze([v0]);}static new(v0){return new SparkError_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.SparkError;}static hasInner(obj){return SparkError_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class InsufficientFunds_ extends UniffiError{/**
1821
+ * @private
1822
+ * This field is private and should not be used, use `tag` instead.
1823
+ */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.InsufficientFunds;constructor(){super('SdkError','InsufficientFunds');}static new(){return new InsufficientFunds_();}static instanceOf(obj){return obj.tag===SdkError_Tags.InsufficientFunds;}static hasInner(obj){return false;}}class InvalidUuid_ extends UniffiError{/**
1437
1824
  * @private
1438
1825
  * This field is private and should not be used, use `tag` instead.
1439
1826
  */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.InvalidUuid;constructor(v0){super('SdkError','InvalidUuid');this.inner=Object.freeze([v0]);}static new(v0){return new InvalidUuid_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.InvalidUuid;}static hasInner(obj){return InvalidUuid_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
@@ -1463,14 +1850,17 @@ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["Spa
1463
1850
  */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.MissingUtxo;constructor(inner){super('SdkError','MissingUtxo');this.inner=Object.freeze(inner);}static new(inner){return new MissingUtxo_(inner);}static instanceOf(obj){return obj.tag===SdkError_Tags.MissingUtxo;}static hasInner(obj){return MissingUtxo_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class LnurlError_ extends UniffiError{/**
1464
1851
  * @private
1465
1852
  * This field is private and should not be used, use `tag` instead.
1466
- */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.LnurlError;constructor(v0){super('SdkError','LnurlError');this.inner=Object.freeze([v0]);}static new(v0){return new LnurlError_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.LnurlError;}static hasInner(obj){return LnurlError_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Generic_ extends UniffiError{/**
1853
+ */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.LnurlError;constructor(v0){super('SdkError','LnurlError');this.inner=Object.freeze([v0]);}static new(v0){return new LnurlError_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.LnurlError;}static hasInner(obj){return LnurlError_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Signer_ extends UniffiError{/**
1854
+ * @private
1855
+ * This field is private and should not be used, use `tag` instead.
1856
+ */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.Signer;constructor(v0){super('SdkError','Signer');this.inner=Object.freeze([v0]);}static new(v0){return new Signer_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.Signer;}static hasInner(obj){return Signer_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Generic_ extends UniffiError{/**
1467
1857
  * @private
1468
1858
  * This field is private and should not be used, use `tag` instead.
1469
- */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.Generic;constructor(v0){super('SdkError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkError';}return Object.freeze({instanceOf,SparkError:SparkError_,InvalidUuid:InvalidUuid_,InvalidInput:InvalidInput_,NetworkError:NetworkError_,StorageError:StorageError_,ChainServiceError:ChainServiceError_,MaxDepositClaimFeeExceeded:MaxDepositClaimFeeExceeded_,MissingUtxo:MissingUtxo_,LnurlError:LnurlError_,Generic:Generic_});})();/**
1859
+ */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.Generic;constructor(v0){super('SdkError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkError';}return Object.freeze({instanceOf,SparkError:SparkError_,InsufficientFunds:InsufficientFunds_,InvalidUuid:InvalidUuid_,InvalidInput:InvalidInput_,NetworkError:NetworkError_,StorageError:StorageError_,ChainServiceError:ChainServiceError_,MaxDepositClaimFeeExceeded:MaxDepositClaimFeeExceeded_,MissingUtxo:MissingUtxo_,LnurlError:LnurlError_,Signer:Signer_,Generic:Generic_});})();/**
1470
1860
  * Error type for the `BreezSdk`
1471
1861
  */// FfiConverter for enum SdkError
1472
- const FfiConverterTypeSdkError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkError.SparkError(FfiConverterString.read(from));case 2:return new SdkError.InvalidUuid(FfiConverterString.read(from));case 3:return new SdkError.InvalidInput(FfiConverterString.read(from));case 4:return new SdkError.NetworkError(FfiConverterString.read(from));case 5:return new SdkError.StorageError(FfiConverterString.read(from));case 6:return new SdkError.ChainServiceError(FfiConverterString.read(from));case 7:return new SdkError.MaxDepositClaimFeeExceeded({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),maxFee:FfiConverterOptionalTypeFee.read(from),requiredFeeSats:FfiConverterUInt64.read(from),requiredFeeRateSatPerVbyte:FfiConverterUInt64.read(from)});case 8:return new SdkError.MissingUtxo({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});case 9:return new SdkError.LnurlError(FfiConverterString.read(from));case 10:return new SdkError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkError_Tags.SparkError:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InvalidUuid:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InvalidInput:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.NetworkError:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.StorageError:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.ChainServiceError:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterOptionalTypeFee.write(inner.maxFee,into);FfiConverterUInt64.write(inner.requiredFeeSats,into);FfiConverterUInt64.write(inner.requiredFeeRateSatPerVbyte,into);return;}case SdkError_Tags.MissingUtxo:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);return;}case SdkError_Tags.LnurlError:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.Generic:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SdkError_Tags hasn't matched an ordinal.
1473
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkError_Tags.SparkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InvalidUuid:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InvalidInput:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.NetworkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.StorageError:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.ChainServiceError:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterOptionalTypeFee.allocationSize(inner.maxFee);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeSats);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeRateSatPerVbyte);return size;}case SdkError_Tags.MissingUtxo:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case SdkError_Tags.LnurlError:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SdkEvent
1862
+ const FfiConverterTypeSdkError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkError.SparkError(FfiConverterString.read(from));case 2:return new SdkError.InsufficientFunds();case 3:return new SdkError.InvalidUuid(FfiConverterString.read(from));case 4:return new SdkError.InvalidInput(FfiConverterString.read(from));case 5:return new SdkError.NetworkError(FfiConverterString.read(from));case 6:return new SdkError.StorageError(FfiConverterString.read(from));case 7:return new SdkError.ChainServiceError(FfiConverterString.read(from));case 8:return new SdkError.MaxDepositClaimFeeExceeded({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),maxFee:FfiConverterOptionalTypeFee.read(from),requiredFeeSats:FfiConverterUInt64.read(from),requiredFeeRateSatPerVbyte:FfiConverterUInt64.read(from)});case 9:return new SdkError.MissingUtxo({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});case 10:return new SdkError.LnurlError(FfiConverterString.read(from));case 11:return new SdkError.Signer(FfiConverterString.read(from));case 12:return new SdkError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkError_Tags.SparkError:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InsufficientFunds:{ordinalConverter.write(2,into);return;}case SdkError_Tags.InvalidUuid:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InvalidInput:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.NetworkError:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.StorageError:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.ChainServiceError:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterOptionalTypeFee.write(inner.maxFee,into);FfiConverterUInt64.write(inner.requiredFeeSats,into);FfiConverterUInt64.write(inner.requiredFeeRateSatPerVbyte,into);return;}case SdkError_Tags.MissingUtxo:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);return;}case SdkError_Tags.LnurlError:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.Signer:{ordinalConverter.write(11,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.Generic:{ordinalConverter.write(12,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SdkError_Tags hasn't matched an ordinal.
1863
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkError_Tags.SparkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InsufficientFunds:{return ordinalConverter.allocationSize(2);}case SdkError_Tags.InvalidUuid:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InvalidInput:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.NetworkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.StorageError:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.ChainServiceError:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterOptionalTypeFee.allocationSize(inner.maxFee);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeSats);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeRateSatPerVbyte);return size;}case SdkError_Tags.MissingUtxo:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case SdkError_Tags.LnurlError:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.Signer:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SdkEvent
1474
1864
  export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Synced"]="Synced";SdkEvent_Tags["UnclaimedDeposits"]="UnclaimedDeposits";SdkEvent_Tags["ClaimedDeposits"]="ClaimedDeposits";SdkEvent_Tags["PaymentSucceeded"]="PaymentSucceeded";SdkEvent_Tags["PaymentPending"]="PaymentPending";SdkEvent_Tags["PaymentFailed"]="PaymentFailed";SdkEvent_Tags["Optimization"]="Optimization";return SdkEvent_Tags;}({});/**
1475
1865
  * Events emitted by the SDK
1476
1866
  */export const SdkEvent=(()=>{/**
@@ -1582,7 +1972,36 @@ export let ServiceConnectivityError_Tags=/*#__PURE__*/function(ServiceConnectivi
1582
1972
  * This field is private and should not be used, use `tag` instead.
1583
1973
  */[uniffiTypeNameSymbol]='ServiceConnectivityError';tag=ServiceConnectivityError_Tags.Other;constructor(v0){super('ServiceConnectivityError','Other');this.inner=Object.freeze([v0]);}static new(v0){return new Other_(v0);}static instanceOf(obj){return obj.tag===ServiceConnectivityError_Tags.Other;}static hasInner(obj){return Other_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ServiceConnectivityError';}return Object.freeze({instanceOf,Builder:Builder_,Redirect:Redirect_,Status:Status_,Timeout:Timeout_,Request:Request_,Connect:Connect_,Body:Body_,Decode:Decode_,Json:Json_,Other:Other_});})();// FfiConverter for enum ServiceConnectivityError
1584
1974
  const FfiConverterTypeServiceConnectivityError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ServiceConnectivityError.Builder(FfiConverterString.read(from));case 2:return new ServiceConnectivityError.Redirect(FfiConverterString.read(from));case 3:return new ServiceConnectivityError.Status({status:FfiConverterUInt16.read(from),body:FfiConverterString.read(from)});case 4:return new ServiceConnectivityError.Timeout(FfiConverterString.read(from));case 5:return new ServiceConnectivityError.Request(FfiConverterString.read(from));case 6:return new ServiceConnectivityError.Connect(FfiConverterString.read(from));case 7:return new ServiceConnectivityError.Body(FfiConverterString.read(from));case 8:return new ServiceConnectivityError.Decode(FfiConverterString.read(from));case 9:return new ServiceConnectivityError.Json(FfiConverterString.read(from));case 10:return new ServiceConnectivityError.Other(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ServiceConnectivityError_Tags.Builder:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Redirect:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Status:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterUInt16.write(inner.status,into);FfiConverterString.write(inner.body,into);return;}case ServiceConnectivityError_Tags.Timeout:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Request:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Connect:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Body:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Decode:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Json:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Other:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that ServiceConnectivityError_Tags hasn't matched an ordinal.
1585
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ServiceConnectivityError_Tags.Builder:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Redirect:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Status:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterUInt16.allocationSize(inner.status);size+=FfiConverterString.allocationSize(inner.body);return size;}case ServiceConnectivityError_Tags.Timeout:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Request:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Connect:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Body:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Decode:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Json:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Other:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let SparkHtlcStatus=/*#__PURE__*/function(SparkHtlcStatus){/**
1975
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ServiceConnectivityError_Tags.Builder:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Redirect:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Status:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterUInt16.allocationSize(inner.status);size+=FfiConverterString.allocationSize(inner.body);return size;}case ServiceConnectivityError_Tags.Timeout:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Request:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Connect:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Body:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Decode:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Json:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Other:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: SignerError
1976
+ // Enum: SignerError
1977
+ export let SignerError_Tags=/*#__PURE__*/function(SignerError_Tags){SignerError_Tags["KeyDerivation"]="KeyDerivation";SignerError_Tags["Signing"]="Signing";SignerError_Tags["Encryption"]="Encryption";SignerError_Tags["Decryption"]="Decryption";SignerError_Tags["Frost"]="Frost";SignerError_Tags["InvalidInput"]="InvalidInput";SignerError_Tags["Generic"]="Generic";return SignerError_Tags;}({});/**
1978
+ * Error type for signer operations
1979
+ */export const SignerError=(()=>{class KeyDerivation_ extends UniffiError{/**
1980
+ * @private
1981
+ * This field is private and should not be used, use `tag` instead.
1982
+ */[uniffiTypeNameSymbol]='SignerError';tag=SignerError_Tags.KeyDerivation;constructor(v0){super('SignerError','KeyDerivation');this.inner=Object.freeze([v0]);}static new(v0){return new KeyDerivation_(v0);}static instanceOf(obj){return obj.tag===SignerError_Tags.KeyDerivation;}static hasInner(obj){return KeyDerivation_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Signing_ extends UniffiError{/**
1983
+ * @private
1984
+ * This field is private and should not be used, use `tag` instead.
1985
+ */[uniffiTypeNameSymbol]='SignerError';tag=SignerError_Tags.Signing;constructor(v0){super('SignerError','Signing');this.inner=Object.freeze([v0]);}static new(v0){return new Signing_(v0);}static instanceOf(obj){return obj.tag===SignerError_Tags.Signing;}static hasInner(obj){return Signing_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Encryption_ extends UniffiError{/**
1986
+ * @private
1987
+ * This field is private and should not be used, use `tag` instead.
1988
+ */[uniffiTypeNameSymbol]='SignerError';tag=SignerError_Tags.Encryption;constructor(v0){super('SignerError','Encryption');this.inner=Object.freeze([v0]);}static new(v0){return new Encryption_(v0);}static instanceOf(obj){return obj.tag===SignerError_Tags.Encryption;}static hasInner(obj){return Encryption_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Decryption_ extends UniffiError{/**
1989
+ * @private
1990
+ * This field is private and should not be used, use `tag` instead.
1991
+ */[uniffiTypeNameSymbol]='SignerError';tag=SignerError_Tags.Decryption;constructor(v0){super('SignerError','Decryption');this.inner=Object.freeze([v0]);}static new(v0){return new Decryption_(v0);}static instanceOf(obj){return obj.tag===SignerError_Tags.Decryption;}static hasInner(obj){return Decryption_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Frost_ extends UniffiError{/**
1992
+ * @private
1993
+ * This field is private and should not be used, use `tag` instead.
1994
+ */[uniffiTypeNameSymbol]='SignerError';tag=SignerError_Tags.Frost;constructor(v0){super('SignerError','Frost');this.inner=Object.freeze([v0]);}static new(v0){return new Frost_(v0);}static instanceOf(obj){return obj.tag===SignerError_Tags.Frost;}static hasInner(obj){return Frost_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class InvalidInput_ extends UniffiError{/**
1995
+ * @private
1996
+ * This field is private and should not be used, use `tag` instead.
1997
+ */[uniffiTypeNameSymbol]='SignerError';tag=SignerError_Tags.InvalidInput;constructor(v0){super('SignerError','InvalidInput');this.inner=Object.freeze([v0]);}static new(v0){return new InvalidInput_(v0);}static instanceOf(obj){return obj.tag===SignerError_Tags.InvalidInput;}static hasInner(obj){return InvalidInput_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Generic_ extends UniffiError{/**
1998
+ * @private
1999
+ * This field is private and should not be used, use `tag` instead.
2000
+ */[uniffiTypeNameSymbol]='SignerError';tag=SignerError_Tags.Generic;constructor(v0){super('SignerError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===SignerError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SignerError';}return Object.freeze({instanceOf,KeyDerivation:KeyDerivation_,Signing:Signing_,Encryption:Encryption_,Decryption:Decryption_,Frost:Frost_,InvalidInput:InvalidInput_,Generic:Generic_});})();/**
2001
+ * Error type for signer operations
2002
+ */// FfiConverter for enum SignerError
2003
+ 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.
2004
+ 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){/**
1586
2005
  * The HTLC is waiting for the preimage to be shared by the receiver
1587
2006
  */SparkHtlcStatus[SparkHtlcStatus["WaitingForPreimage"]=0]="WaitingForPreimage";/**
1588
2007
  * The HTLC preimage has been shared and the transfer can be or has been claimed by the receiver
@@ -1682,7 +2101,20 @@ export let SyncStorageError_Tags=/*#__PURE__*/function(SyncStorageError_Tags){Sy
1682
2101
  * Errors that can occur during storage operations
1683
2102
  */// FfiConverter for enum SyncStorageError
1684
2103
  const FfiConverterTypeSyncStorageError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SyncStorageError.Implementation(FfiConverterString.read(from));case 2:return new SyncStorageError.InitializationError(FfiConverterString.read(from));case 3:return new SyncStorageError.Serialization(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SyncStorageError_Tags.Implementation:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SyncStorageError_Tags.InitializationError:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SyncStorageError_Tags.Serialization:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SyncStorageError_Tags hasn't matched an ordinal.
1685
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SyncStorageError_Tags.Implementation:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SyncStorageError_Tags.InitializationError:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SyncStorageError_Tags.Serialization:{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: UpdateDepositPayload
2104
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SyncStorageError_Tags.Implementation:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SyncStorageError_Tags.InitializationError:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SyncStorageError_Tags.Serialization:{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: TokenConversionType
2105
+ export let TokenConversionType_Tags=/*#__PURE__*/function(TokenConversionType_Tags){TokenConversionType_Tags["FromBitcoin"]="FromBitcoin";TokenConversionType_Tags["ToBitcoin"]="ToBitcoin";return TokenConversionType_Tags;}({});export const TokenConversionType=(()=>{/**
2106
+ * Converting from Bitcoin to a token
2107
+ */class FromBitcoin_ extends UniffiEnum{/**
2108
+ * @private
2109
+ * This field is private and should not be used, use `tag` instead.
2110
+ */[uniffiTypeNameSymbol]='TokenConversionType';tag=TokenConversionType_Tags.FromBitcoin;constructor(){super('TokenConversionType','FromBitcoin');}static new(){return new FromBitcoin_();}static instanceOf(obj){return obj.tag===TokenConversionType_Tags.FromBitcoin;}}/**
2111
+ * Converting from a token to Bitcoin
2112
+ */class ToBitcoin_ extends UniffiEnum{/**
2113
+ * @private
2114
+ * This field is private and should not be used, use `tag` instead.
2115
+ */[uniffiTypeNameSymbol]='TokenConversionType';tag=TokenConversionType_Tags.ToBitcoin;constructor(inner){super('TokenConversionType','ToBitcoin');this.inner=Object.freeze(inner);}static new(inner){return new ToBitcoin_(inner);}static instanceOf(obj){return obj.tag===TokenConversionType_Tags.ToBitcoin;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='TokenConversionType';}return Object.freeze({instanceOf,FromBitcoin:FromBitcoin_,ToBitcoin:ToBitcoin_});})();// FfiConverter for enum TokenConversionType
2116
+ const FfiConverterTypeTokenConversionType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new TokenConversionType.FromBitcoin();case 2:return new TokenConversionType.ToBitcoin({fromTokenIdentifier:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case TokenConversionType_Tags.FromBitcoin:{ordinalConverter.write(1,into);return;}case TokenConversionType_Tags.ToBitcoin:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.fromTokenIdentifier,into);return;}default:// Throwing from here means that TokenConversionType_Tags hasn't matched an ordinal.
2117
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case TokenConversionType_Tags.FromBitcoin:{return ordinalConverter.allocationSize(1);}case TokenConversionType_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: UpdateDepositPayload
1686
2118
  export let UpdateDepositPayload_Tags=/*#__PURE__*/function(UpdateDepositPayload_Tags){UpdateDepositPayload_Tags["ClaimError"]="ClaimError";UpdateDepositPayload_Tags["Refund"]="Refund";return UpdateDepositPayload_Tags;}({});export const UpdateDepositPayload=(()=>{class ClaimError_ extends UniffiEnum{/**
1687
2119
  * @private
1688
2120
  * This field is private and should not be used, use `tag` instead.
@@ -1746,7 +2178,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
1746
2178
  * # Returns
1747
2179
  *
1748
2180
  * Result containing either success or an `SdkError` if the background task couldn't be stopped
1749
- */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;}}/**
2181
+ */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 fetchTokenConversionLimits(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_token_conversion_limits(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeFetchTokenConversionLimitsRequest.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:*/FfiConverterTypeFetchTokenConversionLimitsResponse.lift.bind(FfiConverterTypeFetchTokenConversionLimitsResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
1750
2182
  * Returns the balance of the wallet in satoshis
1751
2183
  */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;}}/**
1752
2184
  * Returns the current optimization progress snapshot.
@@ -1841,6 +2273,206 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
1841
2273
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
1842
2274
  */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeBreezSdkObjectFactory.pointer(this);uniffiTypeBreezSdkObjectFactory.freePointer(pointer);uniffiTypeBreezSdkObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeBreezSdkObjectFactory.isConcreteType(obj);}}const uniffiTypeBreezSdkObjectFactory={create(pointer){const instance=Object.create(BreezSdk.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='BreezSdk';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_breezsdk_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_breezsdk(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_breezsdk(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='BreezSdk';}};// FfiConverter for BreezSdkInterface
1843
2275
  const FfiConverterTypeBreezSdk=new FfiConverterObject(uniffiTypeBreezSdkObjectFactory);/**
2276
+ * External signer trait that can be implemented by users and passed to the SDK.
2277
+ *
2278
+ * This trait mirrors the `BreezSigner` trait but uses FFI-compatible types (bytes, strings)
2279
+ * instead of Rust-specific types. This allows it to be exposed through FFI and WASM bindings.
2280
+ *
2281
+ * All methods accept and return simple types:
2282
+ * - Derivation paths as strings (e.g., "m/44'/0'/0'")
2283
+ * - Public keys, signatures, and other crypto primitives as Vec<u8>
2284
+ * - Spark-specific types as serialized representations
2285
+ *
2286
+ * Errors are returned as `SignerError` for FFI compatibility.
2287
+ *//**
2288
+ * External signer trait that can be implemented by users and passed to the SDK.
2289
+ *
2290
+ * This trait mirrors the `BreezSigner` trait but uses FFI-compatible types (bytes, strings)
2291
+ * instead of Rust-specific types. This allows it to be exposed through FFI and WASM bindings.
2292
+ *
2293
+ * All methods accept and return simple types:
2294
+ * - Derivation paths as strings (e.g., "m/44'/0'/0'")
2295
+ * - Public keys, signatures, and other crypto primitives as Vec<u8>
2296
+ * - Spark-specific types as serialized representations
2297
+ *
2298
+ * Errors are returned as `SignerError` for FFI compatibility.
2299
+ */export class ExternalSignerImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='ExternalSignerImpl';// No primary constructor declared for this class.
2300
+ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeExternalSignerImplObjectFactory.bless(pointer);}/**
2301
+ * Returns the identity public key as 33 bytes (compressed secp256k1 key).
2302
+ */identityPublicKey()/*throws*/{return FfiConverterTypePublicKeyBytes.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_identity_public_key(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
2303
+ * Derives a public key for the given BIP32 derivation path.
2304
+ *
2305
+ * # Arguments
2306
+ * * `path` - BIP32 derivation path as a string (e.g., "m/44'/0'/0'/0/0")
2307
+ *
2308
+ * # Returns
2309
+ * The derived public key as 33 bytes, or a `SignerError`
2310
+ */async derivePublicKey(path,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_externalsigner_derive_public_key(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterString.lower(path));},/*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:*/FfiConverterTypePublicKeyBytes.lift.bind(FfiConverterTypePublicKeyBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2311
+ * Signs a message using ECDSA at the given derivation path.
2312
+ *
2313
+ * # Arguments
2314
+ * * `message` - The message to sign
2315
+ * * `path` - BIP32 derivation path as a string
2316
+ *
2317
+ * # Returns
2318
+ * 64-byte compact ECDSA signature, or a `SignerError`
2319
+ */async signEcdsa(message,path,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_externalsigner_sign_ecdsa(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterArrayBuffer.lower(message),FfiConverterString.lower(path));},/*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:*/FfiConverterTypeEcdsaSignatureBytes.lift.bind(FfiConverterTypeEcdsaSignatureBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2320
+ * Signs a message using recoverable ECDSA at the given derivation path.
2321
+ *
2322
+ * # Arguments
2323
+ * * `message` - The message to sign (will be double-SHA256 hashed)
2324
+ * * `path` - BIP32 derivation path as a string
2325
+ *
2326
+ * # Returns
2327
+ * 65 bytes: recovery ID (31 + `recovery_id`) + 64-byte signature, or a `SignerError`
2328
+ */async signEcdsaRecoverable(message,path,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_externalsigner_sign_ecdsa_recoverable(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterArrayBuffer.lower(message),FfiConverterString.lower(path));},/*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:*/FfiConverterTypeRecoverableEcdsaSignatureBytes.lift.bind(FfiConverterTypeRecoverableEcdsaSignatureBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2329
+ * Encrypts a message using ECIES at the given derivation path.
2330
+ *
2331
+ * # Arguments
2332
+ * * `message` - The message to encrypt
2333
+ * * `path` - BIP32 derivation path for the encryption key
2334
+ *
2335
+ * # Returns
2336
+ * Encrypted data, or a `SignerError`
2337
+ */async eciesEncrypt(message,path,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_externalsigner_ecies_encrypt(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterArrayBuffer.lower(message),FfiConverterString.lower(path));},/*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:*/FfiConverterArrayBuffer.lift.bind(FfiConverterArrayBuffer),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2338
+ * Decrypts a message using ECIES at the given derivation path.
2339
+ *
2340
+ * # Arguments
2341
+ * * `message` - The encrypted message
2342
+ * * `path` - BIP32 derivation path for the decryption key
2343
+ *
2344
+ * # Returns
2345
+ * Decrypted data, or a `SignerError`
2346
+ */async eciesDecrypt(message,path,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_externalsigner_ecies_decrypt(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterArrayBuffer.lower(message),FfiConverterString.lower(path));},/*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:*/FfiConverterArrayBuffer.lift.bind(FfiConverterArrayBuffer),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2347
+ * Signs a hash using Schnorr signature at the given derivation path.
2348
+ *
2349
+ * # Arguments
2350
+ * * `hash` - The 32-byte hash to sign (must be 32 bytes)
2351
+ * * `path` - BIP32 derivation path as a string
2352
+ *
2353
+ * # Returns
2354
+ * 64-byte Schnorr signature, or a `SignerError`
2355
+ */async signHashSchnorr(hash,path,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_externalsigner_sign_hash_schnorr(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterArrayBuffer.lower(hash),FfiConverterString.lower(path));},/*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:*/FfiConverterTypeSchnorrSignatureBytes.lift.bind(FfiConverterTypeSchnorrSignatureBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2356
+ * Generates Frost signing commitments for multi-party signing.
2357
+ *
2358
+ * # Returns
2359
+ * Frost commitments with nonces, or a `SignerError`
2360
+ */async generateFrostSigningCommitments(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_externalsigner_generate_frost_signing_commitments(uniffiTypeExternalSignerImplObjectFactory.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:*/FfiConverterTypeExternalFrostCommitments.lift.bind(FfiConverterTypeExternalFrostCommitments),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2361
+ * Gets the public key for a specific tree node in the Spark wallet.
2362
+ *
2363
+ * # Arguments
2364
+ * * `id` - The tree node identifier
2365
+ *
2366
+ * # Returns
2367
+ * The public key for the node, or an error string
2368
+ */async getPublicKeyForNode(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_externalsigner_get_public_key_for_node(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalTreeNodeId.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:*/FfiConverterTypePublicKeyBytes.lift.bind(FfiConverterTypePublicKeyBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2369
+ * Generates a random private key.
2370
+ *
2371
+ * # Returns
2372
+ * A randomly generated private key source, or an error string
2373
+ */async generateRandomKey(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_externalsigner_generate_random_key(uniffiTypeExternalSignerImplObjectFactory.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:*/FfiConverterTypeExternalPrivateKeySource.lift.bind(FfiConverterTypeExternalPrivateKeySource),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2374
+ * Gets a static deposit private key source by index.
2375
+ *
2376
+ * # Arguments
2377
+ * * `index` - The index of the static deposit key
2378
+ *
2379
+ * # Returns
2380
+ * The private key source, or an error string
2381
+ */async getStaticDepositPrivateKeySource(index,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_externalsigner_get_static_deposit_private_key_source(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterUInt32.lower(index));},/*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:*/FfiConverterTypeExternalPrivateKeySource.lift.bind(FfiConverterTypeExternalPrivateKeySource),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2382
+ * Gets a static deposit private key by index.
2383
+ *
2384
+ * # Arguments
2385
+ * * `index` - The index of the static deposit key
2386
+ *
2387
+ * # Returns
2388
+ * The 32-byte private key, or an error string
2389
+ */async getStaticDepositPrivateKey(index,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_externalsigner_get_static_deposit_private_key(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterUInt32.lower(index));},/*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:*/FfiConverterTypePrivateKeyBytes.lift.bind(FfiConverterTypePrivateKeyBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2390
+ * Gets a static deposit public key by index.
2391
+ *
2392
+ * # Arguments
2393
+ * * `index` - The index of the static deposit key
2394
+ *
2395
+ * # Returns
2396
+ * The 33-byte public key, or an error string
2397
+ */async getStaticDepositPublicKey(index,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_externalsigner_get_static_deposit_public_key(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterUInt32.lower(index));},/*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:*/FfiConverterTypePublicKeyBytes.lift.bind(FfiConverterTypePublicKeyBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2398
+ * Subtracts one private key from another.
2399
+ *
2400
+ * # Arguments
2401
+ * * `signing_key` - The first private key source
2402
+ * * `new_signing_key` - The second private key source to subtract
2403
+ *
2404
+ * # Returns
2405
+ * The resulting private key source, or an error string
2406
+ */async subtractPrivateKeys(signingKey,newSigningKey,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_externalsigner_subtract_private_keys(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalPrivateKeySource.lower(signingKey),FfiConverterTypeExternalPrivateKeySource.lower(newSigningKey));},/*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:*/FfiConverterTypeExternalPrivateKeySource.lift.bind(FfiConverterTypeExternalPrivateKeySource),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2407
+ * Splits a secret with proofs using Shamir's Secret Sharing.
2408
+ *
2409
+ * # Arguments
2410
+ * * `secret` - The secret to split
2411
+ * * `threshold` - Minimum number of shares needed to reconstruct
2412
+ * * `num_shares` - Total number of shares to create
2413
+ *
2414
+ * # Returns
2415
+ * Vector of verifiable secret shares, or an error string
2416
+ */async splitSecret(secret,threshold,numShares,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_externalsigner_split_secret(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalSecretToSplit.lower(secret),FfiConverterUInt32.lower(threshold),FfiConverterUInt32.lower(numShares));},/*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:*/FfiConverterArrayTypeExternalVerifiableSecretShare.lift.bind(FfiConverterArrayTypeExternalVerifiableSecretShare),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2417
+ * Encrypts a private key for a specific receiver's public key.
2418
+ *
2419
+ * # Arguments
2420
+ * * `private_key` - The encrypted private key to re-encrypt
2421
+ * * `receiver_public_key` - The receiver's 33-byte public key
2422
+ *
2423
+ * # Returns
2424
+ * Encrypted data for the receiver, or an error string
2425
+ */async encryptPrivateKeyForReceiver(privateKey,receiverPublicKey,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_externalsigner_encrypt_private_key_for_receiver(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalEncryptedPrivateKey.lower(privateKey),FfiConverterTypePublicKeyBytes.lower(receiverPublicKey));},/*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:*/FfiConverterArrayBuffer.lift.bind(FfiConverterArrayBuffer),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2426
+ * Gets the public key from a private key source.
2427
+ *
2428
+ * # Arguments
2429
+ * * `private_key` - The private key source
2430
+ *
2431
+ * # Returns
2432
+ * The corresponding 33-byte public key, or an error string
2433
+ */async getPublicKeyFromPrivateKeySource(privateKey,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_externalsigner_get_public_key_from_private_key_source(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalPrivateKeySource.lower(privateKey));},/*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:*/FfiConverterTypePublicKeyBytes.lift.bind(FfiConverterTypePublicKeyBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2434
+ * Signs using Frost protocol (multi-party signing).
2435
+ *
2436
+ * # Arguments
2437
+ * * `request` - The Frost signing request
2438
+ *
2439
+ * # Returns
2440
+ * A signature share, or an error string
2441
+ */async signFrost(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_externalsigner_sign_frost(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalSignFrostRequest.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:*/FfiConverterTypeExternalFrostSignatureShare.lift.bind(FfiConverterTypeExternalFrostSignatureShare),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2442
+ * Aggregates Frost signature shares into a final signature.
2443
+ *
2444
+ * # Arguments
2445
+ * * `request` - The Frost aggregation request
2446
+ *
2447
+ * # Returns
2448
+ * The aggregated Frost signature, or an error string
2449
+ */async aggregateFrostSignatures(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_externalsigner_aggregate_frost_signatures(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalAggregateFrostRequest.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:*/FfiConverterTypeExternalFrostSignature.lift.bind(FfiConverterTypeExternalFrostSignature),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2450
+ * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
2451
+ */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeExternalSignerImplObjectFactory.pointer(this);uniffiTypeExternalSignerImplObjectFactory.freePointer(pointer);uniffiTypeExternalSignerImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeExternalSignerImplObjectFactory.isConcreteType(obj);}}const uniffiTypeExternalSignerImplObjectFactory={create(pointer){const instance=Object.create(ExternalSignerImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='ExternalSignerImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_externalsigner_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_externalsigner(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_externalsigner(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='ExternalSignerImpl';}};// FfiConverter for ExternalSigner
2452
+ const FfiConverterTypeExternalSigner=new FfiConverterObjectWithCallbacks(uniffiTypeExternalSignerImplObjectFactory);// Add a vtavble for the callbacks that go in ExternalSigner.
2453
+ // Put the implementation in a struct so we don't pollute the top-level namespace
2454
+ const uniffiCallbackInterfaceExternalSigner={// Create the VTable using a series of closures.
2455
+ // ts automatically converts these into C callback functions.
2456
+ vtable:{identityPublicKey:uniffiHandle=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return jsCallback.identityPublicKey();};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterTypePublicKeyBytes.lower(obj));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiResult;},derivePublicKey:(uniffiHandle,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.derivePublicKey(FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2457
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},signEcdsa:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signEcdsa(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeEcdsaSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2458
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},signEcdsaRecoverable:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signEcdsaRecoverable(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRecoverableEcdsaSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2459
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},eciesEncrypt:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.eciesEncrypt(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2460
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},eciesDecrypt:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.eciesDecrypt(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2461
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},signHashSchnorr:(uniffiHandle,hash,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signHashSchnorr(FfiConverterArrayBuffer.lift(hash),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeSchnorrSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2462
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},generateFrostSigningCommitments:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.generateFrostSigningCommitments({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalFrostCommitments.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2463
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getPublicKeyForNode:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.getPublicKeyForNode(FfiConverterTypeExternalTreeNodeId.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2464
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},generateRandomKey:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.generateRandomKey({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalPrivateKeySource.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2465
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getStaticDepositPrivateKeySource:(uniffiHandle,index,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.getStaticDepositPrivateKeySource(FfiConverterUInt32.lift(index),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalPrivateKeySource.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2466
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getStaticDepositPrivateKey:(uniffiHandle,index,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.getStaticDepositPrivateKey(FfiConverterUInt32.lift(index),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePrivateKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2467
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getStaticDepositPublicKey:(uniffiHandle,index,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.getStaticDepositPublicKey(FfiConverterUInt32.lift(index),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2468
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},subtractPrivateKeys:(uniffiHandle,signingKey,newSigningKey,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.subtractPrivateKeys(FfiConverterTypeExternalPrivateKeySource.lift(signingKey),FfiConverterTypeExternalPrivateKeySource.lift(newSigningKey),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalPrivateKeySource.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2469
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},splitSecret:(uniffiHandle,secret,threshold,numShares,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.splitSecret(FfiConverterTypeExternalSecretToSplit.lift(secret),FfiConverterUInt32.lift(threshold),FfiConverterUInt32.lift(numShares),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeExternalVerifiableSecretShare.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2470
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},encryptPrivateKeyForReceiver:(uniffiHandle,privateKey,receiverPublicKey,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.encryptPrivateKeyForReceiver(FfiConverterTypeExternalEncryptedPrivateKey.lift(privateKey),FfiConverterTypePublicKeyBytes.lift(receiverPublicKey),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2471
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getPublicKeyFromPrivateKeySource:(uniffiHandle,privateKey,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.getPublicKeyFromPrivateKeySource(FfiConverterTypeExternalPrivateKeySource.lift(privateKey),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2472
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},signFrost:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signFrost(FfiConverterTypeExternalSignFrostRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalFrostSignatureShare.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2473
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},aggregateFrostSignatures:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.aggregateFrostSignatures(FfiConverterTypeExternalAggregateFrostRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalFrostSignature.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2474
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},uniffiFree:uniffiHandle=>{// ExternalSigner: this will throw a stale handle error if the handle isn't found.
2475
+ FfiConverterTypeExternalSigner.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(uniffiCallbackInterfaceExternalSigner.vtable);}};/**
1844
2476
  * Trait covering fiat-related functionality
1845
2477
  *//**
1846
2478
  * Trait covering fiat-related functionality
@@ -1934,9 +2566,8 @@ FfiConverterTypeRestClient.drop(uniffiHandle);}},register:()=>{nativeModule().ub
1934
2566
  */async withFiatService(fiatService,asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_fiat_service(uniffiTypeSdkBuilderObjectFactory.clonePointer(this),FfiConverterTypeFiatService.lower(fiatService));},/*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_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
1935
2567
  * Sets the key set type to be used by the SDK.
1936
2568
  * Arguments:
1937
- * - `key_set_type`: The key set type which determines the derivation path.
1938
- * - `use_address_index`: Controls the structure of the BIP derivation path.
1939
- */async withKeySet(keySetType,useAddressIndex,accountNumber,asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_key_set(uniffiTypeSdkBuilderObjectFactory.clonePointer(this),FfiConverterTypeKeySetType.lower(keySetType),FfiConverterBool.lower(useAddressIndex),FfiConverterOptionalUInt32.lower(accountNumber));},/*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_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async withLnurlClient(lnurlClient,asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_lnurl_client(uniffiTypeSdkBuilderObjectFactory.clonePointer(this),FfiConverterTypeRestClient.lower(lnurlClient));},/*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_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2569
+ * - `config`: Key set configuration containing the key set type, address index flag, and optional account number.
2570
+ */async withKeySet(config,asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_key_set(uniffiTypeSdkBuilderObjectFactory.clonePointer(this),FfiConverterTypeKeySetConfig.lower(config));},/*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_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async withLnurlClient(lnurlClient,asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_lnurl_client(uniffiTypeSdkBuilderObjectFactory.clonePointer(this),FfiConverterTypeRestClient.lower(lnurlClient));},/*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_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
1940
2571
  * Sets the payment observer to be used by the SDK.
1941
2572
  * Arguments:
1942
2573
  * - `payment_observer`: The payment observer to be used.
@@ -2182,9 +2813,11 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
2182
2813
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
2183
2814
  */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeTokenIssuerObjectFactory.pointer(this);uniffiTypeTokenIssuerObjectFactory.freePointer(pointer);uniffiTypeTokenIssuerObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeTokenIssuerObjectFactory.isConcreteType(obj);}}const uniffiTypeTokenIssuerObjectFactory={create(pointer){const instance=Object.create(TokenIssuer.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='TokenIssuer';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_tokenissuer_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_tokenissuer(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_tokenissuer(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='TokenIssuer';}};// FfiConverter for TokenIssuerInterface
2184
2815
  const FfiConverterTypeTokenIssuer=new FfiConverterObject(uniffiTypeTokenIssuerObjectFactory);// FfiConverter for boolean | undefined
2185
- const FfiConverterOptionalBool=new FfiConverterOptional(FfiConverterBool);// FfiConverter for Logger | undefined
2816
+ const FfiConverterOptionalBool=new FfiConverterOptional(FfiConverterBool);// FfiConverter for ArrayBuffer | undefined
2817
+ const FfiConverterOptionalArrayBuffer=new FfiConverterOptional(FfiConverterArrayBuffer);// FfiConverter for Logger | undefined
2186
2818
  const FfiConverterOptionalTypeLogger=new FfiConverterOptional(FfiConverterTypeLogger);// FfiConverter for Credentials | undefined
2187
- const FfiConverterOptionalTypeCredentials=new FfiConverterOptional(FfiConverterTypeCredentials);// FfiConverter for LightningAddressInfo | undefined
2819
+ const FfiConverterOptionalTypeCredentials=new FfiConverterOptional(FfiConverterTypeCredentials);// FfiConverter for KeySetConfig | undefined
2820
+ const FfiConverterOptionalTypeKeySetConfig=new FfiConverterOptional(FfiConverterTypeKeySetConfig);// FfiConverter for LightningAddressInfo | undefined
2188
2821
  const FfiConverterOptionalTypeLightningAddressInfo=new FfiConverterOptional(FfiConverterTypeLightningAddressInfo);// FfiConverter for LnurlPayInfo | undefined
2189
2822
  const FfiConverterOptionalTypeLnurlPayInfo=new FfiConverterOptional(FfiConverterTypeLnurlPayInfo);// FfiConverter for LnurlReceiveMetadata | undefined
2190
2823
  const FfiConverterOptionalTypeLnurlReceiveMetadata=new FfiConverterOptional(FfiConverterTypeLnurlReceiveMetadata);// FfiConverter for LnurlWithdrawInfo | undefined
@@ -2195,17 +2828,24 @@ const FfiConverterOptionalTypeRecord=new FfiConverterOptional(FfiConverterTypeRe
2195
2828
  const FfiConverterOptionalTypeSparkHtlcDetails=new FfiConverterOptional(FfiConverterTypeSparkHtlcDetails);// FfiConverter for SparkHtlcOptions | undefined
2196
2829
  const FfiConverterOptionalTypeSparkHtlcOptions=new FfiConverterOptional(FfiConverterTypeSparkHtlcOptions);// FfiConverter for SparkInvoicePaymentDetails | undefined
2197
2830
  const FfiConverterOptionalTypeSparkInvoicePaymentDetails=new FfiConverterOptional(FfiConverterTypeSparkInvoicePaymentDetails);// FfiConverter for Symbol | undefined
2198
- const FfiConverterOptionalTypeSymbol=new FfiConverterOptional(FfiConverterTypeSymbol);// FfiConverter for string | undefined
2831
+ const FfiConverterOptionalTypeSymbol=new FfiConverterOptional(FfiConverterTypeSymbol);// FfiConverter for TokenConversionInfo | undefined
2832
+ const FfiConverterOptionalTypeTokenConversionInfo=new FfiConverterOptional(FfiConverterTypeTokenConversionInfo);// FfiConverter for TokenConversionOptions | undefined
2833
+ const FfiConverterOptionalTypeTokenConversionOptions=new FfiConverterOptional(FfiConverterTypeTokenConversionOptions);// FfiConverter for string | undefined
2199
2834
  const FfiConverterOptionalString=new FfiConverterOptional(FfiConverterString);// FfiConverter for /*u32*/number | undefined
2200
2835
  const FfiConverterOptionalUInt32=new FfiConverterOptional(FfiConverterUInt32);// FfiConverter for /*u64*/bigint | undefined
2201
- const FfiConverterOptionalUInt64=new FfiConverterOptional(FfiConverterUInt64);// FfiConverter for Array<Bip21Extra>
2836
+ const FfiConverterOptionalUInt64=new FfiConverterOptional(FfiConverterUInt64);// FfiConverter for Array<ArrayBuffer>
2837
+ const FfiConverterArrayArrayBuffer=new FfiConverterArray(FfiConverterArrayBuffer);// FfiConverter for Array<Bip21Extra>
2202
2838
  const FfiConverterArrayTypeBip21Extra=new FfiConverterArray(FfiConverterTypeBip21Extra);// FfiConverter for Array<Bolt11RouteHint>
2203
2839
  const FfiConverterArrayTypeBolt11RouteHint=new FfiConverterArray(FfiConverterTypeBolt11RouteHint);// FfiConverter for Array<Bolt11RouteHintHop>
2204
2840
  const FfiConverterArrayTypeBolt11RouteHintHop=new FfiConverterArray(FfiConverterTypeBolt11RouteHintHop);// FfiConverter for Array<Bolt12OfferBlindedPath>
2205
2841
  const FfiConverterArrayTypeBolt12OfferBlindedPath=new FfiConverterArray(FfiConverterTypeBolt12OfferBlindedPath);// FfiConverter for Array<DepositInfo>
2206
2842
  const FfiConverterArrayTypeDepositInfo=new FfiConverterArray(FfiConverterTypeDepositInfo);// FfiConverter for Array<ExternalInputParser>
2207
- const FfiConverterArrayTypeExternalInputParser=new FfiConverterArray(FfiConverterTypeExternalInputParser);// FfiConverter for Array<FiatCurrency>
2208
- const FfiConverterArrayTypeFiatCurrency=new FfiConverterArray(FfiConverterTypeFiatCurrency);// FfiConverter for Array<IncomingChange>
2843
+ const FfiConverterArrayTypeExternalInputParser=new FfiConverterArray(FfiConverterTypeExternalInputParser);// FfiConverter for Array<ExternalVerifiableSecretShare>
2844
+ const FfiConverterArrayTypeExternalVerifiableSecretShare=new FfiConverterArray(FfiConverterTypeExternalVerifiableSecretShare);// FfiConverter for Array<FiatCurrency>
2845
+ const FfiConverterArrayTypeFiatCurrency=new FfiConverterArray(FfiConverterTypeFiatCurrency);// FfiConverter for Array<IdentifierCommitmentPair>
2846
+ const FfiConverterArrayTypeIdentifierCommitmentPair=new FfiConverterArray(FfiConverterTypeIdentifierCommitmentPair);// FfiConverter for Array<IdentifierPublicKeyPair>
2847
+ const FfiConverterArrayTypeIdentifierPublicKeyPair=new FfiConverterArray(FfiConverterTypeIdentifierPublicKeyPair);// FfiConverter for Array<IdentifierSignaturePair>
2848
+ const FfiConverterArrayTypeIdentifierSignaturePair=new FfiConverterArray(FfiConverterTypeIdentifierSignaturePair);// FfiConverter for Array<IncomingChange>
2209
2849
  const FfiConverterArrayTypeIncomingChange=new FfiConverterArray(FfiConverterTypeIncomingChange);// FfiConverter for Array<LocaleOverrides>
2210
2850
  const FfiConverterArrayTypeLocaleOverrides=new FfiConverterArray(FfiConverterTypeLocaleOverrides);// FfiConverter for Array<LocalizedName>
2211
2851
  const FfiConverterArrayTypeLocalizedName=new FfiConverterArray(FfiConverterTypeLocalizedName);// FfiConverter for Array<OutgoingChange>
@@ -2230,10 +2870,12 @@ const FfiConverterOptionalTypeSuccessAction=new FfiConverterOptional(FfiConverte
2230
2870
  const FfiConverterOptionalTypeSuccessActionProcessed=new FfiConverterOptional(FfiConverterTypeSuccessActionProcessed);// FfiConverter for Map<string, string> | undefined
2231
2871
  const FfiConverterOptionalMapStringString=new FfiConverterOptional(FfiConverterMapStringString);// FfiConverter for Array<ExternalInputParser> | undefined
2232
2872
  const FfiConverterOptionalArrayTypeExternalInputParser=new FfiConverterOptional(FfiConverterArrayTypeExternalInputParser);// FfiConverter for Array<InputType>
2233
- const FfiConverterArrayTypeInputType=new FfiConverterArray(FfiConverterTypeInputType);// FfiConverter for Array<PaymentStatus>
2873
+ const FfiConverterArrayTypeInputType=new FfiConverterArray(FfiConverterTypeInputType);// FfiConverter for Array<PaymentDetailsFilter>
2874
+ const FfiConverterArrayTypePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypePaymentDetailsFilter);// FfiConverter for Array<PaymentStatus>
2234
2875
  const FfiConverterArrayTypePaymentStatus=new FfiConverterArray(FfiConverterTypePaymentStatus);// FfiConverter for Array<PaymentType>
2235
2876
  const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<SparkHtlcStatus>
2236
- const FfiConverterArrayTypeSparkHtlcStatus=new FfiConverterArray(FfiConverterTypeSparkHtlcStatus);// FfiConverter for Array<PaymentStatus> | undefined
2877
+ const FfiConverterArrayTypeSparkHtlcStatus=new FfiConverterArray(FfiConverterTypeSparkHtlcStatus);// FfiConverter for Array<PaymentDetailsFilter> | undefined
2878
+ const FfiConverterOptionalArrayTypePaymentDetailsFilter=new FfiConverterOptional(FfiConverterArrayTypePaymentDetailsFilter);// FfiConverter for Array<PaymentStatus> | undefined
2237
2879
  const FfiConverterOptionalArrayTypePaymentStatus=new FfiConverterOptional(FfiConverterArrayTypePaymentStatus);// FfiConverter for Array<PaymentType> | undefined
2238
2880
  const FfiConverterOptionalArrayTypePaymentType=new FfiConverterOptional(FfiConverterArrayTypePaymentType);// FfiConverter for Array<SparkHtlcStatus> | undefined
2239
2881
  const FfiConverterOptionalArrayTypeSparkHtlcStatus=new FfiConverterOptional(FfiConverterArrayTypeSparkHtlcStatus);/**
@@ -2247,5 +2889,5 @@ const FfiConverterOptionalArrayTypeSparkHtlcStatus=new FfiConverterOptional(FfiC
2247
2889
  * It also initializes the machinery to enable Rust to talk back to Javascript.
2248
2890
  */function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
2249
2891
  const bindingsContractVersion=26;// Get the scaffolding contract version by calling the into the dylib
2250
- 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_default_config()!==62194){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_config');}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_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_event_listener()!==37737){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization()!==56996){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization');}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_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()!==330){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}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_leaf_optimization_progress()!==38008){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress');}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_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()!==16156){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_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_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_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_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_start_leaf_optimization()!==22827){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization');}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_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_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_paymentobserver_before_send()!==30686){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}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_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_key_set()!==42926){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set');}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_real_time_sync_storage()!==20579){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_real_time_sync_storage');}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_storage()!==59400){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}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()!==19728){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment()!==28075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata()!==45500){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_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_add_deposit()!==60240){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()!==60586){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()!==54118){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()!==39803){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()!==7460){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change()!==19087){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync()!==20071){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes()!==23473){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision()!==36887){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records()!==41782){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record()!==23002){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records()!==61508){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records()!==53552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change()!==16326){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming()!==9986){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming');}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_sdkbuilder_new()!==65435){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}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();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceStorage.register();uniffiCallbackInterfaceSyncStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAssetFilter,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeChainApiType,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeExternalInputParser,FfiConverterTypeFee,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetType,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationConfig,FfiConverterTypeOptimizationEvent,FfiConverterTypeOptimizationProgress,FfiConverterTypeOutgoingChange,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkEvent,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeStorage,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncStorage,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeu128}});
2892
+ 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_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_signer()!==40694){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signer');}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_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_event_listener()!==37737){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization()!==56996){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization');}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_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()!==330){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_token_conversion_limits()!==9413){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_token_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_leaf_optimization_progress()!==38008){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress');}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_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()!==16156){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_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_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_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_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_start_leaf_optimization()!==22827){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization');}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_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_externalsigner_identity_public_key()!==44711){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key()!==63908){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa()!==52291){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable()!==8564){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_encrypt()!==19449){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_encrypt');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_decrypt()!==46414){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_decrypt');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr()!==57220){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_frost_signing_commitments()!==24826){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_frost_signing_commitments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node()!==32818){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key()!==22789){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source()!==37751){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key()!==55375){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_public_key()!==49264){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_private_keys()!==46671){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_private_keys');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret()!==840){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver()!==42476){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source()!==38684){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost()!==1497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost_signatures()!==26523){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost_signatures');}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_paymentobserver_before_send()!==30686){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}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_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_key_set()!==50052){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set');}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_real_time_sync_storage()!==20579){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_real_time_sync_storage');}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_storage()!==59400){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}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()!==19728){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment()!==28075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata()!==45500){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_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_add_deposit()!==60240){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()!==60586){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()!==54118){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()!==39803){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()!==7460){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change()!==19087){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync()!==20071){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes()!==23473){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision()!==36887){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records()!==41782){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record()!==23002){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records()!==61508){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records()!==53552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change()!==16326){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming()!==9986){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming');}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_sdkbuilder_new()!==65435){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}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();uniffiCallbackInterfaceExternalSigner.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceStorage.register();uniffiCallbackInterfaceSyncStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAssetFilter,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeChainApiType,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeExternalAggregateFrostRequest,FfiConverterTypeExternalEncryptedPrivateKey,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalPrivateKeySource,FfiConverterTypeExternalScalar,FfiConverterTypeExternalSecretShare,FfiConverterTypeExternalSecretToSplit,FfiConverterTypeExternalSignFrostRequest,FfiConverterTypeExternalSigner,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeExternalVerifiableSecretShare,FfiConverterTypeFee,FfiConverterTypeFetchTokenConversionLimitsRequest,FfiConverterTypeFetchTokenConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetConfig,FfiConverterTypeKeySetType,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationConfig,FfiConverterTypeOptimizationEvent,FfiConverterTypeOptimizationProgress,FfiConverterTypeOutgoingChange,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypePrivateKeyBytes,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKeyBytes,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkEvent,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeStorage,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncStorage,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenConversionInfo,FfiConverterTypeTokenConversionOptions,FfiConverterTypeTokenConversionType,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeu128}});
2251
2893
  //# sourceMappingURL=breez_sdk_spark.js.map