@breeztech/breez-sdk-spark-react-native 0.15.1 → 0.17.0
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.
- package/cpp/generated/breez_sdk_spark.cpp +5561 -2579
- package/cpp/generated/breez_sdk_spark.hpp +285 -108
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +1631 -634
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/commonjs/passkey-prf-provider.js +300 -0
- package/lib/commonjs/passkey-prf-provider.js.map +1 -0
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +1631 -634
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/passkey-prf-provider.js +293 -0
- package/lib/module/passkey-prf-provider.js.map +1 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +230 -157
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +9187 -4938
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/passkey-prf-provider.d.ts +135 -0
- package/lib/typescript/commonjs/src/passkey-prf-provider.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +230 -157
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +9187 -4938
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/passkey-prf-provider.d.ts +135 -0
- package/lib/typescript/module/src/passkey-prf-provider.d.ts.map +1 -0
- package/package.json +17 -5
- package/scripts/post-ubrn.js +227 -0
- package/src/generated/breez_sdk_spark-ffi.ts +426 -215
- package/src/generated/breez_sdk_spark.ts +16695 -8325
- package/src/passkey-prf-provider.ts +372 -0
|
@@ -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,
|
|
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.
|
|
4
4
|
const uniffiCaller=new UniffiRustCaller(()=>({code:0}));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.
|
|
@@ -27,23 +27,34 @@ process?.env?.NODE_ENV!=='production'||false;// Public interface members begin h
|
|
|
27
27
|
* # Returns
|
|
28
28
|
*
|
|
29
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;}}
|
|
31
|
-
*
|
|
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;}}/**
|
|
31
|
+
* Builds the Turnkey-backed Breez and Spark signers from `config`, sharing one
|
|
32
|
+
* Turnkey client.
|
|
32
33
|
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
34
|
+
* The Spark signer keeps every signing operation in the Turnkey enclave; the
|
|
35
|
+
* Breez signer does too, except ECIES and HMAC, which run locally against a
|
|
36
|
+
* dedicated, non-Spark key exported once here. Exporting a non-Spark key keeps
|
|
37
|
+
* every Spark key (the identity key included) in the enclave; ECIES/HMAC only
|
|
38
|
+
* need a stable key, not a Spark one.
|
|
39
|
+
*/export async function createTurnkeySigner(config,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_create_turnkey_signer(FfiConverterTypeTurnkeyConfig.lower(config));},/*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:*/FfiConverterTypeExternalSigners.lift.bind(FfiConverterTypeExternalSigners),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
40
|
+
* Wraps a caller-supplied [`Storage`] implementation as a [`StorageBackend`].
|
|
41
|
+
* The tree, token-output and session stores use the in-memory defaults.
|
|
42
|
+
*/export function customStorage(storage){return FfiConverterTypeStorageBackend.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_custom_storage(FfiConverterTypeStorage.lower(storage),callStatus);},/*liftString:*/FfiConverterString.lift));}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));}/**
|
|
43
|
+
* Creates the default external signers from a mnemonic.
|
|
44
|
+
*
|
|
45
|
+
* This is a convenience factory method for creating the two signer halves
|
|
46
|
+
* that can be passed to `connect_with_signer` or `SdkBuilder::new_with_signer`.
|
|
47
|
+
* Key derivation matches the seed-based connect path: an SDK built either way
|
|
48
|
+
* from the same mnemonic is the same wallet.
|
|
35
49
|
*
|
|
36
50
|
* # Arguments
|
|
37
51
|
*
|
|
38
52
|
* * `mnemonic` - BIP39 mnemonic phrase (12 or 24 words)
|
|
39
53
|
* * `passphrase` - Optional passphrase for the mnemonic
|
|
40
54
|
* * `network` - Network to use (Mainnet or Regtest)
|
|
41
|
-
* * `
|
|
42
|
-
*
|
|
43
|
-
|
|
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));}/**
|
|
55
|
+
* * `account_number` - Account number in the derivation path. Unset uses the
|
|
56
|
+
* network default: 0 on Regtest, 1 on all other networks.
|
|
57
|
+
*/export function defaultExternalSigners(mnemonic,passphrase,network,accountNumber)/*throws*/{return FfiConverterTypeExternalSigners.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_default_external_signers(FfiConverterString.lower(mnemonic),FfiConverterOptionalString.lower(passphrase),FfiConverterTypeNetwork.lower(network),FfiConverterOptionalUInt32.lower(accountNumber),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
47
58
|
* Builds a [`Config`] suitable for multi-tenant server-mode deployments.
|
|
48
59
|
*
|
|
49
60
|
* This preset returns the same configuration as [`default_config`] with
|
|
@@ -53,8 +64,8 @@ process?.env?.NODE_ENV!=='production'||false;// Public interface members begin h
|
|
|
53
64
|
* explicitly, so an ephemeral SDK instance stays cheap and predictable.
|
|
54
65
|
*
|
|
55
66
|
* Config fields whose background services are gated off are reset to their
|
|
56
|
-
* inactive shape: `real_time_sync_server_url`
|
|
57
|
-
* `leaf_optimization_config.auto_enabled` and
|
|
67
|
+
* inactive shape: `real_time_sync_server_url` and `cross_chain_config` are
|
|
68
|
+
* set to `None`, and both `leaf_optimization_config.auto_enabled` and
|
|
58
69
|
* `token_optimization_config.auto_enabled` are set to `false`. The SDK
|
|
59
70
|
* rejects builds where `background_tasks_enabled` is `false` and any of
|
|
60
71
|
* those fields is left in its active shape, so flip the flag via this
|
|
@@ -78,6 +89,10 @@ process?.env?.NODE_ENV!=='production'||false;// Public interface members begin h
|
|
|
78
89
|
* reflects the latest local sync and `ensure_synced=true` is rejected with
|
|
79
90
|
* an invalid-input error
|
|
80
91
|
*/export function defaultServerConfig(network){return FfiConverterTypeConfig.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_default_server_config(FfiConverterTypeNetwork.lower(network),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
92
|
+
* File-based `SQLite` storage rooted at `storage_dir` — the default for
|
|
93
|
+
* mobile and desktop apps. Each tenant gets its own database file under the
|
|
94
|
+
* directory.
|
|
95
|
+
*/export function defaultStorage(storageDir){return FfiConverterTypeStorageBackend.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_default_storage(FfiConverterString.lower(storageDir),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
81
96
|
* Fetches the current status of Spark network services relevant to the SDK.
|
|
82
97
|
*
|
|
83
98
|
* This function queries the Spark status API and returns the worst status
|
|
@@ -95,10 +110,8 @@ process?.env?.NODE_ENV!=='production'||false;// Public interface members begin h
|
|
|
95
110
|
*/export async function newRestChainService(url,network,apiType,credentials,asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_new_rest_chain_service(FfiConverterString.lower(url),FfiConverterTypeNetwork.lower(network),FfiConverterTypeChainApiType.lower(apiType),FfiConverterOptionalTypeCredentials.lower(credentials));},/*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:*/FfiConverterTypeBitcoinChainService.lift.bind(FfiConverterTypeBitcoinChainService),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
96
111
|
* Constructs an [`SdkContext`] from a `SdkContextConfig`.
|
|
97
112
|
*
|
|
98
|
-
* The returned `Arc` is cheap to clone and can back many SDK instances
|
|
99
|
-
*
|
|
100
|
-
* supply a DB config to back the SDKs with a shared `PostgreSQL` or `MySQL`
|
|
101
|
-
* pool.
|
|
113
|
+
* The returned `Arc` is cheap to clone and can back many SDK instances,
|
|
114
|
+
* sharing their HTTP client and operator gRPC channels.
|
|
102
115
|
*/export async function newSharedSdkContext(config,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_new_shared_sdk_context(FfiConverterTypeSdkContextConfig.lower(config));},/*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:*/FfiConverterTypeSdkContext.lift.bind(FfiConverterTypeSdkContext),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
103
116
|
* Trait for event listeners
|
|
104
117
|
*/// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
@@ -151,6 +164,20 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
151
164
|
*/new:create,/**
|
|
152
165
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
153
166
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeAesSuccessActionDataDecrypted=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{description:FfiConverterString.read(from),plaintext:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.description,into);FfiConverterString.write(value.plaintext,into);}allocationSize(value){return FfiConverterString.allocationSize(value.description)+FfiConverterString.allocationSize(value.plaintext);}}return new FFIConverter();})();/**
|
|
167
|
+
* Request for [`BreezSdk::authorize_lightning_address_transfer`]. Called by
|
|
168
|
+
* the *current owner* to authorize handing their registered username over to
|
|
169
|
+
* `transferee_pubkey`.
|
|
170
|
+
*//**
|
|
171
|
+
* Generated factory for {@link AuthorizeTransferRequest} record objects.
|
|
172
|
+
*/export const AuthorizeTransferRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
173
|
+
* Create a frozen instance of {@link AuthorizeTransferRequest}, with defaults specified
|
|
174
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
175
|
+
*/create,/**
|
|
176
|
+
* Create a frozen instance of {@link AuthorizeTransferRequest}, with defaults specified
|
|
177
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
178
|
+
*/new:create,/**
|
|
179
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
180
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeAuthorizeTransferRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{transfereePubkey:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.transfereePubkey,into);}allocationSize(value){return FfiConverterString.allocationSize(value.transfereePubkey);}}return new FFIConverter();})();/**
|
|
154
181
|
* Generated factory for {@link Bip21Details} record objects.
|
|
155
182
|
*/export const Bip21Details=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
156
183
|
* Create a frozen instance of {@link Bip21Details}, with defaults specified
|
|
@@ -373,6 +400,20 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
373
400
|
*/new:create,/**
|
|
374
401
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
375
402
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimHtlcPaymentResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{payment:FfiConverterTypePayment.read(from)};}write(value,into){FfiConverterTypePayment.write(value.payment,into);}allocationSize(value){return FfiConverterTypePayment.allocationSize(value.payment);}}return new FFIConverter();})();/**
|
|
403
|
+
* Request for [`BreezSdk::claim_lightning_address_transfer`]. Called by the
|
|
404
|
+
* *new owner* to complete the takeover using the authorization produced by
|
|
405
|
+
* the current owner.
|
|
406
|
+
*//**
|
|
407
|
+
* Generated factory for {@link ClaimTransferRequest} record objects.
|
|
408
|
+
*/export const ClaimTransferRequest=(()=>{const defaults=()=>({description:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
409
|
+
* Create a frozen instance of {@link ClaimTransferRequest}, with defaults specified
|
|
410
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
411
|
+
*/create,/**
|
|
412
|
+
* Create a frozen instance of {@link ClaimTransferRequest}, with defaults specified
|
|
413
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
414
|
+
*/new:create,/**
|
|
415
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
416
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimTransferRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{authorization:FfiConverterTypeTransferAuthorization.read(from),description:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterTypeTransferAuthorization.write(value.authorization,into);FfiConverterOptionalString.write(value.description,into);}allocationSize(value){return FfiConverterTypeTransferAuthorization.allocationSize(value.authorization)+FfiConverterOptionalString.allocationSize(value.description);}}return new FFIConverter();})();/**
|
|
376
417
|
* Generated factory for {@link Config} record objects.
|
|
377
418
|
*/export const Config=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
378
419
|
* Create a frozen instance of {@link Config}, with defaults specified
|
|
@@ -382,7 +423,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
382
423
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
383
424
|
*/new:create,/**
|
|
384
425
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
385
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{apiKey:FfiConverterOptionalString.read(from),network:FfiConverterTypeNetwork.read(from),syncIntervalSecs:FfiConverterUInt32.read(from),maxDepositClaimFee:FfiConverterOptionalTypeMaxFee.read(from),lnurlDomain:FfiConverterOptionalString.read(from),preferSparkOverLightning:FfiConverterBool.read(from),externalInputParsers:FfiConverterOptionalArrayTypeExternalInputParser.read(from),useDefaultExternalInputParsers:FfiConverterBool.read(from),realTimeSyncServerUrl:FfiConverterOptionalString.read(from),privateEnabledDefault:FfiConverterBool.read(from),leafOptimizationConfig:FfiConverterTypeLeafOptimizationConfig.read(from),tokenOptimizationConfig:FfiConverterTypeTokenOptimizationConfig.read(from),stableBalanceConfig:FfiConverterOptionalTypeStableBalanceConfig.read(from),maxConcurrentClaims:FfiConverterUInt32.read(from),sparkConfig:FfiConverterOptionalTypeSparkConfig.read(from),backgroundTasksEnabled:FfiConverterBool.read(from)};}write(value,into){FfiConverterOptionalString.write(value.apiKey,into);FfiConverterTypeNetwork.write(value.network,into);FfiConverterUInt32.write(value.syncIntervalSecs,into);FfiConverterOptionalTypeMaxFee.write(value.maxDepositClaimFee,into);FfiConverterOptionalString.write(value.lnurlDomain,into);FfiConverterBool.write(value.preferSparkOverLightning,into);FfiConverterOptionalArrayTypeExternalInputParser.write(value.externalInputParsers,into);FfiConverterBool.write(value.useDefaultExternalInputParsers,into);FfiConverterOptionalString.write(value.realTimeSyncServerUrl,into);FfiConverterBool.write(value.privateEnabledDefault,into);FfiConverterTypeLeafOptimizationConfig.write(value.leafOptimizationConfig,into);FfiConverterTypeTokenOptimizationConfig.write(value.tokenOptimizationConfig,into);FfiConverterOptionalTypeStableBalanceConfig.write(value.stableBalanceConfig,into);FfiConverterUInt32.write(value.maxConcurrentClaims,into);FfiConverterOptionalTypeSparkConfig.write(value.sparkConfig,into);FfiConverterBool.write(value.backgroundTasksEnabled,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.apiKey)+FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterUInt32.allocationSize(value.syncIntervalSecs)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxDepositClaimFee)+FfiConverterOptionalString.allocationSize(value.lnurlDomain)+FfiConverterBool.allocationSize(value.preferSparkOverLightning)+FfiConverterOptionalArrayTypeExternalInputParser.allocationSize(value.externalInputParsers)+FfiConverterBool.allocationSize(value.useDefaultExternalInputParsers)+FfiConverterOptionalString.allocationSize(value.realTimeSyncServerUrl)+FfiConverterBool.allocationSize(value.privateEnabledDefault)+FfiConverterTypeLeafOptimizationConfig.allocationSize(value.leafOptimizationConfig)+FfiConverterTypeTokenOptimizationConfig.allocationSize(value.tokenOptimizationConfig)+FfiConverterOptionalTypeStableBalanceConfig.allocationSize(value.stableBalanceConfig)+FfiConverterUInt32.allocationSize(value.maxConcurrentClaims)+FfiConverterOptionalTypeSparkConfig.allocationSize(value.sparkConfig)+FfiConverterBool.allocationSize(value.backgroundTasksEnabled);}}return new FFIConverter();})();/**
|
|
426
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{apiKey:FfiConverterOptionalString.read(from),network:FfiConverterTypeNetwork.read(from),syncIntervalSecs:FfiConverterUInt32.read(from),maxDepositClaimFee:FfiConverterOptionalTypeMaxFee.read(from),lnurlDomain:FfiConverterOptionalString.read(from),preferSparkOverLightning:FfiConverterBool.read(from),externalInputParsers:FfiConverterOptionalArrayTypeExternalInputParser.read(from),useDefaultExternalInputParsers:FfiConverterBool.read(from),realTimeSyncServerUrl:FfiConverterOptionalString.read(from),privateEnabledDefault:FfiConverterBool.read(from),leafOptimizationConfig:FfiConverterTypeLeafOptimizationConfig.read(from),tokenOptimizationConfig:FfiConverterTypeTokenOptimizationConfig.read(from),stableBalanceConfig:FfiConverterOptionalTypeStableBalanceConfig.read(from),maxConcurrentClaims:FfiConverterUInt32.read(from),sparkConfig:FfiConverterOptionalTypeSparkConfig.read(from),backgroundTasksEnabled:FfiConverterBool.read(from),crossChainConfig:FfiConverterOptionalTypeCrossChainConfig.read(from)};}write(value,into){FfiConverterOptionalString.write(value.apiKey,into);FfiConverterTypeNetwork.write(value.network,into);FfiConverterUInt32.write(value.syncIntervalSecs,into);FfiConverterOptionalTypeMaxFee.write(value.maxDepositClaimFee,into);FfiConverterOptionalString.write(value.lnurlDomain,into);FfiConverterBool.write(value.preferSparkOverLightning,into);FfiConverterOptionalArrayTypeExternalInputParser.write(value.externalInputParsers,into);FfiConverterBool.write(value.useDefaultExternalInputParsers,into);FfiConverterOptionalString.write(value.realTimeSyncServerUrl,into);FfiConverterBool.write(value.privateEnabledDefault,into);FfiConverterTypeLeafOptimizationConfig.write(value.leafOptimizationConfig,into);FfiConverterTypeTokenOptimizationConfig.write(value.tokenOptimizationConfig,into);FfiConverterOptionalTypeStableBalanceConfig.write(value.stableBalanceConfig,into);FfiConverterUInt32.write(value.maxConcurrentClaims,into);FfiConverterOptionalTypeSparkConfig.write(value.sparkConfig,into);FfiConverterBool.write(value.backgroundTasksEnabled,into);FfiConverterOptionalTypeCrossChainConfig.write(value.crossChainConfig,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.apiKey)+FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterUInt32.allocationSize(value.syncIntervalSecs)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxDepositClaimFee)+FfiConverterOptionalString.allocationSize(value.lnurlDomain)+FfiConverterBool.allocationSize(value.preferSparkOverLightning)+FfiConverterOptionalArrayTypeExternalInputParser.allocationSize(value.externalInputParsers)+FfiConverterBool.allocationSize(value.useDefaultExternalInputParsers)+FfiConverterOptionalString.allocationSize(value.realTimeSyncServerUrl)+FfiConverterBool.allocationSize(value.privateEnabledDefault)+FfiConverterTypeLeafOptimizationConfig.allocationSize(value.leafOptimizationConfig)+FfiConverterTypeTokenOptimizationConfig.allocationSize(value.tokenOptimizationConfig)+FfiConverterOptionalTypeStableBalanceConfig.allocationSize(value.stableBalanceConfig)+FfiConverterUInt32.allocationSize(value.maxConcurrentClaims)+FfiConverterOptionalTypeSparkConfig.allocationSize(value.sparkConfig)+FfiConverterBool.allocationSize(value.backgroundTasksEnabled)+FfiConverterOptionalTypeCrossChainConfig.allocationSize(value.crossChainConfig);}}return new FFIConverter();})();/**
|
|
386
427
|
* Generated factory for {@link ConnectRequest} record objects.
|
|
387
428
|
*/export const ConnectRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
388
429
|
* Create a frozen instance of {@link ConnectRequest}, with defaults specified
|
|
@@ -393,6 +434,35 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
393
434
|
*/new:create,/**
|
|
394
435
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
395
436
|
*/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();})();/**
|
|
437
|
+
* Request shape for [`PasskeyClient::connect_with_passkey`].
|
|
438
|
+
*//**
|
|
439
|
+
* Generated factory for {@link ConnectWithPasskeyRequest} record objects.
|
|
440
|
+
*/export const ConnectWithPasskeyRequest=(()=>{const defaults=()=>({label:undefined,allowCredentials:undefined,excludeCredentials:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
441
|
+
* Create a frozen instance of {@link ConnectWithPasskeyRequest}, with defaults specified
|
|
442
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
443
|
+
*/create,/**
|
|
444
|
+
* Create a frozen instance of {@link ConnectWithPasskeyRequest}, with defaults specified
|
|
445
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
446
|
+
*/new:create,/**
|
|
447
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
448
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConnectWithPasskeyRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{label:FfiConverterOptionalString.read(from),allowCredentials:FfiConverterOptionalArrayArrayBuffer.read(from),excludeCredentials:FfiConverterOptionalArrayArrayBuffer.read(from)};}write(value,into){FfiConverterOptionalString.write(value.label,into);FfiConverterOptionalArrayArrayBuffer.write(value.allowCredentials,into);FfiConverterOptionalArrayArrayBuffer.write(value.excludeCredentials,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.label)+FfiConverterOptionalArrayArrayBuffer.allocationSize(value.allowCredentials)+FfiConverterOptionalArrayArrayBuffer.allocationSize(value.excludeCredentials);}}return new FFIConverter();})();/**
|
|
449
|
+
* Response from [`PasskeyClient::connect_with_passkey`].
|
|
450
|
+
*
|
|
451
|
+
* `credential` carries whichever credential signed in or was
|
|
452
|
+
* registered, when the provider surfaces it. The register path also
|
|
453
|
+
* populates the attestation fields (`aaguid`, `backup_eligible`); the
|
|
454
|
+
* sign-in path sets only `credential_id`.
|
|
455
|
+
*//**
|
|
456
|
+
* Generated factory for {@link ConnectWithPasskeyResponse} record objects.
|
|
457
|
+
*/export const ConnectWithPasskeyResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
458
|
+
* Create a frozen instance of {@link ConnectWithPasskeyResponse}, with defaults specified
|
|
459
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
460
|
+
*/create,/**
|
|
461
|
+
* Create a frozen instance of {@link ConnectWithPasskeyResponse}, with defaults specified
|
|
462
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
463
|
+
*/new:create,/**
|
|
464
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
465
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConnectWithPasskeyResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{wallet:FfiConverterTypeWallet.read(from),credential:FfiConverterOptionalTypePasskeyCredential.read(from)};}write(value,into){FfiConverterTypeWallet.write(value.wallet,into);FfiConverterOptionalTypePasskeyCredential.write(value.credential,into);}allocationSize(value){return FfiConverterTypeWallet.allocationSize(value.wallet)+FfiConverterOptionalTypePasskeyCredential.allocationSize(value.credential);}}return new FFIConverter();})();/**
|
|
396
466
|
* Request object for connecting to the Spark network using an external signer.
|
|
397
467
|
*
|
|
398
468
|
* This allows using a custom signer implementation instead of providing a seed directly.
|
|
@@ -406,7 +476,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
406
476
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
407
477
|
*/new:create,/**
|
|
408
478
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
409
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConnectWithSignerRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{config:FfiConverterTypeConfig.read(from),
|
|
479
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConnectWithSignerRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{config:FfiConverterTypeConfig.read(from),breezSigner:FfiConverterTypeExternalBreezSigner.read(from),sparkSigner:FfiConverterTypeExternalSparkSigner.read(from),storageDir:FfiConverterString.read(from)};}write(value,into){FfiConverterTypeConfig.write(value.config,into);FfiConverterTypeExternalBreezSigner.write(value.breezSigner,into);FfiConverterTypeExternalSparkSigner.write(value.sparkSigner,into);FfiConverterString.write(value.storageDir,into);}allocationSize(value){return FfiConverterTypeConfig.allocationSize(value.config)+FfiConverterTypeExternalBreezSigner.allocationSize(value.breezSigner)+FfiConverterTypeExternalSparkSigner.allocationSize(value.sparkSigner)+FfiConverterString.allocationSize(value.storageDir);}}return new FFIConverter();})();/**
|
|
410
480
|
* A contact entry containing a name and payment identifier.
|
|
411
481
|
*//**
|
|
412
482
|
* Generated factory for {@link Contact} record objects.
|
|
@@ -419,10 +489,35 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
419
489
|
*/new:create,/**
|
|
420
490
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
421
491
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeContact=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterString.read(from),name:FfiConverterString.read(from),paymentIdentifier:FfiConverterString.read(from),createdAt:FfiConverterUInt64.read(from),updatedAt:FfiConverterUInt64.read(from)};}write(value,into){FfiConverterString.write(value.id,into);FfiConverterString.write(value.name,into);FfiConverterString.write(value.paymentIdentifier,into);FfiConverterUInt64.write(value.createdAt,into);FfiConverterUInt64.write(value.updatedAt,into);}allocationSize(value){return FfiConverterString.allocationSize(value.id)+FfiConverterString.allocationSize(value.name)+FfiConverterString.allocationSize(value.paymentIdentifier)+FfiConverterUInt64.allocationSize(value.createdAt)+FfiConverterUInt64.allocationSize(value.updatedAt);}}return new FFIConverter();})();/**
|
|
422
|
-
*
|
|
492
|
+
* A single conversion in a payment's conversion chain.
|
|
493
|
+
*//**
|
|
494
|
+
* Generated factory for {@link Conversion} record objects.
|
|
495
|
+
*/export const Conversion=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
496
|
+
* Create a frozen instance of {@link Conversion}, with defaults specified
|
|
497
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
498
|
+
*/create,/**
|
|
499
|
+
* Create a frozen instance of {@link Conversion}, with defaults specified
|
|
500
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
501
|
+
*/new:create,/**
|
|
502
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
503
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversion=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{provider:FfiConverterTypeConversionProvider.read(from),status:FfiConverterTypeConversionStatus.read(from),from:FfiConverterTypeConversionSide.read(from),to:FfiConverterTypeConversionSide.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from)};}write(value,into){FfiConverterTypeConversionProvider.write(value.provider,into);FfiConverterTypeConversionStatus.write(value.status,into);FfiConverterTypeConversionSide.write(value.from,into);FfiConverterTypeConversionSide.write(value.to,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(value.amountAdjustment,into);}allocationSize(value){return FfiConverterTypeConversionProvider.allocationSize(value.provider)+FfiConverterTypeConversionStatus.allocationSize(value.status)+FfiConverterTypeConversionSide.allocationSize(value.from)+FfiConverterTypeConversionSide.allocationSize(value.to)+FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(value.amountAdjustment);}}return new FFIConverter();})();/**
|
|
504
|
+
* The asset on a [`ConversionSide`] — groups the ticker, stable identifier,
|
|
505
|
+
* and decimals that always travel together.
|
|
506
|
+
*//**
|
|
507
|
+
* Generated factory for {@link ConversionAsset} record objects.
|
|
508
|
+
*/export const ConversionAsset=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
509
|
+
* Create a frozen instance of {@link ConversionAsset}, with defaults specified
|
|
510
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
511
|
+
*/create,/**
|
|
512
|
+
* Create a frozen instance of {@link ConversionAsset}, with defaults specified
|
|
513
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
514
|
+
*/new:create,/**
|
|
515
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
516
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionAsset=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{ticker:FfiConverterString.read(from),identifier:FfiConverterOptionalString.read(from),decimals:FfiConverterUInt32.read(from)};}write(value,into){FfiConverterString.write(value.ticker,into);FfiConverterOptionalString.write(value.identifier,into);FfiConverterUInt32.write(value.decimals,into);}allocationSize(value){return FfiConverterString.allocationSize(value.ticker)+FfiConverterOptionalString.allocationSize(value.identifier)+FfiConverterUInt32.allocationSize(value.decimals);}}return new FFIConverter();})();/**
|
|
517
|
+
* Outlines the steps involved in one or more conversions on a payment.
|
|
423
518
|
*
|
|
424
519
|
* Built progressively: `status` is available immediately from payment metadata,
|
|
425
|
-
* while `
|
|
520
|
+
* while `conversions` are enriched later from child payments and conversion info.
|
|
426
521
|
*//**
|
|
427
522
|
* Generated factory for {@link ConversionDetails} record objects.
|
|
428
523
|
*/export const ConversionDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
@@ -433,7 +528,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
433
528
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
434
529
|
*/new:create,/**
|
|
435
530
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
436
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{status:FfiConverterTypeConversionStatus.read(from),
|
|
531
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{status:FfiConverterTypeConversionStatus.read(from),conversions:FfiConverterArrayTypeConversion.read(from)};}write(value,into){FfiConverterTypeConversionStatus.write(value.status,into);FfiConverterArrayTypeConversion.write(value.conversions,into);}allocationSize(value){return FfiConverterTypeConversionStatus.allocationSize(value.status)+FfiConverterArrayTypeConversion.allocationSize(value.conversions);}}return new FFIConverter();})();/**
|
|
437
532
|
* Response from estimating a conversion, used when preparing a payment that requires conversion
|
|
438
533
|
*//**
|
|
439
534
|
* Generated factory for {@link ConversionEstimate} record objects.
|
|
@@ -446,16 +541,6 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
446
541
|
*/new:create,/**
|
|
447
542
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
448
543
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionEstimate=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{options:FfiConverterTypeConversionOptions.read(from),amountIn:FfiConverterTypeu128.read(from),amountOut:FfiConverterTypeu128.read(from),fee:FfiConverterTypeu128.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from)};}write(value,into){FfiConverterTypeConversionOptions.write(value.options,into);FfiConverterTypeu128.write(value.amountIn,into);FfiConverterTypeu128.write(value.amountOut,into);FfiConverterTypeu128.write(value.fee,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(value.amountAdjustment,into);}allocationSize(value){return FfiConverterTypeConversionOptions.allocationSize(value.options)+FfiConverterTypeu128.allocationSize(value.amountIn)+FfiConverterTypeu128.allocationSize(value.amountOut)+FfiConverterTypeu128.allocationSize(value.fee)+FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(value.amountAdjustment);}}return new FFIConverter();})();/**
|
|
449
|
-
* Generated factory for {@link ConversionInfo} record objects.
|
|
450
|
-
*/export const ConversionInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
451
|
-
* Create a frozen instance of {@link ConversionInfo}, with defaults specified
|
|
452
|
-
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
453
|
-
*/create,/**
|
|
454
|
-
* Create a frozen instance of {@link ConversionInfo}, with defaults specified
|
|
455
|
-
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
456
|
-
*/new:create,/**
|
|
457
|
-
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
458
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{poolId:FfiConverterString.read(from),conversionId:FfiConverterString.read(from),status:FfiConverterTypeConversionStatus.read(from),fee:FfiConverterOptionalTypeu128.read(from),purpose:FfiConverterOptionalTypeConversionPurpose.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from)};}write(value,into){FfiConverterString.write(value.poolId,into);FfiConverterString.write(value.conversionId,into);FfiConverterTypeConversionStatus.write(value.status,into);FfiConverterOptionalTypeu128.write(value.fee,into);FfiConverterOptionalTypeConversionPurpose.write(value.purpose,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(value.amountAdjustment,into);}allocationSize(value){return FfiConverterString.allocationSize(value.poolId)+FfiConverterString.allocationSize(value.conversionId)+FfiConverterTypeConversionStatus.allocationSize(value.status)+FfiConverterOptionalTypeu128.allocationSize(value.fee)+FfiConverterOptionalTypeConversionPurpose.allocationSize(value.purpose)+FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(value.amountAdjustment);}}return new FFIConverter();})();/**
|
|
459
544
|
* Options for conversion when fulfilling a payment. When set, the SDK will
|
|
460
545
|
* perform a conversion before fulfilling the payment. If not set, the payment
|
|
461
546
|
* will only be fulfilled if the wallet has sufficient balance of the required asset.
|
|
@@ -470,18 +555,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
470
555
|
*/new:create,/**
|
|
471
556
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
472
557
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionOptions=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{conversionType:FfiConverterTypeConversionType.read(from),maxSlippageBps:FfiConverterOptionalUInt32.read(from),completionTimeoutSecs:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterTypeConversionType.write(value.conversionType,into);FfiConverterOptionalUInt32.write(value.maxSlippageBps,into);FfiConverterOptionalUInt32.write(value.completionTimeoutSecs,into);}allocationSize(value){return FfiConverterTypeConversionType.allocationSize(value.conversionType)+FfiConverterOptionalUInt32.allocationSize(value.maxSlippageBps)+FfiConverterOptionalUInt32.allocationSize(value.completionTimeoutSecs);}}return new FFIConverter();})();/**
|
|
473
|
-
*
|
|
558
|
+
* One side (source or destination) of a conversion.
|
|
474
559
|
*//**
|
|
475
|
-
* Generated factory for {@link
|
|
476
|
-
*/export const
|
|
477
|
-
* Create a frozen instance of {@link
|
|
560
|
+
* Generated factory for {@link ConversionSide} record objects.
|
|
561
|
+
*/export const ConversionSide=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
562
|
+
* Create a frozen instance of {@link ConversionSide}, with defaults specified
|
|
478
563
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
479
564
|
*/create,/**
|
|
480
|
-
* Create a frozen instance of {@link
|
|
565
|
+
* Create a frozen instance of {@link ConversionSide}, with defaults specified
|
|
481
566
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
482
567
|
*/new:create,/**
|
|
483
568
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
484
|
-
*/defaults:()=>Object.freeze(defaults())});})();const
|
|
569
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionSide=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{chain:FfiConverterTypeConversionChain.read(from),asset:FfiConverterTypeConversionAsset.read(from),amount:FfiConverterTypeu128.read(from),fee:FfiConverterTypeu128.read(from)};}write(value,into){FfiConverterTypeConversionChain.write(value.chain,into);FfiConverterTypeConversionAsset.write(value.asset,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterTypeu128.write(value.fee,into);}allocationSize(value){return FfiConverterTypeConversionChain.allocationSize(value.chain)+FfiConverterTypeConversionAsset.allocationSize(value.asset)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterTypeu128.allocationSize(value.fee);}}return new FFIConverter();})();/**
|
|
485
570
|
* Generated factory for {@link CreateIssuerTokenRequest} record objects.
|
|
486
571
|
*/export const CreateIssuerTokenRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
487
572
|
* Create a frozen instance of {@link CreateIssuerTokenRequest}, with defaults specified
|
|
@@ -502,6 +587,44 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
502
587
|
*/new:create,/**
|
|
503
588
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
504
589
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCredentials=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{username:FfiConverterString.read(from),password:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.username,into);FfiConverterString.write(value.password,into);}allocationSize(value){return FfiConverterString.allocationSize(value.username)+FfiConverterString.allocationSize(value.password);}}return new FFIConverter();})();/**
|
|
590
|
+
* Generated factory for {@link CrossChainAddressDetails} record objects.
|
|
591
|
+
*/export const CrossChainAddressDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
592
|
+
* Create a frozen instance of {@link CrossChainAddressDetails}, with defaults specified
|
|
593
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
594
|
+
*/create,/**
|
|
595
|
+
* Create a frozen instance of {@link CrossChainAddressDetails}, with defaults specified
|
|
596
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
597
|
+
*/new:create,/**
|
|
598
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
599
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainAddressDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{address:FfiConverterString.read(from),addressFamily:FfiConverterTypeCrossChainAddressFamily.read(from),contractAddress:FfiConverterOptionalString.read(from),chainId:FfiConverterOptionalUInt64.read(from),amount:FfiConverterOptionalTypeu128.read(from)};}write(value,into){FfiConverterString.write(value.address,into);FfiConverterTypeCrossChainAddressFamily.write(value.addressFamily,into);FfiConverterOptionalString.write(value.contractAddress,into);FfiConverterOptionalUInt64.write(value.chainId,into);FfiConverterOptionalTypeu128.write(value.amount,into);}allocationSize(value){return FfiConverterString.allocationSize(value.address)+FfiConverterTypeCrossChainAddressFamily.allocationSize(value.addressFamily)+FfiConverterOptionalString.allocationSize(value.contractAddress)+FfiConverterOptionalUInt64.allocationSize(value.chainId)+FfiConverterOptionalTypeu128.allocationSize(value.amount);}}return new FFIConverter();})();/**
|
|
600
|
+
* Configuration for cross-chain sends.
|
|
601
|
+
*
|
|
602
|
+
* The presence of this struct on [`Config::cross_chain_config`] enables
|
|
603
|
+
* cross-chain providers; `None` disables them.
|
|
604
|
+
*//**
|
|
605
|
+
* Generated factory for {@link CrossChainConfig} record objects.
|
|
606
|
+
*/export const CrossChainConfig=(()=>{const defaults=()=>({defaultSlippageBps:undefined,defaultTargetOverpayBps:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
607
|
+
* Create a frozen instance of {@link CrossChainConfig}, with defaults specified
|
|
608
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
609
|
+
*/create,/**
|
|
610
|
+
* Create a frozen instance of {@link CrossChainConfig}, with defaults specified
|
|
611
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
612
|
+
*/new:create,/**
|
|
613
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
614
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{defaultSlippageBps:FfiConverterOptionalUInt32.read(from),defaultTargetOverpayBps:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterOptionalUInt32.write(value.defaultSlippageBps,into);FfiConverterOptionalUInt32.write(value.defaultTargetOverpayBps,into);}allocationSize(value){return FfiConverterOptionalUInt32.allocationSize(value.defaultSlippageBps)+FfiConverterOptionalUInt32.allocationSize(value.defaultTargetOverpayBps);}}return new FFIConverter();})();/**
|
|
615
|
+
* A single route available for cross-chain transfers, tagged with the provider
|
|
616
|
+
* that offers it. Returned by `get_cross_chain_routes()`.
|
|
617
|
+
*//**
|
|
618
|
+
* Generated factory for {@link CrossChainRoutePair} record objects.
|
|
619
|
+
*/export const CrossChainRoutePair=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
620
|
+
* Create a frozen instance of {@link CrossChainRoutePair}, with defaults specified
|
|
621
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
622
|
+
*/create,/**
|
|
623
|
+
* Create a frozen instance of {@link CrossChainRoutePair}, with defaults specified
|
|
624
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
625
|
+
*/new:create,/**
|
|
626
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
627
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainRoutePair=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{provider:FfiConverterTypeCrossChainProvider.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),contractAddress:FfiConverterOptionalString.read(from),decimals:FfiConverterUInt8.read(from),exactOutEligible:FfiConverterBool.read(from),supportedSources:FfiConverterArrayTypeSourceAsset.read(from)};}write(value,into){FfiConverterTypeCrossChainProvider.write(value.provider,into);FfiConverterString.write(value.chain,into);FfiConverterOptionalString.write(value.chainId,into);FfiConverterString.write(value.asset,into);FfiConverterOptionalString.write(value.contractAddress,into);FfiConverterUInt8.write(value.decimals,into);FfiConverterBool.write(value.exactOutEligible,into);FfiConverterArrayTypeSourceAsset.write(value.supportedSources,into);}allocationSize(value){return FfiConverterTypeCrossChainProvider.allocationSize(value.provider)+FfiConverterString.allocationSize(value.chain)+FfiConverterOptionalString.allocationSize(value.chainId)+FfiConverterString.allocationSize(value.asset)+FfiConverterOptionalString.allocationSize(value.contractAddress)+FfiConverterUInt8.allocationSize(value.decimals)+FfiConverterBool.allocationSize(value.exactOutEligible)+FfiConverterArrayTypeSourceAsset.allocationSize(value.supportedSources);}}return new FFIConverter();})();/**
|
|
505
628
|
* Details about a supported currency in the fiat rate feed
|
|
506
629
|
*//**
|
|
507
630
|
* Generated factory for {@link CurrencyInfo} record objects.
|
|
@@ -524,42 +647,56 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
524
647
|
*/new:create,/**
|
|
525
648
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
526
649
|
*/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),isMature:FfiConverterBool.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);FfiConverterBool.write(value.isMature,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)+FfiConverterBool.allocationSize(value.isMature)+FfiConverterOptionalString.allocationSize(value.refundTx)+FfiConverterOptionalString.allocationSize(value.refundTxId)+FfiConverterOptionalTypeDepositClaimError.allocationSize(value.claimError);}}return new FFIConverter();})();/**
|
|
527
|
-
*
|
|
650
|
+
* Derived seeds plus the credential observed in the same assertion.
|
|
528
651
|
*//**
|
|
529
|
-
* Generated factory for {@link
|
|
530
|
-
*/export const
|
|
531
|
-
* Create a frozen instance of {@link
|
|
652
|
+
* Generated factory for {@link DeriveSeedsOutput} record objects.
|
|
653
|
+
*/export const DeriveSeedsOutput=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
654
|
+
* Create a frozen instance of {@link DeriveSeedsOutput}, with defaults specified
|
|
532
655
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
533
656
|
*/create,/**
|
|
534
|
-
* Create a frozen instance of {@link
|
|
657
|
+
* Create a frozen instance of {@link DeriveSeedsOutput}, with defaults specified
|
|
535
658
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
536
659
|
*/new:create,/**
|
|
537
660
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
538
|
-
*/defaults:()=>Object.freeze(defaults())});})();const
|
|
539
|
-
*
|
|
661
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeDeriveSeedsOutput=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{seeds:FfiConverterArrayArrayBuffer.read(from),credentialId:FfiConverterOptionalArrayBuffer.read(from)};}write(value,into){FfiConverterArrayArrayBuffer.write(value.seeds,into);FfiConverterOptionalArrayBuffer.write(value.credentialId,into);}allocationSize(value){return FfiConverterArrayArrayBuffer.allocationSize(value.seeds)+FfiConverterOptionalArrayBuffer.allocationSize(value.credentialId);}}return new FFIConverter();})();/**
|
|
662
|
+
* Per-call inputs for [`PrfProvider::derive_seeds`]. Hosts that
|
|
663
|
+
* don't need per-ceremony overrides fall back to [`Default`]
|
|
664
|
+
* (`salts` only, all overrides empty / `None`).
|
|
540
665
|
*//**
|
|
541
|
-
* Generated factory for {@link
|
|
542
|
-
*/export const
|
|
543
|
-
* Create a frozen instance of {@link
|
|
666
|
+
* Generated factory for {@link DeriveSeedsRequest} record objects.
|
|
667
|
+
*/export const DeriveSeedsRequest=(()=>{const defaults=()=>({allowCredentials:[],preferImmediatelyAvailableCredentials:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
668
|
+
* Create a frozen instance of {@link DeriveSeedsRequest}, with defaults specified
|
|
544
669
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
545
670
|
*/create,/**
|
|
546
|
-
* Create a frozen instance of {@link
|
|
671
|
+
* Create a frozen instance of {@link DeriveSeedsRequest}, with defaults specified
|
|
547
672
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
548
673
|
*/new:create,/**
|
|
549
674
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
550
|
-
*/defaults:()=>Object.freeze(defaults())});})();const
|
|
551
|
-
* FFI-safe representation of
|
|
675
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeDeriveSeedsRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{salts:FfiConverterArrayString.read(from),allowCredentials:FfiConverterArrayArrayBuffer.read(from),preferImmediatelyAvailableCredentials:FfiConverterOptionalBool.read(from)};}write(value,into){FfiConverterArrayString.write(value.salts,into);FfiConverterArrayArrayBuffer.write(value.allowCredentials,into);FfiConverterOptionalBool.write(value.preferImmediatelyAvailableCredentials,into);}allocationSize(value){return FfiConverterArrayString.allocationSize(value.salts)+FfiConverterArrayArrayBuffer.allocationSize(value.allowCredentials)+FfiConverterOptionalBool.allocationSize(value.preferImmediatelyAvailableCredentials);}}return new FFIConverter();})();/**
|
|
676
|
+
* FFI-safe representation of an ECDSA signature (64 bytes)
|
|
552
677
|
*//**
|
|
553
|
-
* Generated factory for {@link
|
|
554
|
-
*/export const
|
|
555
|
-
* Create a frozen instance of {@link
|
|
678
|
+
* Generated factory for {@link EcdsaSignatureBytes} record objects.
|
|
679
|
+
*/export const EcdsaSignatureBytes=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
680
|
+
* Create a frozen instance of {@link EcdsaSignatureBytes}, with defaults specified
|
|
681
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
682
|
+
*/create,/**
|
|
683
|
+
* Create a frozen instance of {@link EcdsaSignatureBytes}, with defaults specified
|
|
684
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
685
|
+
*/new:create,/**
|
|
686
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
687
|
+
*/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();})();/**
|
|
688
|
+
* FFI-safe representation of `spark_wallet::ClaimLeafInput`.
|
|
689
|
+
*//**
|
|
690
|
+
* Generated factory for {@link ExternalClaimLeafInput} record objects.
|
|
691
|
+
*/export const ExternalClaimLeafInput=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
692
|
+
* Create a frozen instance of {@link ExternalClaimLeafInput}, with defaults specified
|
|
556
693
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
557
694
|
*/create,/**
|
|
558
|
-
* Create a frozen instance of {@link
|
|
695
|
+
* Create a frozen instance of {@link ExternalClaimLeafInput}, with defaults specified
|
|
559
696
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
560
697
|
*/new:create,/**
|
|
561
698
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
562
|
-
*/defaults:()=>Object.freeze(defaults())});})();const
|
|
699
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalClaimLeafInput=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{nodeId:FfiConverterTypeExternalTreeNodeId.read(from),senderSignature:FfiConverterArrayBuffer.read(from),leafKeyCiphertext:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterTypeExternalTreeNodeId.write(value.nodeId,into);FfiConverterArrayBuffer.write(value.senderSignature,into);FfiConverterArrayBuffer.write(value.leafKeyCiphertext,into);}allocationSize(value){return FfiConverterTypeExternalTreeNodeId.allocationSize(value.nodeId)+FfiConverterArrayBuffer.allocationSize(value.senderSignature)+FfiConverterArrayBuffer.allocationSize(value.leafKeyCiphertext);}}return new FFIConverter();})();/**
|
|
563
700
|
* FFI-safe representation of `spark_wallet::FrostSigningCommitmentsWithNonces`
|
|
564
701
|
*//**
|
|
565
702
|
* Generated factory for {@link ExternalFrostCommitments} record objects.
|
|
@@ -572,6 +709,30 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
572
709
|
*/new:create,/**
|
|
573
710
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
574
711
|
*/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();})();/**
|
|
712
|
+
* FFI-safe representation of `spark_wallet::FrostJob`.
|
|
713
|
+
*//**
|
|
714
|
+
* Generated factory for {@link ExternalFrostJob} record objects.
|
|
715
|
+
*/export const ExternalFrostJob=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
716
|
+
* Create a frozen instance of {@link ExternalFrostJob}, with defaults specified
|
|
717
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
718
|
+
*/create,/**
|
|
719
|
+
* Create a frozen instance of {@link ExternalFrostJob}, with defaults specified
|
|
720
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
721
|
+
*/new:create,/**
|
|
722
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
723
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalFrostJob=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{derivation:FfiConverterTypeExternalFrostDerivation.read(from),sighash:FfiConverterArrayBuffer.read(from),verifyingKey:FfiConverterArrayBuffer.read(from),operatorCommitments:FfiConverterArrayTypeIdentifierCommitmentPair.read(from),adaptorPublicKey:FfiConverterOptionalArrayBuffer.read(from)};}write(value,into){FfiConverterTypeExternalFrostDerivation.write(value.derivation,into);FfiConverterArrayBuffer.write(value.sighash,into);FfiConverterArrayBuffer.write(value.verifyingKey,into);FfiConverterArrayTypeIdentifierCommitmentPair.write(value.operatorCommitments,into);FfiConverterOptionalArrayBuffer.write(value.adaptorPublicKey,into);}allocationSize(value){return FfiConverterTypeExternalFrostDerivation.allocationSize(value.derivation)+FfiConverterArrayBuffer.allocationSize(value.sighash)+FfiConverterArrayBuffer.allocationSize(value.verifyingKey)+FfiConverterArrayTypeIdentifierCommitmentPair.allocationSize(value.operatorCommitments)+FfiConverterOptionalArrayBuffer.allocationSize(value.adaptorPublicKey);}}return new FFIConverter();})();/**
|
|
724
|
+
* FFI-safe representation of `spark_wallet::FrostShareResult`.
|
|
725
|
+
*//**
|
|
726
|
+
* Generated factory for {@link ExternalFrostShareResult} record objects.
|
|
727
|
+
*/export const ExternalFrostShareResult=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
728
|
+
* Create a frozen instance of {@link ExternalFrostShareResult}, with defaults specified
|
|
729
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
730
|
+
*/create,/**
|
|
731
|
+
* Create a frozen instance of {@link ExternalFrostShareResult}, with defaults specified
|
|
732
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
733
|
+
*/new:create,/**
|
|
734
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
735
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalFrostShareResult=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{commitment:FfiConverterTypeExternalFrostCommitments.read(from),signatureShare:FfiConverterTypeExternalFrostSignatureShare.read(from)};}write(value,into){FfiConverterTypeExternalFrostCommitments.write(value.commitment,into);FfiConverterTypeExternalFrostSignatureShare.write(value.signatureShare,into);}allocationSize(value){return FfiConverterTypeExternalFrostCommitments.allocationSize(value.commitment)+FfiConverterTypeExternalFrostSignatureShare.allocationSize(value.signatureShare);}}return new FFIConverter();})();/**
|
|
575
736
|
* FFI-safe representation of `frost_secp256k1_tr::Signature`
|
|
576
737
|
*//**
|
|
577
738
|
* Generated factory for {@link ExternalFrostSignature} record objects.
|
|
@@ -620,42 +781,235 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
620
781
|
*/new:create,/**
|
|
621
782
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
622
783
|
*/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();})();/**
|
|
623
|
-
* FFI-safe representation of `
|
|
784
|
+
* FFI-safe representation of `spark_wallet::NewLeafKey`.
|
|
785
|
+
*//**
|
|
786
|
+
* Generated factory for {@link ExternalNewLeafKey} record objects.
|
|
787
|
+
*/export const ExternalNewLeafKey=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
788
|
+
* Create a frozen instance of {@link ExternalNewLeafKey}, with defaults specified
|
|
789
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
790
|
+
*/create,/**
|
|
791
|
+
* Create a frozen instance of {@link ExternalNewLeafKey}, with defaults specified
|
|
792
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
793
|
+
*/new:create,/**
|
|
794
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
795
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalNewLeafKey=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{nodeId:FfiConverterTypeExternalTreeNodeId.read(from),newSigningPublicKey:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterTypeExternalTreeNodeId.write(value.nodeId,into);FfiConverterArrayBuffer.write(value.newSigningPublicKey,into);}allocationSize(value){return FfiConverterTypeExternalTreeNodeId.allocationSize(value.nodeId)+FfiConverterArrayBuffer.allocationSize(value.newSigningPublicKey);}}return new FFIConverter();})();/**
|
|
796
|
+
* FFI-safe representation of `spark_wallet::OperatorPackage`.
|
|
624
797
|
*//**
|
|
625
|
-
* Generated factory for {@link
|
|
626
|
-
*/export const
|
|
627
|
-
* Create a frozen instance of {@link
|
|
798
|
+
* Generated factory for {@link ExternalOperatorPackage} record objects.
|
|
799
|
+
*/export const ExternalOperatorPackage=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
800
|
+
* Create a frozen instance of {@link ExternalOperatorPackage}, with defaults specified
|
|
628
801
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
629
802
|
*/create,/**
|
|
630
|
-
* Create a frozen instance of {@link
|
|
803
|
+
* Create a frozen instance of {@link ExternalOperatorPackage}, with defaults specified
|
|
631
804
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
632
805
|
*/new:create,/**
|
|
633
806
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
634
|
-
*/defaults:()=>Object.freeze(defaults())});})();const
|
|
635
|
-
* FFI-safe representation of `spark_wallet::
|
|
807
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalOperatorPackage=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{operatorIdentifier:FfiConverterTypeExternalIdentifier.read(from),encryptedPackage:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterTypeExternalIdentifier.write(value.operatorIdentifier,into);FfiConverterArrayBuffer.write(value.encryptedPackage,into);}allocationSize(value){return FfiConverterTypeExternalIdentifier.allocationSize(value.operatorIdentifier)+FfiConverterArrayBuffer.allocationSize(value.encryptedPackage);}}return new FFIConverter();})();/**
|
|
808
|
+
* FFI-safe representation of `spark_wallet::OperatorRecipient`.
|
|
636
809
|
*//**
|
|
637
|
-
* Generated factory for {@link
|
|
638
|
-
*/export const
|
|
639
|
-
* Create a frozen instance of {@link
|
|
810
|
+
* Generated factory for {@link ExternalOperatorRecipient} record objects.
|
|
811
|
+
*/export const ExternalOperatorRecipient=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
812
|
+
* Create a frozen instance of {@link ExternalOperatorRecipient}, with defaults specified
|
|
640
813
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
641
814
|
*/create,/**
|
|
642
|
-
* Create a frozen instance of {@link
|
|
815
|
+
* Create a frozen instance of {@link ExternalOperatorRecipient}, with defaults specified
|
|
643
816
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
644
817
|
*/new:create,/**
|
|
645
818
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
646
|
-
*/defaults:()=>Object.freeze(defaults())});})();const
|
|
647
|
-
* FFI-safe representation of `spark_wallet::
|
|
819
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalOperatorRecipient=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterUInt64.read(from),identifier:FfiConverterTypeExternalIdentifier.read(from),publicKey:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterUInt64.write(value.id,into);FfiConverterTypeExternalIdentifier.write(value.identifier,into);FfiConverterArrayBuffer.write(value.publicKey,into);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.id)+FfiConverterTypeExternalIdentifier.allocationSize(value.identifier)+FfiConverterArrayBuffer.allocationSize(value.publicKey);}}return new FFIConverter();})();/**
|
|
820
|
+
* FFI-safe representation of `spark_wallet::PrepareClaimRequest`.
|
|
648
821
|
*//**
|
|
649
|
-
* Generated factory for {@link
|
|
650
|
-
*/export const
|
|
651
|
-
* Create a frozen instance of {@link
|
|
822
|
+
* Generated factory for {@link ExternalPrepareClaimRequest} record objects.
|
|
823
|
+
*/export const ExternalPrepareClaimRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
824
|
+
* Create a frozen instance of {@link ExternalPrepareClaimRequest}, with defaults specified
|
|
652
825
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
653
826
|
*/create,/**
|
|
654
|
-
* Create a frozen instance of {@link
|
|
827
|
+
* Create a frozen instance of {@link ExternalPrepareClaimRequest}, with defaults specified
|
|
655
828
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
656
829
|
*/new:create,/**
|
|
657
830
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
658
|
-
*/defaults:()=>Object.freeze(defaults())});})();const
|
|
831
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalPrepareClaimRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{transferId:FfiConverterString.read(from),senderIdentityPublicKey:FfiConverterArrayBuffer.read(from),leaves:FfiConverterArrayTypeExternalClaimLeafInput.read(from),operatorRecipients:FfiConverterArrayTypeExternalOperatorRecipient.read(from),threshold:FfiConverterUInt32.read(from)};}write(value,into){FfiConverterString.write(value.transferId,into);FfiConverterArrayBuffer.write(value.senderIdentityPublicKey,into);FfiConverterArrayTypeExternalClaimLeafInput.write(value.leaves,into);FfiConverterArrayTypeExternalOperatorRecipient.write(value.operatorRecipients,into);FfiConverterUInt32.write(value.threshold,into);}allocationSize(value){return FfiConverterString.allocationSize(value.transferId)+FfiConverterArrayBuffer.allocationSize(value.senderIdentityPublicKey)+FfiConverterArrayTypeExternalClaimLeafInput.allocationSize(value.leaves)+FfiConverterArrayTypeExternalOperatorRecipient.allocationSize(value.operatorRecipients)+FfiConverterUInt32.allocationSize(value.threshold);}}return new FFIConverter();})();/**
|
|
832
|
+
* FFI-safe representation of `spark_wallet::PrepareLightningReceiveRequest`.
|
|
833
|
+
*//**
|
|
834
|
+
* Generated factory for {@link ExternalPrepareLightningReceiveRequest} record objects.
|
|
835
|
+
*/export const ExternalPrepareLightningReceiveRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
836
|
+
* Create a frozen instance of {@link ExternalPrepareLightningReceiveRequest}, with defaults specified
|
|
837
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
838
|
+
*/create,/**
|
|
839
|
+
* Create a frozen instance of {@link ExternalPrepareLightningReceiveRequest}, with defaults specified
|
|
840
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
841
|
+
*/new:create,/**
|
|
842
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
843
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalPrepareLightningReceiveRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{operatorRecipients:FfiConverterArrayTypeExternalOperatorRecipient.read(from),threshold:FfiConverterUInt32.read(from)};}write(value,into){FfiConverterArrayTypeExternalOperatorRecipient.write(value.operatorRecipients,into);FfiConverterUInt32.write(value.threshold,into);}allocationSize(value){return FfiConverterArrayTypeExternalOperatorRecipient.allocationSize(value.operatorRecipients)+FfiConverterUInt32.allocationSize(value.threshold);}}return new FFIConverter();})();/**
|
|
844
|
+
* FFI-safe representation of `spark_wallet::PrepareStaticDepositClaimRequest`.
|
|
845
|
+
*//**
|
|
846
|
+
* Generated factory for {@link ExternalPrepareStaticDepositClaimRequest} record objects.
|
|
847
|
+
*/export const ExternalPrepareStaticDepositClaimRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
848
|
+
* Create a frozen instance of {@link ExternalPrepareStaticDepositClaimRequest}, with defaults specified
|
|
849
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
850
|
+
*/create,/**
|
|
851
|
+
* Create a frozen instance of {@link ExternalPrepareStaticDepositClaimRequest}, with defaults specified
|
|
852
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
853
|
+
*/new:create,/**
|
|
854
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
855
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalPrepareStaticDepositClaimRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{index:FfiConverterUInt32.read(from),userStatement:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterUInt32.write(value.index,into);FfiConverterArrayBuffer.write(value.userStatement,into);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.index)+FfiConverterArrayBuffer.allocationSize(value.userStatement);}}return new FFIConverter();})();/**
|
|
856
|
+
* FFI-safe representation of `spark_wallet::PrepareStaticDepositRequest`.
|
|
857
|
+
*//**
|
|
858
|
+
* Generated factory for {@link ExternalPrepareStaticDepositRequest} record objects.
|
|
859
|
+
*/export const ExternalPrepareStaticDepositRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
860
|
+
* Create a frozen instance of {@link ExternalPrepareStaticDepositRequest}, with defaults specified
|
|
861
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
862
|
+
*/create,/**
|
|
863
|
+
* Create a frozen instance of {@link ExternalPrepareStaticDepositRequest}, with defaults specified
|
|
864
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
865
|
+
*/new:create,/**
|
|
866
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
867
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalPrepareStaticDepositRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{index:FfiConverterUInt32.read(from),sspPublicKey:FfiConverterArrayBuffer.read(from),frostJobs:FfiConverterArrayTypeExternalFrostJob.read(from)};}write(value,into){FfiConverterUInt32.write(value.index,into);FfiConverterArrayBuffer.write(value.sspPublicKey,into);FfiConverterArrayTypeExternalFrostJob.write(value.frostJobs,into);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.index)+FfiConverterArrayBuffer.allocationSize(value.sspPublicKey)+FfiConverterArrayTypeExternalFrostJob.allocationSize(value.frostJobs);}}return new FFIConverter();})();/**
|
|
868
|
+
* FFI-safe representation of `spark_wallet::PrepareTokenTransactionRequest`.
|
|
869
|
+
*//**
|
|
870
|
+
* Generated factory for {@link ExternalPrepareTokenTransactionRequest} record objects.
|
|
871
|
+
*/export const ExternalPrepareTokenTransactionRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
872
|
+
* Create a frozen instance of {@link ExternalPrepareTokenTransactionRequest}, with defaults specified
|
|
873
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
874
|
+
*/create,/**
|
|
875
|
+
* Create a frozen instance of {@link ExternalPrepareTokenTransactionRequest}, with defaults specified
|
|
876
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
877
|
+
*/new:create,/**
|
|
878
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
879
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalPrepareTokenTransactionRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{kind:FfiConverterTypeExternalTokenTransactionKind.read(from),digest:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterTypeExternalTokenTransactionKind.write(value.kind,into);FfiConverterArrayBuffer.write(value.digest,into);}allocationSize(value){return FfiConverterTypeExternalTokenTransactionKind.allocationSize(value.kind)+FfiConverterArrayBuffer.allocationSize(value.digest);}}return new FFIConverter();})();/**
|
|
880
|
+
* FFI-safe representation of `spark_wallet::PrepareTransferRequest`.
|
|
881
|
+
*//**
|
|
882
|
+
* Generated factory for {@link ExternalPrepareTransferRequest} record objects.
|
|
883
|
+
*/export const ExternalPrepareTransferRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
884
|
+
* Create a frozen instance of {@link ExternalPrepareTransferRequest}, with defaults specified
|
|
885
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
886
|
+
*/create,/**
|
|
887
|
+
* Create a frozen instance of {@link ExternalPrepareTransferRequest}, with defaults specified
|
|
888
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
889
|
+
*/new:create,/**
|
|
890
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
891
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalPrepareTransferRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{transferId:FfiConverterString.read(from),receiverPublicKey:FfiConverterArrayBuffer.read(from),leaves:FfiConverterArrayTypeExternalTransferLeafInput.read(from),operatorRecipients:FfiConverterArrayTypeExternalOperatorRecipient.read(from),threshold:FfiConverterUInt32.read(from)};}write(value,into){FfiConverterString.write(value.transferId,into);FfiConverterArrayBuffer.write(value.receiverPublicKey,into);FfiConverterArrayTypeExternalTransferLeafInput.write(value.leaves,into);FfiConverterArrayTypeExternalOperatorRecipient.write(value.operatorRecipients,into);FfiConverterUInt32.write(value.threshold,into);}allocationSize(value){return FfiConverterString.allocationSize(value.transferId)+FfiConverterArrayBuffer.allocationSize(value.receiverPublicKey)+FfiConverterArrayTypeExternalTransferLeafInput.allocationSize(value.leaves)+FfiConverterArrayTypeExternalOperatorRecipient.allocationSize(value.operatorRecipients)+FfiConverterUInt32.allocationSize(value.threshold);}}return new FFIConverter();})();/**
|
|
892
|
+
* FFI-safe representation of `spark_wallet::PreparedClaim`.
|
|
893
|
+
*//**
|
|
894
|
+
* Generated factory for {@link ExternalPreparedClaim} record objects.
|
|
895
|
+
*/export const ExternalPreparedClaim=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
896
|
+
* Create a frozen instance of {@link ExternalPreparedClaim}, with defaults specified
|
|
897
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
898
|
+
*/create,/**
|
|
899
|
+
* Create a frozen instance of {@link ExternalPreparedClaim}, with defaults specified
|
|
900
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
901
|
+
*/new:create,/**
|
|
902
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
903
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalPreparedClaim=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{operatorPackages:FfiConverterArrayTypeExternalOperatorPackage.read(from)};}write(value,into){FfiConverterArrayTypeExternalOperatorPackage.write(value.operatorPackages,into);}allocationSize(value){return FfiConverterArrayTypeExternalOperatorPackage.allocationSize(value.operatorPackages);}}return new FFIConverter();})();/**
|
|
904
|
+
* FFI-safe representation of `spark_wallet::PreparedLightningReceive`.
|
|
905
|
+
*//**
|
|
906
|
+
* Generated factory for {@link ExternalPreparedLightningReceive} record objects.
|
|
907
|
+
*/export const ExternalPreparedLightningReceive=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
908
|
+
* Create a frozen instance of {@link ExternalPreparedLightningReceive}, with defaults specified
|
|
909
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
910
|
+
*/create,/**
|
|
911
|
+
* Create a frozen instance of {@link ExternalPreparedLightningReceive}, with defaults specified
|
|
912
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
913
|
+
*/new:create,/**
|
|
914
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
915
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalPreparedLightningReceive=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentHash:FfiConverterArrayBuffer.read(from),operatorPreimagePackages:FfiConverterArrayTypeExternalOperatorPackage.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.paymentHash,into);FfiConverterArrayTypeExternalOperatorPackage.write(value.operatorPreimagePackages,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.paymentHash)+FfiConverterArrayTypeExternalOperatorPackage.allocationSize(value.operatorPreimagePackages);}}return new FFIConverter();})();/**
|
|
916
|
+
* FFI-safe representation of `spark_wallet::PreparedStaticDeposit`.
|
|
917
|
+
*//**
|
|
918
|
+
* Generated factory for {@link ExternalPreparedStaticDeposit} record objects.
|
|
919
|
+
*/export const ExternalPreparedStaticDeposit=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
920
|
+
* Create a frozen instance of {@link ExternalPreparedStaticDeposit}, with defaults specified
|
|
921
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
922
|
+
*/create,/**
|
|
923
|
+
* Create a frozen instance of {@link ExternalPreparedStaticDeposit}, with defaults specified
|
|
924
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
925
|
+
*/new:create,/**
|
|
926
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
927
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalPreparedStaticDeposit=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{exportedSecret:FfiConverterArrayBuffer.read(from),frostShares:FfiConverterArrayTypeExternalFrostShareResult.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.exportedSecret,into);FfiConverterArrayTypeExternalFrostShareResult.write(value.frostShares,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.exportedSecret)+FfiConverterArrayTypeExternalFrostShareResult.allocationSize(value.frostShares);}}return new FFIConverter();})();/**
|
|
928
|
+
* FFI-safe representation of `spark_wallet::PreparedStaticDepositClaim`.
|
|
929
|
+
*//**
|
|
930
|
+
* Generated factory for {@link ExternalPreparedStaticDepositClaim} record objects.
|
|
931
|
+
*/export const ExternalPreparedStaticDepositClaim=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
932
|
+
* Create a frozen instance of {@link ExternalPreparedStaticDepositClaim}, with defaults specified
|
|
933
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
934
|
+
*/create,/**
|
|
935
|
+
* Create a frozen instance of {@link ExternalPreparedStaticDepositClaim}, with defaults specified
|
|
936
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
937
|
+
*/new:create,/**
|
|
938
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
939
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalPreparedStaticDepositClaim=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{depositSecretKey:FfiConverterTypeSecretBytes.read(from),userSignature:FfiConverterTypeEcdsaSignatureBytes.read(from)};}write(value,into){FfiConverterTypeSecretBytes.write(value.depositSecretKey,into);FfiConverterTypeEcdsaSignatureBytes.write(value.userSignature,into);}allocationSize(value){return FfiConverterTypeSecretBytes.allocationSize(value.depositSecretKey)+FfiConverterTypeEcdsaSignatureBytes.allocationSize(value.userSignature);}}return new FFIConverter();})();/**
|
|
940
|
+
* FFI-safe representation of `spark_wallet::PreparedTokenTransaction`.
|
|
941
|
+
*//**
|
|
942
|
+
* Generated factory for {@link ExternalPreparedTokenTransaction} record objects.
|
|
943
|
+
*/export const ExternalPreparedTokenTransaction=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
944
|
+
* Create a frozen instance of {@link ExternalPreparedTokenTransaction}, with defaults specified
|
|
945
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
946
|
+
*/create,/**
|
|
947
|
+
* Create a frozen instance of {@link ExternalPreparedTokenTransaction}, with defaults specified
|
|
948
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
949
|
+
*/new:create,/**
|
|
950
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
951
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalPreparedTokenTransaction=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{signature:FfiConverterTypeSchnorrSignatureBytes.read(from)};}write(value,into){FfiConverterTypeSchnorrSignatureBytes.write(value.signature,into);}allocationSize(value){return FfiConverterTypeSchnorrSignatureBytes.allocationSize(value.signature);}}return new FFIConverter();})();/**
|
|
952
|
+
* FFI-safe representation of `spark_wallet::PreparedTransfer`.
|
|
953
|
+
*//**
|
|
954
|
+
* Generated factory for {@link ExternalPreparedTransfer} record objects.
|
|
955
|
+
*/export const ExternalPreparedTransfer=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
956
|
+
* Create a frozen instance of {@link ExternalPreparedTransfer}, with defaults specified
|
|
957
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
958
|
+
*/create,/**
|
|
959
|
+
* Create a frozen instance of {@link ExternalPreparedTransfer}, with defaults specified
|
|
960
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
961
|
+
*/new:create,/**
|
|
962
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
963
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalPreparedTransfer=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{operatorPackages:FfiConverterArrayTypeExternalOperatorPackage.read(from),newLeafKeys:FfiConverterArrayTypeExternalNewLeafKey.read(from),transferUserSignature:FfiConverterTypeEcdsaSignatureBytes.read(from)};}write(value,into){FfiConverterArrayTypeExternalOperatorPackage.write(value.operatorPackages,into);FfiConverterArrayTypeExternalNewLeafKey.write(value.newLeafKeys,into);FfiConverterTypeEcdsaSignatureBytes.write(value.transferUserSignature,into);}allocationSize(value){return FfiConverterArrayTypeExternalOperatorPackage.allocationSize(value.operatorPackages)+FfiConverterArrayTypeExternalNewLeafKey.allocationSize(value.newLeafKeys)+FfiConverterTypeEcdsaSignatureBytes.allocationSize(value.transferUserSignature);}}return new FFIConverter();})();/**
|
|
964
|
+
* FFI-safe representation of `spark_wallet::SignSparkInvoiceRequest`.
|
|
965
|
+
*//**
|
|
966
|
+
* Generated factory for {@link ExternalSignSparkInvoiceRequest} record objects.
|
|
967
|
+
*/export const ExternalSignSparkInvoiceRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
968
|
+
* Create a frozen instance of {@link ExternalSignSparkInvoiceRequest}, with defaults specified
|
|
969
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
970
|
+
*/create,/**
|
|
971
|
+
* Create a frozen instance of {@link ExternalSignSparkInvoiceRequest}, with defaults specified
|
|
972
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
973
|
+
*/new:create,/**
|
|
974
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
975
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalSignSparkInvoiceRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{kind:FfiConverterTypeExternalSparkInvoiceKind.read(from),invoiceHash:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterTypeExternalSparkInvoiceKind.write(value.kind,into);FfiConverterArrayBuffer.write(value.invoiceHash,into);}allocationSize(value){return FfiConverterTypeExternalSparkInvoiceKind.allocationSize(value.kind)+FfiConverterArrayBuffer.allocationSize(value.invoiceHash);}}return new FFIConverter();})();/**
|
|
976
|
+
* FFI-safe representation of `spark_wallet::SignStaticDepositRefundRequest`.
|
|
977
|
+
*//**
|
|
978
|
+
* Generated factory for {@link ExternalSignStaticDepositRefundRequest} record objects.
|
|
979
|
+
*/export const ExternalSignStaticDepositRefundRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
980
|
+
* Create a frozen instance of {@link ExternalSignStaticDepositRefundRequest}, with defaults specified
|
|
981
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
982
|
+
*/create,/**
|
|
983
|
+
* Create a frozen instance of {@link ExternalSignStaticDepositRefundRequest}, with defaults specified
|
|
984
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
985
|
+
*/new:create,/**
|
|
986
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
987
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalSignStaticDepositRefundRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{index:FfiConverterUInt32.read(from),sighash:FfiConverterArrayBuffer.read(from),verifyingKey:FfiConverterArrayBuffer.read(from),nonceCommitment:FfiConverterTypeExternalFrostCommitments.read(from),statechainCommitments:FfiConverterArrayTypeIdentifierCommitmentPair.read(from),statechainSignatures:FfiConverterArrayTypeIdentifierSignaturePair.read(from),statechainPublicKeys:FfiConverterArrayTypeIdentifierPublicKeyPair.read(from)};}write(value,into){FfiConverterUInt32.write(value.index,into);FfiConverterArrayBuffer.write(value.sighash,into);FfiConverterArrayBuffer.write(value.verifyingKey,into);FfiConverterTypeExternalFrostCommitments.write(value.nonceCommitment,into);FfiConverterArrayTypeIdentifierCommitmentPair.write(value.statechainCommitments,into);FfiConverterArrayTypeIdentifierSignaturePair.write(value.statechainSignatures,into);FfiConverterArrayTypeIdentifierPublicKeyPair.write(value.statechainPublicKeys,into);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.index)+FfiConverterArrayBuffer.allocationSize(value.sighash)+FfiConverterArrayBuffer.allocationSize(value.verifyingKey)+FfiConverterTypeExternalFrostCommitments.allocationSize(value.nonceCommitment)+FfiConverterArrayTypeIdentifierCommitmentPair.allocationSize(value.statechainCommitments)+FfiConverterArrayTypeIdentifierSignaturePair.allocationSize(value.statechainSignatures)+FfiConverterArrayTypeIdentifierPublicKeyPair.allocationSize(value.statechainPublicKeys);}}return new FFIConverter();})();/**
|
|
988
|
+
* FFI-safe representation of `spark_wallet::SignedSparkInvoice`.
|
|
989
|
+
*//**
|
|
990
|
+
* Generated factory for {@link ExternalSignedSparkInvoice} record objects.
|
|
991
|
+
*/export const ExternalSignedSparkInvoice=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
992
|
+
* Create a frozen instance of {@link ExternalSignedSparkInvoice}, with defaults specified
|
|
993
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
994
|
+
*/create,/**
|
|
995
|
+
* Create a frozen instance of {@link ExternalSignedSparkInvoice}, with defaults specified
|
|
996
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
997
|
+
*/new:create,/**
|
|
998
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
999
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalSignedSparkInvoice=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{signature:FfiConverterTypeSchnorrSignatureBytes.read(from)};}write(value,into){FfiConverterTypeSchnorrSignatureBytes.write(value.signature,into);}allocationSize(value){return FfiConverterTypeSchnorrSignatureBytes.allocationSize(value.signature);}}return new FFIConverter();})();/**
|
|
1000
|
+
* The two default external signers created from one mnemonic by
|
|
1001
|
+
* [`default_external_signers`].
|
|
1002
|
+
*//**
|
|
1003
|
+
* Generated factory for {@link ExternalSigners} record objects.
|
|
1004
|
+
*/export const ExternalSigners=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1005
|
+
* Create a frozen instance of {@link ExternalSigners}, with defaults specified
|
|
1006
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1007
|
+
*/create,/**
|
|
1008
|
+
* Create a frozen instance of {@link ExternalSigners}, with defaults specified
|
|
1009
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1010
|
+
*/new:create,/**
|
|
1011
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1012
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalSigners=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{breezSigner:FfiConverterTypeExternalBreezSigner.read(from),sparkSigner:FfiConverterTypeExternalSparkSigner.read(from)};}write(value,into){FfiConverterTypeExternalBreezSigner.write(value.breezSigner,into);FfiConverterTypeExternalSparkSigner.write(value.sparkSigner,into);}allocationSize(value){return FfiConverterTypeExternalBreezSigner.allocationSize(value.breezSigner)+FfiConverterTypeExternalSparkSigner.allocationSize(value.sparkSigner);}}return new FFIConverter();})();/**
|
|
659
1013
|
* FFI-safe representation of `frost_secp256k1_tr::round1::SigningCommitments`
|
|
660
1014
|
*//**
|
|
661
1015
|
* Generated factory for {@link ExternalSigningCommitments} record objects.
|
|
@@ -668,30 +1022,55 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
668
1022
|
*/new:create,/**
|
|
669
1023
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
670
1024
|
*/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();})();/**
|
|
671
|
-
* FFI-safe representation of `spark_wallet::
|
|
1025
|
+
* FFI-safe representation of `spark_wallet::StartStaticDepositRefundRequest`.
|
|
672
1026
|
*//**
|
|
673
|
-
* Generated factory for {@link
|
|
674
|
-
*/export const
|
|
675
|
-
* Create a frozen instance of {@link
|
|
1027
|
+
* Generated factory for {@link ExternalStartStaticDepositRefundRequest} record objects.
|
|
1028
|
+
*/export const ExternalStartStaticDepositRefundRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1029
|
+
* Create a frozen instance of {@link ExternalStartStaticDepositRefundRequest}, with defaults specified
|
|
676
1030
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
677
1031
|
*/create,/**
|
|
678
|
-
* Create a frozen instance of {@link
|
|
1032
|
+
* Create a frozen instance of {@link ExternalStartStaticDepositRefundRequest}, with defaults specified
|
|
679
1033
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
680
1034
|
*/new:create,/**
|
|
681
1035
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
682
|
-
*/defaults:()=>Object.freeze(defaults())});})();const
|
|
683
|
-
* FFI-safe representation of `spark_wallet::
|
|
1036
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalStartStaticDepositRefundRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{index:FfiConverterUInt32.read(from),userStatement:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterUInt32.write(value.index,into);FfiConverterArrayBuffer.write(value.userStatement,into);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.index)+FfiConverterArrayBuffer.allocationSize(value.userStatement);}}return new FFIConverter();})();/**
|
|
1037
|
+
* FFI-safe representation of `spark_wallet::StartedStaticDepositRefund`.
|
|
684
1038
|
*//**
|
|
685
|
-
* Generated factory for {@link
|
|
686
|
-
*/export const
|
|
687
|
-
* Create a frozen instance of {@link
|
|
1039
|
+
* Generated factory for {@link ExternalStartedStaticDepositRefund} record objects.
|
|
1040
|
+
*/export const ExternalStartedStaticDepositRefund=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1041
|
+
* Create a frozen instance of {@link ExternalStartedStaticDepositRefund}, with defaults specified
|
|
688
1042
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
689
1043
|
*/create,/**
|
|
690
|
-
* Create a frozen instance of {@link
|
|
1044
|
+
* Create a frozen instance of {@link ExternalStartedStaticDepositRefund}, with defaults specified
|
|
691
1045
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
692
1046
|
*/new:create,/**
|
|
693
1047
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
694
|
-
*/defaults:()=>Object.freeze(defaults())});})();const
|
|
1048
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalStartedStaticDepositRefund=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{signingPublicKey:FfiConverterArrayBuffer.read(from),nonceCommitment:FfiConverterTypeExternalFrostCommitments.read(from),userSignature:FfiConverterTypeEcdsaSignatureBytes.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.signingPublicKey,into);FfiConverterTypeExternalFrostCommitments.write(value.nonceCommitment,into);FfiConverterTypeEcdsaSignatureBytes.write(value.userSignature,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.signingPublicKey)+FfiConverterTypeExternalFrostCommitments.allocationSize(value.nonceCommitment)+FfiConverterTypeEcdsaSignatureBytes.allocationSize(value.userSignature);}}return new FFIConverter();})();/**
|
|
1049
|
+
* FFI-safe representation of `spark_wallet::TransferLeafInput`. Conveys the old
|
|
1050
|
+
* leaf id and the new (post-transfer) leaf id; the signer derives keys from them.
|
|
1051
|
+
*//**
|
|
1052
|
+
* Generated factory for {@link ExternalTransferLeafInput} record objects.
|
|
1053
|
+
*/export const ExternalTransferLeafInput=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1054
|
+
* Create a frozen instance of {@link ExternalTransferLeafInput}, with defaults specified
|
|
1055
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1056
|
+
*/create,/**
|
|
1057
|
+
* Create a frozen instance of {@link ExternalTransferLeafInput}, with defaults specified
|
|
1058
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1059
|
+
*/new:create,/**
|
|
1060
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1061
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalTransferLeafInput=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{nodeId:FfiConverterTypeExternalTreeNodeId.read(from),newLeafId:FfiConverterTypeExternalTreeNodeId.read(from)};}write(value,into){FfiConverterTypeExternalTreeNodeId.write(value.nodeId,into);FfiConverterTypeExternalTreeNodeId.write(value.newLeafId,into);}allocationSize(value){return FfiConverterTypeExternalTreeNodeId.allocationSize(value.nodeId)+FfiConverterTypeExternalTreeNodeId.allocationSize(value.newLeafId);}}return new FFIConverter();})();/**
|
|
1062
|
+
* FFI-safe representation of `spark_wallet::TreeNodeId`
|
|
1063
|
+
*//**
|
|
1064
|
+
* Generated factory for {@link ExternalTreeNodeId} record objects.
|
|
1065
|
+
*/export const ExternalTreeNodeId=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1066
|
+
* Create a frozen instance of {@link ExternalTreeNodeId}, with defaults specified
|
|
1067
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1068
|
+
*/create,/**
|
|
1069
|
+
* Create a frozen instance of {@link ExternalTreeNodeId}, with defaults specified
|
|
1070
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1071
|
+
*/new:create,/**
|
|
1072
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1073
|
+
*/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();})();/**
|
|
695
1074
|
* Generated factory for {@link FetchConversionLimitsRequest} record objects.
|
|
696
1075
|
*/export const FetchConversionLimitsRequest=(()=>{const defaults=()=>({tokenIdentifier:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
697
1076
|
* Create a frozen instance of {@link FetchConversionLimitsRequest}, with defaults specified
|
|
@@ -864,20 +1243,6 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
864
1243
|
*/new:create,/**
|
|
865
1244
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
866
1245
|
*/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();})();/**
|
|
867
|
-
* Configuration for key set derivation.
|
|
868
|
-
*
|
|
869
|
-
* This struct encapsulates the parameters needed for BIP32 key derivation.
|
|
870
|
-
*//**
|
|
871
|
-
* Generated factory for {@link KeySetConfig} record objects.
|
|
872
|
-
*/export const KeySetConfig=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
873
|
-
* Create a frozen instance of {@link KeySetConfig}, with defaults specified
|
|
874
|
-
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
875
|
-
*/create,/**
|
|
876
|
-
* Create a frozen instance of {@link KeySetConfig}, with defaults specified
|
|
877
|
-
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
878
|
-
*/new:create,/**
|
|
879
|
-
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
880
|
-
*/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();})();/**
|
|
881
1246
|
* Configuration for leaf optimization.
|
|
882
1247
|
*//**
|
|
883
1248
|
* Generated factory for {@link LeafOptimizationConfig} record objects.
|
|
@@ -1188,32 +1553,31 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1188
1553
|
*/new:create,/**
|
|
1189
1554
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1190
1555
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeMintIssuerTokenRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{amount:FfiConverterTypeu128.read(from)};}write(value,into){FfiConverterTypeu128.write(value.amount,into);}allocationSize(value){return FfiConverterTypeu128.allocationSize(value.amount);}}return new FFIConverter();})();/**
|
|
1191
|
-
*
|
|
1192
|
-
*
|
|
1193
|
-
* Relay URLs are managed internally by the client:
|
|
1194
|
-
* - Public relays are always included
|
|
1195
|
-
* - Breez relay is added when `breez_api_key` is provided (enables NIP-42 auth)
|
|
1556
|
+
* Request for [`BreezSdk::optimize_leaves`]. Defaults to
|
|
1557
|
+
* [`OptimizationMode::Full`].
|
|
1196
1558
|
*//**
|
|
1197
|
-
* Generated factory for {@link
|
|
1198
|
-
*/export const
|
|
1199
|
-
* Create a frozen instance of {@link
|
|
1559
|
+
* Generated factory for {@link OptimizeLeavesRequest} record objects.
|
|
1560
|
+
*/export const OptimizeLeavesRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1561
|
+
* Create a frozen instance of {@link OptimizeLeavesRequest}, with defaults specified
|
|
1200
1562
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1201
1563
|
*/create,/**
|
|
1202
|
-
* Create a frozen instance of {@link
|
|
1564
|
+
* Create a frozen instance of {@link OptimizeLeavesRequest}, with defaults specified
|
|
1203
1565
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1204
1566
|
*/new:create,/**
|
|
1205
1567
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1206
|
-
*/defaults:()=>Object.freeze(defaults())});})();const
|
|
1207
|
-
*
|
|
1208
|
-
|
|
1209
|
-
|
|
1568
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeOptimizeLeavesRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{mode:FfiConverterTypeOptimizationMode.read(from)};}write(value,into){FfiConverterTypeOptimizationMode.write(value.mode,into);}allocationSize(value){return FfiConverterTypeOptimizationMode.allocationSize(value.mode);}}return new FFIConverter();})();/**
|
|
1569
|
+
* Response from a [`BreezSdk::optimize_leaves`] call.
|
|
1570
|
+
*//**
|
|
1571
|
+
* Generated factory for {@link OptimizeLeavesResponse} record objects.
|
|
1572
|
+
*/export const OptimizeLeavesResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1573
|
+
* Create a frozen instance of {@link OptimizeLeavesResponse}, with defaults specified
|
|
1210
1574
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1211
1575
|
*/create,/**
|
|
1212
|
-
* Create a frozen instance of {@link
|
|
1576
|
+
* Create a frozen instance of {@link OptimizeLeavesResponse}, with defaults specified
|
|
1213
1577
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1214
1578
|
*/new:create,/**
|
|
1215
1579
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1216
|
-
*/defaults:()=>Object.freeze(defaults())});})();const
|
|
1580
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeOptimizeLeavesResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{outcome:FfiConverterTypeOptimizationOutcome.read(from)};}write(value,into){FfiConverterTypeOptimizationOutcome.write(value.outcome,into);}allocationSize(value){return FfiConverterTypeOptimizationOutcome.allocationSize(value.outcome);}}return new FFIConverter();})();/**
|
|
1217
1581
|
* Generated factory for {@link OutgoingChange} record objects.
|
|
1218
1582
|
*/export const OutgoingChange=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1219
1583
|
* Create a frozen instance of {@link OutgoingChange}, with defaults specified
|
|
@@ -1224,6 +1588,49 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1224
1588
|
*/new:create,/**
|
|
1225
1589
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1226
1590
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeOutgoingChange=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{change:FfiConverterTypeRecordChange.read(from),parent:FfiConverterOptionalTypeRecord.read(from)};}write(value,into){FfiConverterTypeRecordChange.write(value.change,into);FfiConverterOptionalTypeRecord.write(value.parent,into);}allocationSize(value){return FfiConverterTypeRecordChange.allocationSize(value.change)+FfiConverterOptionalTypeRecord.allocationSize(value.parent);}}return new FFIConverter();})();/**
|
|
1591
|
+
* Configuration for the passkey client.
|
|
1592
|
+
*//**
|
|
1593
|
+
* Generated factory for {@link PasskeyConfig} record objects.
|
|
1594
|
+
*/export const PasskeyConfig=(()=>{const defaults=()=>({defaultLabel:undefined,providerOptions:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1595
|
+
* Create a frozen instance of {@link PasskeyConfig}, with defaults specified
|
|
1596
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1597
|
+
*/create,/**
|
|
1598
|
+
* Create a frozen instance of {@link PasskeyConfig}, with defaults specified
|
|
1599
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1600
|
+
*/new:create,/**
|
|
1601
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1602
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePasskeyConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{defaultLabel:FfiConverterOptionalString.read(from),providerOptions:FfiConverterOptionalTypePasskeyProviderOptions.read(from)};}write(value,into){FfiConverterOptionalString.write(value.defaultLabel,into);FfiConverterOptionalTypePasskeyProviderOptions.write(value.providerOptions,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.defaultLabel)+FfiConverterOptionalTypePasskeyProviderOptions.allocationSize(value.providerOptions);}}return new FFIConverter();})();/**
|
|
1603
|
+
* A passkey credential from a register or sign-in ceremony.
|
|
1604
|
+
* `credential_id` is always set; the attestation fields are
|
|
1605
|
+
* populated on registration and absent on sign-in (an assertion
|
|
1606
|
+
* carries no attestation). Persist `credential_id` to drive
|
|
1607
|
+
* `exclude_credentials` / `allow_credentials` on later calls.
|
|
1608
|
+
*//**
|
|
1609
|
+
* Generated factory for {@link PasskeyCredential} record objects.
|
|
1610
|
+
*/export const PasskeyCredential=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1611
|
+
* Create a frozen instance of {@link PasskeyCredential}, with defaults specified
|
|
1612
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1613
|
+
*/create,/**
|
|
1614
|
+
* Create a frozen instance of {@link PasskeyCredential}, with defaults specified
|
|
1615
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1616
|
+
*/new:create,/**
|
|
1617
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1618
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePasskeyCredential=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{credentialId:FfiConverterArrayBuffer.read(from),userId:FfiConverterOptionalArrayBuffer.read(from),aaguid:FfiConverterOptionalArrayBuffer.read(from),backupEligible:FfiConverterOptionalBool.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.credentialId,into);FfiConverterOptionalArrayBuffer.write(value.userId,into);FfiConverterOptionalArrayBuffer.write(value.aaguid,into);FfiConverterOptionalBool.write(value.backupEligible,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.credentialId)+FfiConverterOptionalArrayBuffer.allocationSize(value.userId)+FfiConverterOptionalArrayBuffer.allocationSize(value.aaguid)+FfiConverterOptionalBool.allocationSize(value.backupEligible);}}return new FFIConverter();})();/**
|
|
1619
|
+
* Relying Party and user identity for the built-in passkey provider.
|
|
1620
|
+
* Applies only when a binding builds the provider for you (the
|
|
1621
|
+
* zero-config path); a provider you construct yourself owns these and
|
|
1622
|
+
* ignores them.
|
|
1623
|
+
*//**
|
|
1624
|
+
* Generated factory for {@link PasskeyProviderOptions} record objects.
|
|
1625
|
+
*/export const PasskeyProviderOptions=(()=>{const defaults=()=>({rpId:undefined,rpName:undefined,userName:undefined,userDisplayName:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1626
|
+
* Create a frozen instance of {@link PasskeyProviderOptions}, with defaults specified
|
|
1627
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1628
|
+
*/create,/**
|
|
1629
|
+
* Create a frozen instance of {@link PasskeyProviderOptions}, with defaults specified
|
|
1630
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1631
|
+
*/new:create,/**
|
|
1632
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1633
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePasskeyProviderOptions=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{rpId:FfiConverterOptionalString.read(from),rpName:FfiConverterOptionalString.read(from),userName:FfiConverterOptionalString.read(from),userDisplayName:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterOptionalString.write(value.rpId,into);FfiConverterOptionalString.write(value.rpName,into);FfiConverterOptionalString.write(value.userName,into);FfiConverterOptionalString.write(value.userDisplayName,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.rpId)+FfiConverterOptionalString.allocationSize(value.rpName)+FfiConverterOptionalString.allocationSize(value.userName)+FfiConverterOptionalString.allocationSize(value.userDisplayName);}}return new FFIConverter();})();/**
|
|
1227
1634
|
* Represents a payment (sent or received)
|
|
1228
1635
|
*//**
|
|
1229
1636
|
* Generated factory for {@link Payment} record objects.
|
|
@@ -1236,6 +1643,16 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1236
1643
|
*/new:create,/**
|
|
1237
1644
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1238
1645
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePayment=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterString.read(from),paymentType:FfiConverterTypePaymentType.read(from),status:FfiConverterTypePaymentStatus.read(from),amount:FfiConverterTypeu128.read(from),fees:FfiConverterTypeu128.read(from),timestamp:FfiConverterUInt64.read(from),method:FfiConverterTypePaymentMethod.read(from),details:FfiConverterOptionalTypePaymentDetails.read(from),conversionDetails:FfiConverterOptionalTypeConversionDetails.read(from)};}write(value,into){FfiConverterString.write(value.id,into);FfiConverterTypePaymentType.write(value.paymentType,into);FfiConverterTypePaymentStatus.write(value.status,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterTypeu128.write(value.fees,into);FfiConverterUInt64.write(value.timestamp,into);FfiConverterTypePaymentMethod.write(value.method,into);FfiConverterOptionalTypePaymentDetails.write(value.details,into);FfiConverterOptionalTypeConversionDetails.write(value.conversionDetails,into);}allocationSize(value){return FfiConverterString.allocationSize(value.id)+FfiConverterTypePaymentType.allocationSize(value.paymentType)+FfiConverterTypePaymentStatus.allocationSize(value.status)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterTypeu128.allocationSize(value.fees)+FfiConverterUInt64.allocationSize(value.timestamp)+FfiConverterTypePaymentMethod.allocationSize(value.method)+FfiConverterOptionalTypePaymentDetails.allocationSize(value.details)+FfiConverterOptionalTypeConversionDetails.allocationSize(value.conversionDetails);}}return new FFIConverter();})();/**
|
|
1646
|
+
* Generated factory for {@link PaymentIdUpdate} record objects.
|
|
1647
|
+
*/export const PaymentIdUpdate=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1648
|
+
* Create a frozen instance of {@link PaymentIdUpdate}, with defaults specified
|
|
1649
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1650
|
+
*/create,/**
|
|
1651
|
+
* Create a frozen instance of {@link PaymentIdUpdate}, with defaults specified
|
|
1652
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1653
|
+
*/new:create,/**
|
|
1654
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1655
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePaymentIdUpdate=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{provisionalPaymentId:FfiConverterString.read(from),finalPaymentId:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.provisionalPaymentId,into);FfiConverterString.write(value.finalPaymentId,into);}allocationSize(value){return FfiConverterString.allocationSize(value.provisionalPaymentId)+FfiConverterString.allocationSize(value.finalPaymentId);}}return new FFIConverter();})();/**
|
|
1239
1656
|
* Metadata associated with a payment that cannot be extracted from the Spark operator.
|
|
1240
1657
|
*//**
|
|
1241
1658
|
* Generated factory for {@link PaymentMetadata} record objects.
|
|
@@ -1287,7 +1704,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1287
1704
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1288
1705
|
*/new:create,/**
|
|
1289
1706
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1290
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareSendPaymentRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentRequest:
|
|
1707
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareSendPaymentRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentRequest:FfiConverterTypePaymentRequest.read(from),amount:FfiConverterOptionalTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),conversionOptions:FfiConverterOptionalTypeConversionOptions.read(from),feePolicy:FfiConverterOptionalTypeFeePolicy.read(from)};}write(value,into){FfiConverterTypePaymentRequest.write(value.paymentRequest,into);FfiConverterOptionalTypeu128.write(value.amount,into);FfiConverterOptionalString.write(value.tokenIdentifier,into);FfiConverterOptionalTypeConversionOptions.write(value.conversionOptions,into);FfiConverterOptionalTypeFeePolicy.write(value.feePolicy,into);}allocationSize(value){return FfiConverterTypePaymentRequest.allocationSize(value.paymentRequest)+FfiConverterOptionalTypeu128.allocationSize(value.amount)+FfiConverterOptionalString.allocationSize(value.tokenIdentifier)+FfiConverterOptionalTypeConversionOptions.allocationSize(value.conversionOptions)+FfiConverterOptionalTypeFeePolicy.allocationSize(value.feePolicy);}}return new FFIConverter();})();/**
|
|
1291
1708
|
* Generated factory for {@link PrepareSendPaymentResponse} record objects.
|
|
1292
1709
|
*/export const PrepareSendPaymentResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1293
1710
|
* Create a frozen instance of {@link PrepareSendPaymentResponse}, with defaults specified
|
|
@@ -1434,6 +1851,30 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1434
1851
|
*/new:create,/**
|
|
1435
1852
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1436
1853
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRegisterLightningAddressRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{username:FfiConverterString.read(from),description:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterString.write(value.username,into);FfiConverterOptionalString.write(value.description,into);}allocationSize(value){return FfiConverterString.allocationSize(value.username)+FfiConverterOptionalString.allocationSize(value.description);}}return new FFIConverter();})();/**
|
|
1854
|
+
* Request shape for [`PasskeyClient::register`].
|
|
1855
|
+
*//**
|
|
1856
|
+
* Generated factory for {@link RegisterRequest} record objects.
|
|
1857
|
+
*/export const RegisterRequest=(()=>{const defaults=()=>({label:undefined,excludeCredentials:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1858
|
+
* Create a frozen instance of {@link RegisterRequest}, with defaults specified
|
|
1859
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1860
|
+
*/create,/**
|
|
1861
|
+
* Create a frozen instance of {@link RegisterRequest}, with defaults specified
|
|
1862
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1863
|
+
*/new:create,/**
|
|
1864
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1865
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRegisterRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{label:FfiConverterOptionalString.read(from),excludeCredentials:FfiConverterOptionalArrayArrayBuffer.read(from)};}write(value,into){FfiConverterOptionalString.write(value.label,into);FfiConverterOptionalArrayArrayBuffer.write(value.excludeCredentials,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.label)+FfiConverterOptionalArrayArrayBuffer.allocationSize(value.excludeCredentials);}}return new FFIConverter();})();/**
|
|
1866
|
+
* Response from [`PasskeyClient::register`].
|
|
1867
|
+
*//**
|
|
1868
|
+
* Generated factory for {@link RegisterResponse} record objects.
|
|
1869
|
+
*/export const RegisterResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1870
|
+
* Create a frozen instance of {@link RegisterResponse}, with defaults specified
|
|
1871
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1872
|
+
*/create,/**
|
|
1873
|
+
* Create a frozen instance of {@link RegisterResponse}, with defaults specified
|
|
1874
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1875
|
+
*/new:create,/**
|
|
1876
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1877
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRegisterResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{wallet:FfiConverterTypeWallet.read(from),credential:FfiConverterOptionalTypePasskeyCredential.read(from)};}write(value,into){FfiConverterTypeWallet.write(value.wallet,into);FfiConverterOptionalTypePasskeyCredential.write(value.credential,into);}allocationSize(value){return FfiConverterTypeWallet.allocationSize(value.wallet)+FfiConverterOptionalTypePasskeyCredential.allocationSize(value.credential);}}return new FFIConverter();})();/**
|
|
1437
1878
|
* Request to register a new webhook.
|
|
1438
1879
|
*//**
|
|
1439
1880
|
* Generated factory for {@link RegisterWebhookRequest} record objects.
|
|
@@ -1484,7 +1925,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1484
1925
|
* match the single-SDK happy path.
|
|
1485
1926
|
*//**
|
|
1486
1927
|
* Generated factory for {@link SdkContextConfig} record objects.
|
|
1487
|
-
*/export const SdkContextConfig=(()=>{const defaults=()=>({apiKey:undefined,connectionsPerOperator:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1928
|
+
*/export const SdkContextConfig=(()=>{const defaults=()=>({apiKey:undefined,connectionsPerOperator:undefined,storage:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1488
1929
|
* Create a frozen instance of {@link SdkContextConfig}, with defaults specified
|
|
1489
1930
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1490
1931
|
*/create,/**
|
|
@@ -1492,7 +1933,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1492
1933
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1493
1934
|
*/new:create,/**
|
|
1494
1935
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1495
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSdkContextConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{network:FfiConverterTypeNetwork.read(from),apiKey:FfiConverterOptionalString.read(from),connectionsPerOperator:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterTypeNetwork.write(value.network,into);FfiConverterOptionalString.write(value.apiKey,into);FfiConverterOptionalUInt32.write(value.connectionsPerOperator,into);}allocationSize(value){return FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterOptionalString.allocationSize(value.apiKey)+FfiConverterOptionalUInt32.allocationSize(value.connectionsPerOperator);}}return new FFIConverter();})();/**
|
|
1936
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSdkContextConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{network:FfiConverterTypeNetwork.read(from),apiKey:FfiConverterOptionalString.read(from),connectionsPerOperator:FfiConverterOptionalUInt32.read(from),storage:FfiConverterOptionalTypeStorageBackend.read(from)};}write(value,into){FfiConverterTypeNetwork.write(value.network,into);FfiConverterOptionalString.write(value.apiKey,into);FfiConverterOptionalUInt32.write(value.connectionsPerOperator,into);FfiConverterOptionalTypeStorageBackend.write(value.storage,into);}allocationSize(value){return FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterOptionalString.allocationSize(value.apiKey)+FfiConverterOptionalUInt32.allocationSize(value.connectionsPerOperator)+FfiConverterOptionalTypeStorageBackend.allocationSize(value.storage);}}return new FFIConverter();})();/**
|
|
1496
1937
|
* FFI-safe representation of a private key (32 bytes)
|
|
1497
1938
|
*//**
|
|
1498
1939
|
* Generated factory for {@link SecretBytes} record objects.
|
|
@@ -1567,6 +2008,42 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1567
2008
|
*/new:create,/**
|
|
1568
2009
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1569
2010
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSetLnurlMetadataItem=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentHash:FfiConverterString.read(from),senderComment:FfiConverterOptionalString.read(from),nostrZapRequest:FfiConverterOptionalString.read(from),nostrZapReceipt:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterString.write(value.paymentHash,into);FfiConverterOptionalString.write(value.senderComment,into);FfiConverterOptionalString.write(value.nostrZapRequest,into);FfiConverterOptionalString.write(value.nostrZapReceipt,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentHash)+FfiConverterOptionalString.allocationSize(value.senderComment)+FfiConverterOptionalString.allocationSize(value.nostrZapRequest)+FfiConverterOptionalString.allocationSize(value.nostrZapReceipt);}}return new FFIConverter();})();/**
|
|
2011
|
+
* Request for [`crate::passkey::Passkey::setup_wallet`].
|
|
2012
|
+
*//**
|
|
2013
|
+
* Generated factory for {@link SetupWalletRequest} record objects.
|
|
2014
|
+
*/export const SetupWalletRequest=(()=>{const defaults=()=>({label:undefined,publishLabel:false,allowCredentials:[],preferImmediatelyAvailableCredentials:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2015
|
+
* Create a frozen instance of {@link SetupWalletRequest}, with defaults specified
|
|
2016
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2017
|
+
*/create,/**
|
|
2018
|
+
* Create a frozen instance of {@link SetupWalletRequest}, with defaults specified
|
|
2019
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2020
|
+
*/new:create,/**
|
|
2021
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2022
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSetupWalletRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{label:FfiConverterOptionalString.read(from),publishLabel:FfiConverterBool.read(from),allowCredentials:FfiConverterArrayArrayBuffer.read(from),preferImmediatelyAvailableCredentials:FfiConverterOptionalBool.read(from)};}write(value,into){FfiConverterOptionalString.write(value.label,into);FfiConverterBool.write(value.publishLabel,into);FfiConverterArrayArrayBuffer.write(value.allowCredentials,into);FfiConverterOptionalBool.write(value.preferImmediatelyAvailableCredentials,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.label)+FfiConverterBool.allocationSize(value.publishLabel)+FfiConverterArrayArrayBuffer.allocationSize(value.allowCredentials)+FfiConverterOptionalBool.allocationSize(value.preferImmediatelyAvailableCredentials);}}return new FFIConverter();})();/**
|
|
2023
|
+
* Request shape for [`PasskeyClient::sign_in`].
|
|
2024
|
+
*//**
|
|
2025
|
+
* Generated factory for {@link SignInRequest} record objects.
|
|
2026
|
+
*/export const SignInRequest=(()=>{const defaults=()=>({label:undefined,allowCredentials:undefined,preferImmediatelyAvailableCredentials:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2027
|
+
* Create a frozen instance of {@link SignInRequest}, with defaults specified
|
|
2028
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2029
|
+
*/create,/**
|
|
2030
|
+
* Create a frozen instance of {@link SignInRequest}, with defaults specified
|
|
2031
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2032
|
+
*/new:create,/**
|
|
2033
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2034
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSignInRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{label:FfiConverterOptionalString.read(from),allowCredentials:FfiConverterOptionalArrayArrayBuffer.read(from),preferImmediatelyAvailableCredentials:FfiConverterOptionalBool.read(from)};}write(value,into){FfiConverterOptionalString.write(value.label,into);FfiConverterOptionalArrayArrayBuffer.write(value.allowCredentials,into);FfiConverterOptionalBool.write(value.preferImmediatelyAvailableCredentials,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.label)+FfiConverterOptionalArrayArrayBuffer.allocationSize(value.allowCredentials)+FfiConverterOptionalBool.allocationSize(value.preferImmediatelyAvailableCredentials);}}return new FFIConverter();})();/**
|
|
2035
|
+
* Response from [`PasskeyClient::sign_in`].
|
|
2036
|
+
*//**
|
|
2037
|
+
* Generated factory for {@link SignInResponse} record objects.
|
|
2038
|
+
*/export const SignInResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2039
|
+
* Create a frozen instance of {@link SignInResponse}, with defaults specified
|
|
2040
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2041
|
+
*/create,/**
|
|
2042
|
+
* Create a frozen instance of {@link SignInResponse}, with defaults specified
|
|
2043
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2044
|
+
*/new:create,/**
|
|
2045
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2046
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSignInResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{wallet:FfiConverterTypeWallet.read(from),labels:FfiConverterArrayString.read(from),credential:FfiConverterOptionalTypePasskeyCredential.read(from)};}write(value,into){FfiConverterTypeWallet.write(value.wallet,into);FfiConverterArrayString.write(value.labels,into);FfiConverterOptionalTypePasskeyCredential.write(value.credential,into);}allocationSize(value){return FfiConverterTypeWallet.allocationSize(value.wallet)+FfiConverterArrayString.allocationSize(value.labels)+FfiConverterOptionalTypePasskeyCredential.allocationSize(value.credential);}}return new FFIConverter();})();/**
|
|
1570
2047
|
* Generated factory for {@link SignMessageRequest} record objects.
|
|
1571
2048
|
*/export const SignMessageRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1572
2049
|
* Create a frozen instance of {@link SignMessageRequest}, with defaults specified
|
|
@@ -1674,7 +2151,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1674
2151
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1675
2152
|
*/new:create,/**
|
|
1676
2153
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1677
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSparkSigningOperator=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterUInt32.read(from),identifier:FfiConverterString.read(from),address:FfiConverterString.read(from),identityPublicKey:FfiConverterString.read(from)};}write(value,into){FfiConverterUInt32.write(value.id,into);FfiConverterString.write(value.identifier,into);FfiConverterString.write(value.address,into);FfiConverterString.write(value.identityPublicKey,into);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.id)+FfiConverterString.allocationSize(value.identifier)+FfiConverterString.allocationSize(value.address)+FfiConverterString.allocationSize(value.identityPublicKey);}}return new FFIConverter();})();/**
|
|
2154
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSparkSigningOperator=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterUInt32.read(from),identifier:FfiConverterString.read(from),address:FfiConverterString.read(from),identityPublicKey:FfiConverterString.read(from),caCertPem:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterUInt32.write(value.id,into);FfiConverterString.write(value.identifier,into);FfiConverterString.write(value.address,into);FfiConverterString.write(value.identityPublicKey,into);FfiConverterOptionalString.write(value.caCertPem,into);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.id)+FfiConverterString.allocationSize(value.identifier)+FfiConverterString.allocationSize(value.address)+FfiConverterString.allocationSize(value.identityPublicKey)+FfiConverterOptionalString.allocationSize(value.caCertPem);}}return new FFIConverter();})();/**
|
|
1678
2155
|
* Configuration for the Spark Service Provider (SSP).
|
|
1679
2156
|
*//**
|
|
1680
2157
|
* Generated factory for {@link SparkSspConfig} record objects.
|
|
@@ -1743,11 +2220,30 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1743
2220
|
* Create a frozen instance of {@link StorageListPaymentsRequest}, with defaults specified
|
|
1744
2221
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1745
2222
|
*/create,/**
|
|
1746
|
-
* Create a frozen instance of {@link StorageListPaymentsRequest}, with defaults specified
|
|
2223
|
+
* Create a frozen instance of {@link StorageListPaymentsRequest}, with defaults specified
|
|
2224
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2225
|
+
*/new:create,/**
|
|
2226
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2227
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeStorageListPaymentsRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{typeFilter:FfiConverterOptionalArrayTypePaymentType.read(from),statusFilter:FfiConverterOptionalArrayTypePaymentStatus.read(from),assetFilter:FfiConverterOptionalTypeAssetFilter.read(from),paymentDetailsFilter:FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter.read(from),fromTimestamp:FfiConverterOptionalUInt64.read(from),toTimestamp:FfiConverterOptionalUInt64.read(from),offset:FfiConverterOptionalUInt32.read(from),limit:FfiConverterOptionalUInt32.read(from),sortAscending:FfiConverterOptionalBool.read(from)};}write(value,into){FfiConverterOptionalArrayTypePaymentType.write(value.typeFilter,into);FfiConverterOptionalArrayTypePaymentStatus.write(value.statusFilter,into);FfiConverterOptionalTypeAssetFilter.write(value.assetFilter,into);FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter.write(value.paymentDetailsFilter,into);FfiConverterOptionalUInt64.write(value.fromTimestamp,into);FfiConverterOptionalUInt64.write(value.toTimestamp,into);FfiConverterOptionalUInt32.write(value.offset,into);FfiConverterOptionalUInt32.write(value.limit,into);FfiConverterOptionalBool.write(value.sortAscending,into);}allocationSize(value){return FfiConverterOptionalArrayTypePaymentType.allocationSize(value.typeFilter)+FfiConverterOptionalArrayTypePaymentStatus.allocationSize(value.statusFilter)+FfiConverterOptionalTypeAssetFilter.allocationSize(value.assetFilter)+FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter.allocationSize(value.paymentDetailsFilter)+FfiConverterOptionalUInt64.allocationSize(value.fromTimestamp)+FfiConverterOptionalUInt64.allocationSize(value.toTimestamp)+FfiConverterOptionalUInt32.allocationSize(value.offset)+FfiConverterOptionalUInt32.allocationSize(value.limit)+FfiConverterOptionalBool.allocationSize(value.sortAscending);}}return new FFIConverter();})();/**
|
|
2228
|
+
* A cross-chain swap row as persisted and synced. Shared across providers
|
|
2229
|
+
* (Boltz, Orchestra, future) so each provider's adapter writes opaque
|
|
2230
|
+
* JSON into `data` and (optionally) opaque ciphertext into `secrets`.
|
|
2231
|
+
*
|
|
2232
|
+
* For providers with money-critical secrets, the adapter lifts them out of
|
|
2233
|
+
* the swap JSON, ECIES-encrypts them, and carries only the ciphertext in
|
|
2234
|
+
* `secrets`. The storage layer treats both fields as opaque, so it needs
|
|
2235
|
+
* no signer.
|
|
2236
|
+
*//**
|
|
2237
|
+
* Generated factory for {@link StoredCrossChainSwap} record objects.
|
|
2238
|
+
*/export const StoredCrossChainSwap=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2239
|
+
* Create a frozen instance of {@link StoredCrossChainSwap}, with defaults specified
|
|
2240
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2241
|
+
*/create,/**
|
|
2242
|
+
* Create a frozen instance of {@link StoredCrossChainSwap}, with defaults specified
|
|
1747
2243
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1748
2244
|
*/new:create,/**
|
|
1749
2245
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1750
|
-
*/defaults:()=>Object.freeze(defaults())});})();const
|
|
2246
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeStoredCrossChainSwap=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{provider:FfiConverterString.read(from),id:FfiConverterString.read(from),isTerminal:FfiConverterBool.read(from),updatedAt:FfiConverterUInt64.read(from),data:FfiConverterString.read(from),secrets:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.provider,into);FfiConverterString.write(value.id,into);FfiConverterBool.write(value.isTerminal,into);FfiConverterUInt64.write(value.updatedAt,into);FfiConverterString.write(value.data,into);FfiConverterString.write(value.secrets,into);}allocationSize(value){return FfiConverterString.allocationSize(value.provider)+FfiConverterString.allocationSize(value.id)+FfiConverterBool.allocationSize(value.isTerminal)+FfiConverterUInt64.allocationSize(value.updatedAt)+FfiConverterString.allocationSize(value.data)+FfiConverterString.allocationSize(value.secrets);}}return new FFIConverter();})();/**
|
|
1751
2247
|
* Settings for the symbol representation of a currency
|
|
1752
2248
|
*//**
|
|
1753
2249
|
* Generated factory for {@link Symbol} record objects.
|
|
@@ -1816,6 +2312,46 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1816
2312
|
*/new:create,/**
|
|
1817
2313
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1818
2314
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeTokenOptimizationConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{autoEnabled:FfiConverterBool.read(from),targetOutputCount:FfiConverterUInt32.read(from),minOutputsThreshold:FfiConverterUInt32.read(from)};}write(value,into){FfiConverterBool.write(value.autoEnabled,into);FfiConverterUInt32.write(value.targetOutputCount,into);FfiConverterUInt32.write(value.minOutputsThreshold,into);}allocationSize(value){return FfiConverterBool.allocationSize(value.autoEnabled)+FfiConverterUInt32.allocationSize(value.targetOutputCount)+FfiConverterUInt32.allocationSize(value.minOutputsThreshold);}}return new FFIConverter();})();/**
|
|
2315
|
+
* Authorization from the current owner granting a specific new owner the
|
|
2316
|
+
* right to take over a username. Produced by
|
|
2317
|
+
* [`BreezSdk::authorize_lightning_address_transfer`] and handed to the new
|
|
2318
|
+
* owner, who passes it to [`BreezSdk::claim_lightning_address_transfer`]. It
|
|
2319
|
+
* fully describes the transfer, so the new owner needs nothing else to claim.
|
|
2320
|
+
*//**
|
|
2321
|
+
* Generated factory for {@link TransferAuthorization} record objects.
|
|
2322
|
+
*/export const TransferAuthorization=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2323
|
+
* Create a frozen instance of {@link TransferAuthorization}, with defaults specified
|
|
2324
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2325
|
+
*/create,/**
|
|
2326
|
+
* Create a frozen instance of {@link TransferAuthorization}, with defaults specified
|
|
2327
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2328
|
+
*/new:create,/**
|
|
2329
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2330
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeTransferAuthorization=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{username:FfiConverterString.read(from),pubkey:FfiConverterString.read(from),signature:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.username,into);FfiConverterString.write(value.pubkey,into);FfiConverterString.write(value.signature,into);}allocationSize(value){return FfiConverterString.allocationSize(value.username)+FfiConverterString.allocationSize(value.pubkey)+FfiConverterString.allocationSize(value.signature);}}return new FFIConverter();})();/**
|
|
2331
|
+
* Generated factory for {@link TurnkeyConfig} record objects.
|
|
2332
|
+
*/export const TurnkeyConfig=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2333
|
+
* Create a frozen instance of {@link TurnkeyConfig}, with defaults specified
|
|
2334
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2335
|
+
*/create,/**
|
|
2336
|
+
* Create a frozen instance of {@link TurnkeyConfig}, with defaults specified
|
|
2337
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2338
|
+
*/new:create,/**
|
|
2339
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2340
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeTurnkeyConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{baseUrl:FfiConverterOptionalString.read(from),organizationId:FfiConverterString.read(from),apiPublicKey:FfiConverterString.read(from),apiPrivateKey:FfiConverterString.read(from),walletId:FfiConverterString.read(from),network:FfiConverterTypeNetwork.read(from),accountNumber:FfiConverterOptionalUInt32.read(from),retry:FfiConverterOptionalTypeTurnkeyRetryConfig.read(from)};}write(value,into){FfiConverterOptionalString.write(value.baseUrl,into);FfiConverterString.write(value.organizationId,into);FfiConverterString.write(value.apiPublicKey,into);FfiConverterString.write(value.apiPrivateKey,into);FfiConverterString.write(value.walletId,into);FfiConverterTypeNetwork.write(value.network,into);FfiConverterOptionalUInt32.write(value.accountNumber,into);FfiConverterOptionalTypeTurnkeyRetryConfig.write(value.retry,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.baseUrl)+FfiConverterString.allocationSize(value.organizationId)+FfiConverterString.allocationSize(value.apiPublicKey)+FfiConverterString.allocationSize(value.apiPrivateKey)+FfiConverterString.allocationSize(value.walletId)+FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterOptionalUInt32.allocationSize(value.accountNumber)+FfiConverterOptionalTypeTurnkeyRetryConfig.allocationSize(value.retry);}}return new FFIConverter();})();/**
|
|
2341
|
+
* Retry policy for Turnkey API requests (used while polling a pending
|
|
2342
|
+
* activity). Mirrors `turnkey_client`'s `RetryConfig` with FFI-friendly
|
|
2343
|
+
* millisecond fields.
|
|
2344
|
+
*//**
|
|
2345
|
+
* Generated factory for {@link TurnkeyRetryConfig} record objects.
|
|
2346
|
+
*/export const TurnkeyRetryConfig=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2347
|
+
* Create a frozen instance of {@link TurnkeyRetryConfig}, with defaults specified
|
|
2348
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2349
|
+
*/create,/**
|
|
2350
|
+
* Create a frozen instance of {@link TurnkeyRetryConfig}, with defaults specified
|
|
2351
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2352
|
+
*/new:create,/**
|
|
2353
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2354
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeTurnkeyRetryConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{initialDelayMs:FfiConverterUInt64.read(from),multiplier:FfiConverterFloat64.read(from),maxDelayMs:FfiConverterUInt64.read(from),maxRetries:FfiConverterUInt32.read(from),requestTimeoutMs:FfiConverterUInt64.read(from)};}write(value,into){FfiConverterUInt64.write(value.initialDelayMs,into);FfiConverterFloat64.write(value.multiplier,into);FfiConverterUInt64.write(value.maxDelayMs,into);FfiConverterUInt32.write(value.maxRetries,into);FfiConverterUInt64.write(value.requestTimeoutMs,into);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.initialDelayMs)+FfiConverterFloat64.allocationSize(value.multiplier)+FfiConverterUInt64.allocationSize(value.maxDelayMs)+FfiConverterUInt32.allocationSize(value.maxRetries)+FfiConverterUInt64.allocationSize(value.requestTimeoutMs);}}return new FFIConverter();})();/**
|
|
1819
2355
|
* Generated factory for {@link TxStatus} record objects.
|
|
1820
2356
|
*/export const TxStatus=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1821
2357
|
* Create a frozen instance of {@link TxStatus}, with defaults specified
|
|
@@ -1921,8 +2457,6 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1921
2457
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1922
2458
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUtxo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),value:FfiConverterUInt64.read(from),status:FfiConverterTypeTxStatus.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);FfiConverterUInt32.write(value.vout,into);FfiConverterUInt64.write(value.value,into);FfiConverterTypeTxStatus.write(value.status,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout)+FfiConverterUInt64.allocationSize(value.value)+FfiConverterTypeTxStatus.allocationSize(value.status);}}return new FFIConverter();})();/**
|
|
1923
2459
|
* A wallet derived from a passkey.
|
|
1924
|
-
*
|
|
1925
|
-
* Contains the derived seed and the label used during derivation.
|
|
1926
2460
|
*//**
|
|
1927
2461
|
* Generated factory for {@link Wallet} record objects.
|
|
1928
2462
|
*/export const Wallet=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
@@ -1934,6 +2468,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1934
2468
|
*/new:create,/**
|
|
1935
2469
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1936
2470
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeWallet=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{seed:FfiConverterTypeSeed.read(from),label:FfiConverterString.read(from)};}write(value,into){FfiConverterTypeSeed.write(value.seed,into);FfiConverterString.write(value.label,into);}allocationSize(value){return FfiConverterTypeSeed.allocationSize(value.seed)+FfiConverterString.allocationSize(value.label);}}return new FFIConverter();})();/**
|
|
2471
|
+
* Response from [`crate::passkey::Passkey::setup_wallet`].
|
|
2472
|
+
*//**
|
|
2473
|
+
* Generated factory for {@link WalletSetup} record objects.
|
|
2474
|
+
*/export const WalletSetup=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2475
|
+
* Create a frozen instance of {@link WalletSetup}, with defaults specified
|
|
2476
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2477
|
+
*/create,/**
|
|
2478
|
+
* Create a frozen instance of {@link WalletSetup}, with defaults specified
|
|
2479
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2480
|
+
*/new:create,/**
|
|
2481
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2482
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeWalletSetup=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{wallet:FfiConverterTypeWallet.read(from),credentialId:FfiConverterOptionalArrayBuffer.read(from)};}write(value,into){FfiConverterTypeWallet.write(value.wallet,into);FfiConverterOptionalArrayBuffer.write(value.credentialId,into);}allocationSize(value){return FfiConverterTypeWallet.allocationSize(value.wallet)+FfiConverterOptionalArrayBuffer.allocationSize(value.credentialId);}}return new FFIConverter();})();/**
|
|
1937
2483
|
* A registered webhook entry.
|
|
1938
2484
|
*//**
|
|
1939
2485
|
* Generated factory for {@link Webhook} record objects.
|
|
@@ -1997,7 +2543,40 @@ export let AssetFilter_Tags=/*#__PURE__*/function(AssetFilter_Tags){AssetFilter_
|
|
|
1997
2543
|
* A field of [`ListPaymentsRequest`] when listing payments filtered by asset
|
|
1998
2544
|
*/// FfiConverter for enum AssetFilter
|
|
1999
2545
|
const FfiConverterTypeAssetFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new AssetFilter.Bitcoin();case 2:return new AssetFilter.Token({tokenIdentifier:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case AssetFilter_Tags.Bitcoin:{ordinalConverter.write(1,into);return;}case AssetFilter_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}default:// Throwing from here means that AssetFilter_Tags hasn't matched an ordinal.
|
|
2000
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case AssetFilter_Tags.Bitcoin:{return ordinalConverter.allocationSize(1);}case AssetFilter_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})()
|
|
2546
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case AssetFilter_Tags.Bitcoin:{return ordinalConverter.allocationSize(1);}case AssetFilter_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: AutoOptimizationEvent
|
|
2547
|
+
export let AutoOptimizationEvent_Tags=/*#__PURE__*/function(AutoOptimizationEvent_Tags){AutoOptimizationEvent_Tags["Started"]="Started";AutoOptimizationEvent_Tags["RoundCompleted"]="RoundCompleted";AutoOptimizationEvent_Tags["Completed"]="Completed";AutoOptimizationEvent_Tags["Cancelled"]="Cancelled";AutoOptimizationEvent_Tags["Failed"]="Failed";AutoOptimizationEvent_Tags["Skipped"]="Skipped";return AutoOptimizationEvent_Tags;}({});export const AutoOptimizationEvent=(()=>{/**
|
|
2548
|
+
* Optimization has started with the given number of rounds.
|
|
2549
|
+
*/class Started_ extends UniffiEnum{/**
|
|
2550
|
+
* @private
|
|
2551
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2552
|
+
*/[uniffiTypeNameSymbol]='AutoOptimizationEvent';tag=AutoOptimizationEvent_Tags.Started;constructor(inner){super('AutoOptimizationEvent','Started');this.inner=Object.freeze(inner);}static new(inner){return new Started_(inner);}static instanceOf(obj){return obj.tag===AutoOptimizationEvent_Tags.Started;}}/**
|
|
2553
|
+
* A round has completed.
|
|
2554
|
+
*/class RoundCompleted_ extends UniffiEnum{/**
|
|
2555
|
+
* @private
|
|
2556
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2557
|
+
*/[uniffiTypeNameSymbol]='AutoOptimizationEvent';tag=AutoOptimizationEvent_Tags.RoundCompleted;constructor(inner){super('AutoOptimizationEvent','RoundCompleted');this.inner=Object.freeze(inner);}static new(inner){return new RoundCompleted_(inner);}static instanceOf(obj){return obj.tag===AutoOptimizationEvent_Tags.RoundCompleted;}}/**
|
|
2558
|
+
* Optimization completed successfully.
|
|
2559
|
+
*/class Completed_ extends UniffiEnum{/**
|
|
2560
|
+
* @private
|
|
2561
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2562
|
+
*/[uniffiTypeNameSymbol]='AutoOptimizationEvent';tag=AutoOptimizationEvent_Tags.Completed;constructor(){super('AutoOptimizationEvent','Completed');}static new(){return new Completed_();}static instanceOf(obj){return obj.tag===AutoOptimizationEvent_Tags.Completed;}}/**
|
|
2563
|
+
* Optimization was cancelled.
|
|
2564
|
+
*/class Cancelled_ extends UniffiEnum{/**
|
|
2565
|
+
* @private
|
|
2566
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2567
|
+
*/[uniffiTypeNameSymbol]='AutoOptimizationEvent';tag=AutoOptimizationEvent_Tags.Cancelled;constructor(){super('AutoOptimizationEvent','Cancelled');}static new(){return new Cancelled_();}static instanceOf(obj){return obj.tag===AutoOptimizationEvent_Tags.Cancelled;}}/**
|
|
2568
|
+
* Optimization failed with an error.
|
|
2569
|
+
*/class Failed_ extends UniffiEnum{/**
|
|
2570
|
+
* @private
|
|
2571
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2572
|
+
*/[uniffiTypeNameSymbol]='AutoOptimizationEvent';tag=AutoOptimizationEvent_Tags.Failed;constructor(inner){super('AutoOptimizationEvent','Failed');this.inner=Object.freeze(inner);}static new(inner){return new Failed_(inner);}static instanceOf(obj){return obj.tag===AutoOptimizationEvent_Tags.Failed;}}/**
|
|
2573
|
+
* Optimization was skipped because leaves are already optimal.
|
|
2574
|
+
*/class Skipped_ extends UniffiEnum{/**
|
|
2575
|
+
* @private
|
|
2576
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2577
|
+
*/[uniffiTypeNameSymbol]='AutoOptimizationEvent';tag=AutoOptimizationEvent_Tags.Skipped;constructor(){super('AutoOptimizationEvent','Skipped');}static new(){return new Skipped_();}static instanceOf(obj){return obj.tag===AutoOptimizationEvent_Tags.Skipped;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='AutoOptimizationEvent';}return Object.freeze({instanceOf,Started:Started_,RoundCompleted:RoundCompleted_,Completed:Completed_,Cancelled:Cancelled_,Failed:Failed_,Skipped:Skipped_});})();// FfiConverter for enum AutoOptimizationEvent
|
|
2578
|
+
const FfiConverterTypeAutoOptimizationEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new AutoOptimizationEvent.Started({totalRounds:FfiConverterUInt32.read(from)});case 2:return new AutoOptimizationEvent.RoundCompleted({currentRound:FfiConverterUInt32.read(from),totalRounds:FfiConverterUInt32.read(from)});case 3:return new AutoOptimizationEvent.Completed();case 4:return new AutoOptimizationEvent.Cancelled();case 5:return new AutoOptimizationEvent.Failed({error:FfiConverterString.read(from)});case 6:return new AutoOptimizationEvent.Skipped();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case AutoOptimizationEvent_Tags.Started:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterUInt32.write(inner.totalRounds,into);return;}case AutoOptimizationEvent_Tags.RoundCompleted:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterUInt32.write(inner.currentRound,into);FfiConverterUInt32.write(inner.totalRounds,into);return;}case AutoOptimizationEvent_Tags.Completed:{ordinalConverter.write(3,into);return;}case AutoOptimizationEvent_Tags.Cancelled:{ordinalConverter.write(4,into);return;}case AutoOptimizationEvent_Tags.Failed:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner.error,into);return;}case AutoOptimizationEvent_Tags.Skipped:{ordinalConverter.write(6,into);return;}default:// Throwing from here means that AutoOptimizationEvent_Tags hasn't matched an ordinal.
|
|
2579
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case AutoOptimizationEvent_Tags.Started:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt32.allocationSize(inner.totalRounds);return size;}case AutoOptimizationEvent_Tags.RoundCompleted:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt32.allocationSize(inner.currentRound);size+=FfiConverterUInt32.allocationSize(inner.totalRounds);return size;}case AutoOptimizationEvent_Tags.Completed:{return ordinalConverter.allocationSize(3);}case AutoOptimizationEvent_Tags.Cancelled:{return ordinalConverter.allocationSize(4);}case AutoOptimizationEvent_Tags.Failed:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.error);return size;}case AutoOptimizationEvent_Tags.Skipped:{return ordinalConverter.allocationSize(6);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let BitcoinNetwork=/*#__PURE__*/function(BitcoinNetwork){/**
|
|
2001
2580
|
* Mainnet
|
|
2002
2581
|
*/BitcoinNetwork[BitcoinNetwork["Bitcoin"]=0]="Bitcoin";BitcoinNetwork[BitcoinNetwork["Testnet3"]=1]="Testnet3";BitcoinNetwork[BitcoinNetwork["Testnet4"]=2]="Testnet4";BitcoinNetwork[BitcoinNetwork["Signet"]=3]="Signet";BitcoinNetwork[BitcoinNetwork["Regtest"]=4]="Regtest";return BitcoinNetwork;}({});const FfiConverterTypeBitcoinNetwork=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return BitcoinNetwork.Bitcoin;case 2:return BitcoinNetwork.Testnet3;case 3:return BitcoinNetwork.Testnet4;case 4:return BitcoinNetwork.Signet;case 5:return BitcoinNetwork.Regtest;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case BitcoinNetwork.Bitcoin:return ordinalConverter.write(1,into);case BitcoinNetwork.Testnet3:return ordinalConverter.write(2,into);case BitcoinNetwork.Testnet4:return ordinalConverter.write(3,into);case BitcoinNetwork.Signet:return ordinalConverter.write(4,into);case BitcoinNetwork.Regtest:return ordinalConverter.write(5,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: BuyBitcoinRequest
|
|
2003
2582
|
export let BuyBitcoinRequest_Tags=/*#__PURE__*/function(BuyBitcoinRequest_Tags){BuyBitcoinRequest_Tags["Moonpay"]="Moonpay";BuyBitcoinRequest_Tags["CashApp"]="CashApp";return BuyBitcoinRequest_Tags;}({});/**
|
|
@@ -2043,7 +2622,86 @@ export let ChainServiceError_Tags=/*#__PURE__*/function(ChainServiceError_Tags){
|
|
|
2043
2622
|
* This field is private and should not be used, use `tag` instead.
|
|
2044
2623
|
*/[uniffiTypeNameSymbol]='ChainServiceError';tag=ChainServiceError_Tags.Generic;constructor(v0){super('ChainServiceError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===ChainServiceError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ChainServiceError';}return Object.freeze({instanceOf,InvalidAddress:InvalidAddress_,ServiceConnectivity:ServiceConnectivity_,Generic:Generic_});})();// FfiConverter for enum ChainServiceError
|
|
2045
2624
|
const FfiConverterTypeChainServiceError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ChainServiceError.InvalidAddress(FfiConverterString.read(from));case 2:return new ChainServiceError.ServiceConnectivity(FfiConverterString.read(from));case 3:return new ChainServiceError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ChainServiceError_Tags.ServiceConnectivity:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ChainServiceError_Tags.Generic:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that ChainServiceError_Tags hasn't matched an ordinal.
|
|
2046
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.ServiceConnectivity:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum:
|
|
2625
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.ServiceConnectivity:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ConversionChain
|
|
2626
|
+
export let ConversionChain_Tags=/*#__PURE__*/function(ConversionChain_Tags){ConversionChain_Tags["Spark"]="Spark";ConversionChain_Tags["Lightning"]="Lightning";ConversionChain_Tags["External"]="External";return ConversionChain_Tags;}({});/**
|
|
2627
|
+
* The chain or network that a [`ConversionSide`] lives on.
|
|
2628
|
+
*/export const ConversionChain=(()=>{/**
|
|
2629
|
+
* Spark layer-2 network.
|
|
2630
|
+
*/class Spark_ extends UniffiEnum{/**
|
|
2631
|
+
* @private
|
|
2632
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2633
|
+
*/[uniffiTypeNameSymbol]='ConversionChain';tag=ConversionChain_Tags.Spark;constructor(){super('ConversionChain','Spark');}static new(){return new Spark_();}static instanceOf(obj){return obj.tag===ConversionChain_Tags.Spark;}}/**
|
|
2634
|
+
* Bitcoin Lightning Network.
|
|
2635
|
+
*/class Lightning_ extends UniffiEnum{/**
|
|
2636
|
+
* @private
|
|
2637
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2638
|
+
*/[uniffiTypeNameSymbol]='ConversionChain';tag=ConversionChain_Tags.Lightning;constructor(){super('ConversionChain','Lightning');}static new(){return new Lightning_();}static instanceOf(obj){return obj.tag===ConversionChain_Tags.Lightning;}}/**
|
|
2639
|
+
* An external chain reached via a cross-chain provider.
|
|
2640
|
+
*/class External_ extends UniffiEnum{/**
|
|
2641
|
+
* @private
|
|
2642
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2643
|
+
*/[uniffiTypeNameSymbol]='ConversionChain';tag=ConversionChain_Tags.External;constructor(inner){super('ConversionChain','External');this.inner=Object.freeze(inner);}static new(inner){return new External_(inner);}static instanceOf(obj){return obj.tag===ConversionChain_Tags.External;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ConversionChain';}return Object.freeze({instanceOf,Spark:Spark_,Lightning:Lightning_,External:External_});})();/**
|
|
2644
|
+
* The chain or network that a [`ConversionSide`] lives on.
|
|
2645
|
+
*/// FfiConverter for enum ConversionChain
|
|
2646
|
+
const FfiConverterTypeConversionChain=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ConversionChain.Spark();case 2:return new ConversionChain.Lightning();case 3:return new ConversionChain.External({name:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ConversionChain_Tags.Spark:{ordinalConverter.write(1,into);return;}case ConversionChain_Tags.Lightning:{ordinalConverter.write(2,into);return;}case ConversionChain_Tags.External:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.name,into);FfiConverterOptionalString.write(inner.chainId,into);return;}default:// Throwing from here means that ConversionChain_Tags hasn't matched an ordinal.
|
|
2647
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionChain_Tags.Spark:{return ordinalConverter.allocationSize(1);}case ConversionChain_Tags.Lightning:{return ordinalConverter.allocationSize(2);}case ConversionChain_Tags.External:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.name);size+=FfiConverterOptionalString.allocationSize(inner.chainId);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
2648
|
+
* Selects payments by conversion type + status for background tasks.
|
|
2649
|
+
*/export let ConversionFilter=/*#__PURE__*/function(ConversionFilter){/**
|
|
2650
|
+
* AMM conversions that need a refund (clawback).
|
|
2651
|
+
*/ConversionFilter[ConversionFilter["AmmRefundNeeded"]=0]="AmmRefundNeeded";/**
|
|
2652
|
+
* Orchestra orders that have not yet reached a terminal state.
|
|
2653
|
+
*/ConversionFilter[ConversionFilter["OrchestraPending"]=1]="OrchestraPending";/**
|
|
2654
|
+
* Boltz reverse swaps that have not yet reached a terminal state. Lives on
|
|
2655
|
+
* the Lightning leg (the hold-invoice pay), so it is selected via the
|
|
2656
|
+
* [`StoragePaymentDetailsFilter::Lightning`] filter.
|
|
2657
|
+
*/ConversionFilter[ConversionFilter["BoltzPending"]=2]="BoltzPending";return ConversionFilter;}({});const FfiConverterTypeConversionFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ConversionFilter.AmmRefundNeeded;case 2:return ConversionFilter.OrchestraPending;case 3:return ConversionFilter.BoltzPending;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ConversionFilter.AmmRefundNeeded:return ordinalConverter.write(1,into);case ConversionFilter.OrchestraPending:return ordinalConverter.write(2,into);case ConversionFilter.BoltzPending:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: ConversionInfo
|
|
2658
|
+
export let ConversionInfo_Tags=/*#__PURE__*/function(ConversionInfo_Tags){ConversionInfo_Tags["Amm"]="Amm";ConversionInfo_Tags["Orchestra"]="Orchestra";ConversionInfo_Tags["Boltz"]="Boltz";return ConversionInfo_Tags;}({});/**
|
|
2659
|
+
* Details of the asset conversion attached to a payment, when the payment
|
|
2660
|
+
* involves a swap or cross-chain bridge in addition to the on-Spark transfer.
|
|
2661
|
+
*
|
|
2662
|
+
* The variant identifies which provider handled the conversion:
|
|
2663
|
+
* - [`ConversionInfo::Amm`] for Spark token swaps via Flashnet AMM pools.
|
|
2664
|
+
* - [`ConversionInfo::Orchestra`] for cross-chain sends via Flashnet
|
|
2665
|
+
* Orchestra (Spark → external chain).
|
|
2666
|
+
* - [`ConversionInfo::Boltz`] for sats → stable-coin reverse swaps via Boltz.
|
|
2667
|
+
*/export const ConversionInfo=(()=>{/**
|
|
2668
|
+
* AMM (Flashnet pool-based) conversion — Spark ↔ Spark token swaps.
|
|
2669
|
+
*/class Amm_ extends UniffiEnum{/**
|
|
2670
|
+
* @private
|
|
2671
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2672
|
+
*/[uniffiTypeNameSymbol]='ConversionInfo';tag=ConversionInfo_Tags.Amm;constructor(inner){super('ConversionInfo','Amm');this.inner=Object.freeze(inner);}static new(inner){return new Amm_(inner);}static instanceOf(obj){return obj.tag===ConversionInfo_Tags.Amm;}}/**
|
|
2673
|
+
* Orchestra cross-chain conversion via the Flashnet orchestration API.
|
|
2674
|
+
*/class Orchestra_ extends UniffiEnum{/**
|
|
2675
|
+
* @private
|
|
2676
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2677
|
+
*/[uniffiTypeNameSymbol]='ConversionInfo';tag=ConversionInfo_Tags.Orchestra;constructor(inner){super('ConversionInfo','Orchestra');this.inner=Object.freeze(inner);}static new(inner){return new Orchestra_(inner);}static instanceOf(obj){return obj.tag===ConversionInfo_Tags.Orchestra;}}/**
|
|
2678
|
+
* Boltz reverse swap: cross-chain conversion via Lightning hold invoice.
|
|
2679
|
+
*
|
|
2680
|
+
* The swap's secrets and lifecycle state live on the synced Boltz swap row
|
|
2681
|
+
* keyed by `swap_id`, which also drives cross-instance recovery.
|
|
2682
|
+
*/class Boltz_ extends UniffiEnum{/**
|
|
2683
|
+
* @private
|
|
2684
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2685
|
+
*/[uniffiTypeNameSymbol]='ConversionInfo';tag=ConversionInfo_Tags.Boltz;constructor(inner){super('ConversionInfo','Boltz');this.inner=Object.freeze(inner);}static new(inner){return new Boltz_(inner);}static instanceOf(obj){return obj.tag===ConversionInfo_Tags.Boltz;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ConversionInfo';}return Object.freeze({instanceOf,Amm:Amm_,Orchestra:Orchestra_,Boltz:Boltz_});})();/**
|
|
2686
|
+
* Details of the asset conversion attached to a payment, when the payment
|
|
2687
|
+
* involves a swap or cross-chain bridge in addition to the on-Spark transfer.
|
|
2688
|
+
*
|
|
2689
|
+
* The variant identifies which provider handled the conversion:
|
|
2690
|
+
* - [`ConversionInfo::Amm`] for Spark token swaps via Flashnet AMM pools.
|
|
2691
|
+
* - [`ConversionInfo::Orchestra`] for cross-chain sends via Flashnet
|
|
2692
|
+
* Orchestra (Spark → external chain).
|
|
2693
|
+
* - [`ConversionInfo::Boltz`] for sats → stable-coin reverse swaps via Boltz.
|
|
2694
|
+
*/// FfiConverter for enum ConversionInfo
|
|
2695
|
+
const FfiConverterTypeConversionInfo=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ConversionInfo.Amm({poolId:FfiConverterString.read(from),conversionId:FfiConverterString.read(from),status:FfiConverterTypeConversionStatus.read(from),fee:FfiConverterOptionalTypeu128.read(from),purpose:FfiConverterOptionalTypeConversionPurpose.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from)});case 2:return new ConversionInfo.Orchestra({orderId:FfiConverterString.read(from),quoteId:FfiConverterString.read(from),readToken:FfiConverterOptionalString.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),recipientAddress:FfiConverterString.read(from),assetAmountIn:FfiConverterOptionalTypeu128.read(from),estimatedOut:FfiConverterTypeu128.read(from),deliveredAmount:FfiConverterOptionalTypeu128.read(from),status:FfiConverterTypeConversionStatus.read(from),feeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),assetDecimals:FfiConverterUInt32.read(from),assetContract:FfiConverterOptionalString.read(from)});case 3:return new ConversionInfo.Boltz({swapId:FfiConverterString.read(from),invoice:FfiConverterString.read(from),invoiceAmountSats:FfiConverterUInt64.read(from),bridgeRef:FfiConverterOptionalString.read(from),maxSlippageBps:FfiConverterUInt32.read(from),quoteDegraded:FfiConverterBool.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),recipientAddress:FfiConverterString.read(from),estimatedOut:FfiConverterTypeu128.read(from),deliveredAmount:FfiConverterOptionalTypeu128.read(from),status:FfiConverterTypeConversionStatus.read(from),assetAmountIn:FfiConverterOptionalTypeu128.read(from),feeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),assetDecimals:FfiConverterUInt32.read(from),assetContract:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ConversionInfo_Tags.Amm:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.poolId,into);FfiConverterString.write(inner.conversionId,into);FfiConverterTypeConversionStatus.write(inner.status,into);FfiConverterOptionalTypeu128.write(inner.fee,into);FfiConverterOptionalTypeConversionPurpose.write(inner.purpose,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(inner.amountAdjustment,into);return;}case ConversionInfo_Tags.Orchestra:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.orderId,into);FfiConverterString.write(inner.quoteId,into);FfiConverterOptionalString.write(inner.readToken,into);FfiConverterString.write(inner.chain,into);FfiConverterOptionalString.write(inner.chainId,into);FfiConverterString.write(inner.asset,into);FfiConverterString.write(inner.recipientAddress,into);FfiConverterOptionalTypeu128.write(inner.assetAmountIn,into);FfiConverterTypeu128.write(inner.estimatedOut,into);FfiConverterOptionalTypeu128.write(inner.deliveredAmount,into);FfiConverterTypeConversionStatus.write(inner.status,into);FfiConverterOptionalTypeu128.write(inner.feeAmount,into);FfiConverterOptionalTypeu128.write(inner.serviceFeeAmount,into);FfiConverterOptionalString.write(inner.serviceFeeAsset,into);FfiConverterUInt32.write(inner.assetDecimals,into);FfiConverterOptionalString.write(inner.assetContract,into);return;}case ConversionInfo_Tags.Boltz:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.swapId,into);FfiConverterString.write(inner.invoice,into);FfiConverterUInt64.write(inner.invoiceAmountSats,into);FfiConverterOptionalString.write(inner.bridgeRef,into);FfiConverterUInt32.write(inner.maxSlippageBps,into);FfiConverterBool.write(inner.quoteDegraded,into);FfiConverterString.write(inner.chain,into);FfiConverterOptionalString.write(inner.chainId,into);FfiConverterString.write(inner.asset,into);FfiConverterString.write(inner.recipientAddress,into);FfiConverterTypeu128.write(inner.estimatedOut,into);FfiConverterOptionalTypeu128.write(inner.deliveredAmount,into);FfiConverterTypeConversionStatus.write(inner.status,into);FfiConverterOptionalTypeu128.write(inner.assetAmountIn,into);FfiConverterOptionalTypeu128.write(inner.feeAmount,into);FfiConverterOptionalTypeu128.write(inner.serviceFeeAmount,into);FfiConverterOptionalString.write(inner.serviceFeeAsset,into);FfiConverterUInt32.write(inner.assetDecimals,into);FfiConverterOptionalString.write(inner.assetContract,into);return;}default:// Throwing from here means that ConversionInfo_Tags hasn't matched an ordinal.
|
|
2696
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionInfo_Tags.Amm:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.poolId);size+=FfiConverterString.allocationSize(inner.conversionId);size+=FfiConverterTypeConversionStatus.allocationSize(inner.status);size+=FfiConverterOptionalTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalTypeConversionPurpose.allocationSize(inner.purpose);size+=FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(inner.amountAdjustment);return size;}case ConversionInfo_Tags.Orchestra:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.orderId);size+=FfiConverterString.allocationSize(inner.quoteId);size+=FfiConverterOptionalString.allocationSize(inner.readToken);size+=FfiConverterString.allocationSize(inner.chain);size+=FfiConverterOptionalString.allocationSize(inner.chainId);size+=FfiConverterString.allocationSize(inner.asset);size+=FfiConverterString.allocationSize(inner.recipientAddress);size+=FfiConverterOptionalTypeu128.allocationSize(inner.assetAmountIn);size+=FfiConverterTypeu128.allocationSize(inner.estimatedOut);size+=FfiConverterOptionalTypeu128.allocationSize(inner.deliveredAmount);size+=FfiConverterTypeConversionStatus.allocationSize(inner.status);size+=FfiConverterOptionalTypeu128.allocationSize(inner.feeAmount);size+=FfiConverterOptionalTypeu128.allocationSize(inner.serviceFeeAmount);size+=FfiConverterOptionalString.allocationSize(inner.serviceFeeAsset);size+=FfiConverterUInt32.allocationSize(inner.assetDecimals);size+=FfiConverterOptionalString.allocationSize(inner.assetContract);return size;}case ConversionInfo_Tags.Boltz:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.swapId);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterUInt64.allocationSize(inner.invoiceAmountSats);size+=FfiConverterOptionalString.allocationSize(inner.bridgeRef);size+=FfiConverterUInt32.allocationSize(inner.maxSlippageBps);size+=FfiConverterBool.allocationSize(inner.quoteDegraded);size+=FfiConverterString.allocationSize(inner.chain);size+=FfiConverterOptionalString.allocationSize(inner.chainId);size+=FfiConverterString.allocationSize(inner.asset);size+=FfiConverterString.allocationSize(inner.recipientAddress);size+=FfiConverterTypeu128.allocationSize(inner.estimatedOut);size+=FfiConverterOptionalTypeu128.allocationSize(inner.deliveredAmount);size+=FfiConverterTypeConversionStatus.allocationSize(inner.status);size+=FfiConverterOptionalTypeu128.allocationSize(inner.assetAmountIn);size+=FfiConverterOptionalTypeu128.allocationSize(inner.feeAmount);size+=FfiConverterOptionalTypeu128.allocationSize(inner.serviceFeeAmount);size+=FfiConverterOptionalString.allocationSize(inner.serviceFeeAsset);size+=FfiConverterUInt32.allocationSize(inner.assetDecimals);size+=FfiConverterOptionalString.allocationSize(inner.assetContract);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
2697
|
+
* The provider that performed a conversion.
|
|
2698
|
+
*/export let ConversionProvider=/*#__PURE__*/function(ConversionProvider){/**
|
|
2699
|
+
* AMM (Flashnet pool) conversion between token and BTC on Spark
|
|
2700
|
+
*/ConversionProvider[ConversionProvider["Amm"]=0]="Amm";/**
|
|
2701
|
+
* Orchestra cross-chain conversion
|
|
2702
|
+
*/ConversionProvider[ConversionProvider["Orchestra"]=1]="Orchestra";/**
|
|
2703
|
+
* Boltz reverse-swap cross-chain conversion
|
|
2704
|
+
*/ConversionProvider[ConversionProvider["Boltz"]=2]="Boltz";return ConversionProvider;}({});const FfiConverterTypeConversionProvider=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ConversionProvider.Amm;case 2:return ConversionProvider.Orchestra;case 3:return ConversionProvider.Boltz;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ConversionProvider.Amm:return ordinalConverter.write(1,into);case ConversionProvider.Orchestra:return ordinalConverter.write(2,into);case ConversionProvider.Boltz:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: ConversionPurpose
|
|
2047
2705
|
export let ConversionPurpose_Tags=/*#__PURE__*/function(ConversionPurpose_Tags){ConversionPurpose_Tags["OngoingPayment"]="OngoingPayment";ConversionPurpose_Tags["SelfTransfer"]="SelfTransfer";ConversionPurpose_Tags["AutoConversion"]="AutoConversion";return ConversionPurpose_Tags;}({});/**
|
|
2048
2706
|
* The purpose of the conversion, which is used to provide context for the conversion
|
|
2049
2707
|
* if its related to an ongoing payment or a self-transfer.
|
|
@@ -2093,7 +2751,52 @@ export let ConversionType_Tags=/*#__PURE__*/function(ConversionType_Tags){Conver
|
|
|
2093
2751
|
* This field is private and should not be used, use `tag` instead.
|
|
2094
2752
|
*/[uniffiTypeNameSymbol]='ConversionType';tag=ConversionType_Tags.ToBitcoin;constructor(inner){super('ConversionType','ToBitcoin');this.inner=Object.freeze(inner);}static new(inner){return new ToBitcoin_(inner);}static instanceOf(obj){return obj.tag===ConversionType_Tags.ToBitcoin;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ConversionType';}return Object.freeze({instanceOf,FromBitcoin:FromBitcoin_,ToBitcoin:ToBitcoin_});})();// FfiConverter for enum ConversionType
|
|
2095
2753
|
const FfiConverterTypeConversionType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ConversionType.FromBitcoin();case 2:return new ConversionType.ToBitcoin({fromTokenIdentifier:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ConversionType_Tags.FromBitcoin:{ordinalConverter.write(1,into);return;}case ConversionType_Tags.ToBitcoin:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.fromTokenIdentifier,into);return;}default:// Throwing from here means that ConversionType_Tags hasn't matched an ordinal.
|
|
2096
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionType_Tags.FromBitcoin:{return ordinalConverter.allocationSize(1);}case ConversionType_Tags.ToBitcoin:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.fromTokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})()
|
|
2754
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionType_Tags.FromBitcoin:{return ordinalConverter.allocationSize(1);}case ConversionType_Tags.ToBitcoin:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.fromTokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let CrossChainAddressFamily=/*#__PURE__*/function(CrossChainAddressFamily){CrossChainAddressFamily[CrossChainAddressFamily["Evm"]=0]="Evm";CrossChainAddressFamily[CrossChainAddressFamily["Solana"]=1]="Solana";CrossChainAddressFamily[CrossChainAddressFamily["Tron"]=2]="Tron";return CrossChainAddressFamily;}({});const FfiConverterTypeCrossChainAddressFamily=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return CrossChainAddressFamily.Evm;case 2:return CrossChainAddressFamily.Solana;case 3:return CrossChainAddressFamily.Tron;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case CrossChainAddressFamily.Evm:return ordinalConverter.write(1,into);case CrossChainAddressFamily.Solana:return ordinalConverter.write(2,into);case CrossChainAddressFamily.Tron:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();/**
|
|
2755
|
+
* How the caller wants fees handled against the request `amount`.
|
|
2756
|
+
*
|
|
2757
|
+
* - `FeesExcluded`: `amount` is the provider invoice/deposit target; the
|
|
2758
|
+
* wallet pays `amount + source_transfer_fee_sats` in total.
|
|
2759
|
+
* - `FeesIncluded`: `amount` is the wallet's total sats budget; the provider
|
|
2760
|
+
* leg is sized so `amount_in + source_transfer_fee_sats <= amount`.
|
|
2761
|
+
*/export let CrossChainFeeMode=/*#__PURE__*/function(CrossChainFeeMode){CrossChainFeeMode[CrossChainFeeMode["FeesExcluded"]=0]="FeesExcluded";CrossChainFeeMode[CrossChainFeeMode["FeesIncluded"]=1]="FeesIncluded";return CrossChainFeeMode;}({});const FfiConverterTypeCrossChainFeeMode=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return CrossChainFeeMode.FeesExcluded;case 2:return CrossChainFeeMode.FeesIncluded;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case CrossChainFeeMode.FeesExcluded:return ordinalConverter.write(1,into);case CrossChainFeeMode.FeesIncluded:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();export let CrossChainProvider=/*#__PURE__*/function(CrossChainProvider){CrossChainProvider[CrossChainProvider["Orchestra"]=0]="Orchestra";CrossChainProvider[CrossChainProvider["Boltz"]=1]="Boltz";return CrossChainProvider;}({});const FfiConverterTypeCrossChainProvider=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return CrossChainProvider.Orchestra;case 2:return CrossChainProvider.Boltz;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case CrossChainProvider.Orchestra:return ordinalConverter.write(1,into);case CrossChainProvider.Boltz:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: CrossChainProviderContext
|
|
2762
|
+
export let CrossChainProviderContext_Tags=/*#__PURE__*/function(CrossChainProviderContext_Tags){CrossChainProviderContext_Tags["Orchestra"]="Orchestra";CrossChainProviderContext_Tags["Boltz"]="Boltz";return CrossChainProviderContext_Tags;}({});/**
|
|
2763
|
+
* Provider-internal state produced by `prepare` and consumed by `send`.
|
|
2764
|
+
* Typed per provider so the send stage can resume without re-quoting and
|
|
2765
|
+
* without a serde round-trip. Callers should round-trip this value as-is.
|
|
2766
|
+
*/export const CrossChainProviderContext=(()=>{class Orchestra_ extends UniffiEnum{/**
|
|
2767
|
+
* @private
|
|
2768
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2769
|
+
*/[uniffiTypeNameSymbol]='CrossChainProviderContext';tag=CrossChainProviderContext_Tags.Orchestra;constructor(inner){super('CrossChainProviderContext','Orchestra');this.inner=Object.freeze(inner);}static new(inner){return new Orchestra_(inner);}static instanceOf(obj){return obj.tag===CrossChainProviderContext_Tags.Orchestra;}}class Boltz_ extends UniffiEnum{/**
|
|
2770
|
+
* @private
|
|
2771
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2772
|
+
*/[uniffiTypeNameSymbol]='CrossChainProviderContext';tag=CrossChainProviderContext_Tags.Boltz;constructor(inner){super('CrossChainProviderContext','Boltz');this.inner=Object.freeze(inner);}static new(inner){return new Boltz_(inner);}static instanceOf(obj){return obj.tag===CrossChainProviderContext_Tags.Boltz;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='CrossChainProviderContext';}return Object.freeze({instanceOf,Orchestra:Orchestra_,Boltz:Boltz_});})();/**
|
|
2773
|
+
* Provider-internal state produced by `prepare` and consumed by `send`.
|
|
2774
|
+
* Typed per provider so the send stage can resume without re-quoting and
|
|
2775
|
+
* without a serde round-trip. Callers should round-trip this value as-is.
|
|
2776
|
+
*/// FfiConverter for enum CrossChainProviderContext
|
|
2777
|
+
const FfiConverterTypeCrossChainProviderContext=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new CrossChainProviderContext.Orchestra({quoteId:FfiConverterString.read(from),depositAddress:FfiConverterString.read(from),depositAmount:FfiConverterTypeu128.read(from)});case 2:return new CrossChainProviderContext.Boltz({swapId:FfiConverterString.read(from),invoice:FfiConverterString.read(from),invoiceAmountSats:FfiConverterUInt64.read(from),maxSlippageBps:FfiConverterUInt32.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case CrossChainProviderContext_Tags.Orchestra:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.quoteId,into);FfiConverterString.write(inner.depositAddress,into);FfiConverterTypeu128.write(inner.depositAmount,into);return;}case CrossChainProviderContext_Tags.Boltz:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.swapId,into);FfiConverterString.write(inner.invoice,into);FfiConverterUInt64.write(inner.invoiceAmountSats,into);FfiConverterUInt32.write(inner.maxSlippageBps,into);return;}default:// Throwing from here means that CrossChainProviderContext_Tags hasn't matched an ordinal.
|
|
2778
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case CrossChainProviderContext_Tags.Orchestra:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.quoteId);size+=FfiConverterString.allocationSize(inner.depositAddress);size+=FfiConverterTypeu128.allocationSize(inner.depositAmount);return size;}case CrossChainProviderContext_Tags.Boltz:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.swapId);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterUInt64.allocationSize(inner.invoiceAmountSats);size+=FfiConverterUInt32.allocationSize(inner.maxSlippageBps);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: CrossChainRouteFilter
|
|
2779
|
+
export let CrossChainRouteFilter_Tags=/*#__PURE__*/function(CrossChainRouteFilter_Tags){CrossChainRouteFilter_Tags["Send"]="Send";CrossChainRouteFilter_Tags["Receive"]="Receive";return CrossChainRouteFilter_Tags;}({});/**
|
|
2780
|
+
* Filter for [`CrossChainService::get_routes`] and the public
|
|
2781
|
+
* `get_cross_chain_routes()` API.
|
|
2782
|
+
*/export const CrossChainRouteFilter=(()=>{/**
|
|
2783
|
+
* Routes for sending from Spark to another chain.
|
|
2784
|
+
* Filtered by the parsed recipient address details.
|
|
2785
|
+
*/class Send_ extends UniffiEnum{/**
|
|
2786
|
+
* @private
|
|
2787
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2788
|
+
*/[uniffiTypeNameSymbol]='CrossChainRouteFilter';tag=CrossChainRouteFilter_Tags.Send;constructor(inner){super('CrossChainRouteFilter','Send');this.inner=Object.freeze(inner);}static new(inner){return new Send_(inner);}static instanceOf(obj){return obj.tag===CrossChainRouteFilter_Tags.Send;}}/**
|
|
2789
|
+
* Routes for receiving to Spark from another chain.
|
|
2790
|
+
* Optionally filtered by the source token contract address.
|
|
2791
|
+
*/class Receive_ extends UniffiEnum{/**
|
|
2792
|
+
* @private
|
|
2793
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2794
|
+
*/[uniffiTypeNameSymbol]='CrossChainRouteFilter';tag=CrossChainRouteFilter_Tags.Receive;constructor(inner){super('CrossChainRouteFilter','Receive');this.inner=Object.freeze(inner);}static new(inner){return new Receive_(inner);}static instanceOf(obj){return obj.tag===CrossChainRouteFilter_Tags.Receive;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='CrossChainRouteFilter';}return Object.freeze({instanceOf,Send:Send_,Receive:Receive_});})();/**
|
|
2795
|
+
* Filter for [`CrossChainService::get_routes`] and the public
|
|
2796
|
+
* `get_cross_chain_routes()` API.
|
|
2797
|
+
*/// FfiConverter for enum CrossChainRouteFilter
|
|
2798
|
+
const FfiConverterTypeCrossChainRouteFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new CrossChainRouteFilter.Send({addressDetails:FfiConverterTypeCrossChainAddressDetails.read(from)});case 2:return new CrossChainRouteFilter.Receive({contractAddress:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case CrossChainRouteFilter_Tags.Send:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeCrossChainAddressDetails.write(inner.addressDetails,into);return;}case CrossChainRouteFilter_Tags.Receive:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalString.write(inner.contractAddress,into);return;}default:// Throwing from here means that CrossChainRouteFilter_Tags hasn't matched an ordinal.
|
|
2799
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case CrossChainRouteFilter_Tags.Send:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner.addressDetails);return size;}case CrossChainRouteFilter_Tags.Receive:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalString.allocationSize(inner.contractAddress);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: DepositClaimError
|
|
2097
2800
|
export let DepositClaimError_Tags=/*#__PURE__*/function(DepositClaimError_Tags){DepositClaimError_Tags["MaxDepositClaimFeeExceeded"]="MaxDepositClaimFeeExceeded";DepositClaimError_Tags["MissingUtxo"]="MissingUtxo";DepositClaimError_Tags["Generic"]="Generic";return DepositClaimError_Tags;}({});export const DepositClaimError=(()=>{class MaxDepositClaimFeeExceeded_ extends UniffiEnum{/**
|
|
2098
2801
|
* @private
|
|
2099
2802
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -2105,41 +2808,95 @@ export let DepositClaimError_Tags=/*#__PURE__*/function(DepositClaimError_Tags){
|
|
|
2105
2808
|
* This field is private and should not be used, use `tag` instead.
|
|
2106
2809
|
*/[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
|
|
2107
2810
|
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.
|
|
2108
|
-
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:
|
|
2109
|
-
export let
|
|
2110
|
-
*
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
*/class SecretSource_ extends UniffiEnum{/**
|
|
2131
|
-
* @private
|
|
2132
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2133
|
-
*/[uniffiTypeNameSymbol]='ExternalSecretToSplit';tag=ExternalSecretToSplit_Tags.SecretSource;constructor(inner){super('ExternalSecretToSplit','SecretSource');this.inner=Object.freeze(inner);}static new(inner){return new SecretSource_(inner);}static instanceOf(obj){return obj.tag===ExternalSecretToSplit_Tags.SecretSource;}}/**
|
|
2134
|
-
* A preimage to split (32 bytes)
|
|
2135
|
-
*/class Preimage_ extends UniffiEnum{/**
|
|
2811
|
+
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: DomainAssociation
|
|
2812
|
+
export let DomainAssociation_Tags=/*#__PURE__*/function(DomainAssociation_Tags){DomainAssociation_Tags["Associated"]="Associated";DomainAssociation_Tags["NotAssociated"]="NotAssociated";DomainAssociation_Tags["Skipped"]="Skipped";return DomainAssociation_Tags;}({});/**
|
|
2813
|
+
* Result of [`PrfProvider::check_domain_association`]. The platform's
|
|
2814
|
+
* out-of-band verification (AASA / assetlinks) gates passkey
|
|
2815
|
+
* ceremonies but its failures collapse into opaque platform errors;
|
|
2816
|
+
* this gives callers a definitive signal they can gate UX on.
|
|
2817
|
+
*/export const DomainAssociation=(()=>{/**
|
|
2818
|
+
* Configuration verified; safe to proceed.
|
|
2819
|
+
*/class Associated_ extends UniffiEnum{/**
|
|
2820
|
+
* @private
|
|
2821
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2822
|
+
*/[uniffiTypeNameSymbol]='DomainAssociation';tag=DomainAssociation_Tags.Associated;constructor(){super('DomainAssociation','Associated');}static new(){return new Associated_();}static instanceOf(obj){return obj.tag===DomainAssociation_Tags.Associated;}}/**
|
|
2823
|
+
* Configuration is broken; subsequent ceremonies will fail.
|
|
2824
|
+
* `source` names the verification origin (e.g. `"Apple AASA CDN"`)
|
|
2825
|
+
* for diagnostic UIs; `reason` explains what was missing.
|
|
2826
|
+
*/class NotAssociated_ extends UniffiEnum{/**
|
|
2827
|
+
* @private
|
|
2828
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2829
|
+
*/[uniffiTypeNameSymbol]='DomainAssociation';tag=DomainAssociation_Tags.NotAssociated;constructor(inner){super('DomainAssociation','NotAssociated');this.inner=Object.freeze(inner);}static new(inner){return new NotAssociated_(inner);}static instanceOf(obj){return obj.tag===DomainAssociation_Tags.NotAssociated;}}/**
|
|
2830
|
+
* Check was not performed (provider has no verification source,
|
|
2831
|
+
* or the check itself could not complete). Not a negative signal.
|
|
2832
|
+
*/class Skipped_ extends UniffiEnum{/**
|
|
2136
2833
|
* @private
|
|
2137
2834
|
* This field is private and should not be used, use `tag` instead.
|
|
2138
|
-
*/[uniffiTypeNameSymbol]='
|
|
2139
|
-
*
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2835
|
+
*/[uniffiTypeNameSymbol]='DomainAssociation';tag=DomainAssociation_Tags.Skipped;constructor(inner){super('DomainAssociation','Skipped');this.inner=Object.freeze(inner);}static new(inner){return new Skipped_(inner);}static instanceOf(obj){return obj.tag===DomainAssociation_Tags.Skipped;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='DomainAssociation';}return Object.freeze({instanceOf,Associated:Associated_,NotAssociated:NotAssociated_,Skipped:Skipped_});})();/**
|
|
2836
|
+
* Result of [`PrfProvider::check_domain_association`]. The platform's
|
|
2837
|
+
* out-of-band verification (AASA / assetlinks) gates passkey
|
|
2838
|
+
* ceremonies but its failures collapse into opaque platform errors;
|
|
2839
|
+
* this gives callers a definitive signal they can gate UX on.
|
|
2840
|
+
*/// FfiConverter for enum DomainAssociation
|
|
2841
|
+
const FfiConverterTypeDomainAssociation=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new DomainAssociation.Associated();case 2:return new DomainAssociation.NotAssociated({source:FfiConverterString.read(from),reason:FfiConverterString.read(from)});case 3:return new DomainAssociation.Skipped({reason:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case DomainAssociation_Tags.Associated:{ordinalConverter.write(1,into);return;}case DomainAssociation_Tags.NotAssociated:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.source,into);FfiConverterString.write(inner.reason,into);return;}case DomainAssociation_Tags.Skipped:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.reason,into);return;}default:// Throwing from here means that DomainAssociation_Tags hasn't matched an ordinal.
|
|
2842
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case DomainAssociation_Tags.Associated:{return ordinalConverter.allocationSize(1);}case DomainAssociation_Tags.NotAssociated:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.source);size+=FfiConverterString.allocationSize(inner.reason);return size;}case DomainAssociation_Tags.Skipped:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.reason);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
2843
|
+
* Coarse classification of a passkey error by the UX reaction it
|
|
2844
|
+
* warrants. The variant names the action to take, not the cause.
|
|
2845
|
+
*/export let ErrorKind=/*#__PURE__*/function(ErrorKind){/**
|
|
2846
|
+
* User dismissed the prompt. Do not auto-retry.
|
|
2847
|
+
*/ErrorKind[ErrorKind["Cancel"]=0]="Cancel";/**
|
|
2848
|
+
* No matching credential on this device. Offer to register one.
|
|
2849
|
+
*/ErrorKind[ErrorKind["NoCredential"]=1]="NoCredential";/**
|
|
2850
|
+
* Authenticator lacks the PRF extension. Fall back to a non-passkey
|
|
2851
|
+
* flow or guide the user to another credential provider.
|
|
2852
|
+
*/ErrorKind[ErrorKind["PrfUnsupported"]=2]="PrfUnsupported";/**
|
|
2853
|
+
* PRF is supported but evaluation failed. Often transient: retrying
|
|
2854
|
+
* the ceremony may succeed.
|
|
2855
|
+
*/ErrorKind[ErrorKind["PrfFailed"]=3]="PrfFailed";/**
|
|
2856
|
+
* Platform / app setup is wrong (entitlement, assetlinks, rpId
|
|
2857
|
+
* scope). Not retryable until the integrator fixes it.
|
|
2858
|
+
*/ErrorKind[ErrorKind["Configuration"]=4]="Configuration";/**
|
|
2859
|
+
* An existing credential matched. Route the user to sign-in.
|
|
2860
|
+
*/ErrorKind[ErrorKind["AlreadyExists"]=5]="AlreadyExists";/**
|
|
2861
|
+
* The prompt closed on the platform inactivity timeout with no user
|
|
2862
|
+
* action. Unlike `Cancel`, safe to auto-retry or re-prompt.
|
|
2863
|
+
*/ErrorKind[ErrorKind["Timeout"]=6]="Timeout";/**
|
|
2864
|
+
* The ceremony failed for a security or state reason. Offer a retry;
|
|
2865
|
+
* if it persists, the credential or RP setup may be at fault.
|
|
2866
|
+
*/ErrorKind[ErrorKind["AuthFailure"]=7]="AuthFailure";/**
|
|
2867
|
+
* Failure the caller can't act on. Show a generic "try again".
|
|
2868
|
+
*/ErrorKind[ErrorKind["Internal"]=8]="Internal";return ErrorKind;}({});const FfiConverterTypeErrorKind=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ErrorKind.Cancel;case 2:return ErrorKind.NoCredential;case 3:return ErrorKind.PrfUnsupported;case 4:return ErrorKind.PrfFailed;case 5:return ErrorKind.Configuration;case 6:return ErrorKind.AlreadyExists;case 7:return ErrorKind.Timeout;case 8:return ErrorKind.AuthFailure;case 9:return ErrorKind.Internal;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ErrorKind.Cancel:return ordinalConverter.write(1,into);case ErrorKind.NoCredential:return ordinalConverter.write(2,into);case ErrorKind.PrfUnsupported:return ordinalConverter.write(3,into);case ErrorKind.PrfFailed:return ordinalConverter.write(4,into);case ErrorKind.Configuration:return ordinalConverter.write(5,into);case ErrorKind.AlreadyExists:return ordinalConverter.write(6,into);case ErrorKind.Timeout:return ordinalConverter.write(7,into);case ErrorKind.AuthFailure:return ordinalConverter.write(8,into);case ErrorKind.Internal:return ordinalConverter.write(9,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: ExternalFrostDerivation
|
|
2869
|
+
export let ExternalFrostDerivation_Tags=/*#__PURE__*/function(ExternalFrostDerivation_Tags){ExternalFrostDerivation_Tags["SigningLeaf"]="SigningLeaf";ExternalFrostDerivation_Tags["StaticDeposit"]="StaticDeposit";ExternalFrostDerivation_Tags["HtlcPreimage"]="HtlcPreimage";ExternalFrostDerivation_Tags["Identity"]="Identity";return ExternalFrostDerivation_Tags;}({});/**
|
|
2870
|
+
* FFI-safe representation of `spark_wallet::FrostDerivation`.
|
|
2871
|
+
*/export const ExternalFrostDerivation=(()=>{/**
|
|
2872
|
+
* The signing key for a tree leaf.
|
|
2873
|
+
*/class SigningLeaf_ extends UniffiEnum{/**
|
|
2874
|
+
* @private
|
|
2875
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2876
|
+
*/[uniffiTypeNameSymbol]='ExternalFrostDerivation';tag=ExternalFrostDerivation_Tags.SigningLeaf;constructor(inner){super('ExternalFrostDerivation','SigningLeaf');this.inner=Object.freeze(inner);}static new(inner){return new SigningLeaf_(inner);}static instanceOf(obj){return obj.tag===ExternalFrostDerivation_Tags.SigningLeaf;}}/**
|
|
2877
|
+
* The static-deposit key at `index`.
|
|
2878
|
+
*/class StaticDeposit_ extends UniffiEnum{/**
|
|
2879
|
+
* @private
|
|
2880
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2881
|
+
*/[uniffiTypeNameSymbol]='ExternalFrostDerivation';tag=ExternalFrostDerivation_Tags.StaticDeposit;constructor(inner){super('ExternalFrostDerivation','StaticDeposit');this.inner=Object.freeze(inner);}static new(inner){return new StaticDeposit_(inner);}static instanceOf(obj){return obj.tag===ExternalFrostDerivation_Tags.StaticDeposit;}}/**
|
|
2882
|
+
* The HTLC-preimage key.
|
|
2883
|
+
*/class HtlcPreimage_ extends UniffiEnum{/**
|
|
2884
|
+
* @private
|
|
2885
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2886
|
+
*/[uniffiTypeNameSymbol]='ExternalFrostDerivation';tag=ExternalFrostDerivation_Tags.HtlcPreimage;constructor(){super('ExternalFrostDerivation','HtlcPreimage');}static new(){return new HtlcPreimage_();}static instanceOf(obj){return obj.tag===ExternalFrostDerivation_Tags.HtlcPreimage;}}/**
|
|
2887
|
+
* The wallet identity key.
|
|
2888
|
+
*/class Identity_ extends UniffiEnum{/**
|
|
2889
|
+
* @private
|
|
2890
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2891
|
+
*/[uniffiTypeNameSymbol]='ExternalFrostDerivation';tag=ExternalFrostDerivation_Tags.Identity;constructor(){super('ExternalFrostDerivation','Identity');}static new(){return new Identity_();}static instanceOf(obj){return obj.tag===ExternalFrostDerivation_Tags.Identity;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ExternalFrostDerivation';}return Object.freeze({instanceOf,SigningLeaf:SigningLeaf_,StaticDeposit:StaticDeposit_,HtlcPreimage:HtlcPreimage_,Identity:Identity_});})();/**
|
|
2892
|
+
* FFI-safe representation of `spark_wallet::FrostDerivation`.
|
|
2893
|
+
*/// FfiConverter for enum ExternalFrostDerivation
|
|
2894
|
+
const FfiConverterTypeExternalFrostDerivation=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ExternalFrostDerivation.SigningLeaf({leafId:FfiConverterTypeExternalTreeNodeId.read(from)});case 2:return new ExternalFrostDerivation.StaticDeposit({index:FfiConverterUInt32.read(from)});case 3:return new ExternalFrostDerivation.HtlcPreimage();case 4:return new ExternalFrostDerivation.Identity();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ExternalFrostDerivation_Tags.SigningLeaf:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeExternalTreeNodeId.write(inner.leafId,into);return;}case ExternalFrostDerivation_Tags.StaticDeposit:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterUInt32.write(inner.index,into);return;}case ExternalFrostDerivation_Tags.HtlcPreimage:{ordinalConverter.write(3,into);return;}case ExternalFrostDerivation_Tags.Identity:{ordinalConverter.write(4,into);return;}default:// Throwing from here means that ExternalFrostDerivation_Tags hasn't matched an ordinal.
|
|
2895
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ExternalFrostDerivation_Tags.SigningLeaf:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeExternalTreeNodeId.allocationSize(inner.leafId);return size;}case ExternalFrostDerivation_Tags.StaticDeposit:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt32.allocationSize(inner.index);return size;}case ExternalFrostDerivation_Tags.HtlcPreimage:{return ordinalConverter.allocationSize(3);}case ExternalFrostDerivation_Tags.Identity:{return ordinalConverter.allocationSize(4);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
2896
|
+
* FFI-safe representation of `spark_wallet::SparkInvoiceKind`.
|
|
2897
|
+
*/export let ExternalSparkInvoiceKind=/*#__PURE__*/function(ExternalSparkInvoiceKind){ExternalSparkInvoiceKind[ExternalSparkInvoiceKind["Sats"]=0]="Sats";ExternalSparkInvoiceKind[ExternalSparkInvoiceKind["Tokens"]=1]="Tokens";return ExternalSparkInvoiceKind;}({});const FfiConverterTypeExternalSparkInvoiceKind=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ExternalSparkInvoiceKind.Sats;case 2:return ExternalSparkInvoiceKind.Tokens;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ExternalSparkInvoiceKind.Sats:return ordinalConverter.write(1,into);case ExternalSparkInvoiceKind.Tokens:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();/**
|
|
2898
|
+
* FFI-safe representation of `spark_wallet::TokenTransactionKind`.
|
|
2899
|
+
*/export let ExternalTokenTransactionKind=/*#__PURE__*/function(ExternalTokenTransactionKind){ExternalTokenTransactionKind[ExternalTokenTransactionKind["Freeze"]=0]="Freeze";ExternalTokenTransactionKind[ExternalTokenTransactionKind["Partial"]=1]="Partial";ExternalTokenTransactionKind[ExternalTokenTransactionKind["Final"]=2]="Final";return ExternalTokenTransactionKind;}({});const FfiConverterTypeExternalTokenTransactionKind=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ExternalTokenTransactionKind.Freeze;case 2:return ExternalTokenTransactionKind.Partial;case 3:return ExternalTokenTransactionKind.Final;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ExternalTokenTransactionKind.Freeze:return ordinalConverter.write(1,into);case ExternalTokenTransactionKind.Partial:return ordinalConverter.write(2,into);case ExternalTokenTransactionKind.Final:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: Fee
|
|
2143
2900
|
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{/**
|
|
2144
2901
|
* @private
|
|
2145
2902
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -2150,14 +2907,22 @@ export let Fee_Tags=/*#__PURE__*/function(Fee_Tags){Fee_Tags["Fixed"]="Fixed";Fe
|
|
|
2150
2907
|
const FfiConverterTypeFee=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new Fee.Fixed({amount:FfiConverterUInt64.read(from)});case 2:return new Fee.Rate({satPerVbyte:FfiConverterUInt64.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case Fee_Tags.Fixed:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterUInt64.write(inner.amount,into);return;}case Fee_Tags.Rate:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterUInt64.write(inner.satPerVbyte,into);return;}default:// Throwing from here means that Fee_Tags hasn't matched an ordinal.
|
|
2151
2908
|
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case Fee_Tags.Fixed:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt64.allocationSize(inner.amount);return size;}case Fee_Tags.Rate:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt64.allocationSize(inner.satPerVbyte);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
2152
2909
|
* Specifies how fees are handled in a payment.
|
|
2910
|
+
*
|
|
2911
|
+
* "Fees" are the wallet's sender-paid fees (Lightning routing, on-chain,
|
|
2912
|
+
* Spark transfer). They do not include provider spreads or destination-chain
|
|
2913
|
+
* costs on cross-chain routes; those are reported separately via
|
|
2914
|
+
* `estimated_out` on the prepare response and are not deterministic.
|
|
2915
|
+
* `FeePolicy` only controls the wallet's spend accounting.
|
|
2153
2916
|
*/export let FeePolicy=/*#__PURE__*/function(FeePolicy){/**
|
|
2154
|
-
* Fees are added on top of
|
|
2155
|
-
*
|
|
2917
|
+
* Fees are added on top of `amount`. Wallet's total spend is
|
|
2918
|
+
* `amount + fees`. For direct sat sends, the recipient receives exactly
|
|
2919
|
+
* `amount`. Default.
|
|
2156
2920
|
*/FeePolicy[FeePolicy["FeesExcluded"]=0]="FeesExcluded";/**
|
|
2157
|
-
* Fees are deducted from
|
|
2158
|
-
*
|
|
2921
|
+
* Fees are deducted from `amount`. Wallet's total spend is `amount`.
|
|
2922
|
+
* Use this to drain a balance — pass `amount = balance` and the wallet
|
|
2923
|
+
* spends exactly that.
|
|
2159
2924
|
*/FeePolicy[FeePolicy["FeesIncluded"]=1]="FeesIncluded";return FeePolicy;}({});const FfiConverterTypeFeePolicy=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return FeePolicy.FeesExcluded;case 2:return FeePolicy.FeesIncluded;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case FeePolicy.FeesExcluded:return ordinalConverter.write(1,into);case FeePolicy.FeesIncluded:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: InputType
|
|
2160
|
-
export let InputType_Tags=/*#__PURE__*/function(InputType_Tags){InputType_Tags["BitcoinAddress"]="BitcoinAddress";InputType_Tags["Bolt11Invoice"]="Bolt11Invoice";InputType_Tags["Bolt12Invoice"]="Bolt12Invoice";InputType_Tags["Bolt12Offer"]="Bolt12Offer";InputType_Tags["LightningAddress"]="LightningAddress";InputType_Tags["LnurlPay"]="LnurlPay";InputType_Tags["SilentPaymentAddress"]="SilentPaymentAddress";InputType_Tags["LnurlAuth"]="LnurlAuth";InputType_Tags["Url"]="Url";InputType_Tags["Bip21"]="Bip21";InputType_Tags["Bolt12InvoiceRequest"]="Bolt12InvoiceRequest";InputType_Tags["LnurlWithdraw"]="LnurlWithdraw";InputType_Tags["SparkAddress"]="SparkAddress";InputType_Tags["SparkInvoice"]="SparkInvoice";return InputType_Tags;}({});export const InputType=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
|
|
2925
|
+
export let InputType_Tags=/*#__PURE__*/function(InputType_Tags){InputType_Tags["BitcoinAddress"]="BitcoinAddress";InputType_Tags["Bolt11Invoice"]="Bolt11Invoice";InputType_Tags["Bolt12Invoice"]="Bolt12Invoice";InputType_Tags["Bolt12Offer"]="Bolt12Offer";InputType_Tags["LightningAddress"]="LightningAddress";InputType_Tags["LnurlPay"]="LnurlPay";InputType_Tags["SilentPaymentAddress"]="SilentPaymentAddress";InputType_Tags["LnurlAuth"]="LnurlAuth";InputType_Tags["Url"]="Url";InputType_Tags["Bip21"]="Bip21";InputType_Tags["Bolt12InvoiceRequest"]="Bolt12InvoiceRequest";InputType_Tags["LnurlWithdraw"]="LnurlWithdraw";InputType_Tags["SparkAddress"]="SparkAddress";InputType_Tags["SparkInvoice"]="SparkInvoice";InputType_Tags["CrossChainAddress"]="CrossChainAddress";return InputType_Tags;}({});export const InputType=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
|
|
2161
2926
|
* @private
|
|
2162
2927
|
* This field is private and should not be used, use `tag` instead.
|
|
2163
2928
|
*/[uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.BitcoinAddress;constructor(v0){super('InputType','BitcoinAddress');this.inner=Object.freeze([v0]);}static new(v0){return new BitcoinAddress_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.BitcoinAddress;}}class Bolt11Invoice_ extends UniffiEnum{/**
|
|
@@ -2199,9 +2964,12 @@ export let InputType_Tags=/*#__PURE__*/function(InputType_Tags){InputType_Tags["
|
|
|
2199
2964
|
*/[uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.SparkAddress;constructor(v0){super('InputType','SparkAddress');this.inner=Object.freeze([v0]);}static new(v0){return new SparkAddress_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.SparkAddress;}}class SparkInvoice_ extends UniffiEnum{/**
|
|
2200
2965
|
* @private
|
|
2201
2966
|
* This field is private and should not be used, use `tag` instead.
|
|
2202
|
-
*/[uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.SparkInvoice;constructor(v0){super('InputType','SparkInvoice');this.inner=Object.freeze([v0]);}static new(v0){return new SparkInvoice_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.SparkInvoice;}}
|
|
2203
|
-
|
|
2204
|
-
|
|
2967
|
+
*/[uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.SparkInvoice;constructor(v0){super('InputType','SparkInvoice');this.inner=Object.freeze([v0]);}static new(v0){return new SparkInvoice_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.SparkInvoice;}}class CrossChainAddress_ extends UniffiEnum{/**
|
|
2968
|
+
* @private
|
|
2969
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2970
|
+
*/[uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.CrossChainAddress;constructor(v0){super('InputType','CrossChainAddress');this.inner=Object.freeze([v0]);}static new(v0){return new CrossChainAddress_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.CrossChainAddress;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='InputType';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,Bolt12Invoice:Bolt12Invoice_,Bolt12Offer:Bolt12Offer_,LightningAddress:LightningAddress_,LnurlPay:LnurlPay_,SilentPaymentAddress:SilentPaymentAddress_,LnurlAuth:LnurlAuth_,Url:Url_,Bip21:Bip21_,Bolt12InvoiceRequest:Bolt12InvoiceRequest_,LnurlWithdraw:LnurlWithdraw_,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_,CrossChainAddress:CrossChainAddress_});})();// FfiConverter for enum InputType
|
|
2971
|
+
const FfiConverterTypeInputType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new InputType.BitcoinAddress(FfiConverterTypeBitcoinAddressDetails.read(from));case 2:return new InputType.Bolt11Invoice(FfiConverterTypeBolt11InvoiceDetails.read(from));case 3:return new InputType.Bolt12Invoice(FfiConverterTypeBolt12InvoiceDetails.read(from));case 4:return new InputType.Bolt12Offer(FfiConverterTypeBolt12OfferDetails.read(from));case 5:return new InputType.LightningAddress(FfiConverterTypeLightningAddressDetails.read(from));case 6:return new InputType.LnurlPay(FfiConverterTypeLnurlPayRequestDetails.read(from));case 7:return new InputType.SilentPaymentAddress(FfiConverterTypeSilentPaymentAddressDetails.read(from));case 8:return new InputType.LnurlAuth(FfiConverterTypeLnurlAuthRequestDetails.read(from));case 9:return new InputType.Url(FfiConverterString.read(from));case 10:return new InputType.Bip21(FfiConverterTypeBip21Details.read(from));case 11:return new InputType.Bolt12InvoiceRequest(FfiConverterTypeBolt12InvoiceRequestDetails.read(from));case 12:return new InputType.LnurlWithdraw(FfiConverterTypeLnurlWithdrawRequestDetails.read(from));case 13:return new InputType.SparkAddress(FfiConverterTypeSparkAddressDetails.read(from));case 14:return new InputType.SparkInvoice(FfiConverterTypeSparkInvoiceDetails.read(from));case 15:return new InputType.CrossChainAddress(FfiConverterTypeCrossChainAddressDetails.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case InputType_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeBitcoinAddressDetails.write(inner[0],into);return;}case InputType_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeBolt11InvoiceDetails.write(inner[0],into);return;}case InputType_Tags.Bolt12Invoice:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeBolt12InvoiceDetails.write(inner[0],into);return;}case InputType_Tags.Bolt12Offer:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeBolt12OfferDetails.write(inner[0],into);return;}case InputType_Tags.LightningAddress:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypeLightningAddressDetails.write(inner[0],into);return;}case InputType_Tags.LnurlPay:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypeLnurlPayRequestDetails.write(inner[0],into);return;}case InputType_Tags.SilentPaymentAddress:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeSilentPaymentAddressDetails.write(inner[0],into);return;}case InputType_Tags.LnurlAuth:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterTypeLnurlAuthRequestDetails.write(inner[0],into);return;}case InputType_Tags.Url:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case InputType_Tags.Bip21:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterTypeBip21Details.write(inner[0],into);return;}case InputType_Tags.Bolt12InvoiceRequest:{ordinalConverter.write(11,into);const inner=value.inner;FfiConverterTypeBolt12InvoiceRequestDetails.write(inner[0],into);return;}case InputType_Tags.LnurlWithdraw:{ordinalConverter.write(12,into);const inner=value.inner;FfiConverterTypeLnurlWithdrawRequestDetails.write(inner[0],into);return;}case InputType_Tags.SparkAddress:{ordinalConverter.write(13,into);const inner=value.inner;FfiConverterTypeSparkAddressDetails.write(inner[0],into);return;}case InputType_Tags.SparkInvoice:{ordinalConverter.write(14,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner[0],into);return;}case InputType_Tags.CrossChainAddress:{ordinalConverter.write(15,into);const inner=value.inner;FfiConverterTypeCrossChainAddressDetails.write(inner[0],into);return;}default:// Throwing from here means that InputType_Tags hasn't matched an ordinal.
|
|
2972
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case InputType_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeBolt12InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Offer:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeBolt12OfferDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LightningAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeLightningAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlPay:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypeLnurlPayRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SilentPaymentAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeSilentPaymentAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlAuth:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterTypeLnurlAuthRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Url:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case InputType_Tags.Bip21:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterTypeBip21Details.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12InvoiceRequest:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterTypeBolt12InvoiceRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlWithdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterTypeLnurlWithdrawRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(13);size+=FfiConverterTypeSparkAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(14);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.CrossChainAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(15);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: LnurlCallbackStatus
|
|
2205
2973
|
export let LnurlCallbackStatus_Tags=/*#__PURE__*/function(LnurlCallbackStatus_Tags){LnurlCallbackStatus_Tags["Ok"]="Ok";LnurlCallbackStatus_Tags["ErrorStatus"]="ErrorStatus";return LnurlCallbackStatus_Tags;}({});/**
|
|
2206
2974
|
* The response from a LNURL-auth callback, indicating success or failure.
|
|
2207
2975
|
*/export const LnurlCallbackStatus=(()=>{/**
|
|
@@ -2230,133 +2998,160 @@ export let MaxFee_Tags=/*#__PURE__*/function(MaxFee_Tags){MaxFee_Tags["Fixed"]="
|
|
|
2230
2998
|
* This field is private and should not be used, use `tag` instead.
|
|
2231
2999
|
*/[uniffiTypeNameSymbol]='MaxFee';tag=MaxFee_Tags.NetworkRecommended;constructor(inner){super('MaxFee','NetworkRecommended');this.inner=Object.freeze(inner);}static new(inner){return new NetworkRecommended_(inner);}static instanceOf(obj){return obj.tag===MaxFee_Tags.NetworkRecommended;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='MaxFee';}return Object.freeze({instanceOf,Fixed:Fixed_,Rate:Rate_,NetworkRecommended:NetworkRecommended_});})();// FfiConverter for enum MaxFee
|
|
2232
3000
|
const FfiConverterTypeMaxFee=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new MaxFee.Fixed({amount:FfiConverterUInt64.read(from)});case 2:return new MaxFee.Rate({satPerVbyte:FfiConverterUInt64.read(from)});case 3:return new MaxFee.NetworkRecommended({leewaySatPerVbyte:FfiConverterUInt64.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case MaxFee_Tags.Fixed:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterUInt64.write(inner.amount,into);return;}case MaxFee_Tags.Rate:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterUInt64.write(inner.satPerVbyte,into);return;}case MaxFee_Tags.NetworkRecommended:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterUInt64.write(inner.leewaySatPerVbyte,into);return;}default:// Throwing from here means that MaxFee_Tags hasn't matched an ordinal.
|
|
2233
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case MaxFee_Tags.Fixed:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt64.allocationSize(inner.amount);return size;}case MaxFee_Tags.Rate:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt64.allocationSize(inner.satPerVbyte);return size;}case MaxFee_Tags.NetworkRecommended:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterUInt64.allocationSize(inner.leewaySatPerVbyte);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let Network=/*#__PURE__*/function(Network){Network[Network["Mainnet"]=0]="Mainnet";Network[Network["Regtest"]=1]="Regtest";return Network;}({});const FfiConverterTypeNetwork=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return Network.Mainnet;case 2:return Network.Regtest;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case Network.Mainnet:return ordinalConverter.write(1,into);case Network.Regtest:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();export let OnchainConfirmationSpeed=/*#__PURE__*/function(OnchainConfirmationSpeed){OnchainConfirmationSpeed[OnchainConfirmationSpeed["Fast"]=0]="Fast";OnchainConfirmationSpeed[OnchainConfirmationSpeed["Medium"]=1]="Medium";OnchainConfirmationSpeed[OnchainConfirmationSpeed["Slow"]=2]="Slow";return OnchainConfirmationSpeed;}({});const FfiConverterTypeOnchainConfirmationSpeed=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return OnchainConfirmationSpeed.Fast;case 2:return OnchainConfirmationSpeed.Medium;case 3:return OnchainConfirmationSpeed.Slow;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case OnchainConfirmationSpeed.Fast:return ordinalConverter.write(1,into);case OnchainConfirmationSpeed.Medium:return ordinalConverter.write(2,into);case OnchainConfirmationSpeed.Slow:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})()
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
3001
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case MaxFee_Tags.Fixed:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt64.allocationSize(inner.amount);return size;}case MaxFee_Tags.Rate:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt64.allocationSize(inner.satPerVbyte);return size;}case MaxFee_Tags.NetworkRecommended:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterUInt64.allocationSize(inner.leewaySatPerVbyte);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let Network=/*#__PURE__*/function(Network){Network[Network["Mainnet"]=0]="Mainnet";Network[Network["Regtest"]=1]="Regtest";return Network;}({});const FfiConverterTypeNetwork=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return Network.Mainnet;case 2:return Network.Regtest;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case Network.Mainnet:return ordinalConverter.write(1,into);case Network.Regtest:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();export let OnchainConfirmationSpeed=/*#__PURE__*/function(OnchainConfirmationSpeed){OnchainConfirmationSpeed[OnchainConfirmationSpeed["Fast"]=0]="Fast";OnchainConfirmationSpeed[OnchainConfirmationSpeed["Medium"]=1]="Medium";OnchainConfirmationSpeed[OnchainConfirmationSpeed["Slow"]=2]="Slow";return OnchainConfirmationSpeed;}({});const FfiConverterTypeOnchainConfirmationSpeed=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return OnchainConfirmationSpeed.Fast;case 2:return OnchainConfirmationSpeed.Medium;case 3:return OnchainConfirmationSpeed.Slow;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case OnchainConfirmationSpeed.Fast:return ordinalConverter.write(1,into);case OnchainConfirmationSpeed.Medium:return ordinalConverter.write(2,into);case OnchainConfirmationSpeed.Slow:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();/**
|
|
3002
|
+
* Mode of a manually-triggered optimization run.
|
|
3003
|
+
*/export let OptimizationMode=/*#__PURE__*/function(OptimizationMode){/**
|
|
3004
|
+
* Run until no further optimization is productive.
|
|
3005
|
+
*/OptimizationMode[OptimizationMode["Full"]=0]="Full";/**
|
|
3006
|
+
* Execute a single round and return so the caller can drive progress.
|
|
3007
|
+
*/OptimizationMode[OptimizationMode["SingleRound"]=1]="SingleRound";return OptimizationMode;}({});const FfiConverterTypeOptimizationMode=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return OptimizationMode.Full;case 2:return OptimizationMode.SingleRound;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case OptimizationMode.Full:return ordinalConverter.write(1,into);case OptimizationMode.SingleRound:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: OptimizationOutcome
|
|
3008
|
+
export let OptimizationOutcome_Tags=/*#__PURE__*/function(OptimizationOutcome_Tags){OptimizationOutcome_Tags["Completed"]="Completed";OptimizationOutcome_Tags["InProgress"]="InProgress";return OptimizationOutcome_Tags;}({});/**
|
|
3009
|
+
* Outcome of a [`BreezSdk::optimize_leaves`] call.
|
|
3010
|
+
*
|
|
3011
|
+
* `rounds_executed` on `Completed` refers to rounds run by *this call*.
|
|
3012
|
+
* The SDK holds no cross-call state — callers driving a `SingleRound`
|
|
3013
|
+
* loop maintain their own cumulative counter if they need one.
|
|
3014
|
+
*
|
|
3015
|
+
* A `Completed { rounds_executed: 0 }` outcome means the wallet was
|
|
3016
|
+
* already optimal at call time (no swap was needed).
|
|
3017
|
+
*
|
|
3018
|
+
* **`SingleRound` loop pattern**: terminate on anything that isn't
|
|
3019
|
+
* `InProgress`. `Completed` covers both the final swap of a productive
|
|
3020
|
+
* run and the "already optimal" no-op case (the latter as
|
|
3021
|
+
* `rounds_executed: 0`).
|
|
3022
|
+
*
|
|
3023
|
+
* ```ignore
|
|
3024
|
+
* loop {
|
|
3025
|
+
* let request = OptimizeLeavesRequest { mode: OptimizationMode::SingleRound };
|
|
3026
|
+
* match sdk.optimize_leaves(request).await?.outcome {
|
|
3027
|
+
* OptimizationOutcome::InProgress => continue,
|
|
3028
|
+
* OptimizationOutcome::Completed { .. } => break,
|
|
3029
|
+
* }
|
|
3030
|
+
* }
|
|
3031
|
+
* ```
|
|
3032
|
+
*/export const OptimizationOutcome=(()=>{/**
|
|
3033
|
+
* All planned optimization work was executed in this call.
|
|
3034
|
+
* Returned by `Full` runs on success, and by `SingleRound` runs
|
|
3035
|
+
* whose swap was the final one needed (the planner produced a
|
|
3036
|
+
* single-swap plan with a convergence guarantee).
|
|
3037
|
+
* `rounds_executed == 0` means the wallet was already optimal —
|
|
3038
|
+
* no work was performed.
|
|
2246
3039
|
*/class Completed_ extends UniffiEnum{/**
|
|
2247
3040
|
* @private
|
|
2248
3041
|
* This field is private and should not be used, use `tag` instead.
|
|
2249
|
-
*/[uniffiTypeNameSymbol]='
|
|
2250
|
-
*
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
*/[uniffiTypeNameSymbol]='OptimizationEvent';tag=OptimizationEvent_Tags.Cancelled;constructor(){super('OptimizationEvent','Cancelled');}static new(){return new Cancelled_();}static instanceOf(obj){return obj.tag===OptimizationEvent_Tags.Cancelled;}}/**
|
|
2255
|
-
* Optimization failed with an error.
|
|
2256
|
-
*/class Failed_ extends UniffiEnum{/**
|
|
3042
|
+
*/[uniffiTypeNameSymbol]='OptimizationOutcome';tag=OptimizationOutcome_Tags.Completed;constructor(inner){super('OptimizationOutcome','Completed');this.inner=Object.freeze(inner);}static new(inner){return new Completed_(inner);}static instanceOf(obj){return obj.tag===OptimizationOutcome_Tags.Completed;}}/**
|
|
3043
|
+
* `SingleRound` only: a round ran but the planner could not
|
|
3044
|
+
* guarantee it was the last. The caller should invoke
|
|
3045
|
+
* `optimize_leaves` again.
|
|
3046
|
+
*/class InProgress_ extends UniffiEnum{/**
|
|
2257
3047
|
* @private
|
|
2258
3048
|
* This field is private and should not be used, use `tag` instead.
|
|
2259
|
-
*/[uniffiTypeNameSymbol]='
|
|
2260
|
-
|
|
3049
|
+
*/[uniffiTypeNameSymbol]='OptimizationOutcome';tag=OptimizationOutcome_Tags.InProgress;constructor(){super('OptimizationOutcome','InProgress');}static new(){return new InProgress_();}static instanceOf(obj){return obj.tag===OptimizationOutcome_Tags.InProgress;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='OptimizationOutcome';}return Object.freeze({instanceOf,Completed:Completed_,InProgress:InProgress_});})();/**
|
|
3050
|
+
* Outcome of a [`BreezSdk::optimize_leaves`] call.
|
|
3051
|
+
*
|
|
3052
|
+
* `rounds_executed` on `Completed` refers to rounds run by *this call*.
|
|
3053
|
+
* The SDK holds no cross-call state — callers driving a `SingleRound`
|
|
3054
|
+
* loop maintain their own cumulative counter if they need one.
|
|
3055
|
+
*
|
|
3056
|
+
* A `Completed { rounds_executed: 0 }` outcome means the wallet was
|
|
3057
|
+
* already optimal at call time (no swap was needed).
|
|
3058
|
+
*
|
|
3059
|
+
* **`SingleRound` loop pattern**: terminate on anything that isn't
|
|
3060
|
+
* `InProgress`. `Completed` covers both the final swap of a productive
|
|
3061
|
+
* run and the "already optimal" no-op case (the latter as
|
|
3062
|
+
* `rounds_executed: 0`).
|
|
3063
|
+
*
|
|
3064
|
+
* ```ignore
|
|
3065
|
+
* loop {
|
|
3066
|
+
* let request = OptimizeLeavesRequest { mode: OptimizationMode::SingleRound };
|
|
3067
|
+
* match sdk.optimize_leaves(request).await?.outcome {
|
|
3068
|
+
* OptimizationOutcome::InProgress => continue,
|
|
3069
|
+
* OptimizationOutcome::Completed { .. } => break,
|
|
3070
|
+
* }
|
|
3071
|
+
* }
|
|
3072
|
+
* ```
|
|
3073
|
+
*/// FfiConverter for enum OptimizationOutcome
|
|
3074
|
+
const FfiConverterTypeOptimizationOutcome=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new OptimizationOutcome.Completed({roundsExecuted:FfiConverterUInt32.read(from)});case 2:return new OptimizationOutcome.InProgress();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case OptimizationOutcome_Tags.Completed:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterUInt32.write(inner.roundsExecuted,into);return;}case OptimizationOutcome_Tags.InProgress:{ordinalConverter.write(2,into);return;}default:// Throwing from here means that OptimizationOutcome_Tags hasn't matched an ordinal.
|
|
3075
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case OptimizationOutcome_Tags.Completed:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt32.allocationSize(inner.roundsExecuted);return size;}case OptimizationOutcome_Tags.InProgress:{return ordinalConverter.allocationSize(2);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PasskeyAvailability
|
|
3076
|
+
export let PasskeyAvailability_Tags=/*#__PURE__*/function(PasskeyAvailability_Tags){PasskeyAvailability_Tags["Available"]="Available";PasskeyAvailability_Tags["PrfUnsupported"]="PrfUnsupported";PasskeyAvailability_Tags["NotAssociated"]="NotAssociated";PasskeyAvailability_Tags["Skipped"]="Skipped";return PasskeyAvailability_Tags;}({});/**
|
|
3077
|
+
* Single-value result of [`PasskeyClient::check_availability`].
|
|
3078
|
+
* Collapses [`PrfProvider::is_supported`] +
|
|
3079
|
+
* [`PrfProvider::check_domain_association`] into one variant per
|
|
3080
|
+
* distinct host UX reaction.
|
|
3081
|
+
*/export const PasskeyAvailability=(()=>{/**
|
|
3082
|
+
* PRF is supported and the platform's domain-association check
|
|
3083
|
+
* (when present) passed. Safe to proceed with register / sign-in.
|
|
3084
|
+
*/class Available_ extends UniffiEnum{/**
|
|
3085
|
+
* @private
|
|
3086
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3087
|
+
*/[uniffiTypeNameSymbol]='PasskeyAvailability';tag=PasskeyAvailability_Tags.Available;constructor(){super('PasskeyAvailability','Available');}static new(){return new Available_();}static instanceOf(obj){return obj.tag===PasskeyAvailability_Tags.Available;}}/**
|
|
3088
|
+
* The authenticator does not implement the `WebAuthn` PRF
|
|
3089
|
+
* extension. Hosts gate the passkey UX path off this value.
|
|
3090
|
+
*/class PrfUnsupported_ extends UniffiEnum{/**
|
|
3091
|
+
* @private
|
|
3092
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3093
|
+
*/[uniffiTypeNameSymbol]='PasskeyAvailability';tag=PasskeyAvailability_Tags.PrfUnsupported;constructor(){super('PasskeyAvailability','PrfUnsupported');}static new(){return new PrfUnsupported_();}static instanceOf(obj){return obj.tag===PasskeyAvailability_Tags.PrfUnsupported;}}/**
|
|
3094
|
+
* PRF is supported but the platform's out-of-band verification
|
|
3095
|
+
* (iOS AASA / Android assetlinks / browser `rpId` scope) reports a
|
|
3096
|
+
* configuration mismatch. The strings carry the verification
|
|
3097
|
+
* origin and the concrete reason for diagnostic UI.
|
|
3098
|
+
*/class NotAssociated_ extends UniffiEnum{/**
|
|
3099
|
+
* @private
|
|
3100
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3101
|
+
*/[uniffiTypeNameSymbol]='PasskeyAvailability';tag=PasskeyAvailability_Tags.NotAssociated;constructor(inner){super('PasskeyAvailability','NotAssociated');this.inner=Object.freeze(inner);}static new(inner){return new NotAssociated_(inner);}static instanceOf(obj){return obj.tag===PasskeyAvailability_Tags.NotAssociated;}}/**
|
|
3102
|
+
* Domain-association verification was not performed (no source,
|
|
3103
|
+
* SSR context, etc.). Not a negative signal; passkey flows are
|
|
3104
|
+
* still safe to attempt.
|
|
2261
3105
|
*/class Skipped_ extends UniffiEnum{/**
|
|
2262
3106
|
* @private
|
|
2263
3107
|
* This field is private and should not be used, use `tag` instead.
|
|
2264
|
-
*/[uniffiTypeNameSymbol]='
|
|
2265
|
-
|
|
2266
|
-
|
|
3108
|
+
*/[uniffiTypeNameSymbol]='PasskeyAvailability';tag=PasskeyAvailability_Tags.Skipped;constructor(inner){super('PasskeyAvailability','Skipped');this.inner=Object.freeze(inner);}static new(inner){return new Skipped_(inner);}static instanceOf(obj){return obj.tag===PasskeyAvailability_Tags.Skipped;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PasskeyAvailability';}return Object.freeze({instanceOf,Available:Available_,PrfUnsupported:PrfUnsupported_,NotAssociated:NotAssociated_,Skipped:Skipped_});})();/**
|
|
3109
|
+
* Single-value result of [`PasskeyClient::check_availability`].
|
|
3110
|
+
* Collapses [`PrfProvider::is_supported`] +
|
|
3111
|
+
* [`PrfProvider::check_domain_association`] into one variant per
|
|
3112
|
+
* distinct host UX reaction.
|
|
3113
|
+
*/// FfiConverter for enum PasskeyAvailability
|
|
3114
|
+
const FfiConverterTypePasskeyAvailability=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PasskeyAvailability.Available();case 2:return new PasskeyAvailability.PrfUnsupported();case 3:return new PasskeyAvailability.NotAssociated({source:FfiConverterString.read(from),reason:FfiConverterString.read(from)});case 4:return new PasskeyAvailability.Skipped({reason:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PasskeyAvailability_Tags.Available:{ordinalConverter.write(1,into);return;}case PasskeyAvailability_Tags.PrfUnsupported:{ordinalConverter.write(2,into);return;}case PasskeyAvailability_Tags.NotAssociated:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.source,into);FfiConverterString.write(inner.reason,into);return;}case PasskeyAvailability_Tags.Skipped:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.reason,into);return;}default:// Throwing from here means that PasskeyAvailability_Tags hasn't matched an ordinal.
|
|
3115
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PasskeyAvailability_Tags.Available:{return ordinalConverter.allocationSize(1);}case PasskeyAvailability_Tags.PrfUnsupported:{return ordinalConverter.allocationSize(2);}case PasskeyAvailability_Tags.NotAssociated:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.source);size+=FfiConverterString.allocationSize(inner.reason);return size;}case PasskeyAvailability_Tags.Skipped:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.reason);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: PasskeyError
|
|
2267
3116
|
// Enum: PasskeyError
|
|
2268
|
-
export let PasskeyError_Tags=/*#__PURE__*/function(PasskeyError_Tags){PasskeyError_Tags["
|
|
3117
|
+
export let PasskeyError_Tags=/*#__PURE__*/function(PasskeyError_Tags){PasskeyError_Tags["Prf"]="Prf";PasskeyError_Tags["RelayConnectionFailed"]="RelayConnectionFailed";PasskeyError_Tags["NostrWriteFailed"]="NostrWriteFailed";PasskeyError_Tags["NostrReadFailed"]="NostrReadFailed";PasskeyError_Tags["KeyDerivationError"]="KeyDerivationError";PasskeyError_Tags["InvalidPrfOutput"]="InvalidPrfOutput";PasskeyError_Tags["MnemonicError"]="MnemonicError";PasskeyError_Tags["InvalidSalt"]="InvalidSalt";PasskeyError_Tags["Generic"]="Generic";return PasskeyError_Tags;}({});/**
|
|
2269
3118
|
* Error type for passkey operations.
|
|
2270
3119
|
*/export const PasskeyError=(()=>{/**
|
|
2271
|
-
*
|
|
2272
|
-
*/class
|
|
3120
|
+
* Raised by the underlying [`crate::passkey::PrfProvider`].
|
|
3121
|
+
*/class Prf_ extends UniffiError{/**
|
|
2273
3122
|
* @private
|
|
2274
3123
|
* This field is private and should not be used, use `tag` instead.
|
|
2275
|
-
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.
|
|
2276
|
-
* Nostr relay connection failed
|
|
2277
|
-
*/class RelayConnectionFailed_ extends UniffiError{/**
|
|
3124
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.Prf;constructor(v0){super('PasskeyError','Prf');this.inner=Object.freeze([v0]);}static new(v0){return new Prf_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.Prf;}static hasInner(obj){return Prf_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class RelayConnectionFailed_ extends UniffiError{/**
|
|
2278
3125
|
* @private
|
|
2279
3126
|
* This field is private and should not be used, use `tag` instead.
|
|
2280
|
-
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.RelayConnectionFailed;constructor(v0){super('PasskeyError','RelayConnectionFailed');this.inner=Object.freeze([v0]);}static new(v0){return new RelayConnectionFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.RelayConnectionFailed;}static hasInner(obj){return RelayConnectionFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2281
|
-
* Failed to publish to Nostr
|
|
2282
|
-
*/class NostrWriteFailed_ extends UniffiError{/**
|
|
3127
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.RelayConnectionFailed;constructor(v0){super('PasskeyError','RelayConnectionFailed');this.inner=Object.freeze([v0]);}static new(v0){return new RelayConnectionFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.RelayConnectionFailed;}static hasInner(obj){return RelayConnectionFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class NostrWriteFailed_ extends UniffiError{/**
|
|
2283
3128
|
* @private
|
|
2284
3129
|
* This field is private and should not be used, use `tag` instead.
|
|
2285
|
-
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.NostrWriteFailed;constructor(v0){super('PasskeyError','NostrWriteFailed');this.inner=Object.freeze([v0]);}static new(v0){return new NostrWriteFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.NostrWriteFailed;}static hasInner(obj){return NostrWriteFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2286
|
-
* Failed to query from Nostr
|
|
2287
|
-
*/class NostrReadFailed_ extends UniffiError{/**
|
|
3130
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.NostrWriteFailed;constructor(v0){super('PasskeyError','NostrWriteFailed');this.inner=Object.freeze([v0]);}static new(v0){return new NostrWriteFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.NostrWriteFailed;}static hasInner(obj){return NostrWriteFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class NostrReadFailed_ extends UniffiError{/**
|
|
2288
3131
|
* @private
|
|
2289
3132
|
* This field is private and should not be used, use `tag` instead.
|
|
2290
|
-
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.NostrReadFailed;constructor(v0){super('PasskeyError','NostrReadFailed');this.inner=Object.freeze([v0]);}static new(v0){return new NostrReadFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.NostrReadFailed;}static hasInner(obj){return NostrReadFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2291
|
-
* Key derivation error
|
|
2292
|
-
*/class KeyDerivationError_ extends UniffiError{/**
|
|
3133
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.NostrReadFailed;constructor(v0){super('PasskeyError','NostrReadFailed');this.inner=Object.freeze([v0]);}static new(v0){return new NostrReadFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.NostrReadFailed;}static hasInner(obj){return NostrReadFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class KeyDerivationError_ extends UniffiError{/**
|
|
2293
3134
|
* @private
|
|
2294
3135
|
* This field is private and should not be used, use `tag` instead.
|
|
2295
3136
|
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.KeyDerivationError;constructor(v0){super('PasskeyError','KeyDerivationError');this.inner=Object.freeze([v0]);}static new(v0){return new KeyDerivationError_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.KeyDerivationError;}static hasInner(obj){return KeyDerivationError_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2296
|
-
*
|
|
3137
|
+
* PRF output was unusable (e.g. wrong size).
|
|
2297
3138
|
*/class InvalidPrfOutput_ extends UniffiError{/**
|
|
2298
3139
|
* @private
|
|
2299
3140
|
* This field is private and should not be used, use `tag` instead.
|
|
2300
|
-
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.InvalidPrfOutput;constructor(v0){super('PasskeyError','InvalidPrfOutput');this.inner=Object.freeze([v0]);}static new(v0){return new InvalidPrfOutput_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.InvalidPrfOutput;}static hasInner(obj){return InvalidPrfOutput_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2301
|
-
* BIP39 mnemonic generation error
|
|
2302
|
-
*/class MnemonicError_ extends UniffiError{/**
|
|
3141
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.InvalidPrfOutput;constructor(v0){super('PasskeyError','InvalidPrfOutput');this.inner=Object.freeze([v0]);}static new(v0){return new InvalidPrfOutput_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.InvalidPrfOutput;}static hasInner(obj){return InvalidPrfOutput_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class MnemonicError_ extends UniffiError{/**
|
|
2303
3142
|
* @private
|
|
2304
3143
|
* This field is private and should not be used, use `tag` instead.
|
|
2305
|
-
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.MnemonicError;constructor(v0){super('PasskeyError','MnemonicError');this.inner=Object.freeze([v0]);}static new(v0){return new MnemonicError_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.MnemonicError;}static hasInner(obj){return MnemonicError_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2306
|
-
* Invalid salt input
|
|
2307
|
-
*/class InvalidSalt_ extends UniffiError{/**
|
|
3144
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.MnemonicError;constructor(v0){super('PasskeyError','MnemonicError');this.inner=Object.freeze([v0]);}static new(v0){return new MnemonicError_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.MnemonicError;}static hasInner(obj){return MnemonicError_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class InvalidSalt_ extends UniffiError{/**
|
|
2308
3145
|
* @private
|
|
2309
3146
|
* This field is private and should not be used, use `tag` instead.
|
|
2310
|
-
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.InvalidSalt;constructor(v0){super('PasskeyError','InvalidSalt');this.inner=Object.freeze([v0]);}static new(v0){return new InvalidSalt_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.InvalidSalt;}static hasInner(obj){return InvalidSalt_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2311
|
-
* Generic error
|
|
2312
|
-
*/class Generic_ extends UniffiError{/**
|
|
3147
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.InvalidSalt;constructor(v0){super('PasskeyError','InvalidSalt');this.inner=Object.freeze([v0]);}static new(v0){return new InvalidSalt_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.InvalidSalt;}static hasInner(obj){return InvalidSalt_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Generic_ extends UniffiError{/**
|
|
2313
3148
|
* @private
|
|
2314
3149
|
* This field is private and should not be used, use `tag` instead.
|
|
2315
|
-
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.Generic;constructor(v0){super('PasskeyError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PasskeyError';}return Object.freeze({instanceOf,
|
|
3150
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.Generic;constructor(v0){super('PasskeyError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PasskeyError';}return Object.freeze({instanceOf,Prf:Prf_,RelayConnectionFailed:RelayConnectionFailed_,NostrWriteFailed:NostrWriteFailed_,NostrReadFailed:NostrReadFailed_,KeyDerivationError:KeyDerivationError_,InvalidPrfOutput:InvalidPrfOutput_,MnemonicError:MnemonicError_,InvalidSalt:InvalidSalt_,Generic:Generic_});})();/**
|
|
2316
3151
|
* Error type for passkey operations.
|
|
2317
3152
|
*/// FfiConverter for enum PasskeyError
|
|
2318
|
-
const FfiConverterTypePasskeyError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PasskeyError.
|
|
2319
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PasskeyError_Tags.
|
|
2320
|
-
// Enum: PasskeyPrfError
|
|
2321
|
-
export let PasskeyPrfError_Tags=/*#__PURE__*/function(PasskeyPrfError_Tags){PasskeyPrfError_Tags["PrfNotSupported"]="PrfNotSupported";PasskeyPrfError_Tags["UserCancelled"]="UserCancelled";PasskeyPrfError_Tags["CredentialNotFound"]="CredentialNotFound";PasskeyPrfError_Tags["AuthenticationFailed"]="AuthenticationFailed";PasskeyPrfError_Tags["PrfEvaluationFailed"]="PrfEvaluationFailed";PasskeyPrfError_Tags["Generic"]="Generic";return PasskeyPrfError_Tags;}({});/**
|
|
2322
|
-
* Error type for passkey PRF operations.
|
|
2323
|
-
* Platforms implement `PasskeyPrfProvider` and return this error type.
|
|
2324
|
-
*/export const PasskeyPrfError=(()=>{/**
|
|
2325
|
-
* PRF extension is not supported by the authenticator
|
|
2326
|
-
*/class PrfNotSupported_ extends UniffiError{/**
|
|
2327
|
-
* @private
|
|
2328
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2329
|
-
*/[uniffiTypeNameSymbol]='PasskeyPrfError';tag=PasskeyPrfError_Tags.PrfNotSupported;constructor(){super('PasskeyPrfError','PrfNotSupported');}static new(){return new PrfNotSupported_();}static instanceOf(obj){return obj.tag===PasskeyPrfError_Tags.PrfNotSupported;}static hasInner(obj){return false;}}/**
|
|
2330
|
-
* User cancelled the authentication
|
|
2331
|
-
*/class UserCancelled_ extends UniffiError{/**
|
|
2332
|
-
* @private
|
|
2333
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2334
|
-
*/[uniffiTypeNameSymbol]='PasskeyPrfError';tag=PasskeyPrfError_Tags.UserCancelled;constructor(){super('PasskeyPrfError','UserCancelled');}static new(){return new UserCancelled_();}static instanceOf(obj){return obj.tag===PasskeyPrfError_Tags.UserCancelled;}static hasInner(obj){return false;}}/**
|
|
2335
|
-
* No credential found
|
|
2336
|
-
*/class CredentialNotFound_ extends UniffiError{/**
|
|
2337
|
-
* @private
|
|
2338
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2339
|
-
*/[uniffiTypeNameSymbol]='PasskeyPrfError';tag=PasskeyPrfError_Tags.CredentialNotFound;constructor(){super('PasskeyPrfError','CredentialNotFound');}static new(){return new CredentialNotFound_();}static instanceOf(obj){return obj.tag===PasskeyPrfError_Tags.CredentialNotFound;}static hasInner(obj){return false;}}/**
|
|
2340
|
-
* Authentication failed
|
|
2341
|
-
*/class AuthenticationFailed_ extends UniffiError{/**
|
|
2342
|
-
* @private
|
|
2343
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2344
|
-
*/[uniffiTypeNameSymbol]='PasskeyPrfError';tag=PasskeyPrfError_Tags.AuthenticationFailed;constructor(v0){super('PasskeyPrfError','AuthenticationFailed');this.inner=Object.freeze([v0]);}static new(v0){return new AuthenticationFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyPrfError_Tags.AuthenticationFailed;}static hasInner(obj){return AuthenticationFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2345
|
-
* PRF evaluation failed
|
|
2346
|
-
*/class PrfEvaluationFailed_ extends UniffiError{/**
|
|
2347
|
-
* @private
|
|
2348
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2349
|
-
*/[uniffiTypeNameSymbol]='PasskeyPrfError';tag=PasskeyPrfError_Tags.PrfEvaluationFailed;constructor(v0){super('PasskeyPrfError','PrfEvaluationFailed');this.inner=Object.freeze([v0]);}static new(v0){return new PrfEvaluationFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyPrfError_Tags.PrfEvaluationFailed;}static hasInner(obj){return PrfEvaluationFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2350
|
-
* Generic error
|
|
2351
|
-
*/class Generic_ extends UniffiError{/**
|
|
2352
|
-
* @private
|
|
2353
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2354
|
-
*/[uniffiTypeNameSymbol]='PasskeyPrfError';tag=PasskeyPrfError_Tags.Generic;constructor(v0){super('PasskeyPrfError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===PasskeyPrfError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PasskeyPrfError';}return Object.freeze({instanceOf,PrfNotSupported:PrfNotSupported_,UserCancelled:UserCancelled_,CredentialNotFound:CredentialNotFound_,AuthenticationFailed:AuthenticationFailed_,PrfEvaluationFailed:PrfEvaluationFailed_,Generic:Generic_});})();/**
|
|
2355
|
-
* Error type for passkey PRF operations.
|
|
2356
|
-
* Platforms implement `PasskeyPrfProvider` and return this error type.
|
|
2357
|
-
*/// FfiConverter for enum PasskeyPrfError
|
|
2358
|
-
const FfiConverterTypePasskeyPrfError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PasskeyPrfError.PrfNotSupported();case 2:return new PasskeyPrfError.UserCancelled();case 3:return new PasskeyPrfError.CredentialNotFound();case 4:return new PasskeyPrfError.AuthenticationFailed(FfiConverterString.read(from));case 5:return new PasskeyPrfError.PrfEvaluationFailed(FfiConverterString.read(from));case 6:return new PasskeyPrfError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PasskeyPrfError_Tags.PrfNotSupported:{ordinalConverter.write(1,into);return;}case PasskeyPrfError_Tags.UserCancelled:{ordinalConverter.write(2,into);return;}case PasskeyPrfError_Tags.CredentialNotFound:{ordinalConverter.write(3,into);return;}case PasskeyPrfError_Tags.AuthenticationFailed:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyPrfError_Tags.PrfEvaluationFailed:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyPrfError_Tags.Generic:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that PasskeyPrfError_Tags hasn't matched an ordinal.
|
|
2359
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PasskeyPrfError_Tags.PrfNotSupported:{return ordinalConverter.allocationSize(1);}case PasskeyPrfError_Tags.UserCancelled:{return ordinalConverter.allocationSize(2);}case PasskeyPrfError_Tags.CredentialNotFound:{return ordinalConverter.allocationSize(3);}case PasskeyPrfError_Tags.AuthenticationFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyPrfError_Tags.PrfEvaluationFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyPrfError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentDetails
|
|
3153
|
+
const FfiConverterTypePasskeyError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PasskeyError.Prf(FfiConverterTypePrfProviderError.read(from));case 2:return new PasskeyError.RelayConnectionFailed(FfiConverterString.read(from));case 3:return new PasskeyError.NostrWriteFailed(FfiConverterString.read(from));case 4:return new PasskeyError.NostrReadFailed(FfiConverterString.read(from));case 5:return new PasskeyError.KeyDerivationError(FfiConverterString.read(from));case 6:return new PasskeyError.InvalidPrfOutput(FfiConverterString.read(from));case 7:return new PasskeyError.MnemonicError(FfiConverterString.read(from));case 8:return new PasskeyError.InvalidSalt(FfiConverterString.read(from));case 9:return new PasskeyError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PasskeyError_Tags.Prf:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypePrfProviderError.write(inner[0],into);return;}case PasskeyError_Tags.RelayConnectionFailed:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.NostrWriteFailed:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.NostrReadFailed:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.KeyDerivationError:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.InvalidPrfOutput:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.MnemonicError:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.InvalidSalt:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.Generic:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that PasskeyError_Tags hasn't matched an ordinal.
|
|
3154
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PasskeyError_Tags.Prf:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypePrfProviderError.allocationSize(inner[0]);return size;}case PasskeyError_Tags.RelayConnectionFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.NostrWriteFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.NostrReadFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.KeyDerivationError:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.InvalidPrfOutput:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.MnemonicError:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.InvalidSalt:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentDetails
|
|
2360
3155
|
export let PaymentDetails_Tags=/*#__PURE__*/function(PaymentDetails_Tags){PaymentDetails_Tags["Spark"]="Spark";PaymentDetails_Tags["Token"]="Token";PaymentDetails_Tags["Lightning"]="Lightning";PaymentDetails_Tags["Withdraw"]="Withdraw";PaymentDetails_Tags["Deposit"]="Deposit";return PaymentDetails_Tags;}({});export const PaymentDetails=(()=>{class Spark_ extends UniffiEnum{/**
|
|
2361
3156
|
* @private
|
|
2362
3157
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -2373,8 +3168,8 @@ export let PaymentDetails_Tags=/*#__PURE__*/function(PaymentDetails_Tags){Paymen
|
|
|
2373
3168
|
* @private
|
|
2374
3169
|
* This field is private and should not be used, use `tag` instead.
|
|
2375
3170
|
*/[uniffiTypeNameSymbol]='PaymentDetails';tag=PaymentDetails_Tags.Deposit;constructor(inner){super('PaymentDetails','Deposit');this.inner=Object.freeze(inner);}static new(inner){return new Deposit_(inner);}static instanceOf(obj){return obj.tag===PaymentDetails_Tags.Deposit;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PaymentDetails';}return Object.freeze({instanceOf,Spark:Spark_,Token:Token_,Lightning:Lightning_,Withdraw:Withdraw_,Deposit:Deposit_});})();// FfiConverter for enum PaymentDetails
|
|
2376
|
-
const FfiConverterTypePaymentDetails=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PaymentDetails.Spark({invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from),htlcDetails:FfiConverterOptionalTypeSparkHtlcDetails.read(from),conversionInfo:FfiConverterOptionalTypeConversionInfo.read(from)});case 2:return new PaymentDetails.Token({metadata:FfiConverterTypeTokenMetadata.read(from),txHash:FfiConverterString.read(from),txType:FfiConverterTypeTokenTransactionType.read(from),invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from),conversionInfo:FfiConverterOptionalTypeConversionInfo.read(from)});case 3:return new PaymentDetails.Lightning({description:FfiConverterOptionalString.read(from),invoice:FfiConverterString.read(from),destinationPubkey:FfiConverterString.read(from),htlcDetails:FfiConverterTypeSparkHtlcDetails.read(from),lnurlPayInfo:FfiConverterOptionalTypeLnurlPayInfo.read(from),lnurlWithdrawInfo:FfiConverterOptionalTypeLnurlWithdrawInfo.read(from),lnurlReceiveMetadata:FfiConverterOptionalTypeLnurlReceiveMetadata.read(from)});case 4:return new PaymentDetails.Withdraw({txId:FfiConverterString.read(from)});case 5:return new PaymentDetails.Deposit({txId:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PaymentDetails_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);FfiConverterOptionalTypeSparkHtlcDetails.write(inner.htlcDetails,into);FfiConverterOptionalTypeConversionInfo.write(inner.conversionInfo,into);return;}case PaymentDetails_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeTokenMetadata.write(inner.metadata,into);FfiConverterString.write(inner.txHash,into);FfiConverterTypeTokenTransactionType.write(inner.txType,into);FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);FfiConverterOptionalTypeConversionInfo.write(inner.conversionInfo,into);return;}case PaymentDetails_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalString.write(inner.description,into);FfiConverterString.write(inner.invoice,into);FfiConverterString.write(inner.destinationPubkey,into);FfiConverterTypeSparkHtlcDetails.write(inner.htlcDetails,into);FfiConverterOptionalTypeLnurlPayInfo.write(inner.lnurlPayInfo,into);FfiConverterOptionalTypeLnurlWithdrawInfo.write(inner.lnurlWithdrawInfo,into);FfiConverterOptionalTypeLnurlReceiveMetadata.write(inner.lnurlReceiveMetadata,into);return;}case PaymentDetails_Tags.Withdraw:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.txId,into);return;}case PaymentDetails_Tags.Deposit:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner.txId,into);return;}default:// Throwing from here means that PaymentDetails_Tags hasn't matched an ordinal.
|
|
2377
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentDetails_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalTypeSparkHtlcDetails.allocationSize(inner.htlcDetails);size+=FfiConverterOptionalTypeConversionInfo.allocationSize(inner.conversionInfo);return size;}case PaymentDetails_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeTokenMetadata.allocationSize(inner.metadata);size+=FfiConverterString.allocationSize(inner.txHash);size+=FfiConverterTypeTokenTransactionType.allocationSize(inner.txType);size+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalTypeConversionInfo.allocationSize(inner.conversionInfo);return size;}case PaymentDetails_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterString.allocationSize(inner.destinationPubkey);size+=FfiConverterTypeSparkHtlcDetails.allocationSize(inner.htlcDetails);size+=FfiConverterOptionalTypeLnurlPayInfo.allocationSize(inner.lnurlPayInfo);size+=FfiConverterOptionalTypeLnurlWithdrawInfo.allocationSize(inner.lnurlWithdrawInfo);size+=FfiConverterOptionalTypeLnurlReceiveMetadata.allocationSize(inner.lnurlReceiveMetadata);return size;}case PaymentDetails_Tags.Withdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.txId);return size;}case PaymentDetails_Tags.Deposit:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.txId);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentDetailsFilter
|
|
3171
|
+
const FfiConverterTypePaymentDetails=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PaymentDetails.Spark({invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from),htlcDetails:FfiConverterOptionalTypeSparkHtlcDetails.read(from),conversionInfo:FfiConverterOptionalTypeConversionInfo.read(from)});case 2:return new PaymentDetails.Token({metadata:FfiConverterTypeTokenMetadata.read(from),txHash:FfiConverterString.read(from),txType:FfiConverterTypeTokenTransactionType.read(from),invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from),conversionInfo:FfiConverterOptionalTypeConversionInfo.read(from)});case 3:return new PaymentDetails.Lightning({description:FfiConverterOptionalString.read(from),invoice:FfiConverterString.read(from),destinationPubkey:FfiConverterString.read(from),htlcDetails:FfiConverterTypeSparkHtlcDetails.read(from),lnurlPayInfo:FfiConverterOptionalTypeLnurlPayInfo.read(from),lnurlWithdrawInfo:FfiConverterOptionalTypeLnurlWithdrawInfo.read(from),lnurlReceiveMetadata:FfiConverterOptionalTypeLnurlReceiveMetadata.read(from),conversionInfo:FfiConverterOptionalTypeConversionInfo.read(from)});case 4:return new PaymentDetails.Withdraw({txId:FfiConverterString.read(from)});case 5:return new PaymentDetails.Deposit({txId:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PaymentDetails_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);FfiConverterOptionalTypeSparkHtlcDetails.write(inner.htlcDetails,into);FfiConverterOptionalTypeConversionInfo.write(inner.conversionInfo,into);return;}case PaymentDetails_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeTokenMetadata.write(inner.metadata,into);FfiConverterString.write(inner.txHash,into);FfiConverterTypeTokenTransactionType.write(inner.txType,into);FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);FfiConverterOptionalTypeConversionInfo.write(inner.conversionInfo,into);return;}case PaymentDetails_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalString.write(inner.description,into);FfiConverterString.write(inner.invoice,into);FfiConverterString.write(inner.destinationPubkey,into);FfiConverterTypeSparkHtlcDetails.write(inner.htlcDetails,into);FfiConverterOptionalTypeLnurlPayInfo.write(inner.lnurlPayInfo,into);FfiConverterOptionalTypeLnurlWithdrawInfo.write(inner.lnurlWithdrawInfo,into);FfiConverterOptionalTypeLnurlReceiveMetadata.write(inner.lnurlReceiveMetadata,into);FfiConverterOptionalTypeConversionInfo.write(inner.conversionInfo,into);return;}case PaymentDetails_Tags.Withdraw:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.txId,into);return;}case PaymentDetails_Tags.Deposit:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner.txId,into);FfiConverterUInt32.write(inner.vout,into);return;}default:// Throwing from here means that PaymentDetails_Tags hasn't matched an ordinal.
|
|
3172
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentDetails_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalTypeSparkHtlcDetails.allocationSize(inner.htlcDetails);size+=FfiConverterOptionalTypeConversionInfo.allocationSize(inner.conversionInfo);return size;}case PaymentDetails_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeTokenMetadata.allocationSize(inner.metadata);size+=FfiConverterString.allocationSize(inner.txHash);size+=FfiConverterTypeTokenTransactionType.allocationSize(inner.txType);size+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalTypeConversionInfo.allocationSize(inner.conversionInfo);return size;}case PaymentDetails_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterString.allocationSize(inner.destinationPubkey);size+=FfiConverterTypeSparkHtlcDetails.allocationSize(inner.htlcDetails);size+=FfiConverterOptionalTypeLnurlPayInfo.allocationSize(inner.lnurlPayInfo);size+=FfiConverterOptionalTypeLnurlWithdrawInfo.allocationSize(inner.lnurlWithdrawInfo);size+=FfiConverterOptionalTypeLnurlReceiveMetadata.allocationSize(inner.lnurlReceiveMetadata);size+=FfiConverterOptionalTypeConversionInfo.allocationSize(inner.conversionInfo);return size;}case PaymentDetails_Tags.Withdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.txId);return size;}case PaymentDetails_Tags.Deposit:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.txId);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentDetailsFilter
|
|
2378
3173
|
export let PaymentDetailsFilter_Tags=/*#__PURE__*/function(PaymentDetailsFilter_Tags){PaymentDetailsFilter_Tags["Spark"]="Spark";PaymentDetailsFilter_Tags["Token"]="Token";PaymentDetailsFilter_Tags["Lightning"]="Lightning";return PaymentDetailsFilter_Tags;}({});export const PaymentDetailsFilter=(()=>{class Spark_ extends UniffiEnum{/**
|
|
2379
3174
|
* @private
|
|
2380
3175
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -2396,7 +3191,29 @@ export let PaymentObserverError_Tags=/*#__PURE__*/function(PaymentObserverError_
|
|
|
2396
3191
|
* This field is private and should not be used, use `tag` instead.
|
|
2397
3192
|
*/[uniffiTypeNameSymbol]='PaymentObserverError';tag=PaymentObserverError_Tags.Generic;constructor(v0){super('PaymentObserverError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===PaymentObserverError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PaymentObserverError';}return Object.freeze({instanceOf,ServiceConnectivity:ServiceConnectivity_,Generic:Generic_});})();// FfiConverter for enum PaymentObserverError
|
|
2398
3193
|
const FfiConverterTypePaymentObserverError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PaymentObserverError.ServiceConnectivity(FfiConverterString.read(from));case 2:return new PaymentObserverError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PaymentObserverError_Tags.ServiceConnectivity:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PaymentObserverError_Tags.Generic:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that PaymentObserverError_Tags hasn't matched an ordinal.
|
|
2399
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentObserverError_Tags.ServiceConnectivity:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PaymentObserverError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})()
|
|
3194
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentObserverError_Tags.ServiceConnectivity:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PaymentObserverError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentRequest
|
|
3195
|
+
export let PaymentRequest_Tags=/*#__PURE__*/function(PaymentRequest_Tags){PaymentRequest_Tags["Input"]="Input";PaymentRequest_Tags["CrossChain"]="CrossChain";return PaymentRequest_Tags;}({});/**
|
|
3196
|
+
* The payment destination. Either a raw string (bolt11, spark address, BIP-21,
|
|
3197
|
+
* cross-chain URI, etc.) that is parsed internally, or a structured
|
|
3198
|
+
* cross-chain destination with explicit chain + asset selection.
|
|
3199
|
+
*/export const PaymentRequest=(()=>{/**
|
|
3200
|
+
* Unparsed user input string (bolt11, spark address, BIP-21, cross-chain URI, etc.)
|
|
3201
|
+
*/class Input_ extends UniffiEnum{/**
|
|
3202
|
+
* @private
|
|
3203
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3204
|
+
*/[uniffiTypeNameSymbol]='PaymentRequest';tag=PaymentRequest_Tags.Input;constructor(inner){super('PaymentRequest','Input');this.inner=Object.freeze(inner);}static new(inner){return new Input_(inner);}static instanceOf(obj){return obj.tag===PaymentRequest_Tags.Input;}}/**
|
|
3205
|
+
* Cross-chain send with a selected route from `get_cross_chain_routes()`.
|
|
3206
|
+
* Amount comes from `PrepareSendPaymentRequest.amount`, not here.
|
|
3207
|
+
*/class CrossChain_ extends UniffiEnum{/**
|
|
3208
|
+
* @private
|
|
3209
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3210
|
+
*/[uniffiTypeNameSymbol]='PaymentRequest';tag=PaymentRequest_Tags.CrossChain;constructor(inner){super('PaymentRequest','CrossChain');this.inner=Object.freeze(inner);}static new(inner){return new CrossChain_(inner);}static instanceOf(obj){return obj.tag===PaymentRequest_Tags.CrossChain;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PaymentRequest';}return Object.freeze({instanceOf,Input:Input_,CrossChain:CrossChain_});})();/**
|
|
3211
|
+
* The payment destination. Either a raw string (bolt11, spark address, BIP-21,
|
|
3212
|
+
* cross-chain URI, etc.) that is parsed internally, or a structured
|
|
3213
|
+
* cross-chain destination with explicit chain + asset selection.
|
|
3214
|
+
*/// FfiConverter for enum PaymentRequest
|
|
3215
|
+
const FfiConverterTypePaymentRequest=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PaymentRequest.Input({input:FfiConverterString.read(from)});case 2:return new PaymentRequest.CrossChain({address:FfiConverterString.read(from),route:FfiConverterTypeCrossChainRoutePair.read(from),maxSlippageBps:FfiConverterOptionalUInt32.read(from),targetOverpayBps:FfiConverterOptionalUInt32.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PaymentRequest_Tags.Input:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.input,into);return;}case PaymentRequest_Tags.CrossChain:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.address,into);FfiConverterTypeCrossChainRoutePair.write(inner.route,into);FfiConverterOptionalUInt32.write(inner.maxSlippageBps,into);FfiConverterOptionalUInt32.write(inner.targetOverpayBps,into);return;}default:// Throwing from here means that PaymentRequest_Tags hasn't matched an ordinal.
|
|
3216
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentRequest_Tags.Input:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.input);return size;}case PaymentRequest_Tags.CrossChain:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterTypeCrossChainRoutePair.allocationSize(inner.route);size+=FfiConverterOptionalUInt32.allocationSize(inner.maxSlippageBps);size+=FfiConverterOptionalUInt32.allocationSize(inner.targetOverpayBps);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
2400
3217
|
* The status of a payment
|
|
2401
3218
|
*/export let PaymentStatus=/*#__PURE__*/function(PaymentStatus){/**
|
|
2402
3219
|
* Payment is completed successfully
|
|
@@ -2410,7 +3227,54 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
2410
3227
|
* Payment sent from this wallet
|
|
2411
3228
|
*/PaymentType[PaymentType["Send"]=0]="Send";/**
|
|
2412
3229
|
* Payment received to this wallet
|
|
2413
|
-
*/PaymentType[PaymentType["Receive"]=1]="Receive";return PaymentType;}({});const FfiConverterTypePaymentType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return PaymentType.Send;case 2:return PaymentType.Receive;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case PaymentType.Send:return ordinalConverter.write(1,into);case PaymentType.Receive:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();//
|
|
3230
|
+
*/PaymentType[PaymentType["Receive"]=1]="Receive";return PaymentType;}({});const FfiConverterTypePaymentType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return PaymentType.Send;case 2:return PaymentType.Receive;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case PaymentType.Send:return ordinalConverter.write(1,into);case PaymentType.Receive:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type: PrfProviderError
|
|
3231
|
+
// Enum: PrfProviderError
|
|
3232
|
+
export let PrfProviderError_Tags=/*#__PURE__*/function(PrfProviderError_Tags){PrfProviderError_Tags["PrfNotSupported"]="PrfNotSupported";PrfProviderError_Tags["UserCancelled"]="UserCancelled";PrfProviderError_Tags["UserTimedOut"]="UserTimedOut";PrfProviderError_Tags["CredentialNotFound"]="CredentialNotFound";PrfProviderError_Tags["AuthenticationFailed"]="AuthenticationFailed";PrfProviderError_Tags["PrfEvaluationFailed"]="PrfEvaluationFailed";PrfProviderError_Tags["Configuration"]="Configuration";PrfProviderError_Tags["CredentialAlreadyExists"]="CredentialAlreadyExists";PrfProviderError_Tags["Generic"]="Generic";return PrfProviderError_Tags;}({});/**
|
|
3233
|
+
* Failures from a passkey PRF operation. Each platform normalizes its
|
|
3234
|
+
* native errors into these variants so callers match one taxonomy
|
|
3235
|
+
* everywhere; anything unclassifiable becomes [`Generic`](Self::Generic).
|
|
3236
|
+
*/export const PrfProviderError=(()=>{class PrfNotSupported_ extends UniffiError{/**
|
|
3237
|
+
* @private
|
|
3238
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3239
|
+
*/[uniffiTypeNameSymbol]='PrfProviderError';tag=PrfProviderError_Tags.PrfNotSupported;constructor(){super('PrfProviderError','PrfNotSupported');}static new(){return new PrfNotSupported_();}static instanceOf(obj){return obj.tag===PrfProviderError_Tags.PrfNotSupported;}static hasInner(obj){return false;}}class UserCancelled_ extends UniffiError{/**
|
|
3240
|
+
* @private
|
|
3241
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3242
|
+
*/[uniffiTypeNameSymbol]='PrfProviderError';tag=PrfProviderError_Tags.UserCancelled;constructor(){super('PrfProviderError','UserCancelled');}static new(){return new UserCancelled_();}static instanceOf(obj){return obj.tag===PrfProviderError_Tags.UserCancelled;}static hasInner(obj){return false;}}/**
|
|
3243
|
+
* The prompt closed on the platform inactivity timeout, with no
|
|
3244
|
+
* user action. Unlike `UserCancelled`, safe to auto-retry.
|
|
3245
|
+
*/class UserTimedOut_ extends UniffiError{/**
|
|
3246
|
+
* @private
|
|
3247
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3248
|
+
*/[uniffiTypeNameSymbol]='PrfProviderError';tag=PrfProviderError_Tags.UserTimedOut;constructor(){super('PrfProviderError','UserTimedOut');}static new(){return new UserTimedOut_();}static instanceOf(obj){return obj.tag===PrfProviderError_Tags.UserTimedOut;}static hasInner(obj){return false;}}class CredentialNotFound_ extends UniffiError{/**
|
|
3249
|
+
* @private
|
|
3250
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3251
|
+
*/[uniffiTypeNameSymbol]='PrfProviderError';tag=PrfProviderError_Tags.CredentialNotFound;constructor(v0){super('PrfProviderError','CredentialNotFound');this.inner=Object.freeze([v0]);}static new(v0){return new CredentialNotFound_(v0);}static instanceOf(obj){return obj.tag===PrfProviderError_Tags.CredentialNotFound;}static hasInner(obj){return CredentialNotFound_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class AuthenticationFailed_ extends UniffiError{/**
|
|
3252
|
+
* @private
|
|
3253
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3254
|
+
*/[uniffiTypeNameSymbol]='PrfProviderError';tag=PrfProviderError_Tags.AuthenticationFailed;constructor(v0){super('PrfProviderError','AuthenticationFailed');this.inner=Object.freeze([v0]);}static new(v0){return new AuthenticationFailed_(v0);}static instanceOf(obj){return obj.tag===PrfProviderError_Tags.AuthenticationFailed;}static hasInner(obj){return AuthenticationFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class PrfEvaluationFailed_ extends UniffiError{/**
|
|
3255
|
+
* @private
|
|
3256
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3257
|
+
*/[uniffiTypeNameSymbol]='PrfProviderError';tag=PrfProviderError_Tags.PrfEvaluationFailed;constructor(v0){super('PrfProviderError','PrfEvaluationFailed');this.inner=Object.freeze([v0]);}static new(v0){return new PrfEvaluationFailed_(v0);}static instanceOf(obj){return obj.tag===PrfProviderError_Tags.PrfEvaluationFailed;}static hasInner(obj){return PrfEvaluationFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
3258
|
+
* Platform / app setup is wrong: missing AASA entitlement, invalid
|
|
3259
|
+
* assetlinks.json, or misconfigured RP ID.
|
|
3260
|
+
*/class Configuration_ extends UniffiError{/**
|
|
3261
|
+
* @private
|
|
3262
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3263
|
+
*/[uniffiTypeNameSymbol]='PrfProviderError';tag=PrfProviderError_Tags.Configuration;constructor(v0){super('PrfProviderError','Configuration');this.inner=Object.freeze([v0]);}static new(v0){return new Configuration_(v0);}static instanceOf(obj){return obj.tag===PrfProviderError_Tags.Configuration;}static hasInner(obj){return Configuration_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
3264
|
+
* An existing credential matched. Route the user to sign-in.
|
|
3265
|
+
*/class CredentialAlreadyExists_ extends UniffiError{/**
|
|
3266
|
+
* @private
|
|
3267
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3268
|
+
*/[uniffiTypeNameSymbol]='PrfProviderError';tag=PrfProviderError_Tags.CredentialAlreadyExists;constructor(v0){super('PrfProviderError','CredentialAlreadyExists');this.inner=Object.freeze([v0]);}static new(v0){return new CredentialAlreadyExists_(v0);}static instanceOf(obj){return obj.tag===PrfProviderError_Tags.CredentialAlreadyExists;}static hasInner(obj){return CredentialAlreadyExists_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Generic_ extends UniffiError{/**
|
|
3269
|
+
* @private
|
|
3270
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3271
|
+
*/[uniffiTypeNameSymbol]='PrfProviderError';tag=PrfProviderError_Tags.Generic;constructor(v0){super('PrfProviderError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===PrfProviderError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PrfProviderError';}return Object.freeze({instanceOf,PrfNotSupported:PrfNotSupported_,UserCancelled:UserCancelled_,UserTimedOut:UserTimedOut_,CredentialNotFound:CredentialNotFound_,AuthenticationFailed:AuthenticationFailed_,PrfEvaluationFailed:PrfEvaluationFailed_,Configuration:Configuration_,CredentialAlreadyExists:CredentialAlreadyExists_,Generic:Generic_});})();/**
|
|
3272
|
+
* Failures from a passkey PRF operation. Each platform normalizes its
|
|
3273
|
+
* native errors into these variants so callers match one taxonomy
|
|
3274
|
+
* everywhere; anything unclassifiable becomes [`Generic`](Self::Generic).
|
|
3275
|
+
*/// FfiConverter for enum PrfProviderError
|
|
3276
|
+
const FfiConverterTypePrfProviderError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PrfProviderError.PrfNotSupported();case 2:return new PrfProviderError.UserCancelled();case 3:return new PrfProviderError.UserTimedOut();case 4:return new PrfProviderError.CredentialNotFound(FfiConverterString.read(from));case 5:return new PrfProviderError.AuthenticationFailed(FfiConverterString.read(from));case 6:return new PrfProviderError.PrfEvaluationFailed(FfiConverterString.read(from));case 7:return new PrfProviderError.Configuration(FfiConverterString.read(from));case 8:return new PrfProviderError.CredentialAlreadyExists(FfiConverterString.read(from));case 9:return new PrfProviderError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PrfProviderError_Tags.PrfNotSupported:{ordinalConverter.write(1,into);return;}case PrfProviderError_Tags.UserCancelled:{ordinalConverter.write(2,into);return;}case PrfProviderError_Tags.UserTimedOut:{ordinalConverter.write(3,into);return;}case PrfProviderError_Tags.CredentialNotFound:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PrfProviderError_Tags.AuthenticationFailed:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PrfProviderError_Tags.PrfEvaluationFailed:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PrfProviderError_Tags.Configuration:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PrfProviderError_Tags.CredentialAlreadyExists:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PrfProviderError_Tags.Generic:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that PrfProviderError_Tags hasn't matched an ordinal.
|
|
3277
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PrfProviderError_Tags.PrfNotSupported:{return ordinalConverter.allocationSize(1);}case PrfProviderError_Tags.UserCancelled:{return ordinalConverter.allocationSize(2);}case PrfProviderError_Tags.UserTimedOut:{return ordinalConverter.allocationSize(3);}case PrfProviderError_Tags.CredentialNotFound:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PrfProviderError_Tags.AuthenticationFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PrfProviderError_Tags.PrfEvaluationFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PrfProviderError_Tags.Configuration:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PrfProviderError_Tags.CredentialAlreadyExists:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PrfProviderError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ProvisionalPaymentDetails
|
|
2414
3278
|
export let ProvisionalPaymentDetails_Tags=/*#__PURE__*/function(ProvisionalPaymentDetails_Tags){ProvisionalPaymentDetails_Tags["Bitcoin"]="Bitcoin";ProvisionalPaymentDetails_Tags["Lightning"]="Lightning";ProvisionalPaymentDetails_Tags["Spark"]="Spark";ProvisionalPaymentDetails_Tags["Token"]="Token";return ProvisionalPaymentDetails_Tags;}({});export const ProvisionalPaymentDetails=(()=>{class Bitcoin_ extends UniffiEnum{/**
|
|
2415
3279
|
* @private
|
|
2416
3280
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -2442,7 +3306,7 @@ export let ReceivePaymentMethod_Tags=/*#__PURE__*/function(ReceivePaymentMethod_
|
|
|
2442
3306
|
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({newAddress:FfiConverterOptionalBool.read(from)});case 4:return new ReceivePaymentMethod.Bolt11Invoice({description:FfiConverterString.read(from),amountSats:FfiConverterOptionalUInt64.read(from),expirySecs:FfiConverterOptionalUInt32.read(from),paymentHash:FfiConverterOptionalString.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);const inner=value.inner;FfiConverterOptionalBool.write(inner.newAddress,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);FfiConverterOptionalString.write(inner.paymentHash,into);return;}default:// Throwing from here means that ReceivePaymentMethod_Tags hasn't matched an ordinal.
|
|
2443
3307
|
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:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalBool.allocationSize(inner.newAddress);return size;}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);size+=FfiConverterOptionalString.allocationSize(inner.paymentHash);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: SdkError
|
|
2444
3308
|
// Enum: SdkError
|
|
2445
|
-
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;}({});/**
|
|
3309
|
+
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["OptimizationAlreadyRunning"]="OptimizationAlreadyRunning";SdkError_Tags["OptimizationCancelled"]="OptimizationCancelled";SdkError_Tags["Generic"]="Generic";return SdkError_Tags;}({});/**
|
|
2446
3310
|
* Error type for the `BreezSdk`
|
|
2447
3311
|
*/export const SdkError=(()=>{class SparkError_ extends UniffiError{/**
|
|
2448
3312
|
* @private
|
|
@@ -2483,15 +3347,27 @@ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["Spa
|
|
|
2483
3347
|
*/[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{/**
|
|
2484
3348
|
* @private
|
|
2485
3349
|
* This field is private and should not be used, use `tag` instead.
|
|
2486
|
-
*/[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;}}
|
|
3350
|
+
*/[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;}}/**
|
|
3351
|
+
* `optimize_leaves` was called while another optimization run (auto or
|
|
3352
|
+
* manual) was already in flight.
|
|
3353
|
+
*/class OptimizationAlreadyRunning_ extends UniffiError{/**
|
|
3354
|
+
* @private
|
|
3355
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3356
|
+
*/[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.OptimizationAlreadyRunning;constructor(){super('SdkError','OptimizationAlreadyRunning');}static new(){return new OptimizationAlreadyRunning_();}static instanceOf(obj){return obj.tag===SdkError_Tags.OptimizationAlreadyRunning;}static hasInner(obj){return false;}}/**
|
|
3357
|
+
* `optimize_leaves` was preempted by the SDK to free leaves for a
|
|
3358
|
+
* higher-priority operation (typically a payment).
|
|
3359
|
+
*/class OptimizationCancelled_ extends UniffiError{/**
|
|
3360
|
+
* @private
|
|
3361
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3362
|
+
*/[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.OptimizationCancelled;constructor(){super('SdkError','OptimizationCancelled');}static new(){return new OptimizationCancelled_();}static instanceOf(obj){return obj.tag===SdkError_Tags.OptimizationCancelled;}static hasInner(obj){return false;}}class Generic_ extends UniffiError{/**
|
|
2487
3363
|
* @private
|
|
2488
3364
|
* This field is private and should not be used, use `tag` instead.
|
|
2489
|
-
*/[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_});})();/**
|
|
3365
|
+
*/[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_,OptimizationAlreadyRunning:OptimizationAlreadyRunning_,OptimizationCancelled:OptimizationCancelled_,Generic:Generic_});})();/**
|
|
2490
3366
|
* Error type for the `BreezSdk`
|
|
2491
3367
|
*/// FfiConverter for enum SdkError
|
|
2492
|
-
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.
|
|
2493
|
-
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(
|
|
2494
|
-
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["
|
|
3368
|
+
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.OptimizationAlreadyRunning();case 13:return new SdkError.OptimizationCancelled();case 14: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.OptimizationAlreadyRunning:{ordinalConverter.write(12,into);return;}case SdkError_Tags.OptimizationCancelled:{ordinalConverter.write(13,into);return;}case SdkError_Tags.Generic:{ordinalConverter.write(14,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SdkError_Tags hasn't matched an ordinal.
|
|
3369
|
+
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.OptimizationAlreadyRunning:{return ordinalConverter.allocationSize(12);}case SdkError_Tags.OptimizationCancelled:{return ordinalConverter.allocationSize(13);}case SdkError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(14);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SdkEvent
|
|
3370
|
+
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["AutoOptimization"]="AutoOptimization";SdkEvent_Tags["LightningAddressChanged"]="LightningAddressChanged";SdkEvent_Tags["NewDeposits"]="NewDeposits";return SdkEvent_Tags;}({});/**
|
|
2495
3371
|
* Events emitted by the SDK
|
|
2496
3372
|
*/export const SdkEvent=(()=>{/**
|
|
2497
3373
|
* Emitted when the wallet has been synchronized with the network
|
|
@@ -2515,20 +3391,27 @@ export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Syn
|
|
|
2515
3391
|
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.PaymentPending;constructor(inner){super('SdkEvent','PaymentPending');this.inner=Object.freeze(inner);}static new(inner){return new PaymentPending_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.PaymentPending;}}class PaymentFailed_ extends UniffiEnum{/**
|
|
2516
3392
|
* @private
|
|
2517
3393
|
* This field is private and should not be used, use `tag` instead.
|
|
2518
|
-
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.PaymentFailed;constructor(inner){super('SdkEvent','PaymentFailed');this.inner=Object.freeze(inner);}static new(inner){return new PaymentFailed_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.PaymentFailed;}}
|
|
3394
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.PaymentFailed;constructor(inner){super('SdkEvent','PaymentFailed');this.inner=Object.freeze(inner);}static new(inner){return new PaymentFailed_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.PaymentFailed;}}/**
|
|
3395
|
+
* Emitted while the background auto-optimizer is running.
|
|
3396
|
+
*
|
|
3397
|
+
* Only fired from the auto path (enabled via
|
|
3398
|
+
* `LeafOptimizationConfig::auto_enabled`). Manually-triggered runs
|
|
3399
|
+
* via `BreezSdk::optimize_leaves` do not emit events — they return an
|
|
3400
|
+
* `OptimizationOutcome` instead.
|
|
3401
|
+
*/class AutoOptimization_ extends UniffiEnum{/**
|
|
2519
3402
|
* @private
|
|
2520
3403
|
* This field is private and should not be used, use `tag` instead.
|
|
2521
|
-
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.
|
|
3404
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.AutoOptimization;constructor(inner){super('SdkEvent','AutoOptimization');this.inner=Object.freeze(inner);}static new(inner){return new AutoOptimization_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.AutoOptimization;}}class LightningAddressChanged_ extends UniffiEnum{/**
|
|
2522
3405
|
* @private
|
|
2523
3406
|
* This field is private and should not be used, use `tag` instead.
|
|
2524
3407
|
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.LightningAddressChanged;constructor(inner){super('SdkEvent','LightningAddressChanged');this.inner=Object.freeze(inner);}static new(inner){return new LightningAddressChanged_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.LightningAddressChanged;}}class NewDeposits_ extends UniffiEnum{/**
|
|
2525
3408
|
* @private
|
|
2526
3409
|
* This field is private and should not be used, use `tag` instead.
|
|
2527
|
-
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.NewDeposits;constructor(inner){super('SdkEvent','NewDeposits');this.inner=Object.freeze(inner);}static new(inner){return new NewDeposits_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.NewDeposits;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkEvent';}return Object.freeze({instanceOf,Synced:Synced_,UnclaimedDeposits:UnclaimedDeposits_,ClaimedDeposits:ClaimedDeposits_,PaymentSucceeded:PaymentSucceeded_,PaymentPending:PaymentPending_,PaymentFailed:PaymentFailed_,
|
|
3410
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.NewDeposits;constructor(inner){super('SdkEvent','NewDeposits');this.inner=Object.freeze(inner);}static new(inner){return new NewDeposits_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.NewDeposits;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkEvent';}return Object.freeze({instanceOf,Synced:Synced_,UnclaimedDeposits:UnclaimedDeposits_,ClaimedDeposits:ClaimedDeposits_,PaymentSucceeded:PaymentSucceeded_,PaymentPending:PaymentPending_,PaymentFailed:PaymentFailed_,AutoOptimization:AutoOptimization_,LightningAddressChanged:LightningAddressChanged_,NewDeposits:NewDeposits_});})();/**
|
|
2528
3411
|
* Events emitted by the SDK
|
|
2529
3412
|
*/// FfiConverter for enum SdkEvent
|
|
2530
|
-
const FfiConverterTypeSdkEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkEvent.Synced();case 2:return new SdkEvent.UnclaimedDeposits({unclaimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 3:return new SdkEvent.ClaimedDeposits({claimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 4:return new SdkEvent.PaymentSucceeded({payment:FfiConverterTypePayment.read(from)});case 5:return new SdkEvent.PaymentPending({payment:FfiConverterTypePayment.read(from)});case 6:return new SdkEvent.PaymentFailed({payment:FfiConverterTypePayment.read(from)});case 7:return new SdkEvent.
|
|
2531
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkEvent_Tags.Synced:{return ordinalConverter.allocationSize(1);}case SdkEvent_Tags.UnclaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.unclaimedDeposits);return size;}case SdkEvent_Tags.ClaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.claimedDeposits);return size;}case SdkEvent_Tags.PaymentSucceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentPending:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.
|
|
3413
|
+
const FfiConverterTypeSdkEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkEvent.Synced();case 2:return new SdkEvent.UnclaimedDeposits({unclaimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 3:return new SdkEvent.ClaimedDeposits({claimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 4:return new SdkEvent.PaymentSucceeded({payment:FfiConverterTypePayment.read(from)});case 5:return new SdkEvent.PaymentPending({payment:FfiConverterTypePayment.read(from)});case 6:return new SdkEvent.PaymentFailed({payment:FfiConverterTypePayment.read(from)});case 7:return new SdkEvent.AutoOptimization({optimizationEvent:FfiConverterTypeAutoOptimizationEvent.read(from)});case 8:return new SdkEvent.LightningAddressChanged({lightningAddress:FfiConverterOptionalTypeLightningAddressInfo.read(from)});case 9:return new SdkEvent.NewDeposits({newDeposits:FfiConverterArrayTypeDepositInfo.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkEvent_Tags.Synced:{ordinalConverter.write(1,into);return;}case SdkEvent_Tags.UnclaimedDeposits:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.unclaimedDeposits,into);return;}case SdkEvent_Tags.ClaimedDeposits:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.claimedDeposits,into);return;}case SdkEvent_Tags.PaymentSucceeded:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentPending:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentFailed:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.AutoOptimization:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeAutoOptimizationEvent.write(inner.optimizationEvent,into);return;}case SdkEvent_Tags.LightningAddressChanged:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterOptionalTypeLightningAddressInfo.write(inner.lightningAddress,into);return;}case SdkEvent_Tags.NewDeposits:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.newDeposits,into);return;}default:// Throwing from here means that SdkEvent_Tags hasn't matched an ordinal.
|
|
3414
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkEvent_Tags.Synced:{return ordinalConverter.allocationSize(1);}case SdkEvent_Tags.UnclaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.unclaimedDeposits);return size;}case SdkEvent_Tags.ClaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.claimedDeposits);return size;}case SdkEvent_Tags.PaymentSucceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentPending:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.AutoOptimization:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeAutoOptimizationEvent.allocationSize(inner.optimizationEvent);return size;}case SdkEvent_Tags.LightningAddressChanged:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterOptionalTypeLightningAddressInfo.allocationSize(inner.lightningAddress);return size;}case SdkEvent_Tags.NewDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.newDeposits);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Seed
|
|
2532
3415
|
export let Seed_Tags=/*#__PURE__*/function(Seed_Tags){Seed_Tags["Mnemonic"]="Mnemonic";Seed_Tags["Entropy"]="Entropy";return Seed_Tags;}({});/**
|
|
2533
3416
|
* Represents the seed for wallet generation, either as a mnemonic phrase with an optional
|
|
2534
3417
|
* passphrase or as raw entropy bytes.
|
|
@@ -2548,7 +3431,7 @@ export let Seed_Tags=/*#__PURE__*/function(Seed_Tags){Seed_Tags["Mnemonic"]="Mne
|
|
|
2548
3431
|
*/// FfiConverter for enum Seed
|
|
2549
3432
|
const FfiConverterTypeSeed=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new Seed.Mnemonic({mnemonic:FfiConverterString.read(from),passphrase:FfiConverterOptionalString.read(from)});case 2:return new Seed.Entropy(FfiConverterArrayBuffer.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case Seed_Tags.Mnemonic:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.mnemonic,into);FfiConverterOptionalString.write(inner.passphrase,into);return;}case Seed_Tags.Entropy:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayBuffer.write(inner[0],into);return;}default:// Throwing from here means that Seed_Tags hasn't matched an ordinal.
|
|
2550
3433
|
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case Seed_Tags.Mnemonic:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.mnemonic);size+=FfiConverterOptionalString.allocationSize(inner.passphrase);return size;}case Seed_Tags.Entropy:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayBuffer.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SendPaymentMethod
|
|
2551
|
-
export let SendPaymentMethod_Tags=/*#__PURE__*/function(SendPaymentMethod_Tags){SendPaymentMethod_Tags["BitcoinAddress"]="BitcoinAddress";SendPaymentMethod_Tags["Bolt11Invoice"]="Bolt11Invoice";SendPaymentMethod_Tags["SparkAddress"]="SparkAddress";SendPaymentMethod_Tags["SparkInvoice"]="SparkInvoice";return SendPaymentMethod_Tags;}({});export const SendPaymentMethod=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
|
|
3434
|
+
export let SendPaymentMethod_Tags=/*#__PURE__*/function(SendPaymentMethod_Tags){SendPaymentMethod_Tags["BitcoinAddress"]="BitcoinAddress";SendPaymentMethod_Tags["Bolt11Invoice"]="Bolt11Invoice";SendPaymentMethod_Tags["SparkAddress"]="SparkAddress";SendPaymentMethod_Tags["SparkInvoice"]="SparkInvoice";SendPaymentMethod_Tags["CrossChainAddress"]="CrossChainAddress";return SendPaymentMethod_Tags;}({});export const SendPaymentMethod=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
|
|
2552
3435
|
* @private
|
|
2553
3436
|
* This field is private and should not be used, use `tag` instead.
|
|
2554
3437
|
*/[uniffiTypeNameSymbol]='SendPaymentMethod';tag=SendPaymentMethod_Tags.BitcoinAddress;constructor(inner){super('SendPaymentMethod','BitcoinAddress');this.inner=Object.freeze(inner);}static new(inner){return new BitcoinAddress_(inner);}static instanceOf(obj){return obj.tag===SendPaymentMethod_Tags.BitcoinAddress;}}class Bolt11Invoice_ extends UniffiEnum{/**
|
|
@@ -2560,9 +3443,14 @@ export let SendPaymentMethod_Tags=/*#__PURE__*/function(SendPaymentMethod_Tags){
|
|
|
2560
3443
|
*/[uniffiTypeNameSymbol]='SendPaymentMethod';tag=SendPaymentMethod_Tags.SparkAddress;constructor(inner){super('SendPaymentMethod','SparkAddress');this.inner=Object.freeze(inner);}static new(inner){return new SparkAddress_(inner);}static instanceOf(obj){return obj.tag===SendPaymentMethod_Tags.SparkAddress;}}class SparkInvoice_ extends UniffiEnum{/**
|
|
2561
3444
|
* @private
|
|
2562
3445
|
* This field is private and should not be used, use `tag` instead.
|
|
2563
|
-
*/[uniffiTypeNameSymbol]='SendPaymentMethod';tag=SendPaymentMethod_Tags.SparkInvoice;constructor(inner){super('SendPaymentMethod','SparkInvoice');this.inner=Object.freeze(inner);}static new(inner){return new SparkInvoice_(inner);}static instanceOf(obj){return obj.tag===SendPaymentMethod_Tags.SparkInvoice;}}
|
|
2564
|
-
|
|
2565
|
-
|
|
3446
|
+
*/[uniffiTypeNameSymbol]='SendPaymentMethod';tag=SendPaymentMethod_Tags.SparkInvoice;constructor(inner){super('SendPaymentMethod','SparkInvoice');this.inner=Object.freeze(inner);}static new(inner){return new SparkInvoice_(inner);}static instanceOf(obj){return obj.tag===SendPaymentMethod_Tags.SparkInvoice;}}/**
|
|
3447
|
+
* A cross-chain send via a bridge/swap provider.
|
|
3448
|
+
*/class CrossChainAddress_ extends UniffiEnum{/**
|
|
3449
|
+
* @private
|
|
3450
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3451
|
+
*/[uniffiTypeNameSymbol]='SendPaymentMethod';tag=SendPaymentMethod_Tags.CrossChainAddress;constructor(inner){super('SendPaymentMethod','CrossChainAddress');this.inner=Object.freeze(inner);}static new(inner){return new CrossChainAddress_(inner);}static instanceOf(obj){return obj.tag===SendPaymentMethod_Tags.CrossChainAddress;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SendPaymentMethod';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_,CrossChainAddress:CrossChainAddress_});})();// FfiConverter for enum SendPaymentMethod
|
|
3452
|
+
const FfiConverterTypeSendPaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SendPaymentMethod.BitcoinAddress({address:FfiConverterTypeBitcoinAddressDetails.read(from),feeQuote:FfiConverterTypeSendOnchainFeeQuote.read(from)});case 2:return new SendPaymentMethod.Bolt11Invoice({invoiceDetails:FfiConverterTypeBolt11InvoiceDetails.read(from),sparkTransferFeeSats:FfiConverterOptionalUInt64.read(from),lightningFeeSats:FfiConverterUInt64.read(from)});case 3:return new SendPaymentMethod.SparkAddress({address:FfiConverterString.read(from),fee:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)});case 4:return new SendPaymentMethod.SparkInvoice({sparkInvoiceDetails:FfiConverterTypeSparkInvoiceDetails.read(from),fee:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)});case 5:return new SendPaymentMethod.CrossChainAddress({route:FfiConverterTypeCrossChainRoutePair.read(from),recipientAddress:FfiConverterString.read(from),amountIn:FfiConverterTypeu128.read(from),assetAmountIn:FfiConverterTypeu128.read(from),estimatedOut:FfiConverterTypeu128.read(from),feeAmount:FfiConverterTypeu128.read(from),serviceFeeAmount:FfiConverterTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),sourceTransferFeeSats:FfiConverterUInt64.read(from),feeMode:FfiConverterTypeCrossChainFeeMode.read(from),expiresAt:FfiConverterString.read(from),providerContext:FfiConverterTypeCrossChainProviderContext.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SendPaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeBitcoinAddressDetails.write(inner.address,into);FfiConverterTypeSendOnchainFeeQuote.write(inner.feeQuote,into);return;}case SendPaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeBolt11InvoiceDetails.write(inner.invoiceDetails,into);FfiConverterOptionalUInt64.write(inner.sparkTransferFeeSats,into);FfiConverterUInt64.write(inner.lightningFeeSats,into);return;}case SendPaymentMethod_Tags.SparkAddress:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.address,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}case SendPaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner.sparkInvoiceDetails,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}case SendPaymentMethod_Tags.CrossChainAddress:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypeCrossChainRoutePair.write(inner.route,into);FfiConverterString.write(inner.recipientAddress,into);FfiConverterTypeu128.write(inner.amountIn,into);FfiConverterTypeu128.write(inner.assetAmountIn,into);FfiConverterTypeu128.write(inner.estimatedOut,into);FfiConverterTypeu128.write(inner.feeAmount,into);FfiConverterTypeu128.write(inner.serviceFeeAmount,into);FfiConverterOptionalString.write(inner.serviceFeeAsset,into);FfiConverterUInt64.write(inner.sourceTransferFeeSats,into);FfiConverterTypeCrossChainFeeMode.write(inner.feeMode,into);FfiConverterString.write(inner.expiresAt,into);FfiConverterTypeCrossChainProviderContext.write(inner.providerContext,into);return;}default:// Throwing from here means that SendPaymentMethod_Tags hasn't matched an ordinal.
|
|
3453
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SendPaymentMethod_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner.address);size+=FfiConverterTypeSendOnchainFeeQuote.allocationSize(inner.feeQuote);return size;}case SendPaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalUInt64.allocationSize(inner.sparkTransferFeeSats);size+=FfiConverterUInt64.allocationSize(inner.lightningFeeSats);return size;}case SendPaymentMethod_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}case SendPaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner.sparkInvoiceDetails);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}case SendPaymentMethod_Tags.CrossChainAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeCrossChainRoutePair.allocationSize(inner.route);size+=FfiConverterString.allocationSize(inner.recipientAddress);size+=FfiConverterTypeu128.allocationSize(inner.amountIn);size+=FfiConverterTypeu128.allocationSize(inner.assetAmountIn);size+=FfiConverterTypeu128.allocationSize(inner.estimatedOut);size+=FfiConverterTypeu128.allocationSize(inner.feeAmount);size+=FfiConverterTypeu128.allocationSize(inner.serviceFeeAmount);size+=FfiConverterOptionalString.allocationSize(inner.serviceFeeAsset);size+=FfiConverterUInt64.allocationSize(inner.sourceTransferFeeSats);size+=FfiConverterTypeCrossChainFeeMode.allocationSize(inner.feeMode);size+=FfiConverterString.allocationSize(inner.expiresAt);size+=FfiConverterTypeCrossChainProviderContext.allocationSize(inner.providerContext);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SendPaymentOptions
|
|
2566
3454
|
export let SendPaymentOptions_Tags=/*#__PURE__*/function(SendPaymentOptions_Tags){SendPaymentOptions_Tags["BitcoinAddress"]="BitcoinAddress";SendPaymentOptions_Tags["Bolt11Invoice"]="Bolt11Invoice";SendPaymentOptions_Tags["SparkAddress"]="SparkAddress";return SendPaymentOptions_Tags;}({});export const SendPaymentOptions=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
|
|
2567
3455
|
* @private
|
|
2568
3456
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -2620,17 +3508,17 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
2620
3508
|
* Service status is unknown.
|
|
2621
3509
|
*/ServiceStatus[ServiceStatus["Unknown"]=3]="Unknown";/**
|
|
2622
3510
|
* Service is experiencing a major outage.
|
|
2623
|
-
*/ServiceStatus[ServiceStatus["Major"]=4]="Major";return ServiceStatus;}({});const FfiConverterTypeServiceStatus=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ServiceStatus.Operational;case 2:return ServiceStatus.Degraded;case 3:return ServiceStatus.Partial;case 4:return ServiceStatus.Unknown;case 5:return ServiceStatus.Major;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ServiceStatus.Operational:return ordinalConverter.write(1,into);case ServiceStatus.Degraded:return ordinalConverter.write(2,into);case ServiceStatus.Partial:return ordinalConverter.write(3,into);case ServiceStatus.Unknown:return ordinalConverter.write(4,into);case ServiceStatus.Major:return ordinalConverter.write(5,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type:
|
|
2624
|
-
// Enum:
|
|
2625
|
-
export let
|
|
3511
|
+
*/ServiceStatus[ServiceStatus["Major"]=4]="Major";return ServiceStatus;}({});const FfiConverterTypeServiceStatus=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ServiceStatus.Operational;case 2:return ServiceStatus.Degraded;case 3:return ServiceStatus.Partial;case 4:return ServiceStatus.Unknown;case 5:return ServiceStatus.Major;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ServiceStatus.Operational:return ordinalConverter.write(1,into);case ServiceStatus.Degraded:return ordinalConverter.write(2,into);case ServiceStatus.Partial:return ordinalConverter.write(3,into);case ServiceStatus.Unknown:return ordinalConverter.write(4,into);case ServiceStatus.Major:return ordinalConverter.write(5,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type: SessionStoreError
|
|
3512
|
+
// Enum: SessionStoreError
|
|
3513
|
+
export let SessionStoreError_Tags=/*#__PURE__*/function(SessionStoreError_Tags){SessionStoreError_Tags["NotFound"]="NotFound";SessionStoreError_Tags["Generic"]="Generic";return SessionStoreError_Tags;}({});export const SessionStoreError=(()=>{class NotFound_ extends UniffiError{/**
|
|
2626
3514
|
* @private
|
|
2627
3515
|
* This field is private and should not be used, use `tag` instead.
|
|
2628
|
-
*/[uniffiTypeNameSymbol]='
|
|
3516
|
+
*/[uniffiTypeNameSymbol]='SessionStoreError';tag=SessionStoreError_Tags.NotFound;constructor(){super('SessionStoreError','NotFound');}static new(){return new NotFound_();}static instanceOf(obj){return obj.tag===SessionStoreError_Tags.NotFound;}static hasInner(obj){return false;}}class Generic_ extends UniffiError{/**
|
|
2629
3517
|
* @private
|
|
2630
3518
|
* This field is private and should not be used, use `tag` instead.
|
|
2631
|
-
*/[uniffiTypeNameSymbol]='
|
|
2632
|
-
const
|
|
2633
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case
|
|
3519
|
+
*/[uniffiTypeNameSymbol]='SessionStoreError';tag=SessionStoreError_Tags.Generic;constructor(v0){super('SessionStoreError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===SessionStoreError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SessionStoreError';}return Object.freeze({instanceOf,NotFound:NotFound_,Generic:Generic_});})();// FfiConverter for enum SessionStoreError
|
|
3520
|
+
const FfiConverterTypeSessionStoreError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SessionStoreError.NotFound();case 2:return new SessionStoreError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SessionStoreError_Tags.NotFound:{ordinalConverter.write(1,into);return;}case SessionStoreError_Tags.Generic:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SessionStoreError_Tags hasn't matched an ordinal.
|
|
3521
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SessionStoreError_Tags.NotFound:{return ordinalConverter.allocationSize(1);}case SessionStoreError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: SignerError
|
|
2634
3522
|
// Enum: SignerError
|
|
2635
3523
|
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;}({});/**
|
|
2636
3524
|
* Error type for signer operations
|
|
@@ -2659,7 +3547,24 @@ export let SignerError_Tags=/*#__PURE__*/function(SignerError_Tags){SignerError_
|
|
|
2659
3547
|
* Error type for signer operations
|
|
2660
3548
|
*/// FfiConverter for enum SignerError
|
|
2661
3549
|
const FfiConverterTypeSignerError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SignerError.KeyDerivation(FfiConverterString.read(from));case 2:return new SignerError.Signing(FfiConverterString.read(from));case 3:return new SignerError.Encryption(FfiConverterString.read(from));case 4:return new SignerError.Decryption(FfiConverterString.read(from));case 5:return new SignerError.Frost(FfiConverterString.read(from));case 6:return new SignerError.InvalidInput(FfiConverterString.read(from));case 7:return new SignerError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SignerError_Tags.KeyDerivation:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Signing:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Encryption:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Decryption:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Frost:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.InvalidInput:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Generic:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SignerError_Tags hasn't matched an ordinal.
|
|
2662
|
-
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();})()
|
|
3550
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SignerError_Tags.KeyDerivation:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Signing:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Encryption:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Decryption:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Frost:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.InvalidInput:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SourceAsset
|
|
3551
|
+
export let SourceAsset_Tags=/*#__PURE__*/function(SourceAsset_Tags){SourceAsset_Tags["Bitcoin"]="Bitcoin";SourceAsset_Tags["Token"]="Token";return SourceAsset_Tags;}({});/**
|
|
3552
|
+
* The source asset a cross-chain route accepts as input on the Spark side.
|
|
3553
|
+
*/export const SourceAsset=(()=>{/**
|
|
3554
|
+
* Native BTC (sats).
|
|
3555
|
+
*/class Bitcoin_ extends UniffiEnum{/**
|
|
3556
|
+
* @private
|
|
3557
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3558
|
+
*/[uniffiTypeNameSymbol]='SourceAsset';tag=SourceAsset_Tags.Bitcoin;constructor(){super('SourceAsset','Bitcoin');}static new(){return new Bitcoin_();}static instanceOf(obj){return obj.tag===SourceAsset_Tags.Bitcoin;}}/**
|
|
3559
|
+
* A Spark token, identified by its bech32m `token_identifier` (e.g. `btkn1...`).
|
|
3560
|
+
*/class Token_ extends UniffiEnum{/**
|
|
3561
|
+
* @private
|
|
3562
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3563
|
+
*/[uniffiTypeNameSymbol]='SourceAsset';tag=SourceAsset_Tags.Token;constructor(inner){super('SourceAsset','Token');this.inner=Object.freeze(inner);}static new(inner){return new Token_(inner);}static instanceOf(obj){return obj.tag===SourceAsset_Tags.Token;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SourceAsset';}return Object.freeze({instanceOf,Bitcoin:Bitcoin_,Token:Token_});})();/**
|
|
3564
|
+
* The source asset a cross-chain route accepts as input on the Spark side.
|
|
3565
|
+
*/// FfiConverter for enum SourceAsset
|
|
3566
|
+
const FfiConverterTypeSourceAsset=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SourceAsset.Bitcoin();case 2:return new SourceAsset.Token({tokenIdentifier:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SourceAsset_Tags.Bitcoin:{ordinalConverter.write(1,into);return;}case SourceAsset_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.tokenIdentifier,into);return;}default:// Throwing from here means that SourceAsset_Tags hasn't matched an ordinal.
|
|
3567
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SourceAsset_Tags.Bitcoin:{return ordinalConverter.allocationSize(1);}case SourceAsset_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.tokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let SparkHtlcStatus=/*#__PURE__*/function(SparkHtlcStatus){/**
|
|
2663
3568
|
* The HTLC is waiting for the preimage to be shared by the receiver
|
|
2664
3569
|
*/SparkHtlcStatus[SparkHtlcStatus["WaitingForPreimage"]=0]="WaitingForPreimage";/**
|
|
2665
3570
|
* The HTLC preimage has been shared and the transfer can be or has been claimed by the receiver
|
|
@@ -2725,8 +3630,8 @@ export let StoragePaymentDetailsFilter_Tags=/*#__PURE__*/function(StoragePayment
|
|
|
2725
3630
|
*/[uniffiTypeNameSymbol]='StoragePaymentDetailsFilter';tag=StoragePaymentDetailsFilter_Tags.Lightning;constructor(inner){super('StoragePaymentDetailsFilter','Lightning');this.inner=Object.freeze(inner);}static new(inner){return new Lightning_(inner);}static instanceOf(obj){return obj.tag===StoragePaymentDetailsFilter_Tags.Lightning;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='StoragePaymentDetailsFilter';}return Object.freeze({instanceOf,Spark:Spark_,Token:Token_,Lightning:Lightning_});})();/**
|
|
2726
3631
|
* Storage-internal variant of [`PaymentDetailsFilter`].
|
|
2727
3632
|
*/// FfiConverter for enum StoragePaymentDetailsFilter
|
|
2728
|
-
const FfiConverterTypeStoragePaymentDetailsFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new StoragePaymentDetailsFilter.Spark({htlcStatus:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),
|
|
2729
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case StoragePaymentDetailsFilter_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(inner.htlcStatus);size+=
|
|
3633
|
+
const FfiConverterTypeStoragePaymentDetailsFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new StoragePaymentDetailsFilter.Spark({htlcStatus:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),conversionFilter:FfiConverterOptionalTypeConversionFilter.read(from)});case 2:return new StoragePaymentDetailsFilter.Token({conversionFilter:FfiConverterOptionalTypeConversionFilter.read(from),txHash:FfiConverterOptionalString.read(from),txType:FfiConverterOptionalTypeTokenTransactionType.read(from)});case 3:return new StoragePaymentDetailsFilter.Lightning({htlcStatus:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),conversionFilter:FfiConverterOptionalTypeConversionFilter.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case StoragePaymentDetailsFilter_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalArrayTypeSparkHtlcStatus.write(inner.htlcStatus,into);FfiConverterOptionalTypeConversionFilter.write(inner.conversionFilter,into);return;}case StoragePaymentDetailsFilter_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalTypeConversionFilter.write(inner.conversionFilter,into);FfiConverterOptionalString.write(inner.txHash,into);FfiConverterOptionalTypeTokenTransactionType.write(inner.txType,into);return;}case StoragePaymentDetailsFilter_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalArrayTypeSparkHtlcStatus.write(inner.htlcStatus,into);FfiConverterOptionalTypeConversionFilter.write(inner.conversionFilter,into);return;}default:// Throwing from here means that StoragePaymentDetailsFilter_Tags hasn't matched an ordinal.
|
|
3634
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case StoragePaymentDetailsFilter_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(inner.htlcStatus);size+=FfiConverterOptionalTypeConversionFilter.allocationSize(inner.conversionFilter);return size;}case StoragePaymentDetailsFilter_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalTypeConversionFilter.allocationSize(inner.conversionFilter);size+=FfiConverterOptionalString.allocationSize(inner.txHash);size+=FfiConverterOptionalTypeTokenTransactionType.allocationSize(inner.txType);return size;}case StoragePaymentDetailsFilter_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(inner.htlcStatus);size+=FfiConverterOptionalTypeConversionFilter.allocationSize(inner.conversionFilter);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SuccessAction
|
|
2730
3635
|
export let SuccessAction_Tags=/*#__PURE__*/function(SuccessAction_Tags){SuccessAction_Tags["Aes"]="Aes";SuccessAction_Tags["Message"]="Message";SuccessAction_Tags["Url"]="Url";return SuccessAction_Tags;}({});/**
|
|
2731
3636
|
* Supported success action types
|
|
2732
3637
|
*
|
|
@@ -2859,6 +3764,11 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2859
3764
|
*/async addContact(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_add_contact(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeAddContactRequest.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:*/FfiConverterTypeContact.lift.bind(FfiConverterTypeContact),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2860
3765
|
* Registers a listener to receive SDK events
|
|
2861
3766
|
*
|
|
3767
|
+
* The SDK holds the listener until it is removed with
|
|
3768
|
+
* `remove_event_listener` or until `disconnect` unregisters all
|
|
3769
|
+
* listeners. A held listener that references the SDK instance keeps
|
|
3770
|
+
* that instance alive.
|
|
3771
|
+
*
|
|
2862
3772
|
* # Arguments
|
|
2863
3773
|
*
|
|
2864
3774
|
* * `listener` - An implementation of the `EventListener` trait
|
|
@@ -2867,6 +3777,12 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2867
3777
|
*
|
|
2868
3778
|
* A unique identifier for the listener, which can be used to remove it later
|
|
2869
3779
|
*/async addEventListener(listener,asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeEventListener.lower(listener));},/*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:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3780
|
+
* Authorize transferring the current owner's registered lightning address
|
|
3781
|
+
* username to `request.transferee_pubkey`. Returns a
|
|
3782
|
+
* [`TransferAuthorization`] to hand to the new owner, who
|
|
3783
|
+
* claims it via [`BreezSdk::claim_lightning_address_transfer`].
|
|
3784
|
+
* Errors if the current owner has no lightning address registered.
|
|
3785
|
+
*/async authorizeLightningAddressTransfer(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_authorize_lightning_address_transfer(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeAuthorizeTransferRequest.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:*/FfiConverterTypeTransferAuthorization.lift.bind(FfiConverterTypeTransferAuthorization),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2870
3786
|
* Initiates a Bitcoin purchase flow via an external provider.
|
|
2871
3787
|
*
|
|
2872
3788
|
* Returns a URL the user should open to complete the purchase.
|
|
@@ -2874,20 +3790,16 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2874
3790
|
*
|
|
2875
3791
|
* - [`BuyBitcoinRequest::Moonpay`]: Fiat-to-Bitcoin via on-chain deposit.
|
|
2876
3792
|
* - [`BuyBitcoinRequest::CashApp`]: Lightning invoice + `cash.app` deep link (mainnet only).
|
|
2877
|
-
*/async buyBitcoin(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_buy_bitcoin(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeBuyBitcoinRequest.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:*/FfiConverterTypeBuyBitcoinResponse.lift.bind(FfiConverterTypeBuyBitcoinResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2878
|
-
* Cancels the ongoing leaf optimization.
|
|
2879
|
-
*
|
|
2880
|
-
* This method cancels the ongoing optimization and waits for it to fully stop.
|
|
2881
|
-
* The current round will complete before stopping. This method blocks
|
|
2882
|
-
* until the optimization has fully stopped and leaves reserved for optimization
|
|
2883
|
-
* are available again.
|
|
2884
|
-
*
|
|
2885
|
-
* If no optimization is running, this method returns immediately.
|
|
2886
|
-
*/async cancelLeafOptimization(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_cancel_leaf_optimization(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 checkLightningAddressAvailable(req,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_check_lightning_address_available(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCheckLightningAddressRequest.lower(req));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3793
|
+
*/async buyBitcoin(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_buy_bitcoin(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeBuyBitcoinRequest.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:*/FfiConverterTypeBuyBitcoinResponse.lift.bind(FfiConverterTypeBuyBitcoinResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async checkLightningAddressAvailable(req,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_check_lightning_address_available(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCheckLightningAddressRequest.lower(req));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2887
3794
|
* Verifies a message signature against the provided public key. The message
|
|
2888
3795
|
* is SHA256 hashed before verification. The signature can be hex encoded
|
|
2889
3796
|
* in either DER or compact format.
|
|
2890
3797
|
*/async checkMessage(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_check_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCheckMessageRequest.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:*/FfiConverterTypeCheckMessageResponse.lift.bind(FfiConverterTypeCheckMessageResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimDeposit(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_claim_deposit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimDepositRequest.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:*/FfiConverterTypeClaimDepositResponse.lift.bind(FfiConverterTypeClaimDepositResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimHtlcPayment(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_claim_htlc_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimHtlcPaymentRequest.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:*/FfiConverterTypeClaimHtlcPaymentResponse.lift.bind(FfiConverterTypeClaimHtlcPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3798
|
+
* Claim a lightning address username handed over by its current owner,
|
|
3799
|
+
* using the [`TransferAuthorization`] from
|
|
3800
|
+
* [`BreezSdk::authorize_lightning_address_transfer`]. Completes the
|
|
3801
|
+
* takeover and returns the newly-owned address.
|
|
3802
|
+
*/async claimLightningAddressTransfer(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_claim_lightning_address_transfer(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimTransferRequest.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:*/FfiConverterTypeLightningAddressInfo.lift.bind(FfiConverterTypeLightningAddressInfo),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2891
3803
|
* Deletes a contact by its ID.
|
|
2892
3804
|
*
|
|
2893
3805
|
* # Arguments
|
|
@@ -2903,14 +3815,22 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2903
3815
|
* This method stops the background tasks started by the `start()` method.
|
|
2904
3816
|
* It should be called before your application terminates to ensure proper cleanup.
|
|
2905
3817
|
*
|
|
3818
|
+
* It also unregisters all event listeners, so listeners that reference
|
|
3819
|
+
* the SDK no longer keep it alive after this call.
|
|
3820
|
+
*
|
|
2906
3821
|
* # Returns
|
|
2907
3822
|
*
|
|
2908
3823
|
* Result containing either success or an `SdkError` if the background task couldn't be stopped
|
|
2909
3824
|
*/async disconnect(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async fetchConversionLimits(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_conversion_limits(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeFetchConversionLimitsRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeFetchConversionLimitsResponse.lift.bind(FfiConverterTypeFetchConversionLimitsResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3825
|
+
* Returns the available cross-chain routes.
|
|
3826
|
+
*
|
|
3827
|
+
* Use [`CrossChainRouteFilter::Send`] to get routes for sending from Spark
|
|
3828
|
+
* (filtered by the parsed recipient address), or
|
|
3829
|
+
* [`CrossChainRouteFilter::Receive`] to get routes for receiving into Spark
|
|
3830
|
+
* (optionally filtered by a source contract address).
|
|
3831
|
+
*/async getCrossChainRoutes(filter,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_cross_chain_routes(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCrossChainRouteFilter.lower(filter));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeCrossChainRoutePair.lift.bind(FfiConverterArrayTypeCrossChainRoutePair),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2910
3832
|
* Returns the balance of the wallet in satoshis
|
|
2911
|
-
*/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;}}/**
|
|
2912
|
-
* Returns the current optimization progress snapshot.
|
|
2913
|
-
*/getLeafOptimizationProgress(){return FfiConverterTypeOptimizationProgress.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_leaf_optimization_progress(uniffiTypeBreezSdkObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift));}async getLightningAddress(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_lightning_address(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeLightningAddressInfo.lift.bind(FfiConverterOptionalTypeLightningAddressInfo),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async getPayment(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeGetPaymentRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeGetPaymentResponse.lift.bind(FfiConverterTypeGetPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3833
|
+
*/async getInfo(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_info(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeGetInfoRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeGetInfoResponse.lift.bind(FfiConverterTypeGetInfoResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async getLightningAddress(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_lightning_address(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeLightningAddressInfo.lift.bind(FfiConverterOptionalTypeLightningAddressInfo),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async getPayment(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeGetPaymentRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeGetPaymentResponse.lift.bind(FfiConverterTypeGetPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2914
3834
|
* Returns an instance of the [`TokenIssuer`] for managing token issuance.
|
|
2915
3835
|
*/getTokenIssuer(){return FfiConverterTypeTokenIssuer.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_token_issuer(uniffiTypeBreezSdkObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
2916
3836
|
* Returns the metadata for the given token identifiers.
|
|
@@ -2990,7 +3910,25 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2990
3910
|
* Result containing either:
|
|
2991
3911
|
* * `LnurlWithdrawResponse` - The payment details if the withdraw request was successful
|
|
2992
3912
|
* * `SdkError` - If there was an error during the withdraw process
|
|
2993
|
-
*/async lnurlWithdraw(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_lnurl_withdraw(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeLnurlWithdrawRequest.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:*/FfiConverterTypeLnurlWithdrawResponse.lift.bind(FfiConverterTypeLnurlWithdrawResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
3913
|
+
*/async lnurlWithdraw(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_lnurl_withdraw(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeLnurlWithdrawRequest.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:*/FfiConverterTypeLnurlWithdrawResponse.lift.bind(FfiConverterTypeLnurlWithdrawResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3914
|
+
* Manually drives leaf optimization, blocking until the requested work
|
|
3915
|
+
* is done.
|
|
3916
|
+
*
|
|
3917
|
+
* With [`OptimizationMode::Full`] (the default) the call runs the entire
|
|
3918
|
+
* optimization in a single invocation. With
|
|
3919
|
+
* [`OptimizationMode::SingleRound`] it executes one round and returns —
|
|
3920
|
+
* the caller drives the loop by inspecting the
|
|
3921
|
+
* [`OptimizeLeavesResponse::outcome`] and calling again until
|
|
3922
|
+
* `InProgress` no longer appears.
|
|
3923
|
+
*
|
|
3924
|
+
* Returns an error if another optimization run (auto or manual) is
|
|
3925
|
+
* already in flight ([`SdkError::OptimizationAlreadyRunning`]), or if
|
|
3926
|
+
* the SDK preempted this run to free leaves for a payment
|
|
3927
|
+
* ([`SdkError::OptimizationCancelled`]).
|
|
3928
|
+
*
|
|
3929
|
+
* Manual runs do not emit events; events ([`SdkEvent::AutoOptimization`])
|
|
3930
|
+
* are reserved for the background auto-optimizer.
|
|
3931
|
+
*/async optimizeLeaves(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_optimize_leaves(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeOptimizeLeavesRequest.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:*/FfiConverterTypeOptimizeLeavesResponse.lift.bind(FfiConverterTypeOptimizeLeavesResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async parse(input,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_parse(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterString.lower(input));},/*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:*/FfiConverterTypeInputType.lift.bind(FfiConverterTypeInputType),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async prepareLnurlPay(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_prepare_lnurl_pay(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypePrepareLnurlPayRequest.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:*/FfiConverterTypePrepareLnurlPayResponse.lift.bind(FfiConverterTypePrepareLnurlPayResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async prepareSendPayment(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_prepare_send_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypePrepareSendPaymentRequest.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:*/FfiConverterTypePrepareSendPaymentResponse.lift.bind(FfiConverterTypePrepareSendPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async receivePayment(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_receive_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeReceivePaymentRequest.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:*/FfiConverterTypeReceivePaymentResponse.lift.bind(FfiConverterTypeReceivePaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2994
3932
|
* Get the recommended BTC fees based on the configured chain service.
|
|
2995
3933
|
*/async recommendedFees(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_recommended_fees(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeRecommendedFees.lift.bind(FfiConverterTypeRecommendedFees),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async refundDeposit(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_refund_deposit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeRefundDepositRequest.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:*/FfiConverterTypeRefundDepositResponse.lift.bind(FfiConverterTypeRefundDepositResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2996
3934
|
* Runs one pass of the pending-conversion refunder.
|
|
@@ -3031,12 +3969,6 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3031
3969
|
* hashed before signing. The returned signature will be hex encoded in
|
|
3032
3970
|
* DER format by default, or compact format if specified.
|
|
3033
3971
|
*/async signMessage(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_sign_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSignMessageRequest.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:*/FfiConverterTypeSignMessageResponse.lift.bind(FfiConverterTypeSignMessageResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3034
|
-
* Starts leaf optimization in the background.
|
|
3035
|
-
*
|
|
3036
|
-
* This method spawns the optimization work in a background task and returns
|
|
3037
|
-
* immediately. Progress is reported via events.
|
|
3038
|
-
* If optimization is already running, no new task will be started.
|
|
3039
|
-
*/async startLeafOptimization(asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(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_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3040
3972
|
* Synchronizes the wallet with the Spark network
|
|
3041
3973
|
*/async syncWallet(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_sync_wallet(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSyncWalletRequest.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:*/FfiConverterTypeSyncWalletResponse.lift.bind(FfiConverterTypeSyncWalletResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3042
3974
|
* Unregisters a previously registered webhook.
|
|
@@ -3088,12 +4020,8 @@ const FfiConverterTypeBreezSdk=new FfiConverterObject(uniffiTypeBreezSdkObjectFa
|
|
|
3088
4020
|
* - Spark-specific types as serialized representations
|
|
3089
4021
|
*
|
|
3090
4022
|
* Errors are returned as `SignerError` for FFI compatibility.
|
|
3091
|
-
*/export class
|
|
3092
|
-
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=
|
|
3093
|
-
* Returns the identity public key as 33 bytes (compressed secp256k1 key).
|
|
3094
|
-
*
|
|
3095
|
-
* See also: [JavaScript `getIdentityPublicKey`](https://docs.spark.money/wallets/spark-signer#get-identity-public-key)
|
|
3096
|
-
*/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));}/**
|
|
4023
|
+
*/export class ExternalBreezSignerImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='ExternalBreezSignerImpl';// No primary constructor declared for this class.
|
|
4024
|
+
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeExternalBreezSignerImplObjectFactory.bless(pointer);}/**
|
|
3097
4025
|
* Derives a public key for the given BIP32 derivation path.
|
|
3098
4026
|
*
|
|
3099
4027
|
* # Arguments
|
|
@@ -3103,7 +4031,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3103
4031
|
* The derived public key as 33 bytes, or a `SignerError`
|
|
3104
4032
|
*
|
|
3105
4033
|
* See also: [JavaScript `getPublicKeyFromDerivation`](https://docs.spark.money/wallets/spark-signer#get-public-key-from-derivation)
|
|
3106
|
-
*/async derivePublicKey(path,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().
|
|
4034
|
+
*/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_externalbreezsigner_derive_public_key(uniffiTypeExternalBreezSignerImplObjectFactory.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;}}/**
|
|
3107
4035
|
* Signs a message using ECDSA at the given derivation path.
|
|
3108
4036
|
*
|
|
3109
4037
|
* The message should be a 32-byte digest (typically a hash of the original data).
|
|
@@ -3114,7 +4042,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3114
4042
|
*
|
|
3115
4043
|
* # Returns
|
|
3116
4044
|
* 64-byte compact ECDSA signature, or a `SignerError`
|
|
3117
|
-
*/async signEcdsa(message,path,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().
|
|
4045
|
+
*/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_externalbreezsigner_sign_ecdsa(uniffiTypeExternalBreezSignerImplObjectFactory.clonePointer(this),FfiConverterTypeMessageBytes.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;}}/**
|
|
3118
4046
|
* Signs a message using recoverable ECDSA at the given derivation path.
|
|
3119
4047
|
*
|
|
3120
4048
|
* The message should be a 32-byte digest (typically a hash of the original data).
|
|
@@ -3125,7 +4053,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3125
4053
|
*
|
|
3126
4054
|
* # Returns
|
|
3127
4055
|
* 65 bytes: recovery ID (31 + `recovery_id`) + 64-byte signature, or a `SignerError`
|
|
3128
|
-
*/async signEcdsaRecoverable(message,path,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().
|
|
4056
|
+
*/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_externalbreezsigner_sign_ecdsa_recoverable(uniffiTypeExternalBreezSignerImplObjectFactory.clonePointer(this),FfiConverterTypeMessageBytes.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;}}/**
|
|
3129
4057
|
* Encrypts a message using ECIES at the given derivation path.
|
|
3130
4058
|
*
|
|
3131
4059
|
* # Arguments
|
|
@@ -3134,7 +4062,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3134
4062
|
*
|
|
3135
4063
|
* # Returns
|
|
3136
4064
|
* Encrypted data, or a `SignerError`
|
|
3137
|
-
*/async encryptEcies(message,path,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().
|
|
4065
|
+
*/async encryptEcies(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_externalbreezsigner_encrypt_ecies(uniffiTypeExternalBreezSignerImplObjectFactory.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;}}/**
|
|
3138
4066
|
* Decrypts a message using ECIES at the given derivation path.
|
|
3139
4067
|
*
|
|
3140
4068
|
* # Arguments
|
|
@@ -3145,7 +4073,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3145
4073
|
* Decrypted data, or a `SignerError`
|
|
3146
4074
|
*
|
|
3147
4075
|
* See also: [JavaScript `decryptEcies`](https://docs.spark.money/wallets/spark-signer#decrypt-ecies)
|
|
3148
|
-
*/async decryptEcies(message,path,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().
|
|
4076
|
+
*/async decryptEcies(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_externalbreezsigner_decrypt_ecies(uniffiTypeExternalBreezSignerImplObjectFactory.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;}}/**
|
|
3149
4077
|
* Signs a hash using Schnorr signature at the given derivation path.
|
|
3150
4078
|
*
|
|
3151
4079
|
* # Arguments
|
|
@@ -3154,7 +4082,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3154
4082
|
*
|
|
3155
4083
|
* # Returns
|
|
3156
4084
|
* 64-byte Schnorr signature, or a `SignerError`
|
|
3157
|
-
*/async signHashSchnorr(hash,path,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().
|
|
4085
|
+
*/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_externalbreezsigner_sign_hash_schnorr(uniffiTypeExternalBreezSignerImplObjectFactory.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;}}/**
|
|
3158
4086
|
* HMAC-SHA256 of a message at the given derivation path.
|
|
3159
4087
|
*
|
|
3160
4088
|
* # Arguments
|
|
@@ -3165,162 +4093,80 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3165
4093
|
* 32-byte HMAC-SHA256, or a `SignerError`
|
|
3166
4094
|
*
|
|
3167
4095
|
* See also: [JavaScript `htlcHMAC`](https://docs.spark.money/wallets/spark-signer#generate-htlc-hmac)
|
|
3168
|
-
*/async hmacSha256(message,path,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().
|
|
3169
|
-
* Generates Frost signing commitments for multi-party signing.
|
|
3170
|
-
*
|
|
3171
|
-
* # Returns
|
|
3172
|
-
* Frost commitments with nonces, or a `SignerError`
|
|
3173
|
-
*
|
|
3174
|
-
* See also: [JavaScript `getRandomSigningCommitment`](https://docs.spark.money/wallets/spark-signer#get-random-signing-commitment)
|
|
3175
|
-
*/async generateRandomSigningCommitment(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_signing_commitment(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;}}/**
|
|
3176
|
-
* Gets the public key for a specific tree node in the Spark wallet.
|
|
3177
|
-
*
|
|
3178
|
-
* # Arguments
|
|
3179
|
-
* * `id` - The tree node identifier
|
|
3180
|
-
*
|
|
3181
|
-
* # Returns
|
|
3182
|
-
* The public key for the node, or a `SignerError`
|
|
3183
|
-
*/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;}}/**
|
|
3184
|
-
* Generates a random secret that is encrypted and known only to the signer.
|
|
3185
|
-
*
|
|
3186
|
-
* This method creates a new random secret and returns it in encrypted form.
|
|
3187
|
-
* The plaintext secret never leaves the signer boundary, providing a secure way
|
|
3188
|
-
* to create secrets that can be referenced in subsequent operations without
|
|
3189
|
-
* exposing them.
|
|
3190
|
-
*
|
|
3191
|
-
* This is conceptually similar to Spark's key derivation system where secrets
|
|
3192
|
-
* are represented by opaque references (like tree node IDs or Random) rather than raw values.
|
|
3193
|
-
* The encrypted secret can be passed to other signer methods that need to operate
|
|
3194
|
-
* on it, while keeping the actual secret material protected within the signer.
|
|
3195
|
-
*
|
|
3196
|
-
* # Returns
|
|
3197
|
-
* An encrypted secret that can be used in subsequent signer operations,
|
|
3198
|
-
* or a `SignerError` if generation fails.
|
|
3199
|
-
*
|
|
3200
|
-
* See also: [Key Derivation System](https://docs.spark.money/wallets/spark-signer#the-keyderivation-system)
|
|
3201
|
-
*/async generateRandomSecret(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_secret(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:*/FfiConverterTypeExternalEncryptedSecret.lift.bind(FfiConverterTypeExternalEncryptedSecret),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3202
|
-
* Gets an encrypted static deposit secret by index.
|
|
3203
|
-
*
|
|
3204
|
-
* # Arguments
|
|
3205
|
-
* * `index` - The index of the static deposit secret
|
|
3206
|
-
*
|
|
3207
|
-
* # Returns
|
|
3208
|
-
* The encrypted secret, or a `SignerError`
|
|
3209
|
-
*
|
|
3210
|
-
* This is the encrypted version of: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
|
|
3211
|
-
*/async staticDepositSecretEncrypted(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_static_deposit_secret_encrypted(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:*/FfiConverterTypeExternalSecretSource.lift.bind(FfiConverterTypeExternalSecretSource),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3212
|
-
* Gets a static deposit secret by index.
|
|
3213
|
-
*
|
|
3214
|
-
* # Arguments
|
|
3215
|
-
* * `index` - The index of the static deposit secret
|
|
3216
|
-
*
|
|
3217
|
-
* # Returns
|
|
3218
|
-
* The 32-byte secret, or a `SignerError`
|
|
3219
|
-
*
|
|
3220
|
-
* See also: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
|
|
3221
|
-
*/async staticDepositSecret(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_static_deposit_secret(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:*/FfiConverterTypeSecretBytes.lift.bind(FfiConverterTypeSecretBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3222
|
-
* Gets a static deposit signing public key by index.
|
|
3223
|
-
*
|
|
3224
|
-
* # Arguments
|
|
3225
|
-
* * `index` - The index of the static deposit public signing key
|
|
3226
|
-
*
|
|
3227
|
-
* # Returns
|
|
3228
|
-
* The 33-byte public key, or a `SignerError`
|
|
3229
|
-
*
|
|
3230
|
-
* See also: [JavaScript `getStaticDepositSigningKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-signing-key)
|
|
3231
|
-
*/async staticDepositSigningKey(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_static_deposit_signing_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;}}/**
|
|
3232
|
-
* Subtracts one secret from another.
|
|
3233
|
-
*
|
|
3234
|
-
* This is a lower-level primitive used as part of key tweaking operations.
|
|
3235
|
-
*
|
|
3236
|
-
* # Arguments
|
|
3237
|
-
* * `signing_key` - The first secret
|
|
3238
|
-
* * `new_signing_key` - The second secret to subtract
|
|
3239
|
-
*
|
|
3240
|
-
* # Returns
|
|
3241
|
-
* The resulting secret, or a `SignerError`
|
|
3242
|
-
*
|
|
3243
|
-
* See also: [JavaScript `subtractSplitAndEncrypt`](https://docs.spark.money/wallets/spark-signer#subtract,-split,-and-encrypt)
|
|
3244
|
-
* (this method provides the subtraction step of that higher-level operation)
|
|
3245
|
-
*/async subtractSecrets(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_secrets(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalSecretSource.lower(signingKey),FfiConverterTypeExternalSecretSource.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:*/FfiConverterTypeExternalSecretSource.lift.bind(FfiConverterTypeExternalSecretSource),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3246
|
-
* Splits a secret with proofs using Shamir's Secret Sharing.
|
|
3247
|
-
*
|
|
3248
|
-
* # Arguments
|
|
3249
|
-
* * `secret` - The secret to split
|
|
3250
|
-
* * `threshold` - Minimum number of shares needed to reconstruct
|
|
3251
|
-
* * `num_shares` - Total number of shares to create
|
|
3252
|
-
*
|
|
3253
|
-
* # Returns
|
|
3254
|
-
* Vector of verifiable secret shares, or a `SignerError`
|
|
3255
|
-
*
|
|
3256
|
-
* See also: [JavaScript `splitSecretWithProofs`](https://docs.spark.money/wallets/spark-signer#split-secret-with-proofs)
|
|
3257
|
-
*/async splitSecretWithProofs(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_with_proofs(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;}}/**
|
|
3258
|
-
* Encrypts a secret for a specific receiver's public key.
|
|
3259
|
-
*
|
|
3260
|
-
* # Arguments
|
|
3261
|
-
* * `encrypted_secret` - The encrypted secret to re-encrypt
|
|
3262
|
-
* * `receiver_public_key` - The receiver's 33-byte public key
|
|
3263
|
-
*
|
|
3264
|
-
* # Returns
|
|
3265
|
-
* Encrypted data for the receiver, or a `SignerError`
|
|
3266
|
-
*/async encryptSecretForReceiver(encryptedSecret,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_secret_for_receiver(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalEncryptedSecret.lower(encryptedSecret),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;}}/**
|
|
3267
|
-
* Gets the public key from a secret.
|
|
3268
|
-
*
|
|
3269
|
-
* # Arguments
|
|
3270
|
-
* * `secret` - The secret
|
|
3271
|
-
*
|
|
3272
|
-
* # Returns
|
|
3273
|
-
* The corresponding 33-byte public key, or a `SignerError`
|
|
3274
|
-
*
|
|
3275
|
-
* See also: [JavaScript `getPublicKeyFromDerivation`](https://docs.spark.money/wallets/spark-signer#get-public-key-from-derivation)
|
|
3276
|
-
*/async publicKeyFromSecret(secret,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_public_key_from_secret(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalSecretSource.lower(secret));},/*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;}}/**
|
|
3277
|
-
* Signs using Frost protocol (multi-party signing).
|
|
3278
|
-
*
|
|
3279
|
-
* # Arguments
|
|
3280
|
-
* * `request` - The Frost signing request
|
|
3281
|
-
*
|
|
3282
|
-
* # Returns
|
|
3283
|
-
* A signature share, or a `SignerError`
|
|
3284
|
-
*
|
|
3285
|
-
* See also: [JavaScript `signFrost`](https://docs.spark.money/wallets/spark-signer#frost-signing)
|
|
3286
|
-
*/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;}}/**
|
|
3287
|
-
* Aggregates Frost signature shares into a final signature.
|
|
3288
|
-
*
|
|
3289
|
-
* # Arguments
|
|
3290
|
-
* * `request` - The Frost aggregation request
|
|
3291
|
-
*
|
|
3292
|
-
* # Returns
|
|
3293
|
-
* The aggregated Frost signature, or a `SignerError`
|
|
3294
|
-
*
|
|
3295
|
-
* See also: [JavaScript `aggregateFrost`](https://docs.spark.money/wallets/spark-signer#aggregate-frost-signatures)
|
|
3296
|
-
*/async aggregateFrost(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(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;}}/**
|
|
4096
|
+
*/async hmacSha256(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_externalbreezsigner_hmac_sha256(uniffiTypeExternalBreezSignerImplObjectFactory.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:*/FfiConverterTypeHashedMessageBytes.lift.bind(FfiConverterTypeHashedMessageBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3297
4097
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3298
|
-
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=
|
|
3299
|
-
const
|
|
4098
|
+
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeExternalBreezSignerImplObjectFactory.pointer(this);uniffiTypeExternalBreezSignerImplObjectFactory.freePointer(pointer);uniffiTypeExternalBreezSignerImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeExternalBreezSignerImplObjectFactory.isConcreteType(obj);}}const uniffiTypeExternalBreezSignerImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(ExternalBreezSignerImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='ExternalBreezSignerImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_externalbreezsigner_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_externalbreezsigner(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_externalbreezsigner(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='ExternalBreezSignerImpl';}};})();// FfiConverter for ExternalBreezSigner
|
|
4099
|
+
const FfiConverterTypeExternalBreezSigner=new FfiConverterObjectWithCallbacks(uniffiTypeExternalBreezSignerImplObjectFactory);// Add a vtavble for the callbacks that go in ExternalBreezSigner.
|
|
3300
4100
|
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
3301
|
-
const
|
|
4101
|
+
const uniffiCallbackInterfaceExternalBreezSigner={// Create the VTable using a series of closures.
|
|
3302
4102
|
// ts automatically converts these into C callback functions.
|
|
3303
|
-
vtable:{
|
|
3304
|
-
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signEcdsa:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=
|
|
3305
|
-
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signEcdsaRecoverable:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=
|
|
3306
|
-
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},encryptEcies:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=
|
|
3307
|
-
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},decryptEcies:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=
|
|
3308
|
-
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signHashSchnorr:(uniffiHandle,hash,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=
|
|
3309
|
-
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},hmacSha256:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=
|
|
3310
|
-
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
4103
|
+
vtable:{derivePublicKey:(uniffiHandle,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalBreezSigner.lift(uniffiHandle);return await jsCallback.derivePublicKey(FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4104
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signEcdsa:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalBreezSigner.lift(uniffiHandle);return await jsCallback.signEcdsa(FfiConverterTypeMessageBytes.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeEcdsaSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4105
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signEcdsaRecoverable:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalBreezSigner.lift(uniffiHandle);return await jsCallback.signEcdsaRecoverable(FfiConverterTypeMessageBytes.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRecoverableEcdsaSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4106
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},encryptEcies:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalBreezSigner.lift(uniffiHandle);return await jsCallback.encryptEcies(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4107
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},decryptEcies:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalBreezSigner.lift(uniffiHandle);return await jsCallback.decryptEcies(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4108
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signHashSchnorr:(uniffiHandle,hash,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalBreezSigner.lift(uniffiHandle);return await jsCallback.signHashSchnorr(FfiConverterArrayBuffer.lift(hash),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeSchnorrSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4109
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},hmacSha256:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalBreezSigner.lift(uniffiHandle);return await jsCallback.hmacSha256(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeHashedMessageBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4110
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// ExternalBreezSigner: this will throw a stale handle error if the handle isn't found.
|
|
4111
|
+
FfiConverterTypeExternalBreezSigner.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalbreezsigner(uniffiCallbackInterfaceExternalBreezSigner.vtable);}};/**
|
|
4112
|
+
* FFI-compatible mirror of `spark_wallet::SparkSigner`.
|
|
4113
|
+
*//**
|
|
4114
|
+
* FFI-compatible mirror of `spark_wallet::SparkSigner`.
|
|
4115
|
+
*/export class ExternalSparkSignerImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='ExternalSparkSignerImpl';// No primary constructor declared for this class.
|
|
4116
|
+
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeExternalSparkSignerImplObjectFactory.bless(pointer);}/**
|
|
4117
|
+
* The wallet identity public key (33 bytes compressed).
|
|
4118
|
+
*/async getIdentityPublicKey(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_externalsparksigner_get_identity_public_key(uniffiTypeExternalSparkSignerImplObjectFactory.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:*/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;}}/**
|
|
4119
|
+
* The signing public key for a tree leaf.
|
|
4120
|
+
*/async getPublicKeyForLeaf(leafId,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_externalsparksigner_get_public_key_for_leaf(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalTreeNodeId.lower(leafId));},/*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;}}/**
|
|
4121
|
+
* The static-deposit signing public key at `index`.
|
|
4122
|
+
*/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_externalsparksigner_get_static_deposit_public_key(uniffiTypeExternalSparkSignerImplObjectFactory.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;}}/**
|
|
4123
|
+
* ECDSA-sign a server authentication challenge with the identity key.
|
|
4124
|
+
*/async signAuthenticationChallenge(challenge,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_externalsparksigner_sign_authentication_challenge(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterArrayBuffer.lower(challenge));},/*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;}}/**
|
|
4125
|
+
* ECDSA-sign an arbitrary user message with the identity key.
|
|
4126
|
+
*/async signMessage(message,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_externalsparksigner_sign_message(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterArrayBuffer.lower(message));},/*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;}}/**
|
|
4127
|
+
* Produce FROST shares for a batch of jobs.
|
|
4128
|
+
*/async signFrost(jobs,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_externalsparksigner_sign_frost(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterArrayTypeExternalFrostJob.lower(jobs));},/*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:*/FfiConverterArrayTypeExternalFrostShareResult.lift.bind(FfiConverterArrayTypeExternalFrostShareResult),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4129
|
+
* Prepare an outbound transfer (key-tweak + packages + payload signature).
|
|
4130
|
+
*/async prepareTransfer(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_externalsparksigner_prepare_transfer(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalPrepareTransferRequest.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:*/FfiConverterTypeExternalPreparedTransfer.lift.bind(FfiConverterTypeExternalPreparedTransfer),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4131
|
+
* Claim an inbound transfer (key-tweak step).
|
|
4132
|
+
*/async prepareClaim(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_externalsparksigner_prepare_claim(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalPrepareClaimRequest.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:*/FfiConverterTypeExternalPreparedClaim.lift.bind(FfiConverterTypeExternalPreparedClaim),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4133
|
+
* Prepare a Lightning receive (in-enclave preimage + Feldman split).
|
|
4134
|
+
*/async prepareLightningReceive(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_externalsparksigner_prepare_lightning_receive(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalPrepareLightningReceiveRequest.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:*/FfiConverterTypeExternalPreparedLightningReceive.lift.bind(FfiConverterTypeExternalPreparedLightningReceive),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4135
|
+
* Prepare a static deposit (export secret to SSP + FROST-sign tree txs).
|
|
4136
|
+
*/async prepareStaticDeposit(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_externalsparksigner_prepare_static_deposit(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalPrepareStaticDepositRequest.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:*/FfiConverterTypeExternalPreparedStaticDeposit.lift.bind(FfiConverterTypeExternalPreparedStaticDeposit),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4137
|
+
* Begin a static-deposit refund (user-commits-first).
|
|
4138
|
+
*/async startStaticDepositRefund(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_externalsparksigner_start_static_deposit_refund(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalStartStaticDepositRefundRequest.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:*/FfiConverterTypeExternalStartedStaticDepositRefund.lift.bind(FfiConverterTypeExternalStartedStaticDepositRefund),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4139
|
+
* Finish a static-deposit refund (aggregate into the final signature).
|
|
4140
|
+
*/async signStaticDepositRefund(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_externalsparksigner_sign_static_deposit_refund(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalSignStaticDepositRefundRequest.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;}}/**
|
|
4141
|
+
* Schnorr-sign a Spark invoice (sats or tokens) with the identity key.
|
|
4142
|
+
*/async signSparkInvoice(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_externalsparksigner_sign_spark_invoice(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalSignSparkInvoiceRequest.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:*/FfiConverterTypeExternalSignedSparkInvoice.lift.bind(FfiConverterTypeExternalSignedSparkInvoice),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4143
|
+
* Schnorr-sign a token-transaction digest with the identity key.
|
|
4144
|
+
*/async prepareTokenTransaction(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_externalsparksigner_prepare_token_transaction(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalPrepareTokenTransactionRequest.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:*/FfiConverterTypeExternalPreparedTokenTransaction.lift.bind(FfiConverterTypeExternalPreparedTokenTransaction),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4145
|
+
* Prepare a static-deposit claim (export secret in the clear + sign).
|
|
4146
|
+
*/async prepareStaticDepositClaim(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_externalsparksigner_prepare_static_deposit_claim(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalPrepareStaticDepositClaimRequest.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:*/FfiConverterTypeExternalPreparedStaticDepositClaim.lift.bind(FfiConverterTypeExternalPreparedStaticDepositClaim),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4147
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4148
|
+
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeExternalSparkSignerImplObjectFactory.pointer(this);uniffiTypeExternalSparkSignerImplObjectFactory.freePointer(pointer);uniffiTypeExternalSparkSignerImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeExternalSparkSignerImplObjectFactory.isConcreteType(obj);}}const uniffiTypeExternalSparkSignerImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(ExternalSparkSignerImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='ExternalSparkSignerImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_externalsparksigner_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_externalsparksigner(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_externalsparksigner(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='ExternalSparkSignerImpl';}};})();// FfiConverter for ExternalSparkSigner
|
|
4149
|
+
const FfiConverterTypeExternalSparkSigner=new FfiConverterObjectWithCallbacks(uniffiTypeExternalSparkSignerImplObjectFactory);// Add a vtavble for the callbacks that go in ExternalSparkSigner.
|
|
4150
|
+
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
4151
|
+
const uniffiCallbackInterfaceExternalSparkSigner={// Create the VTable using a series of closures.
|
|
4152
|
+
// ts automatically converts these into C callback functions.
|
|
4153
|
+
vtable:{getIdentityPublicKey:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.getIdentityPublicKey({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4154
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getPublicKeyForLeaf:(uniffiHandle,leafId,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.getPublicKeyForLeaf(FfiConverterTypeExternalTreeNodeId.lift(leafId),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4155
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getStaticDepositPublicKey:(uniffiHandle,index,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.getStaticDepositPublicKey(FfiConverterUInt32.lift(index),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4156
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signAuthenticationChallenge:(uniffiHandle,challenge,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.signAuthenticationChallenge(FfiConverterArrayBuffer.lift(challenge),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeEcdsaSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4157
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signMessage:(uniffiHandle,message,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.signMessage(FfiConverterArrayBuffer.lift(message),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeEcdsaSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4158
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signFrost:(uniffiHandle,jobs,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.signFrost(FfiConverterArrayTypeExternalFrostJob.lift(jobs),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeExternalFrostShareResult.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4159
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},prepareTransfer:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.prepareTransfer(FfiConverterTypeExternalPrepareTransferRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalPreparedTransfer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4160
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},prepareClaim:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.prepareClaim(FfiConverterTypeExternalPrepareClaimRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalPreparedClaim.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4161
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},prepareLightningReceive:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.prepareLightningReceive(FfiConverterTypeExternalPrepareLightningReceiveRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalPreparedLightningReceive.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4162
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},prepareStaticDeposit:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.prepareStaticDeposit(FfiConverterTypeExternalPrepareStaticDepositRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalPreparedStaticDeposit.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4163
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},startStaticDepositRefund:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.startStaticDepositRefund(FfiConverterTypeExternalStartStaticDepositRefundRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalStartedStaticDepositRefund.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4164
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signStaticDepositRefund:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.signStaticDepositRefund(FfiConverterTypeExternalSignStaticDepositRefundRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalFrostSignature.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4165
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signSparkInvoice:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.signSparkInvoice(FfiConverterTypeExternalSignSparkInvoiceRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalSignedSparkInvoice.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4166
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},prepareTokenTransaction:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.prepareTokenTransaction(FfiConverterTypeExternalPrepareTokenTransactionRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalPreparedTokenTransaction.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4167
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},prepareStaticDepositClaim:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.prepareStaticDepositClaim(FfiConverterTypeExternalPrepareStaticDepositClaimRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalPreparedStaticDepositClaim.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4168
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// ExternalSparkSigner: this will throw a stale handle error if the handle isn't found.
|
|
4169
|
+
FfiConverterTypeExternalSparkSigner.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsparksigner(uniffiCallbackInterfaceExternalSparkSigner.vtable);}};/**
|
|
3324
4170
|
* Trait covering fiat-related functionality
|
|
3325
4171
|
*//**
|
|
3326
4172
|
* Trait covering fiat-related functionality
|
|
@@ -3340,117 +4186,110 @@ vtable:{fetchFiatCurrencies:(uniffiHandle,uniffiFutureCallback,uniffiCallbackDat
|
|
|
3340
4186
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},fetchFiatRates:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeFiatService.lift(uniffiHandle);return await jsCallback.fetchFiatRates({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeRate.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
3341
4187
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// FiatService: this will throw a stale handle error if the handle isn't found.
|
|
3342
4188
|
FfiConverterTypeFiatService.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(uniffiCallbackInterfaceFiatService.vtable);}};/**
|
|
3343
|
-
*
|
|
4189
|
+
* High-level orchestration over a [`PrfProvider`] and the internal
|
|
4190
|
+
* Nostr-backed label store. Two named flows match the real onboarding
|
|
4191
|
+
* states:
|
|
3344
4192
|
*
|
|
3345
|
-
*
|
|
3346
|
-
*
|
|
4193
|
+
* - [`Self::register`]: first-time setup (create credential + derive
|
|
4194
|
+
* wallet + publish label) in one ceremony where the platform
|
|
4195
|
+
* supports dual-salt PRF.
|
|
4196
|
+
* - [`Self::sign_in`]: returning user. Fast path when the host has
|
|
4197
|
+
* the label cached locally; cold-restore-with-discovery when not.
|
|
3347
4198
|
*
|
|
3348
|
-
*
|
|
3349
|
-
*
|
|
3350
|
-
*
|
|
4199
|
+
* Label management hangs off the [`Self::labels`] sub-object.
|
|
4200
|
+
*
|
|
4201
|
+
* The `breez_api_key` is the Breez relay key used for authenticated
|
|
4202
|
+
* (NIP-42) label storage. Hosts that already construct the SDK
|
|
4203
|
+
* [`crate::Config`] can use [`Self::from_config`] to forward it.
|
|
3351
4204
|
*//**
|
|
3352
|
-
*
|
|
4205
|
+
* High-level orchestration over a [`PrfProvider`] and the internal
|
|
4206
|
+
* Nostr-backed label store. Two named flows match the real onboarding
|
|
4207
|
+
* states:
|
|
3353
4208
|
*
|
|
3354
|
-
*
|
|
3355
|
-
*
|
|
4209
|
+
* - [`Self::register`]: first-time setup (create credential + derive
|
|
4210
|
+
* wallet + publish label) in one ceremony where the platform
|
|
4211
|
+
* supports dual-salt PRF.
|
|
4212
|
+
* - [`Self::sign_in`]: returning user. Fast path when the host has
|
|
4213
|
+
* the label cached locally; cold-restore-with-discovery when not.
|
|
3356
4214
|
*
|
|
3357
|
-
*
|
|
3358
|
-
*
|
|
3359
|
-
*
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
*
|
|
3364
|
-
|
|
3365
|
-
*
|
|
3366
|
-
|
|
3367
|
-
*
|
|
3368
|
-
*
|
|
3369
|
-
|
|
3370
|
-
*
|
|
3371
|
-
*
|
|
3372
|
-
*
|
|
3373
|
-
*
|
|
3374
|
-
*
|
|
3375
|
-
*
|
|
3376
|
-
|
|
3377
|
-
*
|
|
3378
|
-
*
|
|
3379
|
-
*
|
|
3380
|
-
|
|
3381
|
-
*
|
|
3382
|
-
*
|
|
3383
|
-
*
|
|
3384
|
-
*
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
*
|
|
3388
|
-
*
|
|
3389
|
-
|
|
3390
|
-
*
|
|
3391
|
-
*
|
|
3392
|
-
*
|
|
3393
|
-
|
|
4215
|
+
* Label management hangs off the [`Self::labels`] sub-object.
|
|
4216
|
+
*
|
|
4217
|
+
* The `breez_api_key` is the Breez relay key used for authenticated
|
|
4218
|
+
* (NIP-42) label storage. Hosts that already construct the SDK
|
|
4219
|
+
* [`crate::Config`] can use [`Self::from_config`] to forward it.
|
|
4220
|
+
*/export class PasskeyClient extends UniffiAbstractObject{[uniffiTypeNameSymbol]='PasskeyClient';/**
|
|
4221
|
+
* Construct with the default Nostr-backed label store.
|
|
4222
|
+
*/constructor(prfProvider,breezApiKey,config){super();const pointer=uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_constructor_passkeyclient_new(FfiConverterTypePrfProvider.lower(prfProvider),FfiConverterOptionalString.lower(breezApiKey),FfiConverterOptionalTypePasskeyConfig.lower(config),callStatus);},/*liftString:*/FfiConverterString.lift);this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypePasskeyClientObjectFactory.bless(pointer);}/**
|
|
4223
|
+
* One-shot capability + configuration probe. Collapses
|
|
4224
|
+
* [`PrfProvider::is_supported`] and
|
|
4225
|
+
* [`PrfProvider::check_domain_association`] into a single value
|
|
4226
|
+
* hosts can branch on.
|
|
4227
|
+
*/async checkAvailability(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_passkeyclient_check_availability(uniffiTypePasskeyClientObjectFactory.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:*/FfiConverterTypePasskeyAvailability.lift.bind(FfiConverterTypePasskeyAvailability),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePasskeyError.lift.bind(FfiConverterTypePasskeyError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4228
|
+
* Single-CTA onboarding: silent sign-in, falling through to
|
|
4229
|
+
* registration when no credential exists on the device. The returned
|
|
4230
|
+
* [`ConnectFlow`] tells the caller which path ran.
|
|
4231
|
+
*
|
|
4232
|
+
* The silent sign-in pins `prefer_immediately_available_credentials =
|
|
4233
|
+
* true` regardless of [`SignInRequest`]: the fallback depends on the OS
|
|
4234
|
+
* fast-failing with [`PrfProviderError::CredentialNotFound`] when no
|
|
4235
|
+
* local credential exists. Only `CredentialNotFound` flips to the
|
|
4236
|
+
* register path; every other error (`Cancel`, `Timeout`, ...) propagates
|
|
4237
|
+
* unchanged.
|
|
4238
|
+
*
|
|
4239
|
+
* Mobile-only: meant for iOS 18+ / Android 9+ where
|
|
4240
|
+
* `preferImmediatelyAvailableCredentials` is honored. The web
|
|
4241
|
+
* equivalent (`mediation: 'immediate'`) is not yet stable
|
|
4242
|
+
* cross-browser, so this is not surfaced on WASM; web hosts call
|
|
4243
|
+
* [`Self::sign_in`] and catch `CredentialNotFound` themselves.
|
|
4244
|
+
*/async connectWithPasskey(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_passkeyclient_connect_with_passkey(uniffiTypePasskeyClientObjectFactory.clonePointer(this),FfiConverterTypeConnectWithPasskeyRequest.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:*/FfiConverterTypeConnectWithPasskeyResponse.lift.bind(FfiConverterTypeConnectWithPasskeyResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePasskeyError.lift.bind(FfiConverterTypePasskeyError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4245
|
+
* Label sub-object. List or publish labels for this passkey's
|
|
4246
|
+
* identity.
|
|
4247
|
+
*/labels(){return FfiConverterTypePasskeyLabels.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_passkeyclient_labels(uniffiTypePasskeyClientObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4248
|
+
* First-time setup. Drives [`PrfProvider::create_passkey`] (one
|
|
4249
|
+
* ceremony) followed by the wallet-derivation flow that backs
|
|
4250
|
+
* [`Passkey::setup_wallet`] (one ceremony, dual-salt where
|
|
4251
|
+
* supported). The label is always published on success.
|
|
4252
|
+
*/async register(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_passkeyclient_register(uniffiTypePasskeyClientObjectFactory.clonePointer(this),FfiConverterTypeRegisterRequest.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:*/FfiConverterTypeRegisterResponse.lift.bind(FfiConverterTypeRegisterResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePasskeyError.lift.bind(FfiConverterTypePasskeyError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4253
|
+
* Returning-user sign-in. Fast path (`label` set) skips the
|
|
4254
|
+
* label-store query; discovery path (`label = None`) derives
|
|
4255
|
+
* the configured default label and lists the user's labels in
|
|
4256
|
+
* the same ceremony. Never re-publishes the label.
|
|
4257
|
+
*/async signIn(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_passkeyclient_sign_in(uniffiTypePasskeyClientObjectFactory.clonePointer(this),FfiConverterTypeSignInRequest.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:*/FfiConverterTypeSignInResponse.lift.bind(FfiConverterTypeSignInResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePasskeyError.lift.bind(FfiConverterTypePasskeyError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3394
4258
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3395
|
-
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=
|
|
3396
|
-
const
|
|
3397
|
-
*
|
|
3398
|
-
*
|
|
3399
|
-
|
|
3400
|
-
*
|
|
3401
|
-
*
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
* The implementation is responsible for:
|
|
3409
|
-
* - Authenticating the user via platform-specific passkey APIs (`WebAuthn`, native passkey managers)
|
|
3410
|
-
* - Evaluating the PRF extension with the provided salt
|
|
3411
|
-
* - Returning the 32-byte PRF output
|
|
3412
|
-
*/export class PasskeyPrfProviderImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='PasskeyPrfProviderImpl';// No primary constructor declared for this class.
|
|
3413
|
-
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypePasskeyPrfProviderImplObjectFactory.bless(pointer);}/**
|
|
3414
|
-
* Derive a 32-byte seed from passkey PRF with the given salt.
|
|
3415
|
-
*
|
|
3416
|
-
* The platform authenticates the user via passkey and evaluates the PRF extension.
|
|
3417
|
-
* The salt is used as input to the PRF to derive a deterministic output.
|
|
3418
|
-
*
|
|
3419
|
-
* # Arguments
|
|
3420
|
-
* * `salt` - The salt string to use for PRF evaluation
|
|
3421
|
-
*
|
|
3422
|
-
* # Returns
|
|
3423
|
-
* * `Ok(Vec<u8>)` - The 32-byte PRF output
|
|
3424
|
-
* * `Err(PasskeyPrfError)` - If authentication fails or PRF is not supported
|
|
3425
|
-
*/async derivePrfSeed(salt,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_passkeyprfprovider_derive_prf_seed(uniffiTypePasskeyPrfProviderImplObjectFactory.clonePointer(this),FfiConverterString.lower(salt));},/*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:*/FfiConverterTypePasskeyPrfError.lift.bind(FfiConverterTypePasskeyPrfError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3426
|
-
* Check if a PRF-capable passkey is available on this device.
|
|
3427
|
-
*
|
|
3428
|
-
* This allows applications to gracefully degrade if passkey PRF is not supported.
|
|
3429
|
-
*
|
|
3430
|
-
* # Returns
|
|
3431
|
-
* * `Ok(true)` - PRF-capable passkey is available
|
|
3432
|
-
* * `Ok(false)` - No PRF-capable passkey available
|
|
3433
|
-
* * `Err(PasskeyPrfError)` - If the check fails
|
|
3434
|
-
*/async isPrfAvailable(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_passkeyprfprovider_is_prf_available(uniffiTypePasskeyPrfProviderImplObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePasskeyPrfError.lift.bind(FfiConverterTypePasskeyPrfError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4259
|
+
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypePasskeyClientObjectFactory.pointer(this);uniffiTypePasskeyClientObjectFactory.freePointer(pointer);uniffiTypePasskeyClientObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypePasskeyClientObjectFactory.isConcreteType(obj);}}const uniffiTypePasskeyClientObjectFactory=(()=>{return{create(pointer){const instance=Object.create(PasskeyClient.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='PasskeyClient';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_passkeyclient_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_passkeyclient(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_passkeyclient(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='PasskeyClient';}};})();// FfiConverter for PasskeyClientInterface
|
|
4260
|
+
const FfiConverterTypePasskeyClient=new FfiConverterObject(uniffiTypePasskeyClientObjectFactory);/**
|
|
4261
|
+
* Label sub-object surfaced from [`PasskeyClient::labels`]. Holds a
|
|
4262
|
+
* clone of the parent [`Passkey`] so calls re-use its cached identity.
|
|
4263
|
+
*//**
|
|
4264
|
+
* Label sub-object surfaced from [`PasskeyClient::labels`]. Holds a
|
|
4265
|
+
* clone of the parent [`Passkey`] so calls re-use its cached identity.
|
|
4266
|
+
*/export class PasskeyLabels extends UniffiAbstractObject{[uniffiTypeNameSymbol]='PasskeyLabels';// No primary constructor declared for this class.
|
|
4267
|
+
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypePasskeyLabelsObjectFactory.bless(pointer);}/**
|
|
4268
|
+
* List labels published for this passkey's identity.
|
|
4269
|
+
*/async list(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_passkeylabels_list(uniffiTypePasskeyLabelsObjectFactory.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:*/FfiConverterArrayString.lift.bind(FfiConverterArrayString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePasskeyError.lift.bind(FfiConverterTypePasskeyError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4270
|
+
* Idempotently publish `label` for this passkey's identity.
|
|
4271
|
+
*/async store(label,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_passkeylabels_store(uniffiTypePasskeyLabelsObjectFactory.clonePointer(this),FfiConverterString.lower(label));},/*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:*/FfiConverterTypePasskeyError.lift.bind(FfiConverterTypePasskeyError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3435
4272
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3436
|
-
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=
|
|
3437
|
-
const
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
*
|
|
3446
|
-
*
|
|
3447
|
-
|
|
3448
|
-
*
|
|
3449
|
-
* If the implementation returns an error, the payment is cancelled.
|
|
4273
|
+
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypePasskeyLabelsObjectFactory.pointer(this);uniffiTypePasskeyLabelsObjectFactory.freePointer(pointer);uniffiTypePasskeyLabelsObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypePasskeyLabelsObjectFactory.isConcreteType(obj);}}const uniffiTypePasskeyLabelsObjectFactory=(()=>{return{create(pointer){const instance=Object.create(PasskeyLabels.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='PasskeyLabels';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_passkeylabels_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_passkeylabels(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_passkeylabels(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='PasskeyLabels';}};})();// FfiConverter for PasskeyLabelsInterface
|
|
4274
|
+
const FfiConverterTypePasskeyLabels=new FfiConverterObject(uniffiTypePasskeyLabelsObjectFactory);/**
|
|
4275
|
+
* This interface is used to observe outgoing Lightning, Spark, onchain Bitcoin and token payments.
|
|
4276
|
+
*
|
|
4277
|
+
* `before_send` is called before a payment is made; if the implementation returns an error the
|
|
4278
|
+
* payment is cancelled. `after_send` is called after a token payment has been broadcast to report
|
|
4279
|
+
* its final payment id; it cannot cancel the payment and any error it returns is ignored.
|
|
4280
|
+
*//**
|
|
4281
|
+
* This interface is used to observe outgoing Lightning, Spark, onchain Bitcoin and token payments.
|
|
4282
|
+
*
|
|
4283
|
+
* `before_send` is called before a payment is made; if the implementation returns an error the
|
|
4284
|
+
* payment is cancelled. `after_send` is called after a token payment has been broadcast to report
|
|
4285
|
+
* its final payment id; it cannot cancel the payment and any error it returns is ignored.
|
|
3450
4286
|
*/export class PaymentObserverImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='PaymentObserverImpl';// No primary constructor declared for this class.
|
|
3451
4287
|
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypePaymentObserverImplObjectFactory.bless(pointer);}/**
|
|
3452
|
-
* Called before Lightning, Spark
|
|
4288
|
+
* Called before Lightning, Spark, onchain Bitcoin or token payments are made
|
|
3453
4289
|
*/async beforeSend(payments,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_paymentobserver_before_send(uniffiTypePaymentObserverImplObjectFactory.clonePointer(this),FfiConverterArrayTypeProvisionalPayment.lower(payments));},/*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:*/FfiConverterTypePaymentObserverError.lift.bind(FfiConverterTypePaymentObserverError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4290
|
+
* Called after a token payment has been broadcast, mapping each provisional payment id
|
|
4291
|
+
* reported by `before_send` to its final payment id
|
|
4292
|
+
*/async afterSend(updates,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_paymentobserver_after_send(uniffiTypePaymentObserverImplObjectFactory.clonePointer(this),FfiConverterArrayTypePaymentIdUpdate.lower(updates));},/*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:*/FfiConverterTypePaymentObserverError.lift.bind(FfiConverterTypePaymentObserverError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3454
4293
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3455
4294
|
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypePaymentObserverImplObjectFactory.pointer(this);uniffiTypePaymentObserverImplObjectFactory.freePointer(pointer);uniffiTypePaymentObserverImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypePaymentObserverImplObjectFactory.isConcreteType(obj);}}const uniffiTypePaymentObserverImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(PaymentObserverImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='PaymentObserverImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_paymentobserver_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_paymentobserver(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_paymentobserver(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='PaymentObserverImpl';}};})();// FfiConverter for PaymentObserver
|
|
3456
4295
|
const FfiConverterTypePaymentObserver=new FfiConverterObjectWithCallbacks(uniffiTypePaymentObserverImplObjectFactory);// Add a vtavble for the callbacks that go in PaymentObserver.
|
|
@@ -3458,8 +4297,92 @@ const FfiConverterTypePaymentObserver=new FfiConverterObjectWithCallbacks(uniffi
|
|
|
3458
4297
|
const uniffiCallbackInterfacePaymentObserver={// Create the VTable using a series of closures.
|
|
3459
4298
|
// ts automatically converts these into C callback functions.
|
|
3460
4299
|
vtable:{beforeSend:(uniffiHandle,payments,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePaymentObserver.lift(uniffiHandle);return await jsCallback.beforeSend(FfiConverterArrayTypeProvisionalPayment.lift(payments),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
4300
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PaymentObserverError.instanceOf,/*lowerError:*/FfiConverterTypePaymentObserverError.lower.bind(FfiConverterTypePaymentObserverError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},afterSend:(uniffiHandle,updates,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePaymentObserver.lift(uniffiHandle);return await jsCallback.afterSend(FfiConverterArrayTypePaymentIdUpdate.lift(updates),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
3461
4301
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PaymentObserverError.instanceOf,/*lowerError:*/FfiConverterTypePaymentObserverError.lower.bind(FfiConverterTypePaymentObserverError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// PaymentObserver: this will throw a stale handle error if the handle isn't found.
|
|
3462
4302
|
FfiConverterTypePaymentObserver.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(uniffiCallbackInterfacePaymentObserver.vtable);}};/**
|
|
4303
|
+
* Trait for PRF (Pseudo-Random Function) operations backing a
|
|
4304
|
+
* passkey-derived wallet seed.
|
|
4305
|
+
*
|
|
4306
|
+
* Each platform's built-in `PasskeyProvider` implements this by
|
|
4307
|
+
* authenticating with a platform passkey and evaluating the `WebAuthn`
|
|
4308
|
+
* PRF extension. Custom providers (CLI tools backed by `YubiKey`, FIDO2
|
|
4309
|
+
* hmac-secret, on-disk key material, HSMs) implement the same contract:
|
|
4310
|
+
* anything that deterministically derives 32 bytes from a salt qualifies.
|
|
4311
|
+
*//**
|
|
4312
|
+
* Trait for PRF (Pseudo-Random Function) operations backing a
|
|
4313
|
+
* passkey-derived wallet seed.
|
|
4314
|
+
*
|
|
4315
|
+
* Each platform's built-in `PasskeyProvider` implements this by
|
|
4316
|
+
* authenticating with a platform passkey and evaluating the `WebAuthn`
|
|
4317
|
+
* PRF extension. Custom providers (CLI tools backed by `YubiKey`, FIDO2
|
|
4318
|
+
* hmac-secret, on-disk key material, HSMs) implement the same contract:
|
|
4319
|
+
* anything that deterministically derives 32 bytes from a salt qualifies.
|
|
4320
|
+
*/export class PrfProviderImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='PrfProviderImpl';// No primary constructor declared for this class.
|
|
4321
|
+
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypePrfProviderImplObjectFactory.bless(pointer);}/**
|
|
4322
|
+
* Derive 32-byte PRF outputs for `request.salts` in as few
|
|
4323
|
+
* authenticator ceremonies as the platform supports, preserving input
|
|
4324
|
+
* order. Empty `salts` returns an empty vec without prompting. Built-in
|
|
4325
|
+
* providers pair salts via `WebAuthn`'s `prf.eval.first` + `.second`
|
|
4326
|
+
* (halving prompts); custom providers without bulk support loop.
|
|
4327
|
+
*
|
|
4328
|
+
* `request.allow_credentials` and
|
|
4329
|
+
* `request.prefer_immediately_available_credentials` shape this single
|
|
4330
|
+
* ceremony; providers that don't model them (file-backed, `YubiKey`)
|
|
4331
|
+
* ignore them. Returns the seeds plus the credential ID observed in the
|
|
4332
|
+
* same assertion, absent when the provider does not surface it.
|
|
4333
|
+
*/async deriveSeeds(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_prfprovider_derive_seeds(uniffiTypePrfProviderImplObjectFactory.clonePointer(this),FfiConverterTypeDeriveSeedsRequest.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:*/FfiConverterTypeDeriveSeedsOutput.lift.bind(FfiConverterTypeDeriveSeedsOutput),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePrfProviderError.lift.bind(FfiConverterTypePrfProviderError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4334
|
+
* Whether this provider can produce PRF outputs on the current
|
|
4335
|
+
* device. Hosts gate UX on the result.
|
|
4336
|
+
*/async isSupported(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_prfprovider_is_supported(uniffiTypePrfProviderImplObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePrfProviderError.lift.bind(FfiConverterTypePrfProviderError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4337
|
+
* Explicit registration. Platform passkey providers override this to
|
|
4338
|
+
* drive the OS create ceremony and surface the credential metadata
|
|
4339
|
+
* hosts need for `exclude_credentials` bookkeeping. CLI / hardware
|
|
4340
|
+
* providers register lazily in [`Self::derive_seeds`] and inherit the
|
|
4341
|
+
* default `PrfNotSupported`.
|
|
4342
|
+
*
|
|
4343
|
+
* `exclude_credentials` lists already-registered IDs and surfaces
|
|
4344
|
+
* duplicates as `CredentialAlreadyExists`. The `user.id` is always
|
|
4345
|
+
* provider-minted and returned on `PasskeyCredential.user_id`.
|
|
4346
|
+
*/async createPasskey(excludeCredentials,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_prfprovider_create_passkey(uniffiTypePrfProviderImplObjectFactory.clonePointer(this),FfiConverterArrayArrayBuffer.lower(excludeCredentials));},/*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:*/FfiConverterTypePasskeyCredential.lift.bind(FfiConverterTypePasskeyCredential),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePrfProviderError.lift.bind(FfiConverterTypePrfProviderError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4347
|
+
* Advisory check against the platform's out-of-band verification
|
|
4348
|
+
* source (iOS AASA / Android assetlinks / browser rpId scope).
|
|
4349
|
+
* The SDK never gates internally; hosts pick their own policy.
|
|
4350
|
+
*
|
|
4351
|
+
* Built-in providers override:
|
|
4352
|
+
* - **iOS/macOS**: AASA `webcredentials.apps` lookup. May be stale.
|
|
4353
|
+
* - **Android**: Digital Asset Links query. Degrades `NotAssociated`
|
|
4354
|
+
* to `Skipped` because `CredentialManager` runs its own check.
|
|
4355
|
+
* - **Browser**: `rpId` is a registrable suffix of `window.location.hostname`.
|
|
4356
|
+
*
|
|
4357
|
+
* Custom providers without a verification source inherit the
|
|
4358
|
+
* `Skipped` default.
|
|
4359
|
+
*/async checkDomainAssociation(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_prfprovider_check_domain_association(uniffiTypePrfProviderImplObjectFactory.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:*/FfiConverterTypeDomainAssociation.lift.bind(FfiConverterTypeDomainAssociation),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePrfProviderError.lift.bind(FfiConverterTypePrfProviderError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4360
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4361
|
+
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypePrfProviderImplObjectFactory.pointer(this);uniffiTypePrfProviderImplObjectFactory.freePointer(pointer);uniffiTypePrfProviderImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypePrfProviderImplObjectFactory.isConcreteType(obj);}}const uniffiTypePrfProviderImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(PrfProviderImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='PrfProviderImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_prfprovider_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_prfprovider(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_prfprovider(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='PrfProviderImpl';}};})();// FfiConverter for PrfProvider
|
|
4362
|
+
const FfiConverterTypePrfProvider=new FfiConverterObjectWithCallbacks(uniffiTypePrfProviderImplObjectFactory);// Add a vtavble for the callbacks that go in PrfProvider.
|
|
4363
|
+
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
4364
|
+
const uniffiCallbackInterfacePrfProvider={// Create the VTable using a series of closures.
|
|
4365
|
+
// ts automatically converts these into C callback functions.
|
|
4366
|
+
vtable:{deriveSeeds:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePrfProvider.lift(uniffiHandle);return await jsCallback.deriveSeeds(FfiConverterTypeDeriveSeedsRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeDeriveSeedsOutput.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4367
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PrfProviderError.instanceOf,/*lowerError:*/FfiConverterTypePrfProviderError.lower.bind(FfiConverterTypePrfProviderError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},isSupported:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePrfProvider.lift(uniffiHandle);return await jsCallback.isSupported({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructI8 */{returnValue:FfiConverterBool.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructI8 */{returnValue:0,// TODO create callstatus with error.
|
|
4368
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PrfProviderError.instanceOf,/*lowerError:*/FfiConverterTypePrfProviderError.lower.bind(FfiConverterTypePrfProviderError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},createPasskey:(uniffiHandle,excludeCredentials,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePrfProvider.lift(uniffiHandle);return await jsCallback.createPasskey(FfiConverterArrayArrayBuffer.lift(excludeCredentials),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePasskeyCredential.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4369
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PrfProviderError.instanceOf,/*lowerError:*/FfiConverterTypePrfProviderError.lower.bind(FfiConverterTypePrfProviderError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},checkDomainAssociation:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePrfProvider.lift(uniffiHandle);return await jsCallback.checkDomainAssociation({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeDomainAssociation.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4370
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PrfProviderError.instanceOf,/*lowerError:*/FfiConverterTypePrfProviderError.lower.bind(FfiConverterTypePrfProviderError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// PrfProvider: this will throw a stale handle error if the handle isn't found.
|
|
4371
|
+
FfiConverterTypePrfProvider.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_prfprovider(uniffiCallbackInterfacePrfProvider.vtable);}};/**
|
|
4372
|
+
* The four per-tenant stores produced by a [`StorageBackend`].
|
|
4373
|
+
*
|
|
4374
|
+
* An opaque handle: the SDK reads its stores internally; the fields never
|
|
4375
|
+
* cross the FFI boundary.
|
|
4376
|
+
*//**
|
|
4377
|
+
* The four per-tenant stores produced by a [`StorageBackend`].
|
|
4378
|
+
*
|
|
4379
|
+
* An opaque handle: the SDK reads its stores internally; the fields never
|
|
4380
|
+
* cross the FFI boundary.
|
|
4381
|
+
*/export class ResolvedStores extends UniffiAbstractObject{[uniffiTypeNameSymbol]='ResolvedStores';// No primary constructor declared for this class.
|
|
4382
|
+
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeResolvedStoresObjectFactory.bless(pointer);}/**
|
|
4383
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4384
|
+
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeResolvedStoresObjectFactory.pointer(this);uniffiTypeResolvedStoresObjectFactory.freePointer(pointer);uniffiTypeResolvedStoresObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeResolvedStoresObjectFactory.isConcreteType(obj);}}const uniffiTypeResolvedStoresObjectFactory=(()=>{return{create(pointer){const instance=Object.create(ResolvedStores.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='ResolvedStores';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_resolvedstores_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_resolvedstores(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_resolvedstores(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='ResolvedStores';}};})();// FfiConverter for ResolvedStoresInterface
|
|
4385
|
+
const FfiConverterTypeResolvedStores=new FfiConverterObject(uniffiTypeResolvedStoresObjectFactory);/**
|
|
3463
4386
|
* REST client trait for making HTTP requests.
|
|
3464
4387
|
*
|
|
3465
4388
|
* This trait provides a way for users to supply their own HTTP client implementation
|
|
@@ -3510,8 +4433,25 @@ FfiConverterTypeRestClient.drop(uniffiHandle);}},register:()=>{nativeModule().ub
|
|
|
3510
4433
|
* - `config`: The configuration to be used.
|
|
3511
4434
|
* - `seed`: The seed for wallet generation.
|
|
3512
4435
|
*/constructor(config,seed){super();const pointer=uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_constructor_sdkbuilder_new(FfiConverterTypeConfig.lower(config),FfiConverterTypeSeed.lower(seed),callStatus);},/*liftString:*/FfiConverterString.lift);this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeSdkBuilderObjectFactory.bless(pointer);}/**
|
|
4436
|
+
* Creates a new `SdkBuilder` with the provided configuration and external
|
|
4437
|
+
* signers (e.g. from `create_turnkey_signer`), so signer-based SDKs can be
|
|
4438
|
+
* composed with any storage backend or shared context, unlike
|
|
4439
|
+
* `connect_with_signer` which is fixed to the default storage.
|
|
4440
|
+
* Arguments:
|
|
4441
|
+
* - `config`: The configuration to be used.
|
|
4442
|
+
* - `breez_signer`: External signer for non-Spark SDK signing (LNURL-auth,
|
|
4443
|
+
* sync, message signing, ECIES).
|
|
4444
|
+
* - `spark_signer`: External high-level Spark signer for the Spark wallet.
|
|
4445
|
+
*/static newWithSigner(config,breezSigner,sparkSigner){return FfiConverterTypeSdkBuilder.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_constructor_sdkbuilder_new_with_signer(FfiConverterTypeConfig.lower(config),FfiConverterTypeExternalBreezSigner.lower(breezSigner),FfiConverterTypeExternalSparkSigner.lower(sparkSigner),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
3513
4446
|
* Builds the `BreezSdk` instance with the configured components.
|
|
3514
4447
|
*/async build(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_sdkbuilder_build(uniffiTypeSdkBuilderObjectFactory.clonePointer(this));},/*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;}}/**
|
|
4448
|
+
* Sets the account number for key derivation. All wallet keys derive from
|
|
4449
|
+
* the seed at `m/8797555'/<account number>'`, so each account number
|
|
4450
|
+
* yields an independent wallet from the same seed. Defaults to 0 on
|
|
4451
|
+
* Regtest and 1 on all other networks when unset.
|
|
4452
|
+
* Arguments:
|
|
4453
|
+
* - `account_number`: The account number in the derivation path.
|
|
4454
|
+
*/async withAccountNumber(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_account_number(uniffiTypeSdkBuilderObjectFactory.clonePointer(this),FfiConverterUInt32.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;}}/**
|
|
3515
4455
|
* Sets the chain service to be used by the SDK.
|
|
3516
4456
|
* Arguments:
|
|
3517
4457
|
* - `chain_service`: The chain service to be used.
|
|
@@ -3525,11 +4465,7 @@ FfiConverterTypeRestClient.drop(uniffiHandle);}},register:()=>{nativeModule().ub
|
|
|
3525
4465
|
* Sets the fiat service to be used by the SDK.
|
|
3526
4466
|
* Arguments:
|
|
3527
4467
|
* - `fiat_service`: The fiat service to be used.
|
|
3528
|
-
*/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;}}/**
|
|
3529
|
-
* Sets the key set type to be used by the SDK.
|
|
3530
|
-
* Arguments:
|
|
3531
|
-
* - `config`: Key set configuration containing the key set type, address index flag, and optional account number.
|
|
3532
|
-
*/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;}}/**
|
|
4468
|
+
*/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;}}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;}}/**
|
|
3533
4469
|
* Sets the payment observer to be used by the SDK.
|
|
3534
4470
|
* Arguments:
|
|
3535
4471
|
* - `payment_observer`: The payment observer to be used.
|
|
@@ -3547,10 +4483,22 @@ FfiConverterTypeRestClient.drop(uniffiHandle);}},register:()=>{nativeModule().ub
|
|
|
3547
4483
|
* same `Arc` to every `SdkBuilder` whose SDKs should share its resources
|
|
3548
4484
|
* (operator gRPC channels, SSP HTTP client, database pool).
|
|
3549
4485
|
*/async withSharedContext(context,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_shared_context(uniffiTypeSdkBuilderObjectFactory.clonePointer(this),FfiConverterTypeSdkContext.lower(context));},/*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;}}/**
|
|
3550
|
-
*
|
|
4486
|
+
* **Deprecated.** Use
|
|
4487
|
+
* [`with_storage_backend`](SdkBuilder::with_storage_backend) with
|
|
4488
|
+
* [`custom_storage`](crate::custom_storage).
|
|
3551
4489
|
* Arguments:
|
|
3552
4490
|
* - `storage`: The storage implementation to be used.
|
|
3553
4491
|
*/async withStorage(storage,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_storage(uniffiTypeSdkBuilderObjectFactory.clonePointer(this),FfiConverterTypeStorage.lower(storage));},/*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;}}/**
|
|
4492
|
+
* Sets the storage backend to be used by the SDK.
|
|
4493
|
+
*
|
|
4494
|
+
* Build the [`StorageBackend`](crate::StorageBackend) via
|
|
4495
|
+
* [`default_storage`](crate::default_storage),
|
|
4496
|
+
* [`postgres_storage`](crate::postgres_storage),
|
|
4497
|
+
* [`mysql_storage`](crate::mysql_storage) or
|
|
4498
|
+
* [`custom_storage`](crate::custom_storage).
|
|
4499
|
+
* Arguments:
|
|
4500
|
+
* - `storage`: The storage backend to be used.
|
|
4501
|
+
*/async withStorageBackend(storage,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_storage_backend(uniffiTypeSdkBuilderObjectFactory.clonePointer(this),FfiConverterTypeStorageBackend.lower(storage));},/*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;}}/**
|
|
3554
4502
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3555
4503
|
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeSdkBuilderObjectFactory.pointer(this);uniffiTypeSdkBuilderObjectFactory.freePointer(pointer);uniffiTypeSdkBuilderObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeSdkBuilderObjectFactory.isConcreteType(obj);}}const uniffiTypeSdkBuilderObjectFactory=(()=>{return{create(pointer){const instance=Object.create(SdkBuilder.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='SdkBuilder';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_sdkbuilder_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_sdkbuilder(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_sdkbuilder(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='SdkBuilder';}};})();// FfiConverter for SdkBuilderInterface
|
|
3556
4504
|
const FfiConverterTypeSdkBuilder=new FfiConverterObject(uniffiTypeSdkBuilderObjectFactory);/**
|
|
@@ -3559,28 +4507,34 @@ const FfiConverterTypeSdkBuilder=new FfiConverterObject(uniffiTypeSdkBuilderObje
|
|
|
3559
4507
|
* Construct one with [`new_shared_sdk_context`] and pass the same `Arc` to every
|
|
3560
4508
|
* [`SdkBuilder`](crate::SdkBuilder) whose SDKs should share those resources
|
|
3561
4509
|
* (a single HTTP client across SSP / chain / LNURL / JWT / etc., a gRPC
|
|
3562
|
-
* channel pool to the Spark operators, the Breez backend gRPC client,
|
|
3563
|
-
*
|
|
3564
|
-
*
|
|
4510
|
+
* channel pool to the Spark operators, the Breez backend gRPC client, …).
|
|
4511
|
+
* Useful for multi-tenant servers that load many wallets in one process.
|
|
4512
|
+
*
|
|
4513
|
+
* To share a database connection pool across SDKs, pass a
|
|
4514
|
+
* [`StorageBackend`](crate::StorageBackend) as
|
|
4515
|
+
* [`SdkContextConfig::storage`]: every SDK built from the context reuses it.
|
|
3565
4516
|
*
|
|
3566
4517
|
* The struct is intentionally opaque — all fields are crate-private. There
|
|
3567
4518
|
* is no way to inject pre-built sub-components: the factory builds them
|
|
3568
|
-
* from settings so callers don't need to know about session
|
|
3569
|
-
* connection-manager wiring
|
|
4519
|
+
* from settings so callers don't need to know about session stores or
|
|
4520
|
+
* connection-manager wiring.
|
|
3570
4521
|
*//**
|
|
3571
4522
|
* Process-shared resources that can back many `BreezSdk` instances.
|
|
3572
4523
|
*
|
|
3573
4524
|
* Construct one with [`new_shared_sdk_context`] and pass the same `Arc` to every
|
|
3574
4525
|
* [`SdkBuilder`](crate::SdkBuilder) whose SDKs should share those resources
|
|
3575
4526
|
* (a single HTTP client across SSP / chain / LNURL / JWT / etc., a gRPC
|
|
3576
|
-
* channel pool to the Spark operators, the Breez backend gRPC client,
|
|
3577
|
-
*
|
|
3578
|
-
*
|
|
4527
|
+
* channel pool to the Spark operators, the Breez backend gRPC client, …).
|
|
4528
|
+
* Useful for multi-tenant servers that load many wallets in one process.
|
|
4529
|
+
*
|
|
4530
|
+
* To share a database connection pool across SDKs, pass a
|
|
4531
|
+
* [`StorageBackend`](crate::StorageBackend) as
|
|
4532
|
+
* [`SdkContextConfig::storage`]: every SDK built from the context reuses it.
|
|
3579
4533
|
*
|
|
3580
4534
|
* The struct is intentionally opaque — all fields are crate-private. There
|
|
3581
4535
|
* is no way to inject pre-built sub-components: the factory builds them
|
|
3582
|
-
* from settings so callers don't need to know about session
|
|
3583
|
-
* connection-manager wiring
|
|
4536
|
+
* from settings so callers don't need to know about session stores or
|
|
4537
|
+
* connection-manager wiring.
|
|
3584
4538
|
*/export class SdkContext extends UniffiAbstractObject{[uniffiTypeNameSymbol]='SdkContext';// No primary constructor declared for this class.
|
|
3585
4539
|
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeSdkContextObjectFactory.bless(pointer);}/**
|
|
3586
4540
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
@@ -3595,18 +4549,18 @@ const FfiConverterTypeSdkContext=new FfiConverterObject(uniffiTypeSdkContextObje
|
|
|
3595
4549
|
* identity public key. Implementations should be thread-safe and may be
|
|
3596
4550
|
* backed by an in-memory map (default) or a shared database for cross-pod
|
|
3597
4551
|
* auth sharing.
|
|
3598
|
-
*/export class
|
|
3599
|
-
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=
|
|
4552
|
+
*/export class SessionStoreImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='SessionStoreImpl';// No primary constructor declared for this class.
|
|
4553
|
+
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeSessionStoreImplObjectFactory.bless(pointer);}async getSession(serviceIdentityKey,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_sessionstore_get_session(uniffiTypeSessionStoreImplObjectFactory.clonePointer(this),FfiConverterTypePublicKey.lower(serviceIdentityKey));},/*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:*/FfiConverterTypeSession.lift.bind(FfiConverterTypeSession),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSessionStoreError.lift.bind(FfiConverterTypeSessionStoreError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async setSession(serviceIdentityKey,session,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_sessionstore_set_session(uniffiTypeSessionStoreImplObjectFactory.clonePointer(this),FfiConverterTypePublicKey.lower(serviceIdentityKey),FfiConverterTypeSession.lower(session));},/*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:*/FfiConverterTypeSessionStoreError.lift.bind(FfiConverterTypeSessionStoreError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3600
4554
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3601
|
-
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=
|
|
3602
|
-
const
|
|
4555
|
+
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeSessionStoreImplObjectFactory.pointer(this);uniffiTypeSessionStoreImplObjectFactory.freePointer(pointer);uniffiTypeSessionStoreImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeSessionStoreImplObjectFactory.isConcreteType(obj);}}const uniffiTypeSessionStoreImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(SessionStoreImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='SessionStoreImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_sessionstore_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_sessionstore(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_sessionstore(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='SessionStoreImpl';}};})();// FfiConverter for SessionStore
|
|
4556
|
+
const FfiConverterTypeSessionStore=new FfiConverterObjectWithCallbacks(uniffiTypeSessionStoreImplObjectFactory);// Add a vtavble for the callbacks that go in SessionStore.
|
|
3603
4557
|
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
3604
|
-
const
|
|
4558
|
+
const uniffiCallbackInterfaceSessionStore={// Create the VTable using a series of closures.
|
|
3605
4559
|
// ts automatically converts these into C callback functions.
|
|
3606
|
-
vtable:{getSession:(uniffiHandle,serviceIdentityKey,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=
|
|
3607
|
-
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/
|
|
3608
|
-
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/
|
|
3609
|
-
|
|
4560
|
+
vtable:{getSession:(uniffiHandle,serviceIdentityKey,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeSessionStore.lift(uniffiHandle);return await jsCallback.getSession(FfiConverterTypePublicKey.lift(serviceIdentityKey),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeSession.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4561
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SessionStoreError.instanceOf,/*lowerError:*/FfiConverterTypeSessionStoreError.lower.bind(FfiConverterTypeSessionStoreError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},setSession:(uniffiHandle,serviceIdentityKey,session,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeSessionStore.lift(uniffiHandle);return await jsCallback.setSession(FfiConverterTypePublicKey.lift(serviceIdentityKey),FfiConverterTypeSession.lift(session),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
4562
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SessionStoreError.instanceOf,/*lowerError:*/FfiConverterTypeSessionStoreError.lower.bind(FfiConverterTypeSessionStoreError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// SessionStore: this will throw a stale handle error if the handle isn't found.
|
|
4563
|
+
FfiConverterTypeSessionStore.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_sessionstore(uniffiCallbackInterfaceSessionStore.vtable);}};/**
|
|
3610
4564
|
* Trait for persistent storage
|
|
3611
4565
|
*//**
|
|
3612
4566
|
* Trait for persistent storage
|
|
@@ -3622,16 +4576,15 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3622
4576
|
*
|
|
3623
4577
|
* A vector of payments or a `StorageError`
|
|
3624
4578
|
*/async listPayments(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_storage_list_payments(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeStorageListPaymentsRequest.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:*/FfiConverterArrayTypePayment.lift.bind(FfiConverterArrayTypePayment),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3625
|
-
* Inserts a payment
|
|
3626
|
-
*
|
|
3627
|
-
* # Arguments
|
|
3628
|
-
*
|
|
3629
|
-
* * `payment` - The payment to insert
|
|
4579
|
+
* Inserts or updates a payment unless it would replace a terminal status.
|
|
3630
4580
|
*
|
|
3631
|
-
*
|
|
4581
|
+
* Same-status updates are still persisted so details can be enriched.
|
|
3632
4582
|
*
|
|
3633
|
-
*
|
|
3634
|
-
|
|
4583
|
+
* Returns `true` if the caller should emit a payment event (new payment was
|
|
4584
|
+
* inserted, or status transitioned). Returns `false` for redundant
|
|
4585
|
+
* same-status updates and for rejected updates against a terminal stored
|
|
4586
|
+
* status
|
|
4587
|
+
*/async applyPaymentUpdate(payment,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_apply_payment_update(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypePayment.lower(payment));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3635
4588
|
* Inserts payment metadata into storage
|
|
3636
4589
|
*
|
|
3637
4590
|
* # Arguments
|
|
@@ -3717,7 +4670,14 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3717
4670
|
* Preserves `created_at` on update.
|
|
3718
4671
|
*/async insertContact(contact,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_insert_contact(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeContact.lower(contact));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3719
4672
|
* Deletes a contact by its ID
|
|
3720
|
-
*/async deleteContact(id,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_delete_contact(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(id));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
4673
|
+
*/async deleteContact(id,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_delete_contact(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(id));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4674
|
+
* Inserts or overwrites a cross-chain swap row (upsert by `(provider, id)`).
|
|
4675
|
+
*/async setCrossChainSwap(swap,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_set_cross_chain_swap(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeStoredCrossChainSwap.lower(swap));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4676
|
+
* Gets a single cross-chain swap row by its `(provider, id)`, or `None` if absent.
|
|
4677
|
+
*/async getCrossChainSwap(provider,id,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_get_cross_chain_swap(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(provider),FfiConverterString.lower(id));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeStoredCrossChainSwap.lift.bind(FfiConverterOptionalTypeStoredCrossChainSwap),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4678
|
+
* Lists all non-terminal cross-chain swap rows for a single provider
|
|
4679
|
+
* (`provider = ? AND is_terminal = false`).
|
|
4680
|
+
*/async listActiveCrossChainSwaps(provider,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_list_active_cross_chain_swaps(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(provider));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeStoredCrossChainSwap.lift.bind(FfiConverterArrayTypeStoredCrossChainSwap),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async addOutgoingChange(record,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_add_outgoing_change(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeUnversionedRecordChange.lower(record));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_u64,/*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async completeOutgoingSync(record,localRevision,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_complete_outgoing_sync(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeRecord.lower(record),FfiConverterUInt64.lower(localRevision));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async getPendingOutgoingChanges(limit,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_get_pending_outgoing_changes(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterUInt32.lower(limit));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeOutgoingChange.lift.bind(FfiConverterArrayTypeOutgoingChange),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3721
4681
|
* Get the last committed sync revision.
|
|
3722
4682
|
*
|
|
3723
4683
|
* The `sync_revision` table tracks the highest revision that has been committed
|
|
@@ -3745,7 +4705,7 @@ vtable:{deleteCachedItem:(uniffiHandle,key,uniffiFutureCallback,uniffiCallbackDa
|
|
|
3745
4705
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getCachedItem:(uniffiHandle,key,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getCachedItem(FfiConverterString.lift(key),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterOptionalString.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
3746
4706
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},setCachedItem:(uniffiHandle,key,value,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.setCachedItem(FfiConverterString.lift(key),FfiConverterString.lift(value),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
3747
4707
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},listPayments:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listPayments(FfiConverterTypeStorageListPaymentsRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypePayment.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
3748
|
-
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},
|
|
4708
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},applyPaymentUpdate:(uniffiHandle,payment,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.applyPaymentUpdate(FfiConverterTypePayment.lift(payment),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructI8 */{returnValue:FfiConverterBool.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructI8 */{returnValue:0,// TODO create callstatus with error.
|
|
3749
4709
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},insertPaymentMetadata:(uniffiHandle,paymentId,metadata,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.insertPaymentMetadata(FfiConverterString.lift(paymentId),FfiConverterTypePaymentMetadata.lift(metadata),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
3750
4710
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getPaymentById:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPaymentById(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePayment.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
3751
4711
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getPaymentByInvoice:(uniffiHandle,invoice,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPaymentByInvoice(FfiConverterString.lift(invoice),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterOptionalTypePayment.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
@@ -3759,6 +4719,9 @@ callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeign
|
|
|
3759
4719
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getContact:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getContact(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeContact.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
3760
4720
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},insertContact:(uniffiHandle,contact,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.insertContact(FfiConverterTypeContact.lift(contact),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
3761
4721
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},deleteContact:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.deleteContact(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
4722
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},setCrossChainSwap:(uniffiHandle,swap,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.setCrossChainSwap(FfiConverterTypeStoredCrossChainSwap.lift(swap),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
4723
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getCrossChainSwap:(uniffiHandle,provider,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getCrossChainSwap(FfiConverterString.lift(provider),FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterOptionalTypeStoredCrossChainSwap.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4724
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},listActiveCrossChainSwaps:(uniffiHandle,provider,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listActiveCrossChainSwaps(FfiConverterString.lift(provider),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeStoredCrossChainSwap.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
3762
4725
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},addOutgoingChange:(uniffiHandle,record,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.addOutgoingChange(FfiConverterTypeUnversionedRecordChange.lift(record),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:FfiConverterUInt64.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:0n,// TODO create callstatus with error.
|
|
3763
4726
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},completeOutgoingSync:(uniffiHandle,record,localRevision,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.completeOutgoingSync(FfiConverterTypeRecord.lift(record),FfiConverterUInt64.lift(localRevision),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
3764
4727
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getPendingOutgoingChanges:(uniffiHandle,limit,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPendingOutgoingChanges(FfiConverterUInt32.lift(limit),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeOutgoingChange.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
@@ -3769,7 +4732,25 @@ callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeign
|
|
|
3769
4732
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getLatestOutgoingChange:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getLatestOutgoingChange({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterOptionalTypeOutgoingChange.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
3770
4733
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},updateRecordFromIncoming:(uniffiHandle,record,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.updateRecordFromIncoming(FfiConverterTypeRecord.lift(record),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
3771
4734
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// Storage: this will throw a stale handle error if the handle isn't found.
|
|
3772
|
-
FfiConverterTypeStorage.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(uniffiCallbackInterfaceStorage.vtable);}}
|
|
4735
|
+
FfiConverterTypeStorage.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(uniffiCallbackInterfaceStorage.vtable);}};/**
|
|
4736
|
+
* A factory for a tenant's storage.
|
|
4737
|
+
*
|
|
4738
|
+
* A single backend may back many SDK instances; each
|
|
4739
|
+
* [`create_stores`](Self::create_stores) call yields the store set scoped to
|
|
4740
|
+
* one tenant `identity` (a serialized public key). `network` lets file-based
|
|
4741
|
+
* backends segregate tenants by network; database backends ignore it.
|
|
4742
|
+
*//**
|
|
4743
|
+
* A factory for a tenant's storage.
|
|
4744
|
+
*
|
|
4745
|
+
* A single backend may back many SDK instances; each
|
|
4746
|
+
* [`create_stores`](Self::create_stores) call yields the store set scoped to
|
|
4747
|
+
* one tenant `identity` (a serialized public key). `network` lets file-based
|
|
4748
|
+
* backends segregate tenants by network; database backends ignore it.
|
|
4749
|
+
*/export class StorageBackendImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='StorageBackendImpl';// No primary constructor declared for this class.
|
|
4750
|
+
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeStorageBackendImplObjectFactory.bless(pointer);}async createStores(network,identity,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_storagebackend_create_stores(uniffiTypeStorageBackendImplObjectFactory.clonePointer(this),FfiConverterTypeNetwork.lower(network),FfiConverterArrayBuffer.lower(identity));},/*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:*/FfiConverterTypeResolvedStores.lift.bind(FfiConverterTypeResolvedStores),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4751
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4752
|
+
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeStorageBackendImplObjectFactory.pointer(this);uniffiTypeStorageBackendImplObjectFactory.freePointer(pointer);uniffiTypeStorageBackendImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeStorageBackendImplObjectFactory.isConcreteType(obj);}}const uniffiTypeStorageBackendImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(StorageBackendImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='StorageBackendImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_storagebackend_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_storagebackend(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_storagebackend(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='StorageBackendImpl';}};})();// FfiConverter for StorageBackend
|
|
4753
|
+
const FfiConverterTypeStorageBackend=new FfiConverterObject(uniffiTypeStorageBackendImplObjectFactory);export class TokenIssuer extends UniffiAbstractObject{[uniffiTypeNameSymbol]='TokenIssuer';// No primary constructor declared for this class.
|
|
3773
4754
|
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeTokenIssuerObjectFactory.bless(pointer);}/**
|
|
3774
4755
|
* Burns supply of the issuer token
|
|
3775
4756
|
*
|
|
@@ -3854,27 +4835,28 @@ const FfiConverterOptionalBool=new FfiConverterOptional(FfiConverterBool);// Ffi
|
|
|
3854
4835
|
const FfiConverterOptionalArrayBuffer=new FfiConverterOptional(FfiConverterArrayBuffer);// FfiConverter for Logger | undefined
|
|
3855
4836
|
const FfiConverterOptionalTypeLogger=new FfiConverterOptional(FfiConverterTypeLogger);// FfiConverter for ConversionDetails | undefined
|
|
3856
4837
|
const FfiConverterOptionalTypeConversionDetails=new FfiConverterOptional(FfiConverterTypeConversionDetails);// FfiConverter for ConversionEstimate | undefined
|
|
3857
|
-
const FfiConverterOptionalTypeConversionEstimate=new FfiConverterOptional(FfiConverterTypeConversionEstimate);// FfiConverter for
|
|
3858
|
-
const
|
|
3859
|
-
const
|
|
3860
|
-
const
|
|
3861
|
-
const FfiConverterOptionalTypeCredentials=new FfiConverterOptional(FfiConverterTypeCredentials);// FfiConverter for KeySetConfig | undefined
|
|
3862
|
-
const FfiConverterOptionalTypeKeySetConfig=new FfiConverterOptional(FfiConverterTypeKeySetConfig);// FfiConverter for LightningAddressInfo | undefined
|
|
4838
|
+
const FfiConverterOptionalTypeConversionEstimate=new FfiConverterOptional(FfiConverterTypeConversionEstimate);// FfiConverter for ConversionOptions | undefined
|
|
4839
|
+
const FfiConverterOptionalTypeConversionOptions=new FfiConverterOptional(FfiConverterTypeConversionOptions);// FfiConverter for Credentials | undefined
|
|
4840
|
+
const FfiConverterOptionalTypeCredentials=new FfiConverterOptional(FfiConverterTypeCredentials);// FfiConverter for CrossChainConfig | undefined
|
|
4841
|
+
const FfiConverterOptionalTypeCrossChainConfig=new FfiConverterOptional(FfiConverterTypeCrossChainConfig);// FfiConverter for LightningAddressInfo | undefined
|
|
3863
4842
|
const FfiConverterOptionalTypeLightningAddressInfo=new FfiConverterOptional(FfiConverterTypeLightningAddressInfo);// FfiConverter for LnurlPayInfo | undefined
|
|
3864
4843
|
const FfiConverterOptionalTypeLnurlPayInfo=new FfiConverterOptional(FfiConverterTypeLnurlPayInfo);// FfiConverter for LnurlReceiveMetadata | undefined
|
|
3865
4844
|
const FfiConverterOptionalTypeLnurlReceiveMetadata=new FfiConverterOptional(FfiConverterTypeLnurlReceiveMetadata);// FfiConverter for LnurlWithdrawInfo | undefined
|
|
3866
|
-
const FfiConverterOptionalTypeLnurlWithdrawInfo=new FfiConverterOptional(FfiConverterTypeLnurlWithdrawInfo);// FfiConverter for
|
|
3867
|
-
const
|
|
3868
|
-
const
|
|
4845
|
+
const FfiConverterOptionalTypeLnurlWithdrawInfo=new FfiConverterOptional(FfiConverterTypeLnurlWithdrawInfo);// FfiConverter for OutgoingChange | undefined
|
|
4846
|
+
const FfiConverterOptionalTypeOutgoingChange=new FfiConverterOptional(FfiConverterTypeOutgoingChange);// FfiConverter for PasskeyConfig | undefined
|
|
4847
|
+
const FfiConverterOptionalTypePasskeyConfig=new FfiConverterOptional(FfiConverterTypePasskeyConfig);// FfiConverter for PasskeyCredential | undefined
|
|
4848
|
+
const FfiConverterOptionalTypePasskeyCredential=new FfiConverterOptional(FfiConverterTypePasskeyCredential);// FfiConverter for PasskeyProviderOptions | undefined
|
|
4849
|
+
const FfiConverterOptionalTypePasskeyProviderOptions=new FfiConverterOptional(FfiConverterTypePasskeyProviderOptions);// FfiConverter for Payment | undefined
|
|
3869
4850
|
const FfiConverterOptionalTypePayment=new FfiConverterOptional(FfiConverterTypePayment);// FfiConverter for Record | undefined
|
|
3870
4851
|
const FfiConverterOptionalTypeRecord=new FfiConverterOptional(FfiConverterTypeRecord);// FfiConverter for SparkConfig | undefined
|
|
3871
4852
|
const FfiConverterOptionalTypeSparkConfig=new FfiConverterOptional(FfiConverterTypeSparkConfig);// FfiConverter for SparkHtlcDetails | undefined
|
|
3872
4853
|
const FfiConverterOptionalTypeSparkHtlcDetails=new FfiConverterOptional(FfiConverterTypeSparkHtlcDetails);// FfiConverter for SparkHtlcOptions | undefined
|
|
3873
4854
|
const FfiConverterOptionalTypeSparkHtlcOptions=new FfiConverterOptional(FfiConverterTypeSparkHtlcOptions);// FfiConverter for SparkInvoicePaymentDetails | undefined
|
|
3874
4855
|
const FfiConverterOptionalTypeSparkInvoicePaymentDetails=new FfiConverterOptional(FfiConverterTypeSparkInvoicePaymentDetails);// FfiConverter for StableBalanceConfig | undefined
|
|
3875
|
-
const FfiConverterOptionalTypeStableBalanceConfig=new FfiConverterOptional(FfiConverterTypeStableBalanceConfig);// FfiConverter for
|
|
3876
|
-
const
|
|
3877
|
-
const
|
|
4856
|
+
const FfiConverterOptionalTypeStableBalanceConfig=new FfiConverterOptional(FfiConverterTypeStableBalanceConfig);// FfiConverter for StoredCrossChainSwap | undefined
|
|
4857
|
+
const FfiConverterOptionalTypeStoredCrossChainSwap=new FfiConverterOptional(FfiConverterTypeStoredCrossChainSwap);// FfiConverter for Symbol | undefined
|
|
4858
|
+
const FfiConverterOptionalTypeSymbol=new FfiConverterOptional(FfiConverterTypeSymbol);// FfiConverter for TurnkeyRetryConfig | undefined
|
|
4859
|
+
const FfiConverterOptionalTypeTurnkeyRetryConfig=new FfiConverterOptional(FfiConverterTypeTurnkeyRetryConfig);// FfiConverter for string | undefined
|
|
3878
4860
|
const FfiConverterOptionalString=new FfiConverterOptional(FfiConverterString);// FfiConverter for /*u32*/number | undefined
|
|
3879
4861
|
const FfiConverterOptionalUInt32=new FfiConverterOptional(FfiConverterUInt32);// FfiConverter for /*u64*/bigint | undefined
|
|
3880
4862
|
const FfiConverterOptionalUInt64=new FfiConverterOptional(FfiConverterUInt64);// FfiConverter for Array<ArrayBuffer>
|
|
@@ -3883,10 +4865,18 @@ const FfiConverterArrayTypeBip21Extra=new FfiConverterArray(FfiConverterTypeBip2
|
|
|
3883
4865
|
const FfiConverterArrayTypeBolt11RouteHint=new FfiConverterArray(FfiConverterTypeBolt11RouteHint);// FfiConverter for Array<Bolt11RouteHintHop>
|
|
3884
4866
|
const FfiConverterArrayTypeBolt11RouteHintHop=new FfiConverterArray(FfiConverterTypeBolt11RouteHintHop);// FfiConverter for Array<Bolt12OfferBlindedPath>
|
|
3885
4867
|
const FfiConverterArrayTypeBolt12OfferBlindedPath=new FfiConverterArray(FfiConverterTypeBolt12OfferBlindedPath);// FfiConverter for Array<Contact>
|
|
3886
|
-
const FfiConverterArrayTypeContact=new FfiConverterArray(FfiConverterTypeContact);// FfiConverter for Array<
|
|
3887
|
-
const
|
|
3888
|
-
const
|
|
3889
|
-
const
|
|
4868
|
+
const FfiConverterArrayTypeContact=new FfiConverterArray(FfiConverterTypeContact);// FfiConverter for Array<Conversion>
|
|
4869
|
+
const FfiConverterArrayTypeConversion=new FfiConverterArray(FfiConverterTypeConversion);// FfiConverter for Array<CrossChainRoutePair>
|
|
4870
|
+
const FfiConverterArrayTypeCrossChainRoutePair=new FfiConverterArray(FfiConverterTypeCrossChainRoutePair);// FfiConverter for Array<DepositInfo>
|
|
4871
|
+
const FfiConverterArrayTypeDepositInfo=new FfiConverterArray(FfiConverterTypeDepositInfo);// FfiConverter for Array<ExternalClaimLeafInput>
|
|
4872
|
+
const FfiConverterArrayTypeExternalClaimLeafInput=new FfiConverterArray(FfiConverterTypeExternalClaimLeafInput);// FfiConverter for Array<ExternalFrostJob>
|
|
4873
|
+
const FfiConverterArrayTypeExternalFrostJob=new FfiConverterArray(FfiConverterTypeExternalFrostJob);// FfiConverter for Array<ExternalFrostShareResult>
|
|
4874
|
+
const FfiConverterArrayTypeExternalFrostShareResult=new FfiConverterArray(FfiConverterTypeExternalFrostShareResult);// FfiConverter for Array<ExternalInputParser>
|
|
4875
|
+
const FfiConverterArrayTypeExternalInputParser=new FfiConverterArray(FfiConverterTypeExternalInputParser);// FfiConverter for Array<ExternalNewLeafKey>
|
|
4876
|
+
const FfiConverterArrayTypeExternalNewLeafKey=new FfiConverterArray(FfiConverterTypeExternalNewLeafKey);// FfiConverter for Array<ExternalOperatorPackage>
|
|
4877
|
+
const FfiConverterArrayTypeExternalOperatorPackage=new FfiConverterArray(FfiConverterTypeExternalOperatorPackage);// FfiConverter for Array<ExternalOperatorRecipient>
|
|
4878
|
+
const FfiConverterArrayTypeExternalOperatorRecipient=new FfiConverterArray(FfiConverterTypeExternalOperatorRecipient);// FfiConverter for Array<ExternalTransferLeafInput>
|
|
4879
|
+
const FfiConverterArrayTypeExternalTransferLeafInput=new FfiConverterArray(FfiConverterTypeExternalTransferLeafInput);// FfiConverter for Array<FiatCurrency>
|
|
3890
4880
|
const FfiConverterArrayTypeFiatCurrency=new FfiConverterArray(FfiConverterTypeFiatCurrency);// FfiConverter for Array<IdentifierCommitmentPair>
|
|
3891
4881
|
const FfiConverterArrayTypeIdentifierCommitmentPair=new FfiConverterArray(FfiConverterTypeIdentifierCommitmentPair);// FfiConverter for Array<IdentifierPublicKeyPair>
|
|
3892
4882
|
const FfiConverterArrayTypeIdentifierPublicKeyPair=new FfiConverterArray(FfiConverterTypeIdentifierPublicKeyPair);// FfiConverter for Array<IdentifierSignaturePair>
|
|
@@ -3895,13 +4885,15 @@ const FfiConverterArrayTypeIncomingChange=new FfiConverterArray(FfiConverterType
|
|
|
3895
4885
|
const FfiConverterArrayTypeLocaleOverrides=new FfiConverterArray(FfiConverterTypeLocaleOverrides);// FfiConverter for Array<LocalizedName>
|
|
3896
4886
|
const FfiConverterArrayTypeLocalizedName=new FfiConverterArray(FfiConverterTypeLocalizedName);// FfiConverter for Array<OutgoingChange>
|
|
3897
4887
|
const FfiConverterArrayTypeOutgoingChange=new FfiConverterArray(FfiConverterTypeOutgoingChange);// FfiConverter for Array<Payment>
|
|
3898
|
-
const FfiConverterArrayTypePayment=new FfiConverterArray(FfiConverterTypePayment);// FfiConverter for Array<
|
|
4888
|
+
const FfiConverterArrayTypePayment=new FfiConverterArray(FfiConverterTypePayment);// FfiConverter for Array<PaymentIdUpdate>
|
|
4889
|
+
const FfiConverterArrayTypePaymentIdUpdate=new FfiConverterArray(FfiConverterTypePaymentIdUpdate);// FfiConverter for Array<ProvisionalPayment>
|
|
3899
4890
|
const FfiConverterArrayTypeProvisionalPayment=new FfiConverterArray(FfiConverterTypeProvisionalPayment);// FfiConverter for Array<Rate>
|
|
3900
4891
|
const FfiConverterArrayTypeRate=new FfiConverterArray(FfiConverterTypeRate);// FfiConverter for Array<Record>
|
|
3901
4892
|
const FfiConverterArrayTypeRecord=new FfiConverterArray(FfiConverterTypeRecord);// FfiConverter for Array<SetLnurlMetadataItem>
|
|
3902
4893
|
const FfiConverterArrayTypeSetLnurlMetadataItem=new FfiConverterArray(FfiConverterTypeSetLnurlMetadataItem);// FfiConverter for Array<SparkSigningOperator>
|
|
3903
4894
|
const FfiConverterArrayTypeSparkSigningOperator=new FfiConverterArray(FfiConverterTypeSparkSigningOperator);// FfiConverter for Array<StableBalanceToken>
|
|
3904
|
-
const FfiConverterArrayTypeStableBalanceToken=new FfiConverterArray(FfiConverterTypeStableBalanceToken);// FfiConverter for Array<
|
|
4895
|
+
const FfiConverterArrayTypeStableBalanceToken=new FfiConverterArray(FfiConverterTypeStableBalanceToken);// FfiConverter for Array<StoredCrossChainSwap>
|
|
4896
|
+
const FfiConverterArrayTypeStoredCrossChainSwap=new FfiConverterArray(FfiConverterTypeStoredCrossChainSwap);// FfiConverter for Array<TokenMetadata>
|
|
3905
4897
|
const FfiConverterArrayTypeTokenMetadata=new FfiConverterArray(FfiConverterTypeTokenMetadata);// FfiConverter for Array<Utxo>
|
|
3906
4898
|
const FfiConverterArrayTypeUtxo=new FfiConverterArray(FfiConverterTypeUtxo);// FfiConverter for Array<Webhook>
|
|
3907
4899
|
const FfiConverterArrayTypeWebhook=new FfiConverterArray(FfiConverterTypeWebhook);// FfiConverter for Array<string>
|
|
@@ -3910,7 +4902,9 @@ const FfiConverterMapStringArrayTypePayment=new FfiConverterMap(FfiConverterStri
|
|
|
3910
4902
|
const FfiConverterOptionalTypeu128=new FfiConverterOptional(FfiConverterTypeu128);// FfiConverter for Amount | undefined
|
|
3911
4903
|
const FfiConverterOptionalTypeAmount=new FfiConverterOptional(FfiConverterTypeAmount);// FfiConverter for AmountAdjustmentReason | undefined
|
|
3912
4904
|
const FfiConverterOptionalTypeAmountAdjustmentReason=new FfiConverterOptional(FfiConverterTypeAmountAdjustmentReason);// FfiConverter for AssetFilter | undefined
|
|
3913
|
-
const FfiConverterOptionalTypeAssetFilter=new FfiConverterOptional(FfiConverterTypeAssetFilter);// FfiConverter for
|
|
4905
|
+
const FfiConverterOptionalTypeAssetFilter=new FfiConverterOptional(FfiConverterTypeAssetFilter);// FfiConverter for ConversionFilter | undefined
|
|
4906
|
+
const FfiConverterOptionalTypeConversionFilter=new FfiConverterOptional(FfiConverterTypeConversionFilter);// FfiConverter for ConversionInfo | undefined
|
|
4907
|
+
const FfiConverterOptionalTypeConversionInfo=new FfiConverterOptional(FfiConverterTypeConversionInfo);// FfiConverter for ConversionPurpose | undefined
|
|
3914
4908
|
const FfiConverterOptionalTypeConversionPurpose=new FfiConverterOptional(FfiConverterTypeConversionPurpose);// FfiConverter for ConversionStatus | undefined
|
|
3915
4909
|
const FfiConverterOptionalTypeConversionStatus=new FfiConverterOptional(FfiConverterTypeConversionStatus);// FfiConverter for DepositClaimError | undefined
|
|
3916
4910
|
const FfiConverterOptionalTypeDepositClaimError=new FfiConverterOptional(FfiConverterTypeDepositClaimError);// FfiConverter for Fee | undefined
|
|
@@ -3923,12 +4917,15 @@ const FfiConverterOptionalTypeStableBalanceActiveLabel=new FfiConverterOptional(
|
|
|
3923
4917
|
const FfiConverterOptionalTypeSuccessAction=new FfiConverterOptional(FfiConverterTypeSuccessAction);// FfiConverter for SuccessActionProcessed | undefined
|
|
3924
4918
|
const FfiConverterOptionalTypeSuccessActionProcessed=new FfiConverterOptional(FfiConverterTypeSuccessActionProcessed);// FfiConverter for TokenTransactionType | undefined
|
|
3925
4919
|
const FfiConverterOptionalTypeTokenTransactionType=new FfiConverterOptional(FfiConverterTypeTokenTransactionType);// FfiConverter for Map<string, string> | undefined
|
|
3926
|
-
const FfiConverterOptionalMapStringString=new FfiConverterOptional(FfiConverterMapStringString);// FfiConverter for
|
|
4920
|
+
const FfiConverterOptionalMapStringString=new FfiConverterOptional(FfiConverterMapStringString);// FfiConverter for StorageBackend | undefined
|
|
4921
|
+
const FfiConverterOptionalTypeStorageBackend=new FfiConverterOptional(FfiConverterTypeStorageBackend);// FfiConverter for Array<ArrayBuffer> | undefined
|
|
4922
|
+
const FfiConverterOptionalArrayArrayBuffer=new FfiConverterOptional(FfiConverterArrayArrayBuffer);// FfiConverter for Array<ExternalInputParser> | undefined
|
|
3927
4923
|
const FfiConverterOptionalArrayTypeExternalInputParser=new FfiConverterOptional(FfiConverterArrayTypeExternalInputParser);// FfiConverter for Array<InputType>
|
|
3928
4924
|
const FfiConverterArrayTypeInputType=new FfiConverterArray(FfiConverterTypeInputType);// FfiConverter for Array<PaymentDetailsFilter>
|
|
3929
4925
|
const FfiConverterArrayTypePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypePaymentDetailsFilter);// FfiConverter for Array<PaymentStatus>
|
|
3930
4926
|
const FfiConverterArrayTypePaymentStatus=new FfiConverterArray(FfiConverterTypePaymentStatus);// FfiConverter for Array<PaymentType>
|
|
3931
|
-
const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<
|
|
4927
|
+
const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<SourceAsset>
|
|
4928
|
+
const FfiConverterArrayTypeSourceAsset=new FfiConverterArray(FfiConverterTypeSourceAsset);// FfiConverter for Array<SparkHtlcStatus>
|
|
3932
4929
|
const FfiConverterArrayTypeSparkHtlcStatus=new FfiConverterArray(FfiConverterTypeSparkHtlcStatus);// FfiConverter for Array<StoragePaymentDetailsFilter>
|
|
3933
4930
|
const FfiConverterArrayTypeStoragePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypeStoragePaymentDetailsFilter);// FfiConverter for Array<WebhookEventType>
|
|
3934
4931
|
const FfiConverterArrayTypeWebhookEventType=new FfiConverterArray(FfiConverterTypeWebhookEventType);// FfiConverter for Array<PaymentDetailsFilter> | undefined
|
|
@@ -3947,5 +4944,5 @@ const FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter=new FfiConverterO
|
|
|
3947
4944
|
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
3948
4945
|
*/function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
|
|
3949
4946
|
const bindingsContractVersion=29;// Get the scaffolding contract version by calling the into the dylib
|
|
3950
|
-
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_default_server_config()!==33858){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_server_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status()!==62888){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_get_spark_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging()!==8518){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_init_logging');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service()!==23177){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context()!==28438){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos()!==20959){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==23018){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex()!==59376){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==65179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees()!==43230){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact()!==26497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener()!==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_buy_bitcoin()!==34179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_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_contact()!==15670){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address()!==44132){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect()!==330){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits()!==50958){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_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_contacts()!==2729){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies()!==63366){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates()!==5904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments()!==39170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits()!==22486){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks()!==28432){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth()!==125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay()!==10147){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw()!==45652){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse()!==14285){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay()!==37691){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment()!==34185){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment()!==36984){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees()!==16947){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit()!==33646){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions()!==24173){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address()!==530){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook()!==13529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener()!==41066){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==57563){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization()!==44923){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_unregister_webhook()!==34100){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact()!==21170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings()!==1721){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key()!==62941){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()!==23137){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()!==37648){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()!==3107){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies()!==60224){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies()!==59601){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies');}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_hmac_sha256()!==57517){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment()!==31862){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node()!==37434){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_secret()!==26114){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted()!==38925){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret()!==45280){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key()!==62519){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets()!==45969){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs()!==19489){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver()!==51627){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret()!==53055){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost()!==20635){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()!==53544){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost');}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_passkey_get_wallet()!==28830){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_get_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_is_available()!==31283){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_is_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_list_labels()!==5351){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_list_labels');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_store_label()!==42949){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_store_label');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_derive_prf_seed()!==44905){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_derive_prf_seed');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_is_prf_available()!==33931){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_is_prf_available');}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_rest_chain_service()!==63155){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context()!==64829){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==59400){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionmanager_get_session()!==64481){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionmanager_get_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionmanager_set_session()!==55262){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionmanager_set_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item()!==6883){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item()!==30248){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item()!==7970){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments()!==51078){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_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_insert_payment_metadata()!==32757){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id()!==35394){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice()!==57075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids()!==10948){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==35363){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit()!==28477){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits()!==62636){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit()!==18714){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata()!==64210){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_contacts()!==10490){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_contact()!==19980){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_contact()!==38342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_contact()!==50274){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change()!==1304){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync()!==7860){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes()!==30862){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision()!==6931){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records()!==59522){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record()!==19643){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records()!==28540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change()!==41369){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming()!==18793){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_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_passkey_new()!==25404){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_passkey_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new()!==65435){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_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();uniffiCallbackInterfacePasskeyPrfProvider.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceSessionManager.register();uniffiCallbackInterfaceStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddContactRequest,FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAmountAdjustmentReason,FfiConverterTypeAssetFilter,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeBuyBitcoinRequest,FfiConverterTypeBuyBitcoinResponse,FfiConverterTypeChainApiType,FfiConverterTypeChainServiceError,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeContact,FfiConverterTypeConversionDetails,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionStatus,FfiConverterTypeConversionStep,FfiConverterTypeConversionType,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeExternalAggregateFrostRequest,FfiConverterTypeExternalEncryptedSecret,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalScalar,FfiConverterTypeExternalSecretShare,FfiConverterTypeExternalSecretSource,FfiConverterTypeExternalSecretToSplit,FfiConverterTypeExternalSignFrostRequest,FfiConverterTypeExternalSigner,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeExternalVerifiableSecretShare,FfiConverterTypeFee,FfiConverterTypeFeePolicy,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetConfig,FfiConverterTypeKeySetType,FfiConverterTypeLeafOptimizationConfig,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListContactsRequest,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlInfo,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeNostrRelayConfig,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationEvent,FfiConverterTypeOptimizationProgress,FfiConverterTypeOutgoingChange,FfiConverterTypePasskey,FfiConverterTypePasskeyError,FfiConverterTypePasskeyPrfError,FfiConverterTypePasskeyPrfProvider,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentObserverError,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKey,FfiConverterTypePublicKeyBytes,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRegisterWebhookRequest,FfiConverterTypeRegisterWebhookResponse,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkContext,FfiConverterTypeSdkContextConfig,FfiConverterTypeSdkError,FfiConverterTypeSdkEvent,FfiConverterTypeSecretBytes,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeServiceConnectivityError,FfiConverterTypeServiceStatus,FfiConverterTypeSession,FfiConverterTypeSessionManager,FfiConverterTypeSessionManagerError,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSignerError,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkConfig,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeSparkSigningOperator,FfiConverterTypeSparkSspConfig,FfiConverterTypeSparkStatus,FfiConverterTypeStableBalanceActiveLabel,FfiConverterTypeStableBalanceConfig,FfiConverterTypeStableBalanceToken,FfiConverterTypeStorage,FfiConverterTypeStorageError,FfiConverterTypeStorageListPaymentsRequest,FfiConverterTypeStoragePaymentDetailsFilter,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTokenOptimizationConfig,FfiConverterTypeTokenTransactionType,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnregisterWebhookRequest,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateContactRequest,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeWallet,FfiConverterTypeWebhook,FfiConverterTypeWebhookEventType,FfiConverterTypeu128}});
|
|
4947
|
+
const scaffoldingContractVersion=nativeModule().ubrn_ffi_breez_sdk_spark_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect()!==40345){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect_with_signer()!==1399){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer()!==31659){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_custom_storage()!==18116){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_custom_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_config()!==62194){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_external_signers()!==58595){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signers');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_server_config()!==40188){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_server_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_storage()!==56226){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status()!==62888){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_get_spark_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging()!==8518){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_init_logging');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service()!==23177){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context()!==7027){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos()!==20959){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==23018){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex()!==59376){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==65179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees()!==43230){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact()!==26497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener()!==19224){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer()!==15257){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin()!==34179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available()!==31624){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message()!==4385){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit()!==43529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment()!==57587){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_lightning_address_transfer()!==20680){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_lightning_address_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact()!==15670){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address()!==44132){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect()!==20026){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits()!==50958){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_cross_chain_routes()!==25164){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_cross_chain_routes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts()!==2729){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies()!==63366){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates()!==5904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments()!==39170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits()!==22486){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks()!==28432){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth()!==125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay()!==10147){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw()!==45652){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves()!==39254){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse()!==14285){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay()!==37691){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment()!==34185){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment()!==36984){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees()!==16947){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit()!==33646){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions()!==24173){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address()!==530){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook()!==13529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener()!==41066){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==57563){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet()!==30368){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook()!==34100){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact()!==21170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings()!==1721){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key()!==26700){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa()!==17969){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable()!==45907){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies()!==5296){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies()!==6089){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr()!==1766){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256()!==65429){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key()!==38705){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf()!==39015){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key()!==11994){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge()!==57313){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message()!==56093){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost()!==44871){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer()!==42596){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim()!==109){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive()!==49812){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit()!==119){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund()!==22509){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund()!==28885){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice()!==11535){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction()!==58955){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim()!==64724){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies()!==19092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates()!==11512){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_check_availability()!==35189){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_check_availability');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey()!==47815){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels()!==35849){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_register()!==18330){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_register');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in()!==42245){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_list()!==54877){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_list');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_store()!==58514){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==27806){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send()!==31673){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds()!==18550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported()!==46331){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey()!==1967){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association()!==18713){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request()!==8260){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_get_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request()!==24889){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_post_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request()!==51072){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_delete_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build()!==8126){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_account_number()!==6550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_account_number');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service()!==2848){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage()!==14543){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service()!==37854){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client()!==51060){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer()!==21617){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service()!==63155){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context()!==64829){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==20369){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend()!==28545){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session()!==49546){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session()!==13629){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item()!==6883){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item()!==30248){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item()!==7970){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments()!==51078){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_apply_payment_update()!==8631){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_apply_payment_update');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata()!==32757){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id()!==35394){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice()!==57075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids()!==10948){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==35363){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit()!==28477){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits()!==62636){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit()!==18714){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata()!==64210){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_contacts()!==10490){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_contact()!==19980){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_contact()!==38342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_contact()!==50274){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cross_chain_swap()!==31116){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cross_chain_swap');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap()!==20172){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps()!==23493){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change()!==44890){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync()!==8492){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes()!==54668){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision()!==17237){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records()!==35265){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record()!==32789){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records()!==18699){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change()!==59591){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming()!==30443){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores()!==51497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token()!==56056){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token()!==33277){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token()!==32344){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance()!==9758){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata()!==57707){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token()!==36459){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token()!==65025){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_new()!==51278){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new()!==65435){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer()!==28871){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event()!==24807){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log()!==11839){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_logger_log');}uniffiCallbackInterfaceEventListener.register();uniffiCallbackInterfaceLogger.register();uniffiCallbackInterfaceBitcoinChainService.register();uniffiCallbackInterfaceExternalBreezSigner.register();uniffiCallbackInterfaceExternalSparkSigner.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfacePrfProvider.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceSessionStore.register();uniffiCallbackInterfaceStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddContactRequest,FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAmountAdjustmentReason,FfiConverterTypeAssetFilter,FfiConverterTypeAuthorizeTransferRequest,FfiConverterTypeAutoOptimizationEvent,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeBuyBitcoinRequest,FfiConverterTypeBuyBitcoinResponse,FfiConverterTypeChainApiType,FfiConverterTypeChainServiceError,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeClaimTransferRequest,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithPasskeyRequest,FfiConverterTypeConnectWithPasskeyResponse,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeContact,FfiConverterTypeConversion,FfiConverterTypeConversionAsset,FfiConverterTypeConversionChain,FfiConverterTypeConversionDetails,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionFilter,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionProvider,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionSide,FfiConverterTypeConversionStatus,FfiConverterTypeConversionType,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCrossChainAddressDetails,FfiConverterTypeCrossChainAddressFamily,FfiConverterTypeCrossChainConfig,FfiConverterTypeCrossChainFeeMode,FfiConverterTypeCrossChainProvider,FfiConverterTypeCrossChainProviderContext,FfiConverterTypeCrossChainRouteFilter,FfiConverterTypeCrossChainRoutePair,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeDeriveSeedsOutput,FfiConverterTypeDeriveSeedsRequest,FfiConverterTypeDomainAssociation,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeErrorKind,FfiConverterTypeExternalBreezSigner,FfiConverterTypeExternalClaimLeafInput,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostDerivation,FfiConverterTypeExternalFrostJob,FfiConverterTypeExternalFrostShareResult,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalNewLeafKey,FfiConverterTypeExternalOperatorPackage,FfiConverterTypeExternalOperatorRecipient,FfiConverterTypeExternalPrepareClaimRequest,FfiConverterTypeExternalPrepareLightningReceiveRequest,FfiConverterTypeExternalPrepareStaticDepositClaimRequest,FfiConverterTypeExternalPrepareStaticDepositRequest,FfiConverterTypeExternalPrepareTokenTransactionRequest,FfiConverterTypeExternalPrepareTransferRequest,FfiConverterTypeExternalPreparedClaim,FfiConverterTypeExternalPreparedLightningReceive,FfiConverterTypeExternalPreparedStaticDeposit,FfiConverterTypeExternalPreparedStaticDepositClaim,FfiConverterTypeExternalPreparedTokenTransaction,FfiConverterTypeExternalPreparedTransfer,FfiConverterTypeExternalSignSparkInvoiceRequest,FfiConverterTypeExternalSignStaticDepositRefundRequest,FfiConverterTypeExternalSignedSparkInvoice,FfiConverterTypeExternalSigners,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalSparkInvoiceKind,FfiConverterTypeExternalSparkSigner,FfiConverterTypeExternalStartStaticDepositRefundRequest,FfiConverterTypeExternalStartedStaticDepositRefund,FfiConverterTypeExternalTokenTransactionKind,FfiConverterTypeExternalTransferLeafInput,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeFee,FfiConverterTypeFeePolicy,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeLeafOptimizationConfig,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListContactsRequest,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlInfo,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationMode,FfiConverterTypeOptimizationOutcome,FfiConverterTypeOptimizeLeavesRequest,FfiConverterTypeOptimizeLeavesResponse,FfiConverterTypeOutgoingChange,FfiConverterTypePasskeyAvailability,FfiConverterTypePasskeyClient,FfiConverterTypePasskeyConfig,FfiConverterTypePasskeyCredential,FfiConverterTypePasskeyError,FfiConverterTypePasskeyLabels,FfiConverterTypePasskeyProviderOptions,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentIdUpdate,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentObserverError,FfiConverterTypePaymentRequest,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypePrfProvider,FfiConverterTypePrfProviderError,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKey,FfiConverterTypePublicKeyBytes,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRegisterRequest,FfiConverterTypeRegisterResponse,FfiConverterTypeRegisterWebhookRequest,FfiConverterTypeRegisterWebhookResponse,FfiConverterTypeResolvedStores,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkContext,FfiConverterTypeSdkContextConfig,FfiConverterTypeSdkError,FfiConverterTypeSdkEvent,FfiConverterTypeSecretBytes,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeServiceConnectivityError,FfiConverterTypeServiceStatus,FfiConverterTypeSession,FfiConverterTypeSessionStore,FfiConverterTypeSessionStoreError,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSetupWalletRequest,FfiConverterTypeSignInRequest,FfiConverterTypeSignInResponse,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSignerError,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSourceAsset,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkConfig,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeSparkSigningOperator,FfiConverterTypeSparkSspConfig,FfiConverterTypeSparkStatus,FfiConverterTypeStableBalanceActiveLabel,FfiConverterTypeStableBalanceConfig,FfiConverterTypeStableBalanceToken,FfiConverterTypeStorage,FfiConverterTypeStorageBackend,FfiConverterTypeStorageError,FfiConverterTypeStorageListPaymentsRequest,FfiConverterTypeStoragePaymentDetailsFilter,FfiConverterTypeStoredCrossChainSwap,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTokenOptimizationConfig,FfiConverterTypeTokenTransactionType,FfiConverterTypeTransferAuthorization,FfiConverterTypeTurnkeyConfig,FfiConverterTypeTurnkeyRetryConfig,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnregisterWebhookRequest,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateContactRequest,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeWallet,FfiConverterTypeWalletSetup,FfiConverterTypeWebhook,FfiConverterTypeWebhookEventType,FfiConverterTypeu128}});
|
|
3951
4948
|
//# sourceMappingURL=breez_sdk_spark.js.map
|